/* =============================================================
   CCHCL Website — Layout Styles
   Navigation, footer, hero, page hero, sections
   ============================================================= */

/* ==========================================================
   UTILITY BAR
   ========================================================== */
.utility-bar {
  background: var(--gradient-purple);
  height: var(--utility-height);
  display: flex;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  position: relative;
  z-index: 1001;
  border-bottom: 1px solid rgba(197,160,40,0.15);
}
.utility-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.utility-bar__left,
.utility-bar__right {
  display: flex;
  align-items: center;
}
.utility-bar__item {
  color: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: color 0.2s;
}
a.utility-bar__item:hover { color: var(--color-gold); }
.utility-bar__divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  margin: 0 16px;
}
.utility-bar__social {
  display: flex;
  gap: 4px;
}
.utility-bar__social a,
.utility-bar__social .social-fallback {
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 15px;
  transition: all var(--transition-spring);
}
.utility-bar__social a:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
  transform: scale(1.15);
}
.utility-bar__social .social-fallback {
  cursor: help;
  opacity: 0.72;
}

/* ==========================================================
   MAIN NAVIGATION
   ========================================================== */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border-light);
  height: var(--nav-height);
  transition: all var(--transition-base);
}
.main-nav.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: none;
  box-shadow: 0 1px 24px rgba(42,14,53,0.08);
}
.main-nav .container {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  padding-right: 24px;
  position: relative;
}
.nav-logo__mark {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
  filter: drop-shadow(0 2px 6px rgba(15,36,64,0.08));
}
.main-nav.scrolled .nav-logo__mark {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
}
.nav-logo::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, transparent, var(--color-border), transparent);
}
.nav-logo__text {
  display: flex;
  flex-direction: column;
}
.nav-logo__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--color-purple);
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.nav-logo__tagline {
  font-size: 10px;
  color: var(--color-gold);
  font-style: italic;
  letter-spacing: 0.5px;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding-left: 0;
  flex: 0 1 auto;
  justify-content: flex-start;
  margin-left: auto;
  padding-right: 0;
  min-width: 0;
}
.nav-links > li { position: relative; }
.nav-links > li > a,
.nav-links > li > .nav-trigger {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition-base);
  position: relative;
  white-space: nowrap;
}
.nav-links > li > .nav-trigger {
  border: none;
  background: transparent;
  font-family: var(--font-body);
  cursor: pointer;
}
/* Invisible hover bridge so the cursor can cross the gap to the dropdown
   without losing :hover on the parent li */
.nav-links > li > [aria-haspopup]::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.nav-links > li > :is(a, .nav-trigger)::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-spring);
  transform-origin: center;
}
.nav-links > li > :is(a, .nav-trigger):hover,
.nav-links > li > :is(a, .nav-trigger).active {
  color: var(--color-purple);
}
.nav-links > li > :is(a, .nav-trigger):hover::after,
.nav-links > li > :is(a, .nav-trigger).active::after {
  transform: scaleX(1);
}

/* Dropdown Caret */
.nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  font-size: 10px;
  line-height: 1;
  opacity: 0.4;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.nav-links > li:hover > :is(a, .nav-trigger) .nav-caret,
.nav-links > li > [aria-expanded="true"] .nav-caret {
  opacity: 1;
  transform: rotate(180deg);
}

/* Dropdown Menus */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,0,0,0.04);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-spring);
  padding: 8px;
  z-index: 100;
}
.nav-dropdown--mega {
  min-width: 320px;
  width: max-content;
  display: grid;
  grid-template-columns: minmax(180px, 1fr);
  gap: 2px;
}
.nav-dropdown__group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--color-gold-dark);
  padding: 8px 14px 4px;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown,
.nav-links > li > [aria-expanded="true"] + .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: all 0.2s;
}
.nav-dropdown a:hover {
  color: var(--color-purple);
  background: var(--color-soft-purple);
}
.nav-dropdown a i {
  font-size: 18px;
  color: var(--color-gold);
  flex-shrink: 0;
}

/* CTA Nav Item ("Get Involved") */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  white-space: nowrap;
  padding: 8px 10px;
  position: relative;
  border-radius: var(--radius-sm);
  transition: color var(--transition-base), background-color var(--transition-base);
}

.nav-contact::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: -2px;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition-spring);
}

.nav-contact:hover,
.nav-contact.active {
  color: var(--color-purple);
  background: var(--color-soft-purple);
}

.nav-contact:hover::after,
.nav-contact.active::after {
  transform: scaleX(1);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
}

.nav-cta__btn {
  background: var(--gradient-gold) !important;
  color: #fff !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 14px !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  letter-spacing: 0.01em;
  transition: all var(--transition-spring) !important;
}
.nav-cta__btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-gold) !important;
}
.nav-cta__btn::after { display: none !important; }
.nav-cta__btn .nav-caret { opacity: 0.7; }

