/* ============================================================
   Servata — marketing site
   Quiet luxury: limestone space, one terracotta accent,
   Spectral serif + Hanken Grotesk. Matches the app's design system.
   ============================================================ */

:root {
  --bg: #F4EEE2;          /* limestone — page ground */
  --card: #FBF8F1;        /* raised paper */
  --ink: #2A2620;         /* warm near-black, never pure #000 */
  --muted: #6E665A;
  --muted2: #8A7F6E;
  --line: #E6DECF;

  --terra: #A85A3F;       /* the single accent */
  --terra-d: #8E4A33;
  --olive: #515A3F;       /* deep surfaces, verified */
  --olive-d: #3D442F;
  --ochre: #C49A5A;       /* gilt */
  --tint: #EFE7D8;

  --maxw: 1180px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: 'Spectral', Georgia, serif; font-weight: 400; margin: 0; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* faint paper grain over the whole page */
.grain {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── arch mark (matches the app) ── */
.archmark { position: relative; display: inline-block; width: 17px; height: 22px; border: 2px solid var(--terra); border-radius: 9px 9px 2px 2px; }
.archmark::after { content: ''; position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--terra); }
.archmark.lg { width: 22px; height: 28px; border-width: 2.5px; border-radius: 11px 11px 3px 3px; }
.archmark.lg::after { width: 6px; height: 6px; bottom: 5px; }
.archmark.light { border-color: var(--bg); }
.archmark.light::after { background: var(--bg); }

/* ── shared type bits ── */
.eyebrow {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--terra); margin: 0 0 22px;
}
.eyebrow-center { text-align: center; }
.eyebrow-light { color: var(--ochre); }

/* ── buttons ── */
.btn {
  display: inline-block; font-family: inherit; font-size: 15px; font-weight: 600;
  padding: 14px 26px; border-radius: 14px; cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn-primary { background: var(--terra); color: #F7F1E7; border: 1px solid var(--terra); }
.btn-primary:hover { background: var(--terra-d); border-color: var(--terra-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 16px; }

/* ───────────────── NAV ───────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), padding 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(244, 238, 226, 0.86);
  -webkit-backdrop-filter: saturate(1.1) blur(14px);
  backdrop-filter: saturate(1.1) blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: 15px; padding-bottom: 15px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-word { font-family: 'Spectral', serif; font-size: 23px; font-weight: 500; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links > a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color 0.2s var(--ease); }
.nav-links > a:hover { color: var(--ink); }
.nav-cta {
  color: var(--terra) !important; border: 1px solid var(--line);
  padding: 9px 18px; border-radius: 11px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--terra); background: var(--tint); }

/* ───────────────── HERO ───────────────── */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(130px, 18vh, 200px) clamp(20px, 5vw, 56px) clamp(80px, 12vh, 130px);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.hero-h {
  font-size: clamp(44px, 6.4vw, 88px); line-height: 1.04; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.hero-h em { color: var(--terra); }
.hero-sub {
  font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--muted);
  max-width: 30em; margin: 0 0 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── the proof report artifact ── */
.hero-proof { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.report {
  width: 100%; max-width: 380px;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 24px 24px 20px;
  box-shadow: 0 2px 4px rgba(42,38,32,0.04), 0 18px 44px rgba(42,38,32,0.12), 0 40px 80px rgba(42,38,32,0.08);
  transform: rotate(-1.2deg);
  transition: transform 0.5s var(--ease);
}
.hero-proof:hover .report { transform: rotate(0deg) translateY(-4px); }
.report-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.report-firms { display: flex; gap: 4px; }
.report-firms span {
  font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted2);
  padding: 4px 7px; border-radius: 7px; border: 1px solid var(--line);
  cursor: pointer; user-select: none; white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.report-firms span:hover:not(.on) { color: var(--ink); border-color: var(--muted2); }
.report-firms span:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; }
.report-firms span.on { color: #F7F1E7; background: var(--olive); border-color: var(--olive); }

/* swappable report text cross-fades when the language changes */
.report-greet, .report-place, .report-body, .report-proof { transition: opacity 0.22s var(--ease); }
.report.swapping .report-greet,
.report.swapping .report-place,
.report.swapping .report-body,
.report.swapping .report-proof { opacity: 0; }
.report-seal { display: flex; align-items: center; gap: 7px; }
.seal-ring {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--ochre); position: relative;
}
.seal-ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--ochre); opacity: 0.32; }
.seal-word { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; color: var(--ochre); text-transform: uppercase; }
.report-greet { font-family: 'Spectral', serif; font-size: 22px; font-weight: 500; margin: 0 0 3px; }
.report-place { font-size: 12.5px; color: var(--muted2); margin: 0 0 14px; }
.report-body { font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0 0 16px; }
.report-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.photo { height: 84px; border-radius: 12px; position: relative; overflow: hidden; background-size: cover; background-position: center; }
.photo::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(42, 38, 32, 0.07);
}
.photo-a { background-image: url('img/villa-pool-sunset.jpg'); }
.photo-b { background-image: url('img/villa-white-pool.jpg'); }
.report-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.report-proof { font-size: 11px; color: var(--muted2); }
.report-firm { font-size: 12px; font-weight: 600; color: var(--olive); }
.hero-proof-cap { font-size: 13px; color: var(--muted2); text-align: center; max-width: 26em; font-style: italic; }

/* ───────────────── BANDS ───────────────── */
.band {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(90px, 14vh, 160px) clamp(20px, 5vw, 56px);
}
.band-tint {
  max-width: none; margin: 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--tint) 50%, var(--bg) 100%);
}
.band-tint > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.band-head { max-width: 760px; margin-bottom: 64px; }
.band-h { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.12; letter-spacing: -0.01em; }
.band-lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.62; color: var(--muted); max-width: 38em; margin-top: 24px; }

