/* ══════════════════════════════════════════
   PRAEVA MED — Shared Design System
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700;800&family=Libre+Baskerville:ital,wght@1,400&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');

@font-face {
  font-family: 'Very Vogue';
  src: url('fonts/very-vogue-display.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Very Vogue';
  src: url('fonts/very-vogue-display-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
}

:root {
  --cream:         #FAF8F3;
  --warm-white:    #FEFEFE;
  --dark:          #16130D;
  --forest:        #1A3428;
  --forest-hover:  #243F34;
  --taupe:         #B0A08A;
  --taupe-light:   #DDD0BC;
  --taupe-xlight:  #EDE5D8;
  --stone:         #7A7264;

  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h:   110px;
  --sec-pad: clamp(72px, 9vw, 120px);
  --pad-x:   clamp(20px, 5vw, 64px);
  --max-w:   1200px;
  --radius:  2px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--cream);
  color: var(--dark);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ── Layout ───────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section      { padding-block: var(--sec-pad); }
.section-sm   { padding-block: calc(var(--sec-pad) * 0.55); }
.section-lg   { padding-block: calc(var(--sec-pad) * 1.3); }

.page-top { padding-top: var(--nav-h); }

/* ── Typography ───────────────────────────── */
.display {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: clamp(52px, 7.5vw, 112px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.03em;
}

.h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
}

.lead {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.8;
  color: var(--stone);
}

.small { font-size: 13px; }

/* ── Buttons ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 4px 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-radius: 0;
}

.btn-arrow::after { content: '→'; font-size: 14px; letter-spacing: 0; }

.btn-primary {
  background: transparent;
  color: var(--dark);
  border-color: transparent;
}
.btn-primary:hover {
  background: transparent;
  color: var(--stone);
  border-color: transparent;
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: transparent;
}
.btn-outline:hover {
  background: transparent;
  color: var(--stone);
  border-color: transparent;
}

.btn-outline-light {
  background: transparent;
  color: var(--warm-white);
  border-color: transparent;
}
.btn-outline-light:hover {
  color: rgba(253,252,248,0.65);
  border-color: transparent;
  background: transparent;
}

/* ── Navigation ───────────────────────────── */
.site-nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: var(--nav-h);
  z-index: 200;
  background: var(--cream);
  transition: box-shadow 0.3s, background 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: max(var(--pad-x), calc((100vw - var(--max-w)) / 2 + var(--pad-x)));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.site-nav.scrolled {
  box-shadow: 0 1px 20px rgba(22,19,13,0.06);
}

/* Green nav mode — activates when scrolled past hero */
.site-nav.green-mode {
  background: var(--forest);
  border-bottom-color: transparent;
}
.site-nav.green-mode .nav-links a,
.site-nav.green-mode .nav-links-a { color: rgba(253,252,248,0.7); }
.site-nav.green-mode .nav-links a:hover,
.site-nav.green-mode .nav-links-a:hover,
.site-nav.green-mode .nav-links a.active,
.site-nav.green-mode .nav-links-a.active { color: var(--warm-white); }
.site-nav.green-mode .wm-line { color: var(--warm-white); }
.site-nav.green-mode .wm-reg { color: rgba(253,252,248,0.6); }
.site-nav.green-mode .wm-med { color: rgba(253,252,248,0.5); }
.site-nav.green-mode .sub { color: rgba(253,252,248,0.4); }
.site-nav.green-mode .nav-apply {
  background: transparent;
  color: var(--warm-white);
  border: none;
}
.site-nav.green-mode .nav-apply:hover { background: transparent; opacity: 0.75; }
.site-nav.green-mode .nav-login {
  border-color: rgba(255,255,255,0.3);
  color: rgba(253,252,248,0.7);
}
.site-nav.green-mode .nav-login:hover {
  border-color: rgba(255,255,255,0.7);
  color: var(--warm-white);
}
.site-nav.green-mode .nav-mobile-toggle span { background: var(--warm-white); }

.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.nav-identity {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 24px;
  border-left: 1px solid var(--taupe-light);
}
.nav-id-name { font-size: 12px; font-weight: 500; color: var(--dark); white-space: nowrap; }
.nav-id-title { font-size: 12px; font-weight: 400; color: var(--stone); white-space: nowrap; }

.nav-brand {
  display: block;
  line-height: 1;
}
.nav-brand .wordmark {
  display: block;
  font-size: 0;
  white-space: nowrap;
}
.nav-sub {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--stone);
  white-space: nowrap;
  line-height: 1.6;
}
.nav-sub:first-of-type { margin-top: 4px; }
.wm-line {
  display: inline;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dark);
  white-space: nowrap;
}
.wm-reg {
  font-size: 0.65em;
  vertical-align: super;
  font-weight: 400;
  letter-spacing: 0;
}
.wm-med {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-left: 3px;
}
.nav-brand .sub { display: none; }

