/* ============================================================
   DESIGN TOKENS
   Palette pulled from the actual material: sun-bleached adobe,
   troweled plaster shadow, high-desert turquoise, Chimayo red.
   Deliberately NOT the generic cream/terracotta AI-default —
   that palette is almost the literal color of stucco itself,
   which would read as flat rather than intentional.
   ============================================================ */
:root {
    --clay: #C97B4A;          /* primary accent — sun-warmed adobe */
    --charcoal-plaster: #2B2620; /* near-black, warm not cool */
    --sand: #EDE3D0;          /* light background */
    --plaster-white: #F7F3EA; /* card background */
    --turquoise: #2B6D6D;     /* secondary accent — Southwest jewelry */
    --chimayo: #A63D2F;       /* CTA / urgency accent */
    --line: rgba(43,38,32,0.12);

    --font-display: 'Zilla Slab', Georgia, serif;
    --font-body: 'Public Sans', -apple-system, sans-serif;

    --radius: 3px; /* stucco isn't rounded — keep corners restrained */

    /* Troweled-plaster grain. Generated, not photographed: the finish
       coat IS aggregate noise, so feTurbulence is the honest primitive
       here. Opacity is baked into the SVG so the tile can sit directly
       in a background stack without a extra overlay element. */
    --plaster-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)' opacity='0.055'/%3E%3C/svg%3E");

    /* A single wide trowel pass, tapering as it lifts off the wall.
       Same gesture as .trowel-divider, scaled up to sit behind the
       hero instead of between sections. */
    --trowel-sweep: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='520' viewBox='0 0 900 520'%3E%3Cg fill='none' stroke-linecap='round'%3E%3Cpath d='M60 430 C 300 380 520 300 860 90' stroke='%23C97B4A' stroke-width='46' opacity='0.09'/%3E%3Cpath d='M40 470 C 320 430 600 340 880 160' stroke='%232B6D6D' stroke-width='22' opacity='0.07'/%3E%3Cpath d='M80 392 C 340 344 560 268 840 60' stroke='%23C97B4A' stroke-width='8' opacity='0.10'/%3E%3C/g%3E%3C/svg%3E");
}

@font-face {
    font-family: 'Zilla Slab';
    src: local('Zilla Slab');
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    background-color: var(--sand);
    background-image: var(--plaster-grain);
    color: var(--charcoal-plaster);
    line-height: 1.55;
}

a { color: inherit; }

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================================
   SIGNATURE ELEMENT: trowel-swipe divider
   A single curved, tapered stroke — the shape a trowel leaves
   when finishing a stucco pass. Used once per page, at section
   boundaries, not as decoration everywhere.
   ============================================================ */
.trowel-divider {
    width: 100%;
    height: 28px;
    margin: 0;
    display: block;
}
.trowel-divider path {
    fill: none;
    stroke: var(--clay);
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.55;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    background: var(--charcoal-plaster);
    color: var(--plaster-white);
    padding: 18px 0;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--plaster-white);
}
.brand span { color: var(--clay); }

.header-cta {
    display: flex;
    align-items: center;
    gap: 14px;
}
.phone-link {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--plaster-white);
    text-decoration: none;
    border-bottom: 2px solid var(--clay);
    padding-bottom: 2px;
}

nav.main-nav {
    background: var(--plaster-white);
    border-bottom: 1px solid var(--line);
}
nav.main-nav .container {
    display: flex;
    gap: 28px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 0.92rem;
}
nav.main-nav a {
    text-decoration: none;
    color: var(--charcoal-plaster);
    opacity: 0.75;
}
nav.main-nav a:hover { opacity: 1; }

/* ============================================================
   HERO
   Asymmetric: headline + trust stat block, not a centered
   generic hero. The stat is the most characteristic thing in
   this business's world — a real number, not a filler metric.
   ============================================================ */
.hero {
    padding: 64px 0 48px;
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    background-image: var(--trowel-sweep);
    background-repeat: no-repeat;
    background-position: right -80px top -40px;
    background-size: 900px auto;
}
@media (prefers-reduced-motion: no-preference) {
    .hero { background-attachment: local; }
}
.hero h1 {
    font-family: var(--font-display);
    font-size: 2.75rem;
    line-height: 1.12;
    margin: 0 0 18px;
    font-weight: 600;
}
.hero h1 em {
    font-style: normal;
    color: var(--clay);
}
.hero p.lede {
    font-size: 1.1rem;
    max-width: 46ch;
    opacity: 0.85;
    margin-bottom: 28px;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.98rem;
    padding: 13px 26px;
    border-radius: var(--radius);
    text-decoration: none;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--chimayo);
    color: var(--plaster-white);
}
.btn-secondary {
    background: transparent;
    border-color: var(--charcoal-plaster);
    color: var(--charcoal-plaster);
}

