/* Homepage-only header and section rhythm. Shared footer: site-ending.css. */
body.homepage {
  --chrome-ink: #352d36;
  --chrome-muted: #e5dfe4;
  --chrome-cream: #fbf8f5;
  --chrome-gold: #e0bd91;
}

/* Keep the fixed navigation and in-flow hours banner aligned, without
   changing their positioning model or the offsets used on other pages. */
body.homepage {
  --home-navbar-height: 80px;
  padding-top: var(--home-navbar-height) !important;
}

body.homepage .navbar {
  min-height: var(--home-navbar-height);
  padding: 0 !important;
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(107, 58, 107, 0.1);
}

body.homepage .navbar .container {
  min-height: var(--home-navbar-height);
  align-items: center;
}

body.homepage .navbar .navbar-brand { padding: 0; }

body.homepage .navbar .logo-container {
  display: inline-flex;
  align-items: center;
  height: 72px;
  padding: 0;
}

body.homepage .navbar .logo-img {
  display: block;
  width: auto !important;
  height: 68px !important;
  max-height: 68px !important;
  object-fit: contain !important;
}

body.homepage .navbar .navbar-nav {
  gap: 0.1rem;
}

body.homepage .navbar .nav-link {
  min-height: 44px;
  padding: 0.55rem 0.62rem !important;
  color: var(--chrome-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

body.homepage .navbar .nav-link.dropdown-toggle::after {
  margin-left: 0.4rem;
  vertical-align: 0.15em;
}

body.homepage .navbar .nav-link.active {
  color: var(--primary-dark) !important;
}

body.homepage .navbar .nav-link.active::after {
  bottom: 3px;
}

body.homepage .navbar .btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.9rem;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: none;
}

body.homepage .navbar .navbar-toggler {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-color: rgba(107, 58, 107, 0.3);
}

body.homepage .navbar .navbar-collapse {
  align-items: center;
}

body.homepage .navbar .dropdown-menu {
  margin-top: 0.35rem;
  padding: 0.45rem;
  border: 1px solid rgba(107, 58, 107, 0.12);
  border-radius: 0.7rem;
  background: #fffdfa;
  box-shadow: 0 12px 30px rgba(53, 45, 54, 0.14);
}

body.homepage .navbar .dropdown-item {
  min-height: 40px;
  padding: 0.55rem 0.72rem;
  color: var(--chrome-ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.86rem;
  line-height: 1.35;
}

body.homepage .navbar .dropdown-header {
  padding: 0.55rem 0.72rem 0.35rem;
  color: var(--primary-dark);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.homepage .navbar .dropdown-divider {
  border-color: rgba(107, 58, 107, 0.13);
}

/* The fixed mobile menu remains independently scrollable when expanded. */
@media (max-width: 991.98px) {
  body.homepage { --home-navbar-height: 76px; }

  body.homepage .navbar {
    min-height: var(--home-navbar-height);
  }

  body.homepage .navbar .container {
    min-height: var(--home-navbar-height);
    flex-wrap: wrap;
  }

  body.homepage .navbar .logo-container {
    height: 70px;
  }

  body.homepage .navbar .logo-img {
    height: 60px !important;
    max-height: 60px !important;
  }

  body.homepage .navbar-collapse {
    max-height: calc(100dvh - 88px);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.4rem 0 0.8rem;
  }

  body.homepage .navbar-nav {
    align-items: stretch !important;
    gap: 0.12rem;
  }

  body.homepage .navbar .nav-link {
    min-height: 46px;
    justify-content: flex-start;
    padding-inline: 0.75rem !important;
    white-space: normal;
  }

  body.homepage .navbar .nav-link.active::after {
    right: auto;
    left: 0.75rem;
    width: 2rem;
  }

  body.homepage .navbar .nav-item > .btn {
    width: 100%;
    min-height: 46px;
    margin: 0.3rem 0 0 !important;
  }

  body.homepage .navbar .dropdown-menu {
    max-height: calc(100dvh - 160px);
    margin: 0.2rem 0 0.4rem;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  body.homepage .navbar .dropdown-item {
    min-height: 44px;
  }

  body.homepage .navbar .care-sub-group .dropdown-subitem {
    min-height: 42px;
  }
}

@media (min-width: 992px) {
  body.homepage .navbar .navbar-toggler { display: none; }
}

@media (max-width: 575.98px) {
  body.homepage .navbar .logo-img {
    height: 56px !important;
    max-height: 56px !important;
  }
}

/* Reduce only the broad default section rhythm; keep the hero and campaign
   presentation untouched and preserve comfortable mobile reading space. */
body.homepage main > section:not(.hero-section) {
  padding-top: clamp(1.45rem, 2.5vw, 2.2rem) !important;
  padding-bottom: clamp(1.45rem, 2.5vw, 2.2rem) !important;
}

@media (max-width: 767.98px) {
  body.homepage main > section:not(.hero-section) {
    padding-top: 1.3rem !important;
    padding-bottom: 1.3rem !important;
  }

}

@media (prefers-reduced-motion: reduce) {
  body.homepage .navbar * {
    transition-duration: 0.01ms !important;
  }
}
