/**
 * Site header + footer (replaces Elementor/UAE chrome).
 * Desktop: brand left | logo center | horizontal nav right (matches mockup).
 */

.jitc-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100000;
  padding: 0.75rem 1rem;
  background: #1e5044;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.jitc-skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Header                                                                     */
/* -------------------------------------------------------------------------- */

.jitc-site-header {
  --jitc-header-cream: #f5f3ef;
  --jitc-header-ink: #1c2430;
  --jitc-header-green: #1e5044;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--jitc-header-cream);
  border-bottom: 1px solid rgba(28, 36, 48, 0.08);
}

.jitc-site-header__inner {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(320px, 1.35fr);
  align-items: center;
  column-gap: 1.25rem;
  width: 100%;
  margin: 0;
  padding: 1.15rem 1.35rem;
}

.jitc-site-header__brand {
  justify-self: start;
  min-width: 0;
}

.jitc-site-header__brand-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: inherit;
}

.jitc-site-header__title {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(1.1rem, 1.65vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--jitc-header-ink);
  text-transform: uppercase;
}

.jitc-site-header__tagline {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: clamp(0.95rem, 1.3vw, 1.2rem);
  font-weight: 500;
  font-style: normal;
  color: var(--jitc-header-ink);
  line-height: 1.2;
  opacity: 0.85;
}

.jitc-site-header__logo {
  justify-self: center;
}

.jitc-site-header__logo a {
  display: block;
  border-radius: 50%;
  overflow: hidden;
  width: 120px;
  height: 120px;
  box-shadow: 0 2px 8px rgba(28, 36, 48, 0.12);
  background: #fff;
}

.jitc-site-header__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jitc-site-header__toggle {
  display: none;
  justify-self: end;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(30, 80, 68, 0.25);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

/* Override Hello Elementor pink button hover/focus */
.jitc-site-header__toggle,
.jitc-site-header__toggle:hover,
.jitc-site-header__toggle:focus,
.jitc-site-header__toggle:focus-visible,
.jitc-site-header__toggle:active,
.jitc-site-header.is-open .jitc-site-header__toggle {
  background: transparent;
  border-color: rgba(30, 80, 68, 0.25);
  color: var(--jitc-header-green);
  box-shadow: none;
  outline: none;
}

.jitc-site-header__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--jitc-header-green);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jitc-site-header.is-open .jitc-site-header__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.jitc-site-header.is-open .jitc-site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.jitc-site-header.is-open .jitc-site-header__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.jitc-site-header__nav {
  justify-self: end;
  min-width: 0;
}

.jitc-nav-list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jitc-nav-list > li {
  margin: 0;
  flex: 0 0 auto;
}

.jitc-nav-list a {
  display: block;
  padding: 0.45rem 0.75rem;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--jitc-header-green);
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.jitc-nav-list a:hover,
.jitc-nav-list a:focus-visible {
  background: rgba(30, 80, 68, 0.08);
  color: #163d34;
  outline: none;
}

.jitc-nav-list .current-menu-item > a,
.jitc-nav-list .current_page_item > a {
  color: var(--jitc-header-green);
  background: transparent;
  font-weight: 700;
  text-decoration: none;
  box-shadow: inset 0 -2px 0 rgba(30, 80, 68, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Footer                                                                     */
/* -------------------------------------------------------------------------- */

.jitc-site-footer {
  background: #1e5044;
  color: #fff;
  padding: 1.75rem 1.25rem;
  margin-top: auto;
}

.jitc-site-footer__inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.jitc-site-footer__social {
  display: flex;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jitc-site-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jitc-site-footer__social-link--facebook {
  background: #1877f2;
}

.jitc-site-footer__social-link--instagram {
  background: #f00075;
}

.jitc-site-footer__social-link:hover,
.jitc-site-footer__social-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  outline: none;
}

/* -------------------------------------------------------------------------- */
/* Tablet / Mobile — hamburger below 1280px (avoids mid-width logo overlap)   */
/* -------------------------------------------------------------------------- */

@media (max-width: 1280px) {
  .jitc-site-header__inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand logo toggle"
      "nav nav nav";
    column-gap: 1rem;
    padding: 0.75rem 1rem;
  }

  .jitc-site-header__brand {
    grid-area: brand;
  }

  .jitc-site-header__logo {
    grid-area: logo;
  }

  .jitc-site-header__logo a {
    width: 88px;
    height: 88px;
  }

  .jitc-site-header__toggle {
    display: inline-flex;
    grid-area: toggle;
    margin-left: 0.75rem;
  }

  .jitc-site-header__nav {
    grid-area: nav;
    display: none;
    justify-self: stretch;
    padding-top: 0.35rem;
  }

  .jitc-site-header.is-open .jitc-site-header__nav {
    display: block;
  }

  .jitc-nav-list {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.5rem 0 0.25rem;
    border-top: 1px solid rgba(30, 80, 68, 0.12);
  }

  .jitc-nav-list a {
    padding: 0.75rem 0.5rem;
    font-size: 0.95rem;
    white-space: normal;
  }

  .jitc-nav-list .current-menu-item > a,
  .jitc-nav-list .current_page_item > a {
    background: rgba(196, 163, 90, 0.22);
    text-decoration: none;
  }
}

@media (max-width: 480px) {
  .jitc-site-header__title {
    font-size: 0.78rem;
  }

  .jitc-site-header__tagline {
    font-size: 0.7rem;
  }

  .jitc-site-header__logo a {
    width: 72px;
    height: 72px;
  }
}

.jitc-site-main {
  display: block;
}