.nav-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}
.nav-links a, .nav-links-a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links-a:hover,
.nav-links a.active, .nav-links-a.active { color: var(--dark); }
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--dark); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav-login {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  border: 1px solid var(--taupe-light);
  padding: 10px 22px;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-login:hover {
  color: var(--dark);
  border-color: var(--dark);
}

.nav-apply {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  color: var(--dark);
  border: none;
  padding: 9px 0;
  border-radius: 0;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-apply:hover { color: var(--stone); }

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--dark);
  transition: all 0.3s;
}

/* Mobile nav menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: var(--cream);
  z-index: 199;
  flex-direction: column;
  padding: 40px var(--pad-x);
  gap: 8px;
  border-top: 1px solid var(--taupe-light);
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--stone);
  padding: 14px 0;
  border-bottom: 1px solid var(--taupe-xlight);
  transition: color 0.2s;
}
.nav-mobile-menu a:hover { color: var(--dark); }
.nav-mobile-menu .btn { margin-top: 16px; align-self: flex-start; }

/* ── Footer ───────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 72px var(--pad-x) 40px;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px 40px;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-brand .wordmark {
  display: block;
  font-size: 0;
  margin-bottom: 14px;
}
.footer-brand {
  padding-right: 40px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .wordmark .wm-line {
  display: inline;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm-white);
}
.footer-brand p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--stone);
  max-width: 220px;
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 20px;
}
.footer-col li + li { margin-top: 10px; }
.footer-col a {
  font-size: 13px;
  color: var(--stone);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--stone);
  flex-wrap: wrap;
  gap: 12px;
}

/* ── Image placeholder ────────────────────── */
.img-ph {
  background: var(--taupe-xlight);
  position: relative;
  overflow: hidden;
}
.img-ph::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--taupe);
}

/* ── Button groups always left ─────────────── */
.cta-actions,
.hero-cta-row,
.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Global overflow fix ─────────────────── */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Dividers ─────────────────────────────── */
.rule {
  border: none;
  border-top: 1px solid var(--taupe-light);
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 900px) {
  /* Nav */
  .nav-links,
  .nav-actions,
  .nav-right,
  .nav-identity { display: none !important; }
  .nav-mobile-toggle { display: flex; }
  .site-nav {
    padding-inline: var(--pad-x);
    height: 70px;
  }
  :root { --nav-h: 70px; }

  /* Mobile menu */
  .nav-mobile-menu {
    top: 70px;
    padding: 24px var(--pad-x) 32px;
    gap: 8px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  /* Sections */
  .section, .section-sm {
    padding-block: clamp(48px, 8vw, 80px);
  }

  /* HIW steps */
  .hiw-grid {
    grid-template-columns: 1fr;
    border-top: 1px solid var(--taupe-light);
  }
  .hiw-step {
    border-right: none;
    border-bottom: 1px solid var(--taupe-light);
    padding: 28px 0;
  }
  .hiw-step:not(:first-child) { padding-left: 0; }

  /* Comparison chart — prevent horizontal scroll */
  .compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table {
    min-width: 560px;
  }

  /* Testimonial */
  .testimonial-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .testimonial-img {
    height: 280px;
    width: 100%;
  }

  /* About split */
  .about-split {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .about-split .bio-img-wrap {
    height: 360px;
    overflow: hidden;
  }
  .about-split .bio-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* Shop teaser */
  .shop-teaser-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .shop-teaser-right {
    height: 280px;
  }

  /* FS hero cols */
  .fs-hero-cols {
    grid-template-columns: 1fr;
  }
  .fs-hero-img {
    height: 280px;
  }
  .fs-hero-img img {
    width: 70%;
    max-width: 280px;
  }
  .fs-gold-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .fs-steps {
    grid-template-columns: 1fr;
  }
  .fs-step {
    border-right: none;
    border-bottom: 1px solid var(--taupe-light);
    padding: 28px 0;
  }
  .fs-step:not(:first-child) { padding-left: 0; }
  .fs-stats { grid-template-columns: 1fr; }
  .fs-stat { border-right: none; margin-right: 0; padding-right: 0; border-bottom: 1px solid var(--taupe-light); padding-bottom: 20px; }

  /* Services packages */
  .services-grid { grid-template-columns: 1fr; }
  .service-card:hover { margin-inline: 0; width: 100%; padding-left: 0; padding-right: 0; }

  /* WTE steps */
  .wte-step {
    grid-template-columns: 48px 1fr !important;
    gap: 0 24px !important;
  }
  .wte-step:hover {
    margin-inline: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .wte-right { grid-column: 2; }

  /* Conditions grid */
  .conditions-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Trust strip */
  .trust-strip-inner { flex-wrap: wrap; gap: 16px; }
  .trust-item { flex: 0 0 calc(50% - 8px); }

  /* Hero buttons */
  .apply-cta-btns {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .conditions-grid { grid-template-columns: 1fr !important; }
  .trust-item { flex: 0 0 100%; }
  .hiw-num { font-size: 48px; }
  .shop-teaser-left { padding: 40px 24px; }
}
