/* ==========================================================
   J&A Lainez Services
   Direction: "Modern Craftsman": deep slate, soft cool neutrals, and a
   copper/amber accent reserved for calls to action (60-30-10).
   The one signature element is the tape-measure ruler edge.
   ========================================================== */

:root {
    /* 60%: light neutrals */
    --paper: #f1f5f9;        /* page background */
    --paper-deep: #e6ecf3;   /* page-head bands */
    --white: #ffffff;        /* cards, forms, alternating sections */
    --line: #d8e0e9;

    /* 30%: slate (structure) */
    --slate-deep: #1e293b;   /* hero, footer, CTA band, headings */
    --slate: #2c3e50;        /* brand mark, badges, secondary buttons */

    /* 10%: accent (calls to action only) */
    --amber: #d97706;        /* button fill: use with slate text, never white */
    --amber-hover: #f59e0b;
    --copper: #c2410c;       /* accent on LIGHT backgrounds only (text, marks, focus) */

    /* text */
    --ink: #1e293b;
    --text: #475569;
    --muted: #5a677a;

    --ok: #1f7a4d;
    --danger: #b3261e;

    --font-head: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --radius: 10px;
    --radius-sm: 6px;
    --wrap: 1140px;
    --shadow: 0 10px 30px rgba(30, 41, 59, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--slate); text-underline-offset: 3px; }
a:hover { color: var(--copper); }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 3px; }
.hero :focus-visible, .site-footer :focus-visible, .cta-band :focus-visible, .cb-head :focus-visible { outline-color: var(--amber); }

h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
    position: absolute; left: 12px; top: -60px; background: var(--amber); color: var(--ink);
    padding: 10px 16px; z-index: 200; font-weight: 600; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 12px; }
.rounded { border-radius: var(--radius); }

/* ---------- Custom SVG icons (sprite inlined in header.php) ---------- */
.icon { width: 1.5rem; height: 1.5rem; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.emoji { width: 3rem; height: 3rem; flex-shrink: 0; }

/* ---------- Signature: tape-measure edge ---------- */
.ruler {
    height: 22px;
    color: rgba(255, 255, 255, .5);
    background:
        repeating-linear-gradient(90deg, currentColor 0 1px, transparent 1px 10px) left bottom / 100% 8px no-repeat,
        repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 50px) left bottom / 100% 20px no-repeat;
}
.ruler-dark { color: rgba(30, 41, 59, .55); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4em;
    padding: .8em 1.35em; min-height: 48px;
    font: 600 1rem/1.2 var(--font-body);
    border: 2px solid transparent; border-radius: var(--radius-sm);
    text-decoration: none; cursor: pointer;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.btn-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--ink); }
.btn-secondary { background: transparent; color: var(--slate); border-color: var(--slate); }
.btn-secondary:hover { background: var(--slate); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
/* Dark header: the company logo is white artwork, so it lives on slate. */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--slate-deep); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 84px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; padding: 8px 0; }
.brand img { display: block; height: 66px; width: auto; }
.brand-mark {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm);
    background: var(--slate); color: var(--amber); font: 800 1rem/1 var(--font-head); letter-spacing: .01em;
}
.brand-text { font: 800 1.2rem/1 var(--font-head); letter-spacing: -.02em; }
.brand-text small { display: block; font: 500 .8rem/1.3 var(--font-body); color: rgba(255, 255, 255, .75); letter-spacing: 0; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 26px; }
.site-nav a:not(.btn) { color: #fff; text-decoration: none; font-weight: 500; padding: 8px 0; }
.site-nav a:not(.btn):hover { color: #fff; text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.has-sub { position: relative; }
.sub {
    position: absolute; top: 100%; left: -16px; min-width: 250px; padding: 8px !important;
    flex-direction: column; align-items: stretch !important; gap: 0 !important;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); display: none !important;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: flex !important; }
.sub a:not(.btn) { display: block; padding: 10px 12px !important; border-radius: var(--radius-sm); color: var(--ink); }
.sub a:not(.btn):hover { background: var(--paper); color: var(--ink); text-decoration: none !important; }

.nav-toggle {
    display: none; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .4); background: transparent;
    border-radius: var(--radius-sm); cursor: pointer; place-items: center;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; content: "";
}
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after { position: absolute; top: 7px; }

