/*
  ICON ELEMENT SHARED SITE HEADER — v47
  This is the homepage header system, applied after each page stylesheet so
  Services, LA Readiness Index, forms, and supporting pages render identically.
*/

:root {
  --header-height: 104px;
}

body {
  --header-height: 104px;
}

.site-header {
  position: fixed !important;
  inset: 0 0 auto 0 !important;
  z-index: 9999 !important;
}

.site-header .nav-container {
  height: var(--header-height) !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 2rem !important;
  padding: 1rem clamp(1.25rem, 4vw, 4.5rem) !important;
  background: rgba(10, 10, 10, 0.9) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(201, 162, 74, 0.14) !important;
  border-radius: 0 !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: none !important;
  transition:
    height 0.3s ease,
    background 0.3s ease,
    box-shadow 0.3s ease !important;
}

.site-header .nav-container.is-scrolled {
  height: 84px !important;
  background: rgba(10, 10, 10, 0.96) !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.38) !important;
}

.site-header .logo-link {
  display: inline-flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  position: relative !important;
  z-index: 10002 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.site-header .site-logo {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  height: 72px !important;
  object-fit: contain !important;
  transition: height 0.3s ease !important;
}

.site-header .nav-container.is-scrolled .site-logo {
  height: 58px !important;
}

.site-header .nav-links {
  position: static !important;
  width: auto !important;
  height: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: clamp(1rem, 2vw, 2rem) !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.site-header .nav-links a {
  display: inline-block !important;
  width: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  color: rgba(245, 241, 232, 0.84) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: Aptos, "Segoe UI", Arial, sans-serif !important;
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
  font-weight: 400 !important;
  letter-spacing: 0.05em !important;
  text-transform: none !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: color 0.25s ease, transform 0.25s ease !important;
}

.site-header .nav-links a:hover {
  color: #f2d27a !important;
  transform: translateY(-1px) !important;
}

/* Gold active-page state shared by all primary navigation pages. */
.site-header .nav-links a[aria-current="page"]:not(.nav-button) {
  color: #f2d27a !important;
  transform: none !important;
}

.site-header .nav-links a[aria-current="page"]:not(.nav-button):hover {
  color: #f2d27a !important;
  transform: translateY(-1px) !important;
}

body .site-header .nav-container .nav-links a.nav-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  padding: 0.78rem 1.12rem !important;
  margin: 0 !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  color: #0f0f12 !important;
  background: linear-gradient(
    90deg,
    #c9a96e 0%,
    #e8c88a 52%,
    #b8860b 100%
  ) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: 0.94rem !important;
  line-height: 1.6 !important;
  font-weight: 500 !important;
  letter-spacing: 0.075em !important;
  text-transform: none !important;
  white-space: nowrap !important;
  -webkit-text-stroke: 0.22px currentColor !important;
  text-shadow: 0.22px 0 currentColor !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.24) !important;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease !important;
}

body .site-header .nav-container .nav-links a.nav-button:hover {
  color: #0f0f12 !important;
  background: linear-gradient(
    90deg,
    #c9a96e 0%,
    #e8c88a 52%,
    #b8860b 100%
  ) !important;
  border-color: transparent !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.28) !important;
  text-shadow: 0.22px 0 currentColor !important;
}

.site-header .nav-toggle {
  display: none !important;
}

.site-header .hamburger {
  display: none !important;
  width: 34px !important;
  height: 24px !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 10002 !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.site-header .hamburger span {
  display: block !important;
  height: 3px !important;
  width: 100% !important;
  background: #c9a24a !important;
  border-radius: 999px !important;
  transition: transform 0.3s ease, opacity 0.3s ease !important;
}

@media (max-width: 980px) {
  body {
    --header-height: 92px;
  }

  .site-header .nav-container {
    height: var(--header-height) !important;
    padding: 0.9rem 1.25rem !important;
  }

  .site-header .site-logo {
    height: 58px !important;
  }

  .site-header .hamburger {
    display: flex !important;
  }

  .site-header .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(82vw, 380px) !important;
    height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 1.35rem !important;
    padding: 7rem 2rem 2.5rem !important;
    background: rgba(7, 7, 7, 0.98) !important;
    border: 0 !important;
    border-left: 1px solid rgba(201, 162, 74, 0.16) !important;
    border-radius: 0 !important;
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.44) !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s ease !important;
    z-index: 10001 !important;
  }

  .site-header .nav-links a {
    width: 100% !important;
    white-space: normal !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
  }

  body .site-header .nav-container .nav-links a.nav-button {
    width: 100% !important;
    margin-top: 0.5rem !important;
    text-align: center !important;
  }

  .site-header #nav-toggle:checked ~ .nav-links {
    transform: translateX(0) !important;
  }

  .site-header #nav-toggle:checked + .hamburger span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg) !important;
  }

  .site-header #nav-toggle:checked + .hamburger span:nth-child(2) {
    opacity: 0 !important;
  }

  .site-header #nav-toggle:checked + .hamburger span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg) !important;
  }
}

