/* ============================================================
   Orevia Growth Design System
   Palette: Clinical Luxury (ink / cream / champagne gold)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root{
  /* colors */
  --ink: #0B0B0C;
  --ink-soft: #171614;
  --ink-raised: #211f1c;
  --cream: #FAF6EE;
  --cream-dim: #F1EAD9;
  --cream-line: rgba(11,11,12,0.10);
  --paper: #FFFFFF;
  --gold: #B8935A;
  --gold-bright: #D9B77E;
  --gold-deep: #8F6E3F;
  --stone: #6B6359;
  --stone-light: #968F84;
  --line-dark: rgba(250,246,238,0.14);
  --success: #4C7A5E;
  --danger: #B5514A;

  /* type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing (8px rhythm) */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 3rem;
  --sp-6: 4rem;
  --sp-7: 6rem;
  --sp-8: 8rem;
  --sp-9: 10rem;

  /* motion */
  --ease-out: cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-fast: 200ms;
  --dur-med: 400ms;
  --dur-slow: 700ms;

  --container: 1240px;
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body{
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
button{ font-family: inherit; cursor: pointer; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4,p{ margin: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-3);
}
@media (min-width: 768px){ .container{ padding-inline: var(--sp-5); } }

section{ position: relative; }

/* ---------- typography ---------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before{
  content: '';
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.on-dark .eyebrow{ color: var(--gold-bright); }

h1, .h1{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.05;
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
}
h2, .h2{
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
}
h3, .h3{
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.25;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}
.lede{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--stone);
  max-width: 46ch;
}
.on-dark .lede{ color: #C9C4BB; }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark p{ color: var(--cream); }

.text-stone{ color: var(--stone); }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), box-shadow var(--dur-fast);
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{
  background: var(--ink);
  color: var(--cream);
}
.btn-primary:hover{
  background: var(--gold-deep);
  box-shadow: 0 8px 24px rgba(184,147,90,0.35);
}
.btn-ghost{
  background: transparent;
  color: var(--ink);
  border-color: var(--cream-line);
}
.btn-ghost:hover{ border-color: var(--ink); }
.on-dark .btn-ghost{ color: var(--cream); border-color: var(--line-dark); }
.on-dark .btn-ghost:hover{ border-color: var(--gold-bright); }
.on-dark .btn-primary{ background: var(--gold); color: var(--ink); }
.on-dark .btn-primary:hover{ background: var(--gold-bright); box-shadow: 0 8px 24px rgba(217,183,126,0.25); }

.btn-sm{ padding: 0.7rem 1.3rem; font-size: 0.875rem; }

/* always-black CTA, regardless of light/dark section context */
.btn-black{ background: var(--ink) !important; color: var(--cream) !important; border-color: transparent !important; }
.btn-black:hover{ background: #000 !important; box-shadow: 0 8px 24px rgba(0,0,0,0.45); }

.btn-under{ font-size: 0.85rem; color: var(--stone); display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; border-bottom: 1px solid transparent; transition: border-color var(--dur-fast), color var(--dur-fast); }
.btn-under:hover{ color: var(--ink); border-color: var(--gold); }
.on-dark .btn-under{ color: var(--stone-light); }
.on-dark .btn-under:hover{ color: var(--cream); border-color: var(--gold-bright); }
.cta-stack{ display: flex; flex-direction: column; align-items: flex-start; }
.cta-stack.center{ align-items: center; }

/* magnetic wrapper */
.magnetic{ display: inline-block; }

/* ---------- nav ---------- */
.nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: var(--sp-3) 0;
  transition: padding var(--dur-med) var(--ease-out), background var(--dur-med), box-shadow var(--dur-med), border-color var(--dur-med);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled{
  padding: 0.9rem 0;
  background: rgba(250,246,238,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--cream-line);
}
.nav-inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.brand{ display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand img{ width: 34px; height: 34px; }
.nav-links{ display: none; align-items: center; gap: var(--sp-5); font-size: 0.95rem; font-weight: 500; }
.nav-links a{ position: relative; padding: 0.3rem 0; color: var(--ink); }
.nav-links a::after{
  content: '';
  position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--gold-deep);
  transition: right var(--dur-med) var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.active::after{ right: 0; }
.nav-links a.active{ color: var(--gold-deep); }
.nav-cta{ display: flex; align-items: center; gap: var(--sp-3); }
.nav-cta .btn{ display: none; }
@media (min-width: 960px){
  .nav-links{ display: flex; }
  .nav-cta .btn{ display: inline-flex; }
}

.nav-toggle{
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: none; border: none; color: var(--ink);
}
@media (min-width: 960px){ .nav-toggle{ display: none; } }
.nav-toggle svg{ width: 22px; height: 22px; }

.mobile-menu{
  position: fixed; inset: 0; z-index: 110;
  background: var(--ink);
  color: var(--cream);
  display: flex; flex-direction: column;
  justify-content: center;
  padding: var(--sp-4);
  transform: translateY(-100%);
  transition: transform var(--dur-slow) var(--ease-in-out);
}
.mobile-menu.is-open{ transform: translateY(0); }
.mobile-menu a{ font-family: var(--font-display); font-size: clamp(2rem,8vw,2.8rem); font-weight: 600; padding: 0.5rem 0; display: block; color: var(--cream); }
.mobile-menu .btn{ margin-top: var(--sp-4); }
.mobile-menu-foot{ margin-top: var(--sp-5); color: var(--stone-light); font-size: 0.9rem; }

/* ---------- sections ---------- */
.section{ padding: var(--sp-8) 0; }
.section-tight{ padding: var(--sp-6) 0; }
.on-dark{ background: var(--ink); color: var(--cream); }
.on-dim{ background: var(--cream-dim); }
.section-head{ max-width: 720px; margin-bottom: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); }
.section-head.center{ margin-inline: auto; text-align: center; align-items: center; }

hr.rule{ border: none; height: 1px; background: var(--cream-line); margin: 0; }
.on-dark hr.rule{ background: var(--line-dark); }

/* ---------- hero ---------- */
.hero{
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: var(--sp-9);
  padding-bottom: var(--sp-7);
  background:
    radial-gradient(60% 50% at 85% 8%, rgba(184,147,90,0.16), transparent 60%),
    var(--ink);
  color: var(--cream);
  overflow: hidden;
}
.hero-inner{ display: grid; gap: var(--sp-5); max-width: 900px; }
.hero .lede{ max-width: 56ch; color: #C9C4BB; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: center; margin-top: var(--sp-2); }
.hero-note{ font-size: 0.85rem; color: var(--stone-light); display: flex; align-items: center; gap: 0.6rem; }
.hero-note .dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-stats{ display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-3); margin-top: var(--sp-6); padding-top: var(--sp-5); border-top: 1px solid var(--line-dark); max-width: 720px; }
.hero-stat b{ display: block; font-family: var(--font-display); font-size: clamp(1.6rem,3vw,2.2rem); color: var(--gold-bright); }
.hero-stat span{ font-size: 0.85rem; color: var(--stone-light); }

/* decorative eye mark drifting in hero */
.hero-mark{ position: absolute; opacity: 0.5; pointer-events: none; }

/* ---------- cards / grid ---------- */
.grid{ display: grid; gap: var(--sp-4); perspective: 1000px; }
.grid-2{ grid-template-columns: 1fr; }
.grid-3{ grid-template-columns: 1fr; }
.grid-6{ grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px){
  .grid-2{ grid-template-columns: repeat(2,1fr); }
  .grid-3{ grid-template-columns: repeat(3,1fr); }
  .grid-6{ grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 1080px){
  .grid-6{ grid-template-columns: repeat(6,1fr); }
}

.card{
  background: var(--paper);
  border: 1px solid var(--cream-line);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  will-change: transform;
  transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.card:hover{ box-shadow: 0 24px 48px rgba(11,11,12,0.08); border-color: transparent; }
.card .icon{ width: 44px; height: 44px; border-radius: 12px; background: var(--cream-dim); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); color: var(--gold-deep); }
.card .icon svg{ width: 22px; height: 22px; }
.card h3{ margin-bottom: 0.6rem; }
.card p{ color: var(--stone); font-size: 0.95rem; }

.pillar-card{
  background: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-md);
  padding: var(--sp-4);
  color: var(--cream);
  will-change: transform;
  transition: box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med);
}
.pillar-card:hover{ box-shadow: 0 24px 48px rgba(0,0,0,0.35); border-color: var(--gold-deep); }
.pillar-card .num{ font-family: var(--font-display); color: var(--gold); font-size: 0.9rem; }
.pillar-card h3{ margin: var(--sp-2) 0 0.6rem; }
.pillar-card p{ color: var(--stone-light); font-size: 0.925rem; }
.pillar-card .icon{ width: 44px; height: 44px; border-radius: 12px; background: rgba(217,183,126,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: var(--sp-3); color: var(--gold-bright); }
.pillar-card .icon svg{ width: 22px; height: 22px; }

/* problem list */
.leak-list{ display: grid; gap: 1px; background: var(--cream-line); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--cream-line); perspective: 1000px; }
.leak-row{ background: var(--paper); padding: var(--sp-4); display: grid; grid-template-columns: auto 1fr; gap: var(--sp-3); align-items: start; position: relative; z-index: 1; will-change: transform; transition: box-shadow var(--dur-med) var(--ease-out); }
.leak-row:hover{ box-shadow: 0 20px 40px rgba(11,11,12,0.1); }
.leak-row .mark{ width: 32px; height: 32px; border-radius: 50%; background: var(--cream-dim); color: var(--danger); display: flex; align-items: center; justify-content: center; flex: none; }
.leak-row .mark svg{ width: 16px; height: 16px; }
.leak-row h3{ font-size: 1.05rem; margin-bottom: 0.3rem; }
.leak-row p{ color: var(--stone); font-size: 0.925rem; }
@media (min-width: 720px){ .leak-list{ grid-template-columns: 1fr 1fr; } }

/* process steps */
.steps{ display: grid; gap: var(--sp-4); counter-reset: step; }
.step{ display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; padding: var(--sp-4) 0; }
.step + .step{ border-top: 1px solid var(--cream-line); }
.on-dark .step + .step{ border-color: var(--line-dark); }
.step .index{ font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); color: var(--gold); line-height: 1; }
.step h3{ margin-bottom: 0.5rem; }
.step p{ color: var(--stone); max-width: 58ch; }
.on-dark .step p{ color: #C9C4BB; }

/* quote / positioning banner */
.positioning{ text-align: center; max-width: 880px; margin-inline: auto; }
.positioning .h2{ font-size: clamp(1.8rem,3.6vw,2.8rem); }
.positioning .accent{ color: var(--gold); font-style: italic; }

/* footer */
.footer{ background: var(--ink); color: var(--cream); padding: var(--sp-7) 0 var(--sp-4); }
.footer-top{ display: grid; gap: var(--sp-5); padding-bottom: var(--sp-6); }
.footer-brand{ display: flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand img{ width: 36px; height: 36px; }
.footer-cols{ display: grid; gap: var(--sp-4); grid-template-columns: repeat(2,1fr); }
.footer-col h4{ font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone-light); margin-bottom: var(--sp-2); }
.footer-col a, .footer-col p{ display: block; color: #C9C4BB; padding: 0.35rem 0; font-size: 0.95rem; }
.footer-col a:hover{ color: var(--gold-bright); }
.footer-bottom{ display: flex; flex-direction: column; gap: var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--line-dark); font-size: 0.825rem; color: var(--stone-light); }
@media (min-width: 860px){
  .footer-top{ grid-template-columns: 1.3fr 2fr; align-items: start; }
  .footer-cols{ grid-template-columns: repeat(4,1fr); }
  .footer-bottom{ flex-direction: row; justify-content: space-between; }
}

.social-row{ display: flex; align-items: center; gap: 0.75rem; margin-top: var(--sp-3); }
.social-row a{
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-dark);
  color: var(--cream);
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
.social-row a svg{ width: 18px; height: 18px; }
.social-row a:hover{ background: var(--gold); border-color: var(--gold); color: var(--ink); transform: translateY(-3px); }

/* final CTA band */
.cta-band{ background: linear-gradient(135deg, var(--gold-deep), var(--gold)); color: var(--ink); border-radius: var(--radius-lg); padding: var(--sp-6) var(--sp-4); text-align: center; }
.cta-band h2{ color: var(--ink); }
.cta-band .lede{ color: rgba(11,11,12,0.72); margin-inline: auto; }
.cta-band .btn-primary{ background: var(--ink); color: var(--cream); }
.cta-band .btn-primary:hover{ background: #000; box-shadow: 0 10px 28px rgba(11,11,12,0.35); }

/* reveal animation base state (JS/GSAP toggles) */
.reveal{ opacity: 0; transform: translateY(28px); }
.reveal.is-ready{ opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){ .reveal{ opacity: 1; transform: none; } }

/* page hero (inner pages) */
.page-hero{ padding-top: var(--sp-9); padding-bottom: var(--sp-6); background: var(--ink); color: var(--cream); }
.page-hero .lede{ color: #C9C4BB; }
.breadcrumb-nudge{ display:flex; align-items:center; gap:0.5rem; color: var(--stone-light); font-size: 0.85rem; margin-bottom: var(--sp-3); }

/* utility */
.mt-1{ margin-top: var(--sp-1); } .mt-2{ margin-top: var(--sp-2); } .mt-3{ margin-top: var(--sp-3); }
.mt-4{ margin-top: var(--sp-4); } .mt-5{ margin-top: var(--sp-5); } .mt-6{ margin-top: var(--sp-6); }
.flex{ display: flex; } .items-center{ align-items: center; } .gap-2{ gap: var(--sp-2); } .gap-3{ gap: var(--sp-3); }
.text-center{ text-align: center; }

/* forms */
.form-grid{ display: grid; gap: var(--sp-3); }
@media (min-width: 720px){ .form-grid.two{ grid-template-columns: 1fr 1fr; } }
.field{ display: flex; flex-direction: column; gap: 0.5rem; }
.field label{ font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.on-dark .field label{ color: var(--cream); }
.field input, .field textarea, .field select{
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--cream-line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,147,90,0.16);
}
.field textarea{ resize: vertical; min-height: 120px; }
.form-note{ font-size: 0.8rem; color: var(--stone); }

.contact-panel{ background: var(--paper); border: 1px solid var(--cream-line); border-radius: var(--radius-lg); padding: var(--sp-5); }

/* back to top / misc */
.skip-link{ position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--cream); padding: 1rem; z-index: 200; }
.skip-link:focus{ left: 1rem; top: 1rem; }