/* ---------- Hero ---------- */
.hero {
    position: relative; color: #fff; padding: 56px 0 0;
    background-color: var(--slate-deep);
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 44px 44px;
}
.hero.has-photo {
    background-image: linear-gradient(rgba(30, 41, 59, .72), rgba(30, 41, 59, .72)), var(--hero-image);
    background-size: cover; background-position: center;
}
/* On wide screens the text sits on the left and the form card covers the right, so let more photo show through on the right. */
@media (min-width: 961px) {
    .hero.has-photo {
        background-image: linear-gradient(90deg, rgba(30, 41, 59, .84) 0%, rgba(30, 41, 59, .70) 50%, rgba(30, 41, 59, .52) 100%), var(--hero-image);
    }
}
.hero h1, .hero .crumbs, .hero .crumbs a { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; padding-bottom: 56px; }
.hero-copy { padding-top: 12px; }
.hero-sub { font-size: 1.2rem; max-width: 34em; color: rgba(255, 255, 255, .92); }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 8px; }
.hero-points li { padding-left: 28px; position: relative; color: rgba(255, 255, 255, .92); }
.hero-points li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 8px;
    border-left: 3px solid var(--amber); border-bottom: 3px solid var(--amber); transform: rotate(-45deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.crumbs { font-size: .92rem; margin-bottom: 14px; color: var(--muted); }
.crumbs a { color: inherit; }
.hero-service .hero-grid { padding-top: 8px; }

.page-head { padding: 48px 0 0; background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.page-head .wrap { padding-bottom: 36px; }
.page-head .ruler { color: rgba(30, 41, 59, .3); }
.lede { font-size: 1.2rem; max-width: 40em; color: var(--muted); }

/* ---------- Lead form ---------- */
.form-card {
    background: var(--white); color: var(--text); border-radius: var(--radius); padding: 26px;
    box-shadow: var(--shadow); border-top: 6px solid var(--amber);
}
.form-title { font-size: 1.45rem; margin-bottom: .2em; }
.form-lede { color: var(--muted); margin-bottom: 1em; font-size: .98rem; }
.field { margin-bottom: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 4px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 11px 12px; font: inherit; color: var(--ink);
    border: 1px solid #b4c0cd; border-radius: var(--radius-sm); background: var(--white);
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--copper); outline-offset: 0; border-color: var(--copper); }
.field .invalid { border-color: var(--danger); }
.ts-slot { margin: 4px 0 14px; }
.ts-slot.on { min-height: 0; }
.cb-leadform .ts-slot { margin: 2px 0 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { color: var(--danger); font-weight: 500; margin: 0 0 10px; font-size: .95rem; }
.form-fine { text-align: center; font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.form-success { text-align: center; padding: 10px 0; }
.success-emoji { display: block; width: 72px; height: 72px; margin: 0 auto 6px; }
.page-emoji { display: block; width: 84px; height: 84px; margin-bottom: 14px; }
.form-success h3 { color: var(--ok); font-size: 1.4rem; }
.lead-form button[disabled] { opacity: .65; cursor: wait; }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-tint { background: var(--white); }
.section-head { max-width: 46em; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }
.trust { background: var(--white); border-bottom: 1px solid var(--line); }
.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 22px 0; }
.trust-row p { margin: 0; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .98rem; line-height: 1.35; }
.trust-icon { width: 34px; height: 34px; color: var(--copper); }
.trust-row strong { display: block; color: var(--ink); font: 800 1.15rem/1.2 var(--font-head); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.svc-card {
    display: flex; flex-direction: column; background: var(--white); color: var(--text); text-decoration: none;
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    transition: border-color .15s, box-shadow .15s;
}
.svc-card:hover { border-color: var(--slate); box-shadow: var(--shadow); color: var(--text); }
.svc-card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.svc-card-body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; border-top: 4px solid var(--amber); }
.svc-card-head { display: flex; align-items: center; gap: 14px; }
.svc-card-emoji { width: 54px; height: 54px; }
.svc-card-name { font: 800 1.3rem/1.15 var(--font-head); letter-spacing: -.01em; color: var(--ink); }
.svc-card-text { color: var(--muted); font-size: .98rem; }
.svc-card-link { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--copper); text-decoration: underline; text-underline-offset: 3px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-top { align-items: start; }
.split-media img { width: 100%; object-fit: cover; }
.prose { max-width: 40em; }
.prose p { max-width: 65ch; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.5em; display: grid; gap: 10px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
    content: ""; position: absolute; left: 0; top: .5em; width: 16px; height: 8px;
    border-left: 3px solid var(--copper); border-bottom: 3px solid var(--copper); transform: rotate(-45deg);
}

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px; }
.steps li { counter-increment: step; position: relative; padding-top: 56px; }
.steps li::before {
    content: counter(step); position: absolute; top: 0; left: 0; width: 42px; height: 42px; display: grid; place-items: center;
    background: var(--slate-deep); color: var(--amber); font: 800 1.15rem/1 var(--font-head); border-radius: var(--radius-sm);
}
.steps h3 { margin-bottom: .3em; }
.steps p { color: var(--muted); margin: 0; }

.include-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 0 40px; }
.include-grid li { padding: 20px 0; border-top: 2px solid var(--ink); }
.include-grid h3 { margin-bottom: .25em; }
.include-grid p { margin: 0; color: var(--muted); }

