/* Layout: sticky header, full-width colored bands with a centered 1180px column; cards and galleries on auto-fill grids that stack on phones. */
:root {
  --bg: #F2F3EF;
  --surface: #FFFFFF;
  --ink: #17241E;
  --muted: #4E5D55;
  --line: #D3D9D1;
  --strong: #1E3B2F;
  --band-bg: #1E3B2F;
  --band-fg: #EEF0EB;
  --band-muted: #B9C6BE;
  --cta: #D0913F;
  --cta-ink: #17241E;
  --accent-text: #8A5216;
  --pill-on: #1E3B2F;
  --pill-on-ink: #F2F3EF;
  --ph1: #CFD8CF;
  --ph2: #AFC0B2;
  --ph-ink: #1E3B2F;
  --focus: #B9762A;
  --lb-bg: rgba(9, 15, 12, 0.95);
  --lb-fg: #EEF0EB;
  --lb-btn: rgba(238, 240, 235, 0.14);
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F1A15; --surface: #16251E; --ink: #E6EBE5; --muted: #A7B5AC; --line: #2B3D34;
    --strong: #CFE3D5; --band-bg: #15281F; --band-fg: #EEF0EB; --band-muted: #A7B5AC;
    --cta: #D99A4E; --cta-ink: #14201A; --accent-text: #E2AA66; --pill-on: #D99A4E; --pill-on-ink: #14201A;
    --ph1: #1D3128; --ph2: #2A4538; --ph-ink: #CFE3D5; --focus: #E2AA66;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F1A15; --surface: #16251E; --ink: #E6EBE5; --muted: #A7B5AC; --line: #2B3D34;
  --strong: #CFE3D5; --band-bg: #15281F; --band-fg: #EEF0EB; --band-muted: #A7B5AC;
  --cta: #D99A4E; --cta-ink: #14201A; --accent-text: #E2AA66; --pill-on: #D99A4E; --pill-on-ink: #14201A;
  --ph1: #1D3128; --ph2: #2A4538; --ph-ink: #CFE3D5; --focus: #E2AA66;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--strong); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }
.wrap { max-width: 1180px; margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }
.band .eyebrow { color: var(--cta); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); color: var(--ink); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 12px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 1.2rem; white-space: nowrap; }
.brand svg { width: 40px; height: 40px; color: var(--strong); flex: none; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav ul a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav ul a:hover { background: var(--surface); }
.nav ul a[aria-current="page"] { color: var(--strong); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cta); text-decoration-thickness: 3px; text-underline-offset: 8px; }
.menu-btn { display: none; min-height: 44px; min-width: 44px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font: 600 0.95rem var(--body); cursor: pointer; }
.menu-btn svg { width: 18px; height: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 600 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-line { border-color: currentColor; color: inherit; background: transparent; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Bands and sections */
.band { background: var(--band-bg); color: var(--band-fg); }
.band .lede { color: var(--band-muted); }
.section { padding-block: 76px; }
.section-head { display: grid; gap: 12px; margin-bottom: 36px; max-width: 720px; }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 52px; align-items: center; padding-block: 72px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-photos .ph:first-child { grid-row: span 2; --ar: 3 / 4.6; }
.hero-photos .ph { --ar: 4 / 3; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--band-muted); font-size: 0.95rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--cta); }

/* Photo placeholders (swap in real photos) */
.ph { position: relative; aspect-ratio: var(--ar, 4 / 3); max-width: 100%; width: 100%; background: linear-gradient(155deg, var(--ph1), var(--ph2)); border-radius: 8px; overflow: hidden; display: flex; align-items: flex-end; }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph .ph-mark { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ph-ink); opacity: .28; }
.ph .ph-mark svg { width: 34%; max-width: 110px; height: auto; }
.ph .ph-tag { position: relative; margin: 10px; padding: 6px 10px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.ph .play { position: absolute; top: 10px; left: 10px; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); display: grid; place-items: center; }
.ph .play svg { width: 16px; height: 16px; margin-left: 2px; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card { display: grid; gap: 10px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: var(--strong); transform: translateY(-2px); }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--strong); }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--muted); font-size: 0.98rem; }
.card .more { font-weight: 600; color: var(--strong); font-size: 0.95rem; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; counter-reset: step; }
.steps li { display: grid; gap: 8px; counter-increment: step; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: 2.2rem; font-weight: 600; color: var(--cta); line-height: 1; }
.steps p { color: var(--band-muted); }