@media (max-width: 680px) {
  body {
    --header-height: 86px;
  }

  .site-header .nav-container {
    height: var(--header-height) !important;
  }

  .site-header .site-logo {
    height: 52px !important;
  }
}

/* GLOBAL FOOTER CONSISTENCY V46 */
.site-footer {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.25rem, 6vw, 6rem) 2rem;
  background:
    radial-gradient(circle at 70% 0%, rgba(201, 162, 74, 0.08), transparent 28rem),
    #050505;
  border-top: 1px solid rgba(201, 162, 74, 0.14);
  color: rgba(245, 241, 232, 0.72);
  font-family: Aptos, "Segoe UI", Arial, sans-serif;
}

.site-footer .footer-inner {
  width: min(100%, 1200px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 0.8fr;
  gap: 2rem;
}

.site-footer .footer-brand h2 {
  margin: 0 0 0.7rem;
  color: #f2d27a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 500;
}

.site-footer .footer-brand p,
.site-footer .footer-contact,
.site-footer .footer-legal {
  margin: 0;
  color: rgba(245, 241, 232, 0.58);
}

.site-footer .footer-links,
.site-footer .footer-socials {
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.site-footer a {
  color: rgba(245, 241, 232, 0.78);
  text-decoration: none;
  transition: color 0.25s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: #f2d27a;
}

.site-footer a[aria-current="page"] {
  color: #f2d27a;
}

.site-footer .footer-contact address {
  margin-top: 0.8rem;
  font-style: normal;
  line-height: 1.6;
}

.site-footer .footer-legal {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  padding-top: 2rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(201, 162, 74, 0.1);
}

@media (max-width: 980px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .site-footer {
    padding: 3rem 1.25rem 2rem;
  }

  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }

  .site-footer .footer-legal {
    flex-direction: column;
  }
}

/* SITE-WIDE SIX-ITEM NAVIGATION — V47
   Keeps the expanded desktop navigation on one line before the
   existing mobile drawer begins at 980px. */
@media (min-width: 981px) and (max-width: 1280px) {
  .site-header .nav-container {
    gap: 1rem !important;
    padding-left: clamp(1.1rem, 2.5vw, 2.25rem) !important;
    padding-right: clamp(1.1rem, 2.5vw, 2.25rem) !important;
  }

  .site-header .nav-links {
    gap: clamp(0.58rem, 1vw, 0.9rem) !important;
  }

  .site-header .nav-links a {
    font-size: clamp(0.82rem, 1.15vw, 0.9rem) !important;
    letter-spacing: 0.035em !important;
  }

  body .site-header .nav-container .nav-links a.nav-button {
    padding: 0.7rem 0.92rem !important;
    font-size: clamp(0.83rem, 1.15vw, 0.9rem) !important;
  }
}


/* =========================================================
   SITEWIDE V49 — HOMEPAGE BUTTON MATCH + FOOTER ACTIVE STATE
   ========================================================= */
:root {
  --ie-soft-gold-gradient: linear-gradient(
    90deg,
    #c9a96e 0%,
    #e8c88a 52%,
    #b8860b 100%
  );
}

/* Keep the shared header CTA identical to the homepage CTA. */
body .site-header .nav-container .nav-links a.nav-button {
  color: #0f0f12 !important;
  background: var(--ie-soft-gold-gradient) !important;
  border: 1px solid transparent !important;
  border-radius: 999px !important;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.075em !important;
  -webkit-text-stroke: 0.2px currentColor !important;
  text-shadow: none !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.24) !important;
}

body .site-header .nav-container .nav-links a.nav-button:hover {
  color: #0f0f12 !important;
  background: var(--ie-soft-gold-gradient) !important;
  border-color: transparent !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.28) !important;
}

/* Make the About-page closing CTA use the homepage button system exactly. */
.about-page .cta-actions .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 54px !important;
  padding: 0.98rem 1.45rem !important;
  border-radius: 999px !important;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-weight: 700 !important;
  letter-spacing: 0.075em !important;
  text-align: center !important;
  text-decoration: none !important;
  -webkit-text-stroke: 0.2px currentColor !important;
  text-shadow: none !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease !important;
}

.about-page .cta-actions .button-primary {
  color: #0f0f12 !important;
  background: var(--ie-soft-gold-gradient) !important;
  border: 1px solid transparent !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.24) !important;
}

.about-page .cta-actions .button-secondary {
  color: #f2d27a !important;
  background: transparent !important;
  border: 1px solid rgba(201, 162, 74, 0.72) !important;
  box-shadow: none !important;
}

.about-page .cta-actions .button-primary:hover,
.about-page .cta-actions .button-secondary:hover {
  color: #0f0f12 !important;
  background: var(--ie-soft-gold-gradient) !important;
  border-color: transparent !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 30px rgba(201, 169, 110, 0.28) !important;
}

/* Active footer page is gold, including Services and About. */
.site-footer .footer-links a[aria-current="page"] {
  color: #f2d27a !important;
}
