:root {
  --ink: #141414;
  --ink-2: #4d4a45;
  --stone: #f3efe7;
  --stone-2: #e4dccd;
  --sand: #e0b566;
  --turf: #c28939;
  --turf-dark: #8a5f22;
  --white: #fffdf9;
  --err: #a8321f;
  --radius: 10px;
  --wrap: 1120px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turf-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 .5em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 0 0 .35em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; scroll-margin-top: 5.5rem; }
.field { scroll-margin-top: 6rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); }
.fine { font-size: .875rem; color: var(--ink-2); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }

/* buttons */
.btn {
  display: inline-block; background: var(--turf); color: #141414; text-decoration: none; font-weight: 650;
  padding: .65rem 1.1rem; border-radius: var(--radius); border: 2px solid var(--turf); cursor: pointer; font-size: 1rem;
}
.btn:hover { background: #d9a14b; border-color: #d9a14b; }
.btn.big { padding: .9rem 1.4rem; font-size: 1.08rem; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.ghost.light { color: #fff; border-color: rgba(255,255,255,.8); }
.btn.ghost.light:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: .65; cursor: wait; }

/* header */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone-2); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; gap: 1rem; padding: .7rem 0; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); font-weight: 800; letter-spacing: .04em; line-height: 1; }
.brand small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .28em; color: var(--ink-2); margin-top: .2rem; }
.nav { display: flex; gap: 1.1rem; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--turf-dark); text-decoration: underline; text-underline-offset: 4px; }
.actions { display: flex; align-items: center; gap: .7rem; }
.lang { font-weight: 600; color: var(--ink-2); }
@media (max-width: 860px) {
  .nav { order: 3; width: 100%; margin-left: 0; flex-wrap: wrap; gap: .3rem 1.2rem; }
  .site-header { position: static; }
  section { scroll-margin-top: 0; }
  .actions { margin-left: auto; }
  .call { display: none; }
}

/* hero */
.hero {
  background:
    linear-gradient(135deg, rgba(20,20,20,.94), rgba(20,20,20,.84)),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(194,137,57,.16) 46px 48px),
    repeating-linear-gradient(90deg, transparent 0 94px, rgba(194,137,57,.16) 94px 96px),
    var(--ink);
  color: #fff; padding: clamp(3.5rem, 9vw, 6.5rem) 0;
}
.hero .lead { color: rgba(255,255,255,.86); max-width: 40rem; }
.hero h1 { max-width: 18ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 1rem; }
.note { color: var(--sand); font-weight: 600; font-size: .95rem; margin: 0; }

/* hero photo (hero image in CSS keeps the CSP style-src 'self') */
.hero.has-photo {
  background:
    linear-gradient(90deg, rgba(20,20,20,.93) 0%, rgba(20,20,20,.8) 45%, rgba(20,20,20,.35) 100%),
    url("/photos/project-12.jpg") center 60% / cover no-repeat,
    var(--ink);
}
@media (max-width: 700px) {
  .hero.has-photo { background: linear-gradient(180deg, rgba(20,20,20,.80), rgba(20,20,20,.88)), url("/photos/project-12-sm.jpg") center / cover no-repeat, var(--ink); }
}

/* services */
.services { background: var(--stone); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.2rem; }
.card { background: var(--white); border-radius: var(--radius); padding: 1.6rem; border-top: 6px solid var(--turf); }
.card.walls, .card.turf { border-top-color: var(--ink); }
.card a { font-weight: 650; }

/* reel */
.reel { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 2rem; align-items: center; margin-bottom: 2rem; }
.phone { background: #111; border-radius: 28px; padding: 10px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.phone video { width: 100%; height: auto; border-radius: 20px; display: block; aspect-ratio: 9 / 16; background: #000; }
@media (max-width: 640px) { .reel { grid-template-columns: 1fr; } .phone { max-width: 320px; margin: 0 auto; } }

/* gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.gallery img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.02); }

/* steps */
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 3rem; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; top: 0; left: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700;
}

/* area */
.area { background: var(--stone); }
.cities { list-style: none; padding: 0; margin: 1rem 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cities li { background: var(--white); border: 1px solid var(--stone-2); border-radius: 999px; padding: .35rem .85rem; font-weight: 550; }
section:not(.area) .cities li { background: var(--stone); }

/* page head */
.page-head { background: var(--stone); padding-bottom: 2.5rem; }
.ticks { padding-left: 1.2rem; }
.ticks li { margin: .4rem 0; }

/* quote form */
.quote { background: var(--ink); color: #fff; }
.quote .lead { color: rgba(255,255,255,.82); }
.quote a { color: var(--sand); }
.qform { background: var(--white); color: var(--ink); border-radius: var(--radius); padding: clamp(1.2rem, 4vw, 2rem); margin-top: 1.5rem; }
.qform a { color: var(--turf-dark); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 1rem; }
.field { margin: 0 0 1rem; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: .35rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="number"], .field textarea {
  width: 100%; font: inherit; padding: .7rem .8rem; border: 1.5px solid #b9b2a4; border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--turf); outline: none; box-shadow: 0 0 0 3px rgba(194,137,57,.3); }
.field input:disabled { background: var(--stone); }
.field [aria-invalid="true"] { border-color: var(--err); }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { display: flex !important; align-items: center; gap: .45rem; font-weight: 550 !important; border: 1.5px solid #b9b2a4; border-radius: 8px; padding: .55rem .8rem; cursor: pointer; margin: 0 !important; }
.choice:has(input:checked) { border-color: var(--turf); background: rgba(194,137,57,.12); }
.sqft { display: flex; gap: .8rem; align-items: center; }
.sqft input[type="number"] { flex: 1; }
.check { display: flex !important; align-items: center; gap: .4rem; white-space: nowrap; margin: 0 !important; font-weight: 550 !important; }
.help { font-size: .85rem; color: var(--ink-2); margin: .3rem 0 0; }
.err { color: var(--err); font-size: .88rem; margin: .3rem 0 0; min-height: 0; }
.err:empty { display: none; }
.form-status { font-weight: 650; }
.form-status.bad { color: var(--err); }
.form-status.good { color: var(--turf-dark); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* faq */
.faq details { border-bottom: 1px solid var(--stone-2); padding: .9rem 0; }
.faq summary { font-weight: 650; cursor: pointer; }
.faq details p { margin: .6rem 0 0; color: var(--ink-2); }

/* footer */
.site-footer { background: #0d0d0d; color: rgba(255,255,255,.85); padding: 2.5rem 0 1.5rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.site-footer p { margin: .3rem 0; }
.brand-foot { font-weight: 800; color: #fff; }
.site-footer .fine { color: rgba(255,255,255,.6); margin: 1.5rem auto 0; }

@media (max-width: 480px) {
  .brand span { font-size: .85rem; }
  .brand img { width: 28px; height: 28px; }
  .actions { gap: .5rem; }
  .actions .btn { padding: .5rem .75rem; font-size: .95rem; }
  .bar { gap: .6rem; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
