/* ============ Tokens ============ */
:root {
  --ink: #1b2a3a;
  --ink-2: #26394d;
  --brass: #c9a46a;
  --brass-dark: #b08a4f;
  --cream: #f7f3ec;
  --paper: #ffffff;
  --text: #1f2933;
  --muted: #5d6b78;
  --line: #e4ddd1;
  --error: #c0392b;
  --ok: #2e7d4f;
  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(18, 28, 40, .35);
  --header-h: 64px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.btn--primary { background: var(--brass); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(176, 138, 79, .9); }
.btn--primary:hover { background: var(--brass-dark); color: #fff; }
.btn--primary:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.is-loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Header ============ */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); }
.logo__mark { width: 34px; height: 34px; flex: none; }
.logo__text { font-family: var(--serif); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.site-nav { display: none; margin-left: auto; gap: 28px; }
.site-nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink); }
.site-nav a:hover { color: var(--brass-dark); }
.site-header__cta { margin-left: auto; white-space: nowrap; }
@media (max-width: 380px) { .logo__text { font-size: 16px; } .site-header__cta { padding: 0 14px; font-size: 13px; } }
@media (min-width: 900px) { .site-nav { display: flex; } .site-header__cta { margin-left: 12px; } }

/* ============ Hero ============ */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 26, 38, .82) 0%, rgba(16, 26, 38, .72) 55%, rgba(16, 26, 38, .9) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 20px; padding-top: 22px; padding-bottom: 32px; }
.eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brass); }
.eyebrow--dark { color: var(--brass-dark); text-align: center; }
.hero h1 { font-size: clamp(30px, 8vw, 58px); margin-bottom: 12px; }
.hero__sub { font-size: 16px; color: rgba(255, 255, 255, .88); margin-bottom: 0; max-width: 34em; }
.hero__points { display: none; list-style: none; padding: 0; margin: 24px 0 0; }
.hero__points li { position: relative; padding-left: 30px; margin-bottom: 10px; font-weight: 500; }
.hero__points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%231b2a3a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.hero__card, .final-cta__card { background: var(--paper); color: var(--text); border-radius: var(--radius); padding: 22px 18px 18px; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; padding-top: 88px; padding-bottom: 96px; min-height: 620px; }
  .hero__sub { font-size: 19px; }
  .hero__points { display: block; }
  .hero__card { padding: 30px 28px 24px; }
}

/* ============ Forms ============ */
.lead-form { position: relative; }
.lead-form__title { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.field input {
  width: 100%; height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font: 400 16px var(--sans); color: var(--text); background: #fbfaf7; transition: border-color .2s, box-shadow .2s;
}
.field input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(201, 164, 106, .25); background: #fff; }
.field.has-error input { border-color: var(--error); }
.field__error { display: block; min-height: 0; font-size: 13px; color: var(--error); margin-top: 4px; }
.field__error:empty { display: none; }
.lead-form .btn { margin-top: 6px; }
.lead-form__status { margin: 10px 0 0; font-size: 14px; color: var(--error); }
.lead-form__status:empty { display: none; }
.lead-form__consent { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); }

/* ============ Sections ============ */
.section { padding: 56px 0; }
.section__title { font-size: clamp(28px, 5vw, 42px); color: var(--ink); text-align: center; margin-bottom: 32px; }
@media (min-width: 900px) { .section { padding: 88px 0; } .section__title { margin-bottom: 48px; } }

/* Reviews (hidden until enabled) */
.reviews { background: var(--paper); }