.review { margin: 0; padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); border-top: 4px solid var(--amber); }
.review blockquote { margin: 0 0 14px; font-size: 1.05rem; }
.review figcaption { font-weight: 600; }
.review figcaption span { font-weight: 400; color: var(--muted); }

.faq-wrap { max-width: 820px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 22px; color: var(--ink); font: 600 1.08rem/1.35 var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--copper); flex-shrink: 0; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

.related-h { margin: 44px 0 16px; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 10px 18px; border: 1px solid var(--slate); border-radius: 999px; text-decoration: none; font-weight: 500; }
.pill:hover { background: var(--slate); color: #fff; }
ul.pill-list { list-style: none; margin: 0; padding: 0; }
.pill-static li { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-weight: 500; font-size: .96rem; }
.pill-all { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }
.pill-all:hover { background: var(--slate); color: #fff; }

/* ---------- City pages ---------- */
.area-aside h3 { margin: 0 0 14px; }
.note-box { margin-top: 24px; padding: 20px 22px; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--copper); border-radius: var(--radius); }
.note-box h3 { margin-bottom: .3em; }
.note-box p { margin: 0; }
.note-wide { margin-top: 36px; max-width: 46em; }
.more-h { margin: 44px 0 16px; }
.area-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.include-grid-2 { grid-template-columns: repeat(2, 1fr); }
.area-tile {
    display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); font-weight: 600;
    transition: border-color .15s, box-shadow .15s;
}
.area-tile span { flex: 1; }
.area-tile:hover { border-color: var(--slate); box-shadow: var(--shadow); color: var(--ink); }
.area-tile-emoji { width: 46px; height: 46px; }
.area-tile-arrow { width: 1.25rem; height: 1.25rem; color: var(--copper); }
.area-card-pin { width: 34px; height: 34px; color: var(--copper); }

.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.contact-card h3 { margin-top: 1.4em; }
.contact-line { display: grid; grid-template-columns: 9em 1fr; gap: 8px; margin: 0 0 .7em; }
.contact-line span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; }
.contact-line .icon { width: 1.2rem; height: 1.2rem; color: var(--copper); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--slate); color: rgba(255, 255, 255, .9); }
.cta-band .ruler { color: rgba(255, 255, 255, .4); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 0 52px; flex-wrap: wrap; }
.cta-band h2 { margin-bottom: .2em; color: #fff; }
.cta-band p { margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--slate-deep); color: rgba(255, 255, 255, .86); }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding: 44px 0 32px; }
.footer-brand { font: 800 1.25rem/1.2 var(--font-head); color: #fff; margin-bottom: .5em; }
.footer-logo { display: block; width: 190px; height: auto; margin-bottom: 18px; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact .icon { width: 1.25rem; height: 1.25rem; color: var(--amber); }
.footer-h { font: 600 1rem/1.3 var(--font-head); color: var(--amber); margin-bottom: .7em; }
.footer-h-space { margin-top: 1.6em; }
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-areas-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: .95rem; }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .15); padding: 18px 0 24px; font-size: .9rem; }
.staff-link { opacity: .8; font-size: .85rem; }
.staff-link:hover { opacity: 1; }
.footer-legal p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }  /* shown only in the phone media query below */

