:root {
  --cream: #f7f2ea;
  --linen: #efe6d8;
  --paper: #fffdf9;
  --walnut: #2f241d;
  --walnut-2: #4a3a2f;
  --ink: #2b2420;
  --muted: #74665b;
  --brass: #b4782f;
  --brass-2: #9a6324;
  --velvet: #2f4a3a;
  --wa: #1fa855;
  --wa-2: #178a45;
  --line: #e2d6c4;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(47, 36, 29, .25);
  --head: "Frank Ruhl Libre", "Times New Roman", serif;
  --body: "Assistant", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; color: var(--walnut); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; }
.eyebrow {
  font-weight: 700; letter-spacing: .04em; color: var(--brass-2);
  font-size: .95rem; margin-bottom: .6em;
}
.eyebrow::before { content: "— "; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; }
.btn-lg { font-size: 1.1rem; padding: 1em 1.7em; }
.btn-block { width: 100%; }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 20px -8px rgba(31,168,85,.6); }
.btn-whatsapp:hover { background: var(--wa-2); }
.btn-call { background: var(--walnut); color: #fff; }
.btn-call:hover { background: var(--walnut-2); }
.btn-primary { background: var(--brass); color: #fff; box-shadow: 0 8px 20px -8px rgba(180,120,47,.7); }
.btn-primary:hover { background: var(--brass-2); }
.btn-primary:disabled { opacity: .6; cursor: wait; transform: none; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--walnut); }
.btn-ghost:hover { border-color: var(--walnut); }
.spark { color: #ffe3b0; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 242, 234, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--head); font-size: 1.15rem; color: var(--walnut); }
.brand-text small { color: var(--muted); font-size: .8rem; }
.header-nav { display: flex; gap: 22px; margin-inline-start: auto; }
.header-nav a { text-decoration: none; font-weight: 600; color: var(--walnut-2); }
.header-nav a:hover { color: var(--brass-2); }
.header-call { padding: .6em 1.1em; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(270deg, rgba(30,22,17,.94) 0%, rgba(30,22,17,.84) 50%, rgba(30,22,17,.35) 100%),
    url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?auto=format&fit=crop&w=1800&q=70") center/cover;
}
.hero-inner { padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 96px); max-width: 1160px; }
.hero .eyebrow { color: #f3c98a; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.8rem); font-weight: 900; max-width: 12ch; }
.hero h1 span { color: #f3c98a; }
.hero .lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 34em; color: #f1e8dc; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero .btn-call { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.hero .btn-call:hover { background: rgba(255,255,255,.22); }
.hero-ai-link {
  display: inline-flex; gap: 8px; align-items: center; color: #f6e7d0;
  text-decoration: none; font-weight: 600; background: rgba(255,255,255,.08);
  padding: 8px 16px; border-radius: 999px; border: 1px dashed rgba(243,201,138,.6);
}
.hero-ai-link:hover { background: rgba(255,255,255,.15); }
.trust-row {
  list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px;
  color: #e9dccb; font-size: 1rem;
}
.trust-row strong { color: #fff; font-family: var(--head); font-size: 1.2rem; }

/* ===== Visualizer ===== */
.visualizer { background: linear-gradient(var(--cream), var(--linen)); }
.viz-card {
  background: var(--paper); border-radius: 28px; box-shadow: var(--shadow);
  border: 1px solid var(--line); padding: clamp(20px, 4vw, 44px); max-width: 880px; margin-inline: auto;
}
.viz-step { border: 0; padding: 0; margin: 0 0 32px; min-width: 0; }
.viz-step legend {
  font: 700 1.25rem var(--head); color: var(--walnut); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px; padding: 0;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--walnut); color: #f3d9ae;
  display: inline-grid; place-items: center; font: 700 1rem var(--body);
}
  position: relative; display: grid; place-items: center; min-height: 220px; cursor: pointer;
  border: 2px dashed #cdb998; border-radius: var(--radius); background: var(--cream);
  overflow: hidden; transition: border-color .2s, background .2s;
}

.mode-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mode-opt { cursor: pointer; }
.mode-opt input { position: absolute; opacity: 0; }
.mode-opt span {
  display: flex; flex-direction: column; height: 100%; padding: 16px 18px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--cream); transition: .2s;
}
.mode-opt small { color: var(--muted); }
.mode-opt input:checked + span { border-color: var(--brass); background: #fbf1e2; box-shadow: 0 0 0 3px rgba(180,120,47,.15); }
.mode-opt input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }

.change-options { margin-top: 22px; }
.opt-label { font-weight: 700; margin: 14px 0 8px; color: var(--walnut-2); }
.color-name { font-weight: 400; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: .5em 1.1em; border-radius: 999px; border: 2px solid var(--line); background: var(--paper);
  font: 600 .95rem var(--body); cursor: pointer; color: var(--walnut-2);
}
.chip[aria-pressed="true"] { background: var(--walnut); color: #fff; border-color: var(--walnut); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 3px solid var(--paper); box-shadow: 0 0 0 1px var(--line), inset 0 -6px 10px rgba(0,0,0,.15);
  transition: transform .15s;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--brass), inset 0 -6px 10px rgba(0,0,0,.15); }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--walnut-2); }
.field input, .field select, .field textarea {
  font: 400 1rem var(--body); padding: .8em 1em; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fff; color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(180,120,47,.18); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); margin-top: 14px; cursor: pointer; }