/* Services */
.services { background: var(--paper); }
.services__grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services__grid { grid-template-columns: repeat(3, 1fr); gap: 26px; } }
.service-card { background: var(--cream); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card__img { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card__img img { transform: scale(1.04); }
.service-card__body { padding: 18px 20px 22px; }
.service-card h3 { font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.service-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* How it works */
.steps { list-style: none; margin: 0 0 40px; padding: 0; display: grid; gap: 28px; position: relative; counter-reset: step; }
.step { position: relative; text-align: center; padding: 0 12px; counter-increment: step; }
.step__icon { position: relative; z-index: 1; width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; box-shadow: 0 0 0 8px var(--cream), 0 0 0 9px var(--line); }
.step__icon::after { content: counter(step); position: absolute; top: -4px; right: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--brass); color: var(--ink); font: 700 14px/28px var(--sans); }
.step__icon svg { width: 36px; height: 36px; fill: none; stroke: var(--brass); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { font-size: 19px; color: var(--ink); margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }
/* connecting line */
.steps::before { content: ""; position: absolute; left: 50%; top: 42px; bottom: 60px; width: 2px; transform: translateX(-50%); background: repeating-linear-gradient(to bottom, var(--brass) 0 6px, transparent 6px 12px); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 56px; }
  .steps::before { left: 16.66%; right: 16.66%; top: 42px; bottom: auto; width: auto; height: 2px; transform: none; background: repeating-linear-gradient(to right, var(--brass) 0 8px, transparent 8px 16px); }
}
.callback-card { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; max-width: 820px; margin: 0 auto; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.callback-card h3 { font-family: var(--serif); font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.callback-card p { margin: 0; color: var(--muted); }
.callback-card .btn { width: 100%; }
@media (min-width: 700px) { .callback-card { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 36px; } .callback-card .btn { width: auto; } }

/* Final CTA */
.final-cta { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 85% 0%, rgba(201, 164, 106, .22), transparent 70%); }
.final-cta__inner { position: relative; display: grid; gap: 28px; }
.final-cta h2 { font-size: clamp(28px, 5vw, 44px); }
.final-cta p { color: rgba(255, 255, 255, .82); font-size: 17px; margin: 0; }
@media (min-width: 900px) { .final-cta__inner { grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; } .final-cta__card { padding: 30px 28px 24px; } }

/* ============ Footer ============ */
.site-footer { background: #121d29; color: rgba(255, 255, 255, .72); padding: 48px 0 calc(88px + env(safe-area-inset-bottom)); font-size: 15px; }
.site-footer__inner { display: grid; gap: 32px; }
.logo--light { color: #fff; margin-bottom: 12px; }
.site-footer__links { display: flex; flex-direction: column; gap: 8px; }
.site-footer__links h3 { color: #fff; font-size: 15px; margin-bottom: 6px; }
.site-footer__links a { text-decoration: none; }
.site-footer__links a:hover { color: var(--brass); }
.site-footer__copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
@media (min-width: 700px) { .site-footer__inner { grid-template-columns: 2fr 1fr; } .site-footer { padding-bottom: 48px; } }

/* ============ Floating CTA ============ */
.floating-cta {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60;
  display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--brass); color: var(--ink);
  font: 700 15px/1 var(--sans); cursor: pointer; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45);
  animation: pulse 2.6s ease-in-out 3s infinite;
}
.floating-cta svg { width: 20px; height: 20px; }
.floating-cta:hover { background: var(--brass-dark); color: #fff; }
@keyframes pulse { 0%, 100% { box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45), 0 0 0 0 rgba(201, 164, 106, .55); } 50% { box-shadow: 0 12px 28px -8px rgba(0, 0, 0, .45), 0 0 0 12px rgba(201, 164, 106, 0); } }
@media (prefers-reduced-motion: reduce) { .floating-cta { animation: none; } html { scroll-behavior: auto; } }

/* ============ Popup ============ */
.popup { width: min(440px, calc(100% - 32px)); padding: 28px 22px 20px; border: 0; border-radius: 18px; box-shadow: var(--shadow); color: var(--text); }
.popup::backdrop { background: rgba(12, 20, 30, .65); backdrop-filter: blur(2px); }
.popup[open] { animation: pop .22s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.popup__close { position: absolute; top: 8px; right: 10px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--muted); cursor: pointer; }
.popup__sub { color: var(--muted); margin: -6px 0 16px; font-size: 15px; }

/* ============ Simple pages (thank you / privacy) ============ */
.page-simple main { min-height: 60vh; }
.thanks { padding: 72px 0 96px; text-align: center; }
.thanks__icon { width: 88px; height: 88px; margin: 0 auto 24px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.thanks__icon svg { width: 44px; height: 44px; fill: none; stroke: var(--brass); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { font-size: clamp(32px, 6vw, 48px); color: var(--ink); }
.thanks__lead { font-size: 18px; color: var(--muted); max-width: 32em; margin: 0 auto 32px; }
.thanks__next { display: grid; gap: 14px; max-width: 760px; margin: 0 auto 36px; padding: 0; text-align: left; }
.thanks__next li { list-style: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.thanks__next strong { display: block; color: var(--ink); margin-bottom: 2px; }
@media (min-width: 760px) { .thanks__next { grid-template-columns: repeat(3, 1fr); } }
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); color: var(--ink); }
.legal h2 { font-size: 22px; color: var(--ink); margin-top: 1.8em; }
.legal p, .legal li { color: #34404c; }
.legal__updated { color: var(--muted); font-size: 14px; }