/* Gallery */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: 500 0.98rem var(--body); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--pill-on); border-color: var(--pill-on); color: var(--pill-on-ink); font-weight: 600; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.gallery figure { margin: 0; display: grid; gap: 10px; }
.gallery figcaption { display: grid; gap: 2px; }
.gallery figcaption strong { font-weight: 600; }
.gallery figcaption span { color: var(--muted); font-size: 0.9rem; }
.empty { color: var(--muted); }

.tile { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; cursor: zoom-in; border-radius: 8px; text-align: left; }
.tile .ph { transition: transform .2s ease; }
.tile:hover .ph { transform: scale(1.015); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 60; background: var(--lb-bg); color: var(--lb-fg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 12px;
  padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.lb-count { font-size: 0.95rem; opacity: .8; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lb-stage .ph { width: min(100%, 960px); max-height: 100%; }
.lb-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--lb-btn); color: var(--lb-fg); display: grid; place-items: center; cursor: pointer; flex: none; }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 0; } .lb-next { right: 0; }
.lb-cap { display: grid; gap: 6px; justify-items: center; text-align: center; }
.lb-cap strong { font-family: var(--display); font-size: 1.3rem; font-weight: 600; }
.lb-cap span { opacity: .75; }
.lb-cap a { color: var(--lb-fg); font-weight: 600; }
@media (max-width: 600px) { .lb-prev, .lb-next { top: auto; bottom: -4px; transform: none; } .lb-stage { padding-bottom: 56px; } }

/* Services page */
.svc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 48px; align-items: start; padding-block: 44px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.svc:first-of-type { border-top: 0; }
.svc-copy { display: grid; gap: 16px; min-width: 0; }
.svc-copy p { color: var(--muted); max-width: 58ch; }
.svc-side { display: grid; gap: 20px; min-width: 0; padding-top: 6px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; flex: none; margin-top: 4px; color: var(--accent-text); }
.media-tag { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.media-tag span { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line); color: var(--muted); }
.jump { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; }

/* About */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: center; }
.prose { display: grid; gap: 16px; min-width: 0; }
.prose p { color: var(--muted); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.fact { padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: grid; gap: 6px; }
.fact p { color: var(--muted); }
.fact a { overflow-wrap: anywhere; }
.site-footer li { overflow-wrap: anywhere; }

/* Quote form */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 40px; align-items: start; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 4vw, 36px); display: grid; gap: 30px; min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
legend { font-family: var(--display); font-weight: 600; font-size: 1.3rem; padding: 0; margin-bottom: 4px; }
.hint { color: var(--muted); font-size: 0.93rem; }
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick { position: relative; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pick span { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 500; user-select: none; }
.pick span svg { width: 16px; height: 16px; display: none; }
.pick input:checked + span { background: var(--pill-on); border-color: var(--pill-on); color: var(--pill-on-ink); font-weight: 600; }
.pick input:checked + span svg { display: block; }
.pick input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--strong); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 35%, transparent); }
.form-error { padding: 12px 16px; border-radius: 12px; border: 1.5px solid #B4432F; color: var(--ink); background: var(--bg); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.form-foot p { color: var(--muted); font-size: 0.93rem; }
.hp { position: absolute; left: -9999px; }
.success { display: grid; gap: 14px; justify-items: start; }
.success .check { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--pill-on); color: var(--pill-on-ink); }
.success .check svg { width: 26px; height: 26px; }
.aside { display: grid; gap: 18px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); }
.aside .fact { background: transparent; }

/* CTA band + footer */
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 56px; }
.cta-band h2 { max-width: 20ch; }
.site-footer { background: var(--band-bg); color: var(--band-muted); border-top: 1px solid color-mix(in srgb, var(--band-fg) 14%, transparent); }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px; padding-block: 52px 36px; }
.site-footer h3 { font-family: var(--body); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-fg); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--band-fg); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .brand { color: var(--band-fg); }
.site-footer .brand svg { color: var(--band-fg); }
.fine { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); font-size: 0.88rem; }

@media (max-width: 900px) {
  .hero .wrap, .svc, .split, .quote-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .aside { position: static; }
  .menu-btn { display: inline-flex; }
  .nav ul { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
  .nav[data-open="true"] ul { display: flex; }
  .nav ul a { padding: 14px 8px; font-size: 1.1rem; }
  .nav .btn-cta { display: none; }
  .section { padding-block: 56px; }
}
@media (max-width: 420px) {
  .brand span { font-size: 1.05rem; }
  .hero-photos { grid-template-columns: 1fr; }
  .hero-photos .ph:first-child { grid-row: auto; --ar: 4 / 3; }
  .hero-photos .ph:nth-child(n+2) { display: none; }
}