@media (max-width: 1240px) {
  .nav-logo {
    padding-right: 10px;
    gap: 8px;
  }

  .nav-logo__mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .nav-logo::after {
    display: none;
  }

  .nav-logo__tagline {
    display: none;
  }

  .nav-links > li > :is(a, .nav-trigger) {
    padding: 8px 8px;
    font-size: 13px;
  }

  .nav-cta__btn {
    padding: 9px 12px !important;
    font-size: 12px !important;
  }

  .nav-contact {
    font-size: 13px;
    padding: 8px 4px;
  }
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  background: none;
  border: none;
  gap: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: all var(--transition-base);
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Mobile Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--color-surface);
  z-index: 1500;
  clip-path: inset(0 0 0 100%);
  transition: clip-path 0.4s cubic-bezier(0.16,1,0.3,1);
  padding: 100px var(--space-lg) var(--space-2xl);
  overflow-y: auto;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 1480px) {
  .utility-bar__left .utility-bar__item:last-child,
  .utility-bar__left .utility-bar__item:last-child + .utility-bar__divider {
    display: none;
  }
}
.mobile-nav-overlay.open {
  display: block;
  clip-path: inset(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-nav-overlay__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 16px;
}
.mobile-nav-overlay__logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 10px;
}
.mobile-nav-overlay__brand strong {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--color-purple);
  line-height: 1;
}
.mobile-nav-overlay__brand span {
  color: var(--color-gold-dark);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border-light);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mobile-nav-overlay a {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
  padding: 14px 0;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border-light);
  transition: color 0.2s;
}
.mobile-nav-overlay a:hover { color: var(--color-purple); }
.mobile-nav-overlay__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold);
  text-align: center;
  padding-top: 20px;
  padding-bottom: 4px;
}
.mobile-nav-overlay__sub a {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  min-height: 44px;
  padding: 10px 0;
}
.mobile-nav-overlay__sub a:hover { color: var(--color-purple); }

/* ==========================================================
   HERO (Homepage)
   ========================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 500px;
  max-height: 800px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-purple);
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 700;
  color: #fff !important;
  line-height: 1.1;
  margin-bottom: var(--space-md);
}
.hero__subtitle {
  font-size: 19px;
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  line-height: 1.6;
}
.hero__buttons {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================
   PAGE HERO (Inner pages)
   ========================================================== */
.page-hero {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-3xl);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-purple);
}
.page-hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  color: #fff !important;
  margin-bottom: 8px;
}
.page-hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: var(--space-lg);
}
.breadcrumb a {
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-gold); }
.breadcrumb__sep { opacity: 0.4; }

/* ==========================================================
   STATS BAR
   ========================================================== */
.stats-section {
  background: var(--color-deep-navy);
  padding: var(--space-3xl) 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  text-align: center;
}
.stat-item__number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-item__label {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==========================================================
   CTA BANNER
   ========================================================== */
.cta-banner {
  background: var(--gradient-purple);
  padding: var(--space-3xl) 0;
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-md);
}
.cta-banner__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}
.cta-banner__buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  background: var(--color-deep-navy);
  color: rgba(255,255,255,0.8);
  padding: var(--space-3xl) 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}
.footer__heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: var(--space-lg);
}
.footer__brand-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}
.footer__social {
  display: flex;
  gap: 8px;
}
.footer__social a,
.footer__social .social-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  transition: all var(--transition-spring);
}
.footer__social a:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: #fff;
  transform: translateY(-2px);
}
.footer__social .social-fallback {
  cursor: help;
  opacity: 0.74;
}
.footer__meta-line {
  margin-top: 18px;
  display: grid;
  gap: 6px;
}
.footer__meta-line span {
  font-size: 13px;
  color: rgba(255,255,255,0.58);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__meta-line i {
  color: var(--color-gold);
}
.footer__brand::after {
  display: none;
}
.footer__brand {
  align-items: flex-start;
  padding-right: 0;
}
.footer__brand-mark {
  width: 64px;
  height: 64px;
  flex-basis: 64px;
  padding: 4px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.96);
}
.footer__brand .nav-logo__tagline {
  display: block;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer__links a:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}
.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.footer__contact-icon {
  color: var(--color-gold);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.footer__contact-item a {
  color: rgba(255,255,255,0.7);
}
.footer__contact-item a:hover { color: var(--color-gold); }

/* Newsletter */
.footer__newsletter { margin-top: var(--space-lg); }
.footer__newsletter--pending {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  padding: 14px;
}
.footer__newsletter-note {
  color: rgba(255,255,255,0.64);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.footer__newsletter-link {
  color: var(--color-gold);
  font-size: 14px;
  font-weight: 700;
}
.footer__newsletter-link:hover { color: #fff; }
.footer__newsletter-form {
  display: flex;
  gap: 0;
}
.footer__newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.15);
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 14px;
}
.footer__newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.footer__newsletter-input:focus {
  outline: none;
  border-color: var(--color-gold);
}
.footer__newsletter-btn {
  padding: 12px 20px;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background var(--transition-base);
}
.footer__newsletter-btn:hover { background: var(--color-gold-dark); }

/* Footer Bottom */
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-lg) 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: rgba(255,255,255,0.4);
}
.footer__bottom-links {
  display: flex;
  gap: var(--space-lg);
}
.footer__bottom-links a {
  color: rgba(255,255,255,0.4);
  font-size: 15px;
}
.footer__credit-link {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color var(--transition-fast);
}
.footer__bottom-links a:hover,
.footer__credit-link:hover { color: var(--color-gold); }

/* ==========================================================
   BACK TO TOP
   ========================================================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-purple);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-purple);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-spring);
  z-index: 99;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--color-purple-dark);
  transform: translateY(-3px);
}
