/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0f1923;
  --ink-soft: #2c3e50;
  --cream: #f5f0e8;
  --cream-dark: #ede7d9;
  --teal: #0d7f74;
  --teal-light: #12a396;
  --teal-dim: rgba(13, 127, 116, 0.12);
  --gold: #c9a84c;
  --white: #ffffff;
  --text-muted: #7a8a96;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  background-color: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

@media (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  width: 10px; height: 10px; background: var(--teal); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  width: 36px; height: 36px; border: 1.5px solid var(--teal); border-radius: 50%;
  position: fixed; pointer-events: none; z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease, width 0.25s, height 0.25s, opacity 0.2s;
  opacity: 0.5;
}
body:has(a:hover) .cursor,
body:has(button:hover) .cursor { width: 16px; height: 16px; background: var(--gold); }
body:has(a:hover) .cursor-ring,
body:has(button:hover) .cursor-ring { width: 50px; height: 50px; opacity: 0.25; }

/* ─── ANIMATIONS ─── */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp   { from { opacity: 0; transform: translateY(20px);  } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse    { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.4); } }
@keyframes float    { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes ticker   { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes growBar  { from { opacity: 0; transform: scaleY(0.5); } to { opacity: 1; transform: scaleY(1); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 18px 48px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,25,35,0.06);
  animation: fadeDown 0.8s ease both;
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); cursor: pointer;
}
.logo-mark {
  width: 34px; height: 34px; background: var(--teal); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.logo-mark::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border: 2.5px solid var(--white); border-radius: 50%;
}
.logo-mark::after {
  content: '+'; color: var(--white); font-size: 18px; font-weight: 300;
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%); line-height: 1;
}
.logo-text { font-family: var(--font-display, 'Instrument Serif', serif); font-size: 18px; letter-spacing: -0.01em; }
.logo-text span { color: var(--teal); }

.nav-center { display: flex; align-items: center; gap: 8px; }

.nav-link {
  font-size: 14px; font-weight: 400; color: var(--ink-soft);
  text-decoration: none; padding: 7px 14px; border-radius: 100px;
  transition: color 0.2s, background 0.2s; cursor: pointer;
}
.nav-link:hover { color: var(--teal); background: var(--teal-dim); }
.nav-link.active { color: var(--teal); font-weight: 500; background: var(--teal-dim); }

