/* ==========================================================================
   BRAND TOKENS
   The single place to swap the brand. Name lives in index.html as "[Name]"
   (every occurrence carries class="brand-name", one find-replace renames it).
   Colors and fonts live here and nowhere else.
   ========================================================================== */
:root {
  /* Color */
  --ink: #1C1917;            /* primary text, dark surfaces */
  --ink-soft: #57534E;       /* secondary text on light */
  --paper: #FAF9F7;          /* page background, warm off-white */
  --surface: #FFFFFF;        /* raised cards if needed */
  --line: #E7E2DA;           /* hairline rules */
  --accent: #96651E;         /* bronze accent, WCAG-checked on paper */
  --on-dark: #F5F3EF;        /* text on dark sections */
  --on-dark-soft: #B8B2A7;   /* secondary text on dark sections */

  /* Type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm */
  --container: 1080px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(5rem, 12vw, 9rem);
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0.75rem 1.25rem;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.88); /* fallback for older browsers */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.25rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 2rem;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 0.5rem 0;
  transition: color 180ms ease-out;
}

.site-nav a:hover { color: var(--ink); }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 0.95rem 1.9rem;
  border-radius: 2px;
  transition: background 180ms ease-out, transform 180ms ease-out;
  cursor: pointer;
  touch-action: manipulation;
}

.btn:hover { background: #2E2A26; }
.btn:active { transform: scale(0.98); }

.btn-small {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-ghost:hover { background: rgba(28, 25, 23, 0.05); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
}
.btn-light:hover { background: #FFFFFF; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding-block: clamp(5.5rem, 14vw, 11rem) var(--section-pad);
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.9rem);
  max-width: 21ch;
  margin-bottom: 2rem;
}

.hero-soft {
  display: block;
  margin-top: 0.6em;
  font-size: 0.52em;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink-soft);
  max-width: 38ch;
}

.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 2.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3.25rem;
}

.hero-proof {
  font-size: 0.92rem;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 1.1rem;
  max-width: 52ch;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding-block: var(--section-pad);
  border-top: 1px solid var(--line);
}

.section-head {
  max-width: 44rem;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  margin-bottom: 1.25rem;
}

.section-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  max-width: 56ch;
}

/* ==========================================================================
   Services
   ========================================================================== */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 2.5rem;
}

@media (max-width: 920px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .service-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

.service {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}

.service-num {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.service h3 {
  font-size: 1.3rem;
  margin: 0.7rem 0 0.65rem;
}

.service p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.service-note {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ==========================================================================
   How it works (dark)
   ========================================================================== */
.section-dark {
  background: var(--ink);
  color: var(--on-dark);
  border-top: none;
}

.section-dark .eyebrow { color: #C99A55; }
.section-dark .section-head h2 { color: var(--on-dark); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  max-width: 50rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  padding-block: 2.5rem;
  border-top: 1px solid rgba(245, 243, 239, 0.14);
}

.step:last-child { border-bottom: 1px solid rgba(245, 243, 239, 0.14); }

.step-num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 500;
  line-height: 1;
  color: #C99A55;
  min-width: 2ch;
}

.step h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  color: var(--on-dark);
  margin-bottom: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.price {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #C99A55;
  border: 1px solid rgba(201, 154, 85, 0.45);
  padding: 0.25rem 0.7rem;
  border-radius: 2rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.step p {
  color: var(--on-dark-soft);
  font-size: 0.98rem;
  line-height: 1.7;
  max-width: 56ch;
}

.step-list {
  list-style: none;
  margin: 0.9rem 0 1.1rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  max-width: 56ch;
}
.step-list li {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--on-dark-soft);
  padding-left: 1.2rem;
  position: relative;
}
.step-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: #C99A55;
  font-weight: 600;
}

@media (max-width: 480px) {
  .step { grid-template-columns: 1fr; gap: 0.9rem; }
}

/* ==========================================================================
   Why me
   ========================================================================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem 4rem;
  max-width: 56rem;
}

@media (max-width: 680px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.25rem; }
}

.why-item h3 {
  font-size: 1.35rem;
  margin-bottom: 0.7rem;
}

.why-item p {
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* ==========================================================================
   CTA
   ========================================================================== */
.cta-section {
  background: var(--ink);
  color: var(--on-dark);
  border-top: 1px solid rgba(245, 243, 239, 0.12);
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  color: var(--on-dark);
  max-width: 22ch;
  margin-inline: auto;
  margin-bottom: 1.25rem;
}

.cta-sub {
  color: var(--on-dark-soft);
  font-size: 1.08rem;
  margin-bottom: 2.5rem;
}

.cta-fine {
  margin-top: 1.4rem;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.25rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer .brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.footer-meta .brand-name {
  font-family: var(--font-body);
  font-size: inherit;
  font-weight: inherit;
}

/* ==========================================================================
   Reveal on scroll (script.js adds .is-visible; harmless without JS)
   ========================================================================== */
.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn { transition: none; }
}

/* ==========================================================================
   Small screens (down to 380px)
   ========================================================================== */
@media (max-width: 420px) {
  .hero-actions .btn { width: 100%; text-align: center; }
  .header-inner { gap: 0.75rem; }
  .btn-small { padding: 0.55rem 0.9rem; font-size: 0.8rem; }
}