/* proof points — asymmetric, hairline-led, no boxy cards */
.proofpoints { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.pp { padding: 36px 30px 36px 0; border-top: 1px solid var(--line); }
.pp + .pp { padding-left: 30px; }
.pp-no { font-family: 'Spectral', serif; font-size: 15px; color: var(--terra); letter-spacing: 0.1em; }
.pp h3 { font-size: 23px; font-weight: 500; margin: 14px 0 10px; }
.pp p { font-size: 15.5px; color: var(--muted); line-height: 1.55; }

/* steps */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 28px; padding: 34px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-no {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--terra); color: var(--terra);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Spectral', serif; font-size: 20px;
}
.step-body h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 500; margin-bottom: 8px; }
.step-body p { font-size: 16.5px; color: var(--muted); max-width: 44em; }

/* ── language strip ── */
.lang-band {
  text-align: center;
  padding: clamp(80px, 12vh, 130px) clamp(20px, 5vw, 56px);
}
.lang-lines {
  font-family: 'Spectral', serif; font-weight: 400;
  font-size: clamp(26px, 4vw, 48px); line-height: 1.3; letter-spacing: -0.01em;
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0 18px;
}
.lang-sep { color: var(--ochre); }
.lang-note { margin-top: 22px; color: var(--muted); font-size: 17px; }

/* ── audiences ── */
.aud { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 72px); }
.aud-col { border-top: 2px solid var(--ink); padding-top: 30px; }
.aud-col:last-child { border-top-color: var(--terra); }
.aud-tag { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted2); margin-bottom: 18px; }
.aud-h { font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; font-weight: 400; margin-bottom: 22px; letter-spacing: -0.01em; }
.aud-col > p { font-size: 16.5px; color: var(--muted); line-height: 1.6; max-width: 32em; }