.consent input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--brass); flex: none; }
.form-error { background: #fdecea; color: #a12a1b; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
#turnstile-box:not(:empty) { margin-top: 14px; }

.photo-tip {
  display: flex; flex-direction: column; gap: 4px; background: #eef7f0; border: 1px solid #cfe8d6;
  border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; color: #235c37; font-size: .98rem;
}
.photo-tip span { color: #4b7a5b; font-size: .9rem; }

.viz-teaser { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.viz-teaser-text p { color: var(--muted); font-size: 1.1rem; }
.viz-points { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 600; color: var(--walnut-2); }
.viz-points li { white-space: nowrap; }
.viz-teaser-art { margin: 0; width: 100%; }
.ba { position: relative; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 50% 0 0); }
.ba::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: #fff; transform: translateX(-50%); }
.viz-card { margin-top: 40px; }
.viz-card[hidden] { display: none; }
#viz-card:not([hidden]) { animation: rise .35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.cmp-tag {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  background: rgba(30,22,17,.75); color: #fff; pointer-events: none; z-index: 1;
}
.cmp-tag-before { right: 12px; }
.cmp-tag-after { left: 12px; background: var(--brass); }
.viz-done { text-align: center; padding: 40px 12px; }
.done-icon { font-size: 3rem; margin-bottom: 8px; }
.viz-done h3 { font-size: 1.8rem; }

/* ===== Heritage ===== */
.heritage { background: var(--paper); }
.heritage-inner { display: grid; grid-template-columns: 6fr 6fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.heritage h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
.heritage-lead { font: 500 clamp(1.15rem, 2.2vw, 1.35rem)/1.6 var(--head); color: var(--walnut-2); }
.heritage-text p:last-child { color: var(--muted); }
.heritage-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.heritage-cards li {
  display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: start;
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px;
}
.h-icon { font-size: 1.8rem; grid-row: span 2; line-height: 1.2; }
.heritage-cards h3 { margin-bottom: .2em; }
.heritage-cards p { margin: 0; color: var(--muted); font-size: .98rem; }

/* ===== Services ===== */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--paper); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.service img { aspect-ratio: 7/5; object-fit: cover; width: 100%; }
.service div { padding: 18px 20px 22px; }
.service p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ===== Story ===== */
.story { background: var(--walnut); color: #eadfce; }
.story-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.story h2 { color: #fff; }
.story .eyebrow { color: #f3c98a; }
.story-photo { margin: 0; position: relative; }
.story-photo img { border-radius: 24px; aspect-ratio: 9/11; object-fit: cover; width: 100%; }
.story-photo::after {
  content: ""; position: absolute; inset: 16px -16px -16px 16px; border: 2px solid #b4782f88; border-radius: 24px; z-index: -1;
}
.story-photo { isolation: isolate; }
.story blockquote {
  margin: 28px 0; padding: 4px 24px 4px 0; border-right: 4px solid var(--brass);
  font: 700 clamp(1.3rem, 2.6vw, 1.7rem)/1.4 var(--head); color: #f3d9ae;
}

/* ===== Why ===== */
.why-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-grid li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.why-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.why-grid p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ===== Process ===== */
.process { background: var(--linen); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li > span {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brass); color: #fff; font: 900 1.4rem var(--head); margin-bottom: 14px;
}
.steps p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ===== Quote form ===== */
.quote-inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
.quote-text p { color: var(--muted); font-size: 1.1rem; }
.quote-or a { color: var(--walnut); }
.lead-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; background: var(--paper);
  padding: clamp(20px, 4vw, 36px); border-radius: 24px; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.field-full { grid-column: 1 / -1; }
.lead-form .consent { margin-top: 0; }

/* ===== FAQ ===== */
.faq { background: var(--paper); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font: 700 1.15rem var(--head); color: var(--walnut);
  display: flex; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brass); font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 12px; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.address { font-size: 1.3rem; font-weight: 700; color: var(--walnut-2); }
.hours { border-collapse: collapse; margin: 8px 0 24px; }
.hours th, .hours td { padding: 6px 0; text-align: right; }
.hours th { font-weight: 600; padding-left: 32px; color: var(--walnut-2); }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.map { border-radius: 24px; overflow: hidden; min-height: 340px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

/* ===== Footer ===== */
.site-footer { background: var(--walnut); color: #cbbba6; text-align: center; padding: 28px 0 32px; font-size: .95rem; }
.site-footer p { margin: 0; }
.site-footer a { color: #f3d9ae; text-decoration: none; }

/* ===== Floating / mobile bar ===== */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; width: 62px; height: 62px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(31,168,85,.7); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 34px; height: 34px; }
.mobile-bar { display: none; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .service-grid, .why-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .header-nav { display: none; }
  .header-call { margin-inline-start: auto; }
}
@media (max-width: 760px) {
  body { font-size: 17px; padding-bottom: 76px; }
  .story-inner, .quote-inner, .contact-inner, .heritage-inner, .viz-teaser { grid-template-columns: 1fr; }
  .viz-teaser-art { max-width: 360px; margin-inline: auto; }
  .story-photo { max-width: 420px; }
  .story-photo::after { display: none; }
  .mode-toggle, .field-row, .lead-form { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .header-call span { display: none; }
  .header-call { padding: .7em; }
  .brand-text small { display: none; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; position: fixed; bottom: 0; inset-inline: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,253,249,.96);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: .85em .5em; font-size: 1rem; }
}
@media (max-width: 520px) {
  .service-grid, .why-grid, .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
