/* ============================================================
   ELLEN HAINES — Design System v2 (Ocean Blue)
   Palette: Midnight Navy + Sapphire + Ice Blue + Warm Gold
   Typography: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300;1,9..40,400&display=swap');

:root {
  /* Backgrounds */
  --bg:           #EEF3FA;
  --bg-alt:       #E2EBF5;
  --dark:         #060D18;

  /* Blues */
  --navy:         #0B1D3A;
  --navy-mid:     #163568;
  --blue:         #2457A4;
  --blue-light:   #5B8DD4;
  --mist:         #A2BFE0;
  --ice:          #D6E6F5;

  /* Accent */
  --gold:         #C8A96A;
  --gold-light:   #DFC28E;

  /* Text */
  --cream:        #F4F8FE;
  --white:        #FFFFFF;
  --text:         #0B1A2E;
  --text-mid:     #2A4066;
  --text-muted:   #6080A8;
  --border:       #C4D6EC;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-width:    1280px;
  --section-pad:  clamp(80px, 10vw, 140px);
  --nav-h:        80px;
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Typography ── */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; }
h1 { font-size: clamp(42px, 5.5vw, 80px); letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 4vw, 58px); letter-spacing: -0.015em; }
h3 { font-size: clamp(24px, 2.5vw, 38px); }
h4 { font-size: clamp(20px, 2vw, 28px); }
.body-lg { font-size: clamp(16px, 1.3vw, 20px); line-height: 1.7; }
.body-md { font-size: clamp(15px, 1.1vw, 17px); line-height: 1.7; }

/* ── Layout ── */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px); }
.section { padding: var(--section-pad) 0; }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.4s var(--ease-out), border-bottom 0.4s;
}
.nav.scrolled {
  background: rgba(238, 243, 250, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-width);
  margin: 0 auto; padding: 0 clamp(20px, 5vw, 80px);
}
.nav__logo { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--cream); }
.nav__logo span { color: var(--gold); }
.nav.scrolled .nav__logo { color: var(--navy); }
.nav__links { display: flex; align-items: center; gap: 36px; }
.nav__links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(244,248,254,0.65); transition: color 0.2s; position: relative;
}
.nav.scrolled .nav__links a { color: var(--text-mid); }
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover { color: var(--cream); }
.nav.scrolled .nav__links a:hover { color: var(--navy); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold) !important; color: var(--navy) !important;
  padding: 10px 22px; font-size: 12px !important;
  font-weight: 700 !important; letter-spacing: 0.1em !important;
  text-transform: uppercase; border-radius: 2px; transition: background 0.25s !important;
}
.nav__cta::after { display: none !important; }
.nav__cta:hover { background: var(--gold-light) !important; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; width: 28px; cursor: pointer; }
.nav__hamburger span { display: block; height: 1.5px; background: var(--cream); transition: all 0.3s; }
.nav.scrolled .nav__hamburger span { background: var(--navy); }
.nav.nav--light .nav__logo { color: var(--navy); }
.nav.nav--light .nav__links a { color: var(--text-mid); }
.nav.nav--light .nav__links a:hover { color: var(--navy); }
.nav.nav--light .nav__hamburger span { background: var(--navy); }
.nav__mobile {
  display: none; position: fixed; inset: 0; background: var(--navy);
  z-index: 99; flex-direction: column; align-items: center; justify-content: center;
  gap: 40px; opacity: 0; pointer-events: none; transition: opacity 0.4s;
}
.nav__mobile.open { display: flex; opacity: 1; pointer-events: all; }
.nav__mobile a { font-family: var(--font-display); font-size: 42px; color: var(--cream); font-weight: 300; transition: color 0.2s; }
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile-close { position: absolute; top: 28px; right: 28px; color: var(--cream); font-size: 32px; cursor: pointer; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 2px;
  transition: all 0.25s var(--ease-out); cursor: pointer;
}
.btn-primary { background: var(--navy); color: var(--cream); }
.btn-primary:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--cream); }
.btn-gold { background: var(--gold); color: var(--navy); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--cream); border: 1.5px solid rgba(255,255,255,0.3); }
.btn-outline-light:hover { border-color: var(--cream); background: rgba(255,255,255,0.07); }
.btn-arrow::after { content: '→'; font-size: 16px; letter-spacing: 0; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Section Label ── */
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px;
}
.section-label::before { content: ''; display: block; width: 32px; height: 1px; background: var(--gold); }

/* ── Testimonials ── */
.testimonial-card {
  background: var(--cream); border: 1px solid var(--border); border-radius: 4px;
  padding: 40px; display: flex; flex-direction: column; gap: 24px;
  transition: transform 0.3s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-3px); }
.testimonial-quote {
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px);
  line-height: 1.5; font-style: italic; font-weight: 300; color: var(--text);
}
.testimonial-quote::before { content: '\201C'; }
.testimonial-quote::after  { content: '\201D'; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-alt); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; color: var(--navy); flex-shrink: 0;
}
.testimonial-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.testimonial-role { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; }

/* ── Footer ── */
.footer { background: var(--navy); color: var(--cream); padding: clamp(60px, 8vw, 100px) 0 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer__logo { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin-bottom: 16px; }
.footer__logo span { color: var(--gold); }
.footer__tagline { font-size: 14px; color: rgba(244,248,254,0.5); line-height: 1.7; margin-bottom: 28px; }
.footer__col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mist); margin-bottom: 20px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: rgba(244,248,254,0.55); transition: color 0.2s; }
.footer__col a:hover { color: var(--cream); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.07); font-size: 12px; color: rgba(244,248,254,0.25); }

/* ── Animations ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes scrollLine { 0% { left: -100%; } 100% { left: 100%; } }
.fade-up   { animation: fadeUp 0.8s var(--ease-out) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-in   { animation: fadeIn 1s var(--ease-out) both; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Utils ── */
.text-center { text-align: center; }
.text-cream  { color: var(--cream); }
.text-muted  { color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }

/* ── Responsive ── */
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; text-align: center; }
  .testimonial-card { padding: 28px; }
}
@media (max-width: 480px) {
  /* Nav */
  .nav__mobile a { font-size: 32px; }
  .nav__mobile { gap: 28px; }

  /* Buttons */
  .btn { padding: 14px 24px; font-size: 11px; }

  /* Section label */
  .section-label { font-size: 10px; }
  .section-label::before { width: 20px; }

  /* Testimonial cards */
  .testimonial-card { padding: 20px; gap: 16px; }
  .testimonial-quote { font-size: 17px; }

  /* Footer */
  .footer__grid { gap: 28px; }
  .footer__logo { font-size: 24px; }
  .footer__bottom { font-size: 11px; }
}
