/* ==========================================================================
   Eno Fox | Free Google Ads audit
   Design tokens, base, layout shell, components. Mobile first.
   ========================================================================== */

@font-face {
  font-family: "Lora";
  src: url("../fonts/lora-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --ink-950: #0b1410;
  --ink-900: #0f1a16;
  --ink-800: #15251e;
  --ink-700: #1f342b;
  --cream: #efece3;
  --sand: #e3e0d1;
  --text-dark: #14231c;
  --text-dark-muted: #44544c;
  --text-light: #f3f0e6;
  --text-light-muted: #aebbb4;
  --gold: #a98b45;
  --gold-hover: #bb9c52;
  --gold-text: #c4a65c;      /* gold as text on dark (AA) */
  --gold-ink: #7a6021;       /* gold as text on cream/sand (AA) */
  --rule-light: rgba(20, 35, 28, 0.16);
  --rule-dark: rgba(196, 166, 92, 0.28);

  /* Type */
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
  --fs-h1: clamp(2.4rem, 1.55rem + 3.4vw, 4.25rem);
  --fs-h2: clamp(1.9rem, 1.4rem + 1.9vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.15rem + 0.5vw, 1.625rem);
  --fs-ui: 0.8125rem;

  /* Layout */
  --container: 1240px;
  --gutter: 20px;
  --section-y: clamp(72px, 9vw, 128px);
  --header-h: 68px;
  --radius: 2px;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --header-h: 80px; }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text-light);
  font: 400 var(--fs-body) / 1.65 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, blockquote, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px;
  background: var(--gold); color: var(--ink-950); font-weight: 600; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.on-light :focus-visible { outline-color: var(--gold-ink); }