/* ───────────────── VERIFIED (dark) ───────────────── */
.verified {
  background: var(--olive); color: var(--bg);
  position: relative; overflow: hidden;
  padding: clamp(100px, 16vh, 180px) clamp(20px, 5vw, 56px);
}
.verified::before {
  content: ''; position: absolute; inset: 0; opacity: 0.5;
  background: repeating-linear-gradient(135deg, rgba(244,238,226,0.04) 0 1px, transparent 1px 18px);
}
.verified-inner { position: relative; max-width: 680px; margin: 0 auto; text-align: center; }
.big-seal { display: inline-block; position: relative; width: 72px; height: 72px; margin-bottom: 30px; }
.big-seal-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ochre); }
.big-seal-ring::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 1px solid rgba(196,154,90,0.35); }
.big-seal-mark { position: absolute; inset: 22px; border-radius: 50%; background: var(--ochre); opacity: 0.85; }
.verified-h { font-size: clamp(34px, 5vw, 60px); line-height: 1.08; letter-spacing: -0.01em; color: #F6F0E3; }
.verified-lead { margin-top: 26px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; color: rgba(244,238,226,0.78); }

/* ── why ── */
.why { max-width: 820px; }

/* ───────────────── CINEMATIC FULL-BLEED ───────────────── */
.cinematic { position: relative; height: clamp(360px, 64vh, 640px); overflow: hidden; }
/* full-bleed band fades (no vertical shift) and the image settles from a gentle zoom */
.cinematic.reveal { opacity: 0; transform: none; transition: opacity 0.9s var(--ease); }
.cinematic.reveal.in { opacity: 1; }
.cinematic-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transform: scale(1.04); transition: transform 1.2s var(--ease);
}
.cinematic.in .cinematic-img { transform: scale(1); }
.cinematic::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(42, 38, 32, 0.62), rgba(42, 38, 32, 0.06) 46%, rgba(42, 38, 32, 0.04));
}
.cinematic-cap { position: absolute; inset: auto 0 0 0; z-index: 1; }
.cinematic-cap > div { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px) clamp(34px, 6vh, 64px); }
.cinematic-line {
  font-family: 'Spectral', serif; font-weight: 400; color: #F6F0E3;
  font-size: clamp(28px, 4.2vw, 50px); line-height: 1.08; letter-spacing: -0.01em; max-width: 16em;
}

/* ───────────────── CTA ───────────────── */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(110px, 18vh, 200px) clamp(20px, 5vw, 56px) clamp(110px, 18vh, 200px);
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: url('img/villa-pool-sunset.jpg') center/cover;
  transform: scale(1.04);
}
.cta::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(61, 68, 47, 0.82) 0%, rgba(42, 38, 32, 0.9) 100%);
}
.cta-inner { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; }
.cta .eyebrow-center { color: var(--ochre); }
.cta-h { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.06; letter-spacing: -0.02em; margin-bottom: 24px; color: #F6F0E3; }
.cta-sub { font-size: clamp(17px, 1.5vw, 19px); color: rgba(244, 238, 226, 0.82); line-height: 1.62; margin-bottom: 38px; }
.cta-foot { margin-top: 22px; font-size: 14.5px; color: rgba(244, 238, 226, 0.7); }
.cta-foot a { color: #E8C99A; border-bottom: 1px solid transparent; transition: border-color 0.2s var(--ease); }
.cta-foot a:hover { border-color: #E8C99A; }

/* ───────────────── FOOTER ───────────────── */
.foot {
  border-top: 1px solid var(--line); text-align: center;
  padding: 56px clamp(20px, 5vw, 56px) 64px;
}
.foot-brand { display: inline-flex; align-items: center; gap: 9px; font-family: 'Spectral', serif; font-size: 20px; font-weight: 500; }
.foot-line { font-family: 'Spectral', serif; font-style: italic; font-size: 17px; color: var(--muted); margin: 12px 0 26px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 26px; margin-bottom: 26px; }
.foot-links a { font-size: 14px; color: var(--muted); transition: color 0.2s var(--ease); }
.foot-links a:hover { color: var(--ink); }
.foot-fine { font-size: 13px; color: var(--muted2); }

/* ───────────────── REVEAL ANIMATION ───────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────────── RESPONSIVE ───────────────── */
@media (max-width: 860px) {
  .nav-links > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 120px; gap: 56px; }
  .hero-proof { order: 2; }
  .proofpoints { grid-template-columns: 1fr; }
  .pp { padding: 28px 0; }
  .pp + .pp { padding-left: 0; }
  .aud { grid-template-columns: 1fr; }
  .step { gap: 18px; }
}

@media (max-width: 480px) {
  body { font-size: 17px; }
  .report { transform: none; }
  .lang-lines { gap: 0 12px; }
}

/* ───────────────── REDUCED MOTION ───────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .report { transform: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