/* ---------- Chatbot ---------- */
.cb-launcher {
    position: fixed; right: 20px; bottom: 20px; z-index: 150; display: flex; align-items: center; gap: 10px;
    padding: 14px 20px; min-height: 56px; border: 0; border-radius: 999px; cursor: pointer;
    background: var(--slate); color: #fff; font: 600 1rem/1 var(--font-body); box-shadow: var(--shadow);
}
.cb-launcher:hover { background: var(--slate-deep); }
.cb-launcher svg { width: 22px; height: 22px; flex-shrink: 0; }
.cb-panel {
    position: fixed; right: 20px; bottom: 20px; z-index: 160; width: min(390px, calc(100vw - 24px));
    height: min(600px, calc(100vh - 40px)); display: none; flex-direction: column;
    background: var(--white); border-radius: 14px; box-shadow: 0 18px 50px rgba(30, 41, 59, .32); overflow: hidden;
    border: 1px solid var(--line);
}
.cb-panel.open { display: flex; animation: cb-in .18s ease-out; }
@keyframes cb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--slate); color: #fff; border-bottom: 4px solid var(--amber); }
.cb-lead { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cb-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; background: #fff; border-radius: 50%; }
.cb-avatar .emoji { width: 32px; height: 32px; }
.cb-title { font: 800 1.05rem/1.2 var(--font-head); }
.cb-title small { display: block; font: 400 .82rem/1.3 var(--font-body); color: rgba(255, 255, 255, .8); }
.cb-close { background: transparent; border: 0; color: #fff; width: 40px; height: 40px; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: var(--radius-sm); }
.cb-close:hover { background: rgba(255, 255, 255, .15); }
.cb-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.cb-msg { max-width: 88%; padding: 10px 14px; border-radius: 12px; font-size: .98rem; line-height: 1.45; white-space: pre-line; }
.cb-msg-bot { align-self: flex-start; background: var(--white); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.cb-msg-user { align-self: flex-end; background: var(--slate); color: #fff; border-bottom-right-radius: 3px; }
.cb-msg a { color: inherit; font-weight: 600; }
.cb-chips { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.cb-chip {
    text-align: left; padding: 10px 14px; font: 500 .96rem/1.3 var(--font-body); color: var(--slate-deep);
    background: var(--white); border: 1.5px solid var(--slate); border-radius: 999px; cursor: pointer;
}
.cb-chip:hover { background: var(--slate); color: #fff; }
.cb-chip-primary { background: var(--amber); border-color: var(--amber); color: var(--ink); font-weight: 600; }
.cb-chip-primary:hover { background: var(--amber-hover); border-color: var(--amber-hover); color: var(--ink); }
.cb-leadform { display: grid; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.cb-leadform input, .cb-leadform textarea {
    width: 100%; padding: 10px 12px; font: inherit; font-size: .96rem; border: 1px solid #b8c5d2; border-radius: var(--radius-sm);
}
.cb-leadform input:focus, .cb-leadform textarea:focus { outline: 3px solid var(--copper); outline-offset: 0; }
.cb-error { color: var(--danger); font-size: .9rem; margin: 0; }
.cb-send { padding: 11px 16px; border: 0; border-radius: var(--radius-sm); cursor: pointer; background: var(--amber); color: var(--ink); font: 600 1rem/1 var(--font-body); }
.cb-send[disabled] { opacity: .6; cursor: wait; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid, .split { grid-template-columns: 1fr; gap: 32px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-row { grid-template-columns: 1fr 1fr; }

    .nav-toggle { display: grid; }
    .site-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
        gap: 0; padding: 12px 20px 24px; background: var(--slate-deep); border-bottom: 1px solid rgba(255, 255, 255, .12); box-shadow: var(--shadow);
        max-height: calc(100vh - 84px); overflow-y: auto;
    }
    .site-nav.open { display: flex; }
    .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .site-nav a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
    .sub { position: static; display: flex !important; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px !important; min-width: 0; }
    .site-nav .sub a:not(.btn) { color: rgba(255, 255, 255, .88); border-radius: 0; }
    .site-nav .sub a:not(.btn):hover { background: transparent; color: #fff; text-decoration: underline !important; }
    .site-nav .btn { margin-top: 16px; }
}

@media (max-width: 640px) {
    body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
    .header-row { min-height: 72px; }
    .brand img { height: 52px; }
    .site-nav { max-height: calc(100vh - 72px); }
    .section { padding: 52px 0; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .form-card { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .trust-row { grid-template-columns: 1fr; }
    .contact-line { grid-template-columns: 1fr; gap: 0; }
    .card-grid { grid-template-columns: 1fr; }
    .include-grid-2 { grid-template-columns: 1fr; }
    .cta-row { padding: 36px 0 44px; }

    /* Bottom navigation: phones only. Center button is the quote. */
    .mobile-bar {
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 140;
        background: var(--slate-deep); border-top: 1px solid rgba(255, 255, 255, .14);
        padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(30, 41, 59, .25);
    }
    .mbar-item {
        display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px;
        min-height: 64px; padding: 8px 2px 9px; background: none; border: 0; border-radius: 0; cursor: pointer;
        color: rgba(255, 255, 255, .86); font: 600 .72rem/1 var(--font-body); text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }
    .mbar-item .icon { width: 24px; height: 24px; }
    .mbar-item span { white-space: nowrap; }
    .mbar-item[aria-current="page"] { color: var(--amber); }
    .mbar-item:active { background: rgba(255, 255, 255, .08); }
    .mbar-item:focus-visible { outline: 3px solid var(--amber); outline-offset: -3px; }
    .mbar-quote { position: relative; color: #fff; }
    .mbar-quote-btn {
        position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
        display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
        background: var(--amber); color: var(--ink); border: 5px solid var(--slate-deep);
        box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
    }
    .mbar-quote-btn .icon { width: 26px; height: 26px; }
    .mbar-quote:active .mbar-quote-btn, .mbar-quote[aria-current="page"] .mbar-quote-btn { background: var(--amber-hover); }
    .mbar-quote[aria-current="page"] { color: var(--amber); }

    /* The bottom nav has a Chat button, so the floating launcher is hidden on phones. */
    .cb-launcher { display: none !important; }
    .cb-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .cb-panel.open { animation: none; }
    * { transition: none !important; }
}

/* ---------- Privacy / legal pages ---------- */
.legal { max-width: 800px; }
.legal h2 { font-size: 1.5rem; margin: 2.2em 0 .5em; }
.legal > h2:first-child, .legal-summary h2, .legal-toc h2 { margin-top: 0; }
.legal p, .legal li { max-width: 70ch; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: .55em; }
.legal a { color: var(--copper); font-weight: 500; }
.legal-summary { background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 22px 26px; margin-bottom: 28px; }
.legal-summary h2 { font-size: 1.25rem; }
.legal-summary ul { margin: 0; }
.legal-toc { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 26px; margin-bottom: 8px; }
.legal-toc h2 { font-size: 1.05rem; margin-bottom: .5em; }
.legal-toc ol { margin: 0; columns: 2; column-gap: 32px; }
.legal-toc li { margin-bottom: .35em; break-inside: avoid; }
.legal-table { width: 100%; border-collapse: collapse; margin: 14px 0 22px; background: var(--white); border: 1px solid var(--line); }
.legal-table th { text-align: left; padding: 12px 14px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-deep); border-bottom: 2px solid var(--ink); }
.legal-table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.legal-table td:first-child { font-weight: 600; color: var(--ink); width: 22%; }
.form-privacy { text-align: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.form-privacy a { color: inherit; }
.cb-note { margin: 0; font-size: .8rem; color: var(--muted); }
.cb-note a { color: inherit; }
@media (max-width: 640px) {
    .legal-toc ol { columns: 1; }
    .legal-table thead { display: none; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
    .legal-table tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
    .legal-table td { border: 0; padding: 4px 0; }
    .legal-table td:first-child { width: 100%; font-size: 1.05rem; }
    .legal-table td[data-label]::before { content: attr(data-label) ": "; display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-top: 6px; }
    .legal-table td:first-child::before { display: none; }
}

/* ---------- Project gallery ---------- */
.g-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.g-chip {
    padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink);
    font: 600 .95rem var(--font-body); cursor: pointer; min-height: 44px;
}
.g-chip b { margin-left: 6px; color: var(--muted); font-weight: 600; }
.g-chip:hover { border-color: var(--slate); }
.g-chip[aria-pressed="true"] { background: var(--slate-deep); border-color: var(--slate-deep); color: #fff; }
.g-chip[aria-pressed="true"] b { color: var(--amber); }

.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.g-cell[hidden] { display: none; }
.g-item { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--radius); background: var(--paper-deep); text-decoration: none; }
.g-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.04); }
.g-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 14px 12px; color: #fff; font: 600 .92rem/1.3 var(--font-body);
    background: linear-gradient(to top, rgba(30, 41, 59, .88), rgba(30, 41, 59, 0));
}
.g-play {
    position: absolute; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%;
    background: rgba(30, 41, 59, .78); border: 2px solid rgba(255, 255, 255, .9);
}
.g-play::after { content: ""; position: absolute; top: 50%; left: 50%; margin: -9px 0 0 -6px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }

/* Home page teaser */
.g-teaser { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.g-teaser .g-cap { font-size: .8rem; padding: 28px 10px 9px; }
.g-more { margin: 26px 0 0; }

/* Pop-up viewer */
body.g-lock { overflow: hidden; }
.g-box { position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; background: rgba(11, 18, 32, .985); color: #fff; }
.g-box[hidden] { display: none; }
.g-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; min-height: 60px; }
.g-count { font: 600 .95rem var(--font-body); color: rgba(255, 255, 255, .85); }
.g-btn { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: rgba(30, 41, 59, .7); color: #fff; font-size: 1.9rem; line-height: 1; cursor: pointer; }
.g-btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.g-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.g-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 0 12px; }
.g-media { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.g-img, .g-video { max-width: 100%; max-height: 100%; border-radius: 6px; object-fit: contain; background: #0f172a; }
.g-caption { margin: 0; padding: 12px 20px 22px; text-align: center; font: 600 1rem/1.4 var(--font-body); color: #fff; }
@media (max-width: 640px) {
    .g-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .g-teaser { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .g-cap { font-size: .82rem; padding: 30px 10px 10px; }
    .g-stage { padding: 0 4px; gap: 4px; position: relative; }
    .g-nav { position: absolute; top: 50%; margin-top: -24px; width: 44px; height: 44px; z-index: 2; background: rgba(15, 23, 42, .6); }
    .g-prev { left: 8px; }
    .g-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) { .g-item img { transition: none; } .g-item:hover img { transform: none; } }

/* ---------- Picture areas when there is no photo yet: a branded illustration tile ---------- */
.svc-card-art, .split-art {
    display: grid; place-items: center; background-color: var(--paper-deep);
    background-image:
        linear-gradient(rgba(30, 41, 59, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 41, 59, .06) 1px, transparent 1px);
    background-size: 28px 28px;
}
.svc-card-art { aspect-ratio: 16 / 10; width: 100%; }
.svc-card-art-emoji { width: 38%; height: auto; max-height: 76%; }
.split-art { aspect-ratio: 16 / 10; border-radius: var(--radius); border: 1px solid var(--line); }
.split-art-emoji { width: 34%; height: auto; }