/* Headings: serif carries the personality */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; letter-spacing: -0.012em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  font: 600 var(--fs-ui) / 1 var(--font-sans); letter-spacing: 0.13em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 14px; height: 14px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--ink-950); }
.btn--gold:hover { background: var(--gold-hover); }
.btn--outline { color: var(--gold-ink); border-color: var(--gold-ink); background: transparent; }
.btn--outline:hover { background: var(--gold-ink); color: var(--cream); }
.btn--ghost { color: var(--text-light); background: var(--ink-800); border-color: transparent; min-height: 44px; padding: 0 18px; }
.btn--ghost:hover { background: var(--ink-700); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: var(--ink-950); border-bottom: 1px solid rgba(196, 166, 92, 0.12);
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(11, 20, 16, 0.8);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--rule-dark);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 500 1.375rem / 1 var(--font-serif); color: var(--text-light); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-mark text { font-family: var(--font-serif); }
@media (max-width: 420px) { .site-header .btn { padding: 0 14px; letter-spacing: 0.1em; } .brand { font-size: 1.2rem; } }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink-900); overflow: hidden; isolation: isolate; }
.hero__media { height: clamp(200px, 56vw, 400px); background: var(--ink-800); }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__inner { position: relative; padding-block: 32px clamp(48px, 7vw, 96px); display: grid; gap: clamp(40px, 6vw, 80px); }
.eyebrow { font: 600 0.78rem / 1.4 var(--font-sans); letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-light-muted); margin-bottom: 22px; }
.hero h1 { color: var(--text-light); max-width: 20ch; }
.hero h1 .gold { display: block; color: var(--gold-text); }
.hero__sub { margin-top: 24px; max-width: 34rem; font-size: var(--fs-lead); line-height: 1.55; color: #e4e1d6; }
.hero__form { margin-top: 32px; max-width: 34rem; }
.fine { margin-top: 14px; font-size: 0.9375rem; color: var(--text-light-muted); line-height: 1.5; }

.principle { max-width: 40rem; padding: 6px 0 6px 28px; border-left: 1px solid var(--gold); }
.principle p { font: 400 clamp(1.2rem, 1.05rem + 0.7vw, 1.65rem) / 1.45 var(--font-serif); color: var(--text-light); }

@media (min-width: 1100px) {
  .hero { min-height: min(880px, calc(100svh - var(--header-h))); display: flex; }
  .hero__inner { flex: 1; align-content: space-between; padding-block: clamp(64px, 8vw, 104px) clamp(48px, 7vw, 96px); }
  .hero__copy { max-width: 640px; }
  .hero__media {
    position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; height: auto;
    left: calc(max(var(--gutter), (100% - var(--container)) / 2) + 700px);
  }
}

/* ---------- HubSpot form skin ---------- */
.hsform { min-height: 116px; }
@media (min-width: 560px) { .hsform { min-height: 52px; } }
.hsform .hs-form { margin: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.hsform fieldset { flex: 1 1 260px; max-width: none !important; margin: 0; padding: 0; border: 0; min-width: 0; }
.hsform .hs-form-field { margin: 0 !important; float: none !important; width: 100% !important; }
.hsform .hs-form-field > label {
  position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.hsform .input { margin: 0 !important; }
.hsform input[type="email"], .hsform input[type="text"] {
  width: 100% !important; min-height: 52px; padding: 0 16px; font: 400 1.0625rem var(--font-sans);
  color: var(--text-light); background: rgba(243, 240, 230, 0.06);
  border: 1px solid rgba(243, 240, 230, 0.34); border-radius: var(--radius);
}
.hsform input::placeholder { color: #98a79f; }
.hsform input:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 2px; border-color: var(--gold-text); }
.hsform .hs_submit { flex: 0 0 auto; margin: 0; }
.hsform .actions { margin: 0 !important; padding: 0 !important; }
.hsform .hs-button, .hsform input[type="submit"] {
  min-height: 52px; padding: 0 28px; cursor: pointer; border: 0; border-radius: var(--radius);
  font: 600 var(--fs-ui) / 1 var(--font-sans); letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--gold); color: var(--ink-950); transition: background-color .2s ease; white-space: normal;
}
.hsform .hs-button:hover { background: var(--gold-hover); }
.hsform .hs-error-msgs { list-style: none; margin: 8px 0 0; padding: 0; }
.hsform .hs-error-msg, .hsform .hs-error-msgs label { color: #ffb4a6; font-size: 0.9375rem; position: static; width: auto; height: auto; margin: 0; clip: auto; white-space: normal; }
.hsform .submitted-message { font: 400 1.25rem / 1.5 var(--font-serif); color: var(--text-light); }
.hsform .legal-consent-container, .hsform .hs-richtext { font-size: 0.8125rem; color: var(--text-light-muted); flex-basis: 100%; }
.hsform-note { color: var(--text-light-muted); font-size: 0.9375rem; }
@media (max-width: 559px) { .hsform .hs_submit, .hsform .hs-button { width: 100%; } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--cream { background: var(--cream); color: var(--text-dark); }
.section--sand { background: var(--sand); color: var(--text-dark); }
.section--dark { background: var(--ink-900); color: var(--text-light); }
.section-head { max-width: 46rem; margin-inline: auto; text-align: center; }
.section-head p { margin-top: 18px; font-size: var(--fs-lead); color: var(--text-dark-muted); }
.section--dark .section-head p { color: var(--text-light-muted); }

.mark { width: 64px; height: 64px; margin: 0 auto 28px; }

/* Bordered grid (hairlines drawn by gap on a ruled background) */
.cells { display: grid; gap: 1px; margin-top: clamp(40px, 5vw, 64px); background: var(--rule-light); border: 1px solid var(--rule-light); }
.section--dark .cells { background: var(--rule-dark); border-color: var(--rule-dark); }
.cell { padding: 32px 28px 36px; background: var(--cream); }
.section--sand .cell { background: var(--sand); }
.section--dark .cell { background: var(--ink-900); }
.cell h3 { margin: 20px 0 12px; }
.cell p { color: var(--text-dark-muted); max-width: 32ch; }
.section--dark .cell p { color: var(--text-light-muted); }
.cell svg { width: 30px; height: 30px; fill: none; stroke: var(--gold-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 640px) { .cells--2 { grid-template-columns: repeat(2, 1fr); } .cells--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cells--3 { grid-template-columns: repeat(3, 1fr); } .cell { padding: 40px 36px 44px; } }
.cta-row { margin-top: clamp(36px, 5vw, 56px); text-align: center; }

/* Steps (a real sequence, so numerals earn their place) */
.steps { counter-reset: step; }
.step { counter-increment: step; }
.step::before {
  content: counter(step, upper-roman); display: block; font: 400 1.25rem / 1 var(--font-serif); color: var(--gold-ink);
}
.step h3 { margin: 18px 0 12px; }
.step p { color: var(--text-dark-muted); max-width: 34ch; }
.assurance { margin-top: clamp(28px, 4vw, 44px); text-align: center; color: var(--text-dark-muted); font-weight: 500; }

/* About + media */
.about { display: grid; gap: 40px; align-items: center; }
.about h2 { max-width: 16ch; }
.about__text p { margin-top: 20px; font-size: var(--fs-lead); color: var(--text-light-muted); max-width: 34rem; }
.about__text p:first-of-type { color: var(--text-light); }
.about:not(.has-media) { justify-items: center; text-align: center; }
.about:not(.has-media) h2 { max-width: none; }
.about:not(.has-media) .about__text p { margin-inline: auto; }
@media (min-width: 960px) {
  .about.has-media { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.video { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--rule-dark); background: var(--ink-800); cursor: pointer; aspect-ratio: 16 / 9; overflow: hidden; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video__play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  background: var(--gold); display: grid; place-items: center; transition: transform .2s ease, background-color .2s ease;
}
.video__play svg { width: 28px; height: 28px; margin-left: 4px; fill: var(--ink-950); }
.video:hover .video__play { transform: scale(1.06); background: var(--gold-hover); }

/* FAQ */
.faq { max-width: 820px; }
.faq h2 { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.faq details { border-top: 1px solid var(--rule-light); }
.faq details:last-child { border-bottom: 1px solid var(--rule-light); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font: 500 var(--fs-h3) / 1.3 var(--font-serif); min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 300 1.75rem / 1 var(--font-sans); color: var(--gold-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--text-dark-muted); max-width: 60ch; }

/* Closing CTA */
.closing { text-align: center; }
.closing .section-head { margin-bottom: 36px; }
.closing .hero__form { margin-inline: auto; text-align: left; }
.closing .fine { text-align: center; }

/* Footer */
.site-footer { background: var(--ink-950); color: var(--text-light-muted); padding-block: 56px 40px; }
.site-footer .container { display: grid; gap: 28px; }
.footer__top { display: flex; flex-direction: column; gap: 10px; }
.footer__top .brand { font-size: 1.5rem; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--rule-dark); font-size: 0.9375rem; }
.site-footer a { color: var(--text-light); text-underline-offset: 3px; }

/* ---------- Motion: one orchestrated hero entrance, nothing else ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * { animation: rise .65s cubic-bezier(.2, .7, .2, 1) backwards; }
  .hero__copy > :nth-child(2) { animation-delay: .07s; }
  .hero__copy > :nth-child(3) { animation-delay: .14s; }
  .hero__copy > :nth-child(4) { animation-delay: .21s; }
  .hero__copy > :nth-child(5) { animation-delay: .28s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
}

/* ---------- Document pages (privacy) ---------- */
.doc { background: var(--cream); color: var(--text-dark); }
.doc .container { max-width: 760px; padding-block: 64px 96px; }
.doc h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.375rem; margin: 40px 0 10px; }
.doc p { margin-top: 12px; color: var(--text-dark); }
.doc .muted { color: var(--text-dark-muted); }
.doc a { color: var(--gold-ink); }