.hero-stat-card {
    background: var(--charcoal-plaster);
    color: var(--plaster-white);
    padding: 32px;
    border-radius: var(--radius);
    border-left: 5px solid var(--turquoise);
}
.hero-stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--clay);
    display: block;
    line-height: 1;
    margin-bottom: 8px;
}
.hero-stat-card .stat-label {
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 48px 0; }
.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    color: var(--turquoise);
    font-weight: 700;
    margin-bottom: 8px;
}
h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin: 0 0 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: var(--plaster-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 26px;
}
.card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    margin: 0 0 10px;
}
/* Line marks, not illustrations. Each one draws the thing being
   repaired, so it carries information rather than decorating. */
.card-icon {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    color: var(--clay);
}
.card-icon [stroke] { vector-effect: non-scaling-stroke; }
.service-hero-icon {
    width: 52px;
    height: 52px;
    color: var(--clay);
    margin-bottom: 12px;
}
.card a.card-link {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--chimayo);
    text-decoration: none;
}

.city-list-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.city-pill {
    background: var(--plaster-white);
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    text-decoration: none;
    color: var(--charcoal-plaster);
}

.why-list { list-style: none; padding: 0; margin: 0; }
.why-list li {
    padding: 14px 0 14px 32px;
    border-bottom: 1px solid var(--line);
    position: relative;
}
.why-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--clay);
    font-weight: 700;
}

/* ============================================================
   ILLUSTRATIONS
   Hand-drawn SVG, not photography — see the niche config for why.
   Sized by aspect ratio so nothing reflows once they load.
   ============================================================ */
.illustration-band {
    padding: 8px 0 40px;
}
.illustration-band img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 900 / 400;
}

.lead-ledger { margin-bottom: 22px; }
.ledger-figures { display: flex; flex-wrap: wrap; gap: 34px; }
.ledger-number { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1.1; color: var(--clay); }
.ledger-label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.ledger-cities { margin: 18px 0 0; font-size: 0.9rem; opacity: 0.85; }

.page-body { max-width: 68ch; margin-bottom: 40px; }
.page-body p { margin: 0 0 18px; }
.page-body h2 { font-family: var(--font-display); font-size: 1.45rem; margin: 34px 0 12px; }

.faq-block { max-width: 68ch; margin: 0 0 44px; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0 4px; }
.faq-item h3 { font-family: var(--font-display); font-size: 1.1rem; margin: 0 0 8px; }
.faq-item p { margin: 0; opacity: 0.88; }

.diagram-block { margin: 8px 0 44px; }
.diagram-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 18px;
}
.diagram-grid figure { margin: 0; }
.diagram-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}
.diagram-grid figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}
.diagram-grid figcaption strong { display: block; font-family: var(--font-display); opacity: 1; }
.diagram-note {
    margin-top: 18px;
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 68ch;
}
@media (max-width: 760px) {
    .diagram-grid { grid-template-columns: 1fr; }
    .diagram-grid figure { max-width: 420px; }
}

/* ============================================================
   FORM
   ============================================================ */
.quote-form {
    background: var(--plaster-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    max-width: 520px;
}
.honeypot {
    position: absolute;
    left: -9999px;
}
.quote-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    margin-top: 16px;
}
.quote-form label:first-child { margin-top: 0; }
.quote-form input, .quote-form textarea, .quote-form select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background: #fff;
}
.quote-form button {
    margin-top: 22px;
    width: 100%;
    border: none;
    cursor: pointer;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    background: var(--charcoal-plaster);
    color: var(--plaster-white);
    padding: 40px 0 28px;
    margin-top: 40px;
    font-size: 0.88rem;
}
footer .container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
footer a { text-decoration: none; opacity: 0.8; }
footer .footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    margin: 0 0 10px;
    color: var(--clay);
}
footer .footer-col a { display: block; margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 800px) {
    .hero { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    nav.main-nav .container { flex-wrap: wrap; gap: 14px; }
    .hero h1 { font-size: 2.1rem; }
}

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

/* Visible keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 2px;
}
