/* Apex Council Global v2.9 | Oct 2025
   Forward Motion + Adaptive + Leadership Matters Edition (Final Stable)
---------------------------------------------------------------- */

/* ---------- Variables ---------- */
:root {
  --brand-pink: #b11836;
  --ink: #111827;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-veil: rgba(255, 255, 255, 0.72);
  --footer-bg: #0b0f19;
  --link: #111827;
  --link-hover: #b11836;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f19;
    --bg-veil: rgba(19, 24, 35, 0.72);
    --ink: #e5e7eb;
    --muted: #9ba3af;
    --link: #e5e7eb;
    --link-hover: #ff4aa6;
    --footer-bg: #0b0f19;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
  }
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  font-family: "Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu,
    "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a:focus,
button:focus {
  outline: 2px solid var(--brand-pink);
  outline-offset: 2px;
}

/* ---------- Brand Typography ---------- */
.logo-text,
.footer-logo-text .logo-text {
  font-family: "Merriweather", serif;
  font-weight: 700;
  letter-spacing: 0.2px;
}

/* ---------- Animated Brand Mark ---------- */
@keyframes arrowReveal {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mark-arrow {
  color: var(--brand-pink);
  font-size: 22px;
  line-height: 1;
  animation: arrowReveal 0.6s cubic-bezier(0.33, 1, 0.68, 1) both;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1),
    filter 0.4s ease;
}
.logo:hover .mark-arrow,
.footer-logo-text:hover .mark-arrow {
  transform: translateX(3px);
  filter: brightness(1.2);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--bg-veil);
  backdrop-filter: saturate(150%) blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transition: transform 0.12s ease, background 0.2s ease,
    box-shadow 0.2s ease, padding 0.2s ease;
}
.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
}
.site-header.shrink .header-inner {
  padding: 12px 32px;
}
.logo {
  color: var(--link);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
}

/* ---------- Desktop Navigation ---------- */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-item {
  position: relative;
}
.top-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  position: relative;
  padding: 6px 0;
}
.top-link:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--brand-pink);
  transition: width 0.3s ease, left 0.3s ease;
}
.top-link:hover:after {
  width: 100%;
  left: 0;
}
.top-link:hover {
  color: var(--link-hover);
}

.dropdown {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 240px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 10px 0;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.35s cubic-bezier(0.33, 1, 0.68, 1);
}
.dropdown ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dropdown li a {
  display: block;
  padding: 10px 18px;
  color: var(--link);
  text-decoration: none;
  font-size: 14px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}
.dropdown li a:hover {
  background: rgba(218, 24, 132, 0.08);
  color: var(--link-hover);
}
.nav-item.open .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ---------- Desktop CTA ---------- */
.desktop-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 28px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  background: #1e1e1e;
  color: #fff;
  border: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.desktop-actions .btn .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-pink);
  border-radius: 50%;
}
.desktop-actions .btn:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-2px);
}
.desktop-actions .btn:hover .dot {
  background: #fff;
}

/* ---------- Mobile Menu ---------- */
.hamburger {
  display: none;
  border: 1px solid var(--brand-pink);
  background: transparent;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--link);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  z-index: 999;
}
.mobile-overlay.show {
  opacity: 1;
  visibility: visible;
}
.mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--bg);
  box-shadow: var(--shadow);
  padding: 16px 18px 22px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.24s cubic-bezier(0.33, 1, 0.68, 1),
    opacity 0.24s ease, visibility 0.24s ease;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-section {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.mobile-main {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 14px 4px;
  font-weight: 700;
  font-size: 16px;
  color: var(--link);
  cursor: pointer;
}
.mobile-sub {
  display: none;
  padding: 6px 0 14px 12px;
}
.mobile-section.open .mobile-sub {
  display: block;
}
.mobile-sub a {
  display: block;
  padding: 8px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.mobile-sub a:hover {
  color: var(--link-hover);
}
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 0;
  background: #1e1e1e;
  color: #fff;
  border-radius: 9999px;
  margin-top: 16px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease;
}
.mobile-cta .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-pink);
  border-radius: 50%;
  margin-left: 8px;
}
.mobile-cta:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-2px);
}
.mobile-cta:hover .dot {
  background: #fff;
}
@media (max-width: 992px) {
  .desktop-nav,
  .desktop-actions {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .header-inner {
    padding: 14px 18px;
  }
}

/* ---------- Footer v2.9 ---------- */
.footer {
  background: var(--footer-bg);
  color: #e5e7eb;
  padding: 80px 32px 40px;
}
.footer-v26 .footer-hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 20px 32px;
  text-align: center;
}
.footer-v26 .footer-logo-big {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.footer-v26 .footer-logo-big .logo-text {
  font-family: "Merriweather", serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: 0.2px;
}
.footer-v26 .footer-logo-big .mark-arrow {
  color: var(--brand-pink);
  font-size: clamp(22px, 3vw, 28px);
  line-height: 1;
  animation: arrowReveal 0.6s cubic-bezier(0.33, 1, 0.68, 1) both;
  transition: transform 0.4s cubic-bezier(0.33, 1, 0.68, 1), filter 0.4s ease;
}
.footer-v26 .footer-logo-big:hover .mark-arrow {
  transform: translateX(3px);
  filter: brightness(1.2);
}

/* Leadership Matters */
.footer-v26 .footer-tagline {
  color: #dcdcdc;
  margin: 24px 0 28px;
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: clamp(36px, 5vw, 68px);
}

/* Dual CTAs (white buttons with pink dots) */
.footer-v26 .footer-cta-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-v26 .footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  background: #fff;
  color: var(--brand-pink);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.footer-v26 .footer-cta .dot {
  width: 8px;
  height: 8px;
  background: var(--brand-pink);
  border-radius: 50%;
  margin-left: 8px;
}
.footer-v26 .footer-cta:hover {
  background: var(--brand-pink);
  color: #fff;
  transform: translateY(-2px);
}
.footer-v26 .footer-cta:hover .dot {
  background: #fff;
}

/* Divider */
.footer-v26 .footer-divider {
  width: 100%;
  max-width: 1000px;
  height: 1px;
  margin: 40px auto 50px;
  background: rgba(255, 255, 255, 0.08);
}

/* Footer Navigation */
.footer-v26 .footer-nav {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 28px;
  padding: 0 20px;
}
.footer-v26 .footer-group h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
}
.footer-v26 .footer-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-v26 .footer-group li {
  margin: 8px 0;
}
.footer-v26 .footer-group a {
  color: #cfd8e3;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}
.footer-v26 .footer-group a:hover {
  color: #fff;
  transform: translateX(2px);
}
@media (max-width: 1200px) {
  .footer-v26 .footer-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 768px) {
  .footer-v26 .footer-nav {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .footer-v26 .footer-nav {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* Bottom Bar */
.footer-bottom.v26 {
  max-width: 1300px;
  margin: 60px auto 0;
  padding: 20px 20px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #9aa4b2;
  font-size: 13px;
  display: grid;
  gap: 10px;
}
.footer-bottom.v26 .legal-links a,
.footer-bottom.v26 .social-links a {
  color: #cfd8e3;
  text-decoration: none;
  margin: 0 8px;
  transition: color 0.2s ease;
}
.footer-bottom.v26 .legal-links a:hover,
.footer-bottom.v26 .social-links a:hover {
  color: #fff;
}
.footer-bottom.v26 .sep {
  margin: 0 8px;
  color: #6b7280;
}