/* Resources dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  font-size: 14px; font-weight: 400; color: var(--ink-soft);
  padding: 7px 14px; border-radius: 100px; border: none; background: transparent;
  cursor: pointer; display: flex; align-items: center; gap: 5px;
  transition: color 0.2s, background 0.2s; font-family: var(--font-body, 'DM Sans', sans-serif);
}
.nav-dropdown-toggle:hover { color: var(--teal); background: var(--teal-dim); }
.nav-dropdown-toggle svg { transition: transform 0.25s; }
.nav-dropdown.open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown.open .nav-dropdown-toggle { color: var(--teal); background: var(--teal-dim); }

.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white); border-radius: 14px; padding: 8px;
  box-shadow: 0 8px 40px rgba(15,25,35,0.14), 0 2px 8px rgba(15,25,35,0.07);
  min-width: 230px; opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  border: 1px solid rgba(15,25,35,0.07); z-index: 300;
}
.nav-dropdown.open .dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--ink-soft); font-size: 13px; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.dropdown-item:hover { background: var(--teal-dim); color: var(--teal); }
.dropdown-item-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
}
.dropdown-divider { height: 1px; background: rgba(15,25,35,0.06); margin: 4px 0; }
.dropdown-label {
  padding: 6px 14px 4px; font-size: 10px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase;
}

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
  background: var(--ink); color: var(--white); border: none;
  padding: 10px 22px; border-radius: 100px;
  font-family: var(--font-body, 'DM Sans', sans-serif); font-size: 14px; font-weight: 500;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.01em;
}
.nav-cta:hover { background: var(--teal); transform: scale(1.03); }

/* Hamburger — visibility controlled by JS matchMedia, not CSS */
.hamburger {
  flex-direction: column; gap: 5px; padding: 8px;
  background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu — hidden by default, shown via JS toggle */
.mobile-menu {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
  background: rgba(245, 240, 232, 0.98); backdrop-filter: blur(20px);
  z-index: 190; flex-direction: column; padding: 32px;
  overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  /* display is controlled entirely by JS — never by CSS — to avoid flash */
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-section { margin-bottom: 32px; }
.mobile-menu-label {
  font-size: 10px; font-weight: 600; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.mobile-menu-link {
  display: block; font-size: 18px; font-family: var(--font-display, 'Instrument Serif', serif);
  color: var(--ink); text-decoration: none; padding: 10px 0;
  border-bottom: 1px solid rgba(15,25,35,0.06); cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-link:hover { color: var(--teal); }
.mobile-menu-sub {
  display: block; font-size: 14px; font-weight: 300;
  color: var(--ink-soft); text-decoration: none; padding: 8px 0;
  border-bottom: 1px solid rgba(15,25,35,0.04); cursor: pointer;
  transition: color 0.2s;
}
.mobile-menu-sub:hover { color: var(--teal); }

/* ─── SHARED SECTION STYLES ─── */
section { padding: 100px 48px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-label {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display, 'Instrument Serif', serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin-bottom: 16px;
}
.section-title em { font-style: italic; color: var(--teal); }
.section-sub {
  font-size: 16px; line-height: 1.7; color: var(--ink-soft);
  font-weight: 300; max-width: 560px; margin-bottom: 64px;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white); text-decoration: none;
  padding: 16px 32px; border-radius: 100px; font-size: 15px; font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  box-shadow: 0 4px 24px rgba(13,127,116,0.25); cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(13,127,116,0.35);
  background: var(--teal-light);
}
.btn-primary svg { transition: transform 0.2s; }
.btn-primary:hover svg { transform: translateX(3px); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ink); text-decoration: none;
  padding: 16px 32px; border-radius: 100px; font-size: 15px; font-weight: 500;
  border: 1.5px solid rgba(15,25,35,0.15);
  transition: border-color 0.2s, background 0.2s, transform 0.2s; cursor: pointer;
}
.btn-secondary:hover {
  border-color: var(--teal); color: var(--teal);
  background: var(--teal-dim); transform: translateY(-2px);
}

.btn-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--white); color: var(--teal); text-decoration: none;
  padding: 16px 36px; border-radius: 100px; font-size: 15px; font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.15); cursor: pointer;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 36px rgba(0,0,0,0.2); }

.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--white); text-decoration: none;
  padding: 16px 36px; border-radius: 100px; font-size: 15px; font-weight: 500;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: background 0.2s, border-color 0.2s, transform 0.2s; cursor: pointer;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7); transform: translateY(-2px);
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink); padding: 60px 48px;
  color: rgba(255,255,255,0.45); font-size: 14px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-family: var(--font-display, 'Instrument Serif', serif); font-size: 18px; color: var(--white); }
.footer-logo span { color: var(--teal-light); }
.footer-note { text-align: right; line-height: 1.7; }
.footer-note a { color: rgba(255,255,255,0.45); text-decoration: none; }
.footer-note a:hover { color: var(--teal-light); }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--teal); padding: 100px 48px;
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute;
  width: 600px; height: 600px; border-radius: 50%;
  background: rgba(255,255,255,0.05); top: -200px; right: -100px;
}
.cta-section::after {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.04); bottom: -150px; left: -100px;
}
.cta-inner {
  max-width: 760px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
}
.cta-inner .section-label { color: rgba(255,255,255,0.6); }
.cta-inner .section-title { color: var(--white); margin-bottom: 20px; }
.cta-inner .section-title em { color: rgba(255,255,255,0.7); }
.cta-inner p {
  font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.75);
  font-weight: 300; margin-bottom: 44px;
}
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  .nav-center { display: none; }
  section { padding: 70px 24px; }
  footer { padding: 40px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-note { text-align: center; }
  .cta-section { padding: 70px 24px; }
}
