/* ==========================================================================
   Vhathenzheni v2: app-like on phones, calm two-column site on desktop.
   Loaded instead of style.css on pages that use shared/v2-header.php.
   ========================================================================== */

:root {
    --forest: #0e4c12;
    --forest-hover: #0b3f0f;
    --canopy: #0a360d;
    --leaf: #d5d310;
    --ink: #18231a;
    --moss: #56645a;
    --field: #eef2ec;
    --surface: #ffffff;
    --rule: #d9e0d6;
    --forest-tint: #e3ecdf;

    --radius-l: 22px;
    --radius-m: 14px;
    --radius-s: 10px;

    --appbar-h: 60px;
    --tabbar-h: 64px;
    --gutter: 20px;

    /* Zilla Slab: slab-serif headings, like stamped nameplates and drawing title blocks.
       Atkinson Hyperlegible Next: body text designed by the Braille Institute for easy reading. */
    --font-display: "Zilla Slab", Rockwell, Georgia, serif;
    --font-body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-reduced-motion: no-preference) {
    @view-transition { navigation: auto; }
    html { scroll-behavior: smooth; }
}

/* ---------- Base ---------- */
body.v2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--field);
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
:where(.v2) h1, :where(.v2) h2, :where(.v2) h3 {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0;
    line-height: 1.12;
    margin: 0 0 0.5em;
}
:where(.v2) h1 { font-size: clamp(2.3rem, 1.5rem + 3.4vw, 3.7rem); line-height: 1.04; max-width: 17ch; }
:where(.v2) h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
:where(.v2) h3 { font-size: 1.2rem; line-height: 1.2; }
:where(.v2) p { margin: 0 0 1em; }
:where(.v2) a { color: var(--forest); }
:where(.v2) a:hover { color: var(--forest-hover); }
:where(.v2) img { max-width: 100%; }
:where(.v2) button { font: inherit; }

.v2 :focus { outline: none; }
.v2 :focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 2000;
    background: var(--forest); color: #fff; padding: 10px 16px; border-radius: var(--radius-s);
}
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

main { display: block; }
[id] { scroll-margin-top: calc(var(--appbar-h) + 16px); }

/* ---------- Buttons ---------- */
.btn-v2 {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
    min-height: 50px; padding: 0 24px;
    border: 1.5px solid transparent; border-radius: 12px;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600; line-height: 1;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.btn-v2:hover { text-decoration: none; }
.btn-v2:active { transform: scale(0.98); }
.btn-v2.is-primary { background: var(--forest); color: #fff; }
.btn-v2.is-primary:hover { background: var(--forest-hover); color: #fff; }
.btn-v2.is-ghost { background: var(--surface); color: var(--forest); border-color: var(--rule); }
.btn-v2.is-ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn-v2.is-block { width: 100%; }
/* On the forest panels */
.btn-v2.is-leaf { background: var(--leaf); color: var(--canopy); }
.btn-v2.is-leaf:hover { background: #c4c20e; color: var(--canopy); }
.btn-v2.is-ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn-v2.is-ghost-light:hover { border-color: #fff; color: #fff; }

.icon-btn {
    display: inline-grid; place-items: center;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--forest); color: #fff; font-size: 1rem;
}
.icon-btn:hover, .icon-btn:active { background: var(--forest-hover); color: #fff; }

/* ---------- App bar ---------- */
.appbar {
    position: sticky; top: 0; z-index: 1020;
    padding-top: env(safe-area-inset-top);
    background: rgba(238, 242, 236, 0.86);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.appbar.is-scrolled { border-bottom-color: var(--rule); }
.appbar-inner { display: flex; align-items: center; gap: 24px; height: var(--appbar-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
/* The original logo artwork: leaves plus the VHATHENZHENI / GENERAL SOLUTIONS wordmark */
.brand img { display: block; width: auto; height: 44px; }
@media (min-width: 992px) { .brand img { height: 54px; } }
.site-foot .brand img { height: 48px; }

.topnav { display: none; }
.appbar-actions { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.topnav-phone, .appbar-quote { display: none !important; }

@media (min-width: 992px) {
    :root { --appbar-h: 76px; }
    .topnav { display: flex; align-items: center; gap: 4px; margin-left: 12px; }
    .topnav-link {
        display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
        border-radius: 999px; color: var(--ink); font-weight: 500; text-decoration: none;
    }
    .topnav-link:hover { background: var(--forest-tint); color: var(--ink); text-decoration: none; }
    .topnav-link.is-active { color: var(--forest); font-weight: 650; }
    .topnav-link.dropdown-toggle::after { margin-left: 8px; vertical-align: 2px; }
    .topnav-phone { display: inline-flex !important; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
    .topnav-phone i { color: var(--forest); }
    .appbar-quote { display: inline-flex !important; min-height: 46px; }
    .appbar-call { display: none; }
}

/* Inner pages on phones: back button and page name replace the logo */
.appbar-back, .appbar-title { display: none; }
@media (max-width: 991.98px) {
    .has-back .appbar-inner { gap: 6px; }
    .has-back .brand { display: none; }
    .has-back .appbar-back {
        display: inline-grid; place-items: center; flex: none;
        width: 44px; height: 44px; margin-left: -12px; border-radius: 50%;
        color: var(--forest); font-size: 1.15rem; text-decoration: none;
    }
    .has-back .appbar-back:hover, .has-back .appbar-back:active { background: var(--forest-tint); color: var(--forest); }
    .has-back .appbar-title {
        display: block; min-width: 0;
        font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
        white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
}

.v2 .dropdown-menu {
    margin-top: 8px; padding: 8px; min-width: 280px;
    border: 1px solid var(--rule); border-radius: var(--radius-m);
    box-shadow: 0 16px 40px rgba(24, 35, 26, 0.12);
}
.v2 .dropdown-item {
    padding: 11px 14px; border-radius: var(--radius-s);
    color: var(--ink); font-weight: 500; white-space: normal;
}
.v2 .dropdown-item:hover, .v2 .dropdown-item:focus { background: var(--forest-tint); color: var(--ink); }

/* ---------- Bottom tab bar ---------- */
.tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
    display: flex;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--rule);
}
.tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    background: none; border: 0; padding: 0;
    color: var(--moss); font-size: 0.75rem; font-weight: 600; text-decoration: none;
    touch-action: manipulation;
}
.tab i {
    display: grid; place-items: center;
    width: 56px; height: 30px; border-radius: 999px;
    font-size: 1.1rem; transition: background-color 0.2s ease;
}
.tab:hover { color: var(--forest); text-decoration: none; }
.tab.is-active { color: var(--forest); }
.tab.is-active i { background: var(--forest-tint); }
.tab:active i { background: var(--forest-tint); }

body.v2 { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 992px) {
    .tabbar { display: none; }
    body.v2 { padding-bottom: 0; }
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 24px; }
.section-head p, .split-intro p { color: var(--moss); }
.section-link { font-weight: 600; text-decoration: none; }
.section-link i { font-size: 0.8em; margin-left: 4px; }

.split { display: grid; gap: 24px; }
@media (min-width: 992px) {
    .section { padding: 88px 0; }
    .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
}

/* ---------- Hero ---------- */
.hero { padding: 28px 0 8px; }
.hero-grid { display: grid; gap: 28px; grid-template-areas: "copy" "needs" "photo"; }
.hero-copy { grid-area: copy; }
.hero-needs { grid-area: needs; }
.hero-photo { grid-area: photo; }
.lede { font-size: 1.12rem; color: var(--moss); max-width: 54ch; }
.hero-actions { display: grid; gap: 10px; margin-top: 8px; }
@media (min-width: 576px) { .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; } }

@media (min-width: 992px) {
    .hero { padding: 56px 0 24px; }
    .hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        grid-template-areas: "copy photo" "needs needs";
        column-gap: 56px; row-gap: 32px; align-items: center;
    }
}

/* The one bold moment: what do you need help with? */
.hero-needs {
    background: var(--forest); color: #fff;
    border-radius: var(--radius-l); padding: 22px 18px 18px;
}
.v2 .hero-needs h2 { color: #fff; font-size: 1.4rem; margin-bottom: 14px; }
.needs-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.need {
    display: flex; align-items: center; gap: 12px;
    min-height: 60px; height: 100%; padding: 10px 12px;
    background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-m);
    color: #fff; font-weight: 600; font-size: 0.95rem; line-height: 1.25; text-decoration: none;
    transition: background-color 0.15s ease;
}
.need:hover { background: rgba(255, 255, 255, 0.14); color: #fff; text-decoration: none; }
.need:active { background: rgba(255, 255, 255, 0.2); }
.need i {
    flex: none; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: var(--radius-s);
    background: var(--leaf); color: var(--canopy); font-size: 0.95rem;
}
.hero-needs :focus-visible { outline-color: var(--leaf); }
@media (min-width: 680px) { .needs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 992px) {
    .hero-needs { padding: 28px 28px 28px; }
    .v2 .hero-needs h2 { font-size: 1.6rem; margin-bottom: 18px; }
    .need { min-height: 64px; font-size: 1rem; }
}

.hero-photo { margin: 0; position: relative; }
.hero-photo img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: var(--radius-l);
}
.hero-photo figcaption {
    position: absolute; left: 12px; bottom: 12px; right: 12px;
    width: fit-content; max-width: calc(100% - 24px);
    padding: 7px 12px; border-radius: var(--radius-s);
    background: rgba(10, 54, 13, 0.82); color: #fff; font-size: 0.82rem; line-height: 1.35;
}
@media (min-width: 992px) {
    .hero-photo img { aspect-ratio: 4 / 3; }
}

/* ---------- Facts ---------- */
.facts { padding: 28px 0 0; }
.facts-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
    background: var(--rule); border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden;
}
.facts-list li { background: var(--surface); padding: 16px 18px; }
.facts-list strong {
    display: block; font-family: var(--font-display); font-weight: 700;
    font-size: 1.2rem; color: var(--forest); line-height: 1.2; margin-bottom: 4px;
}
.facts-list span { display: block; font-size: 0.9rem; color: var(--moss); line-height: 1.4; }
@media (min-width: 992px) { .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts-list li { padding: 22px 24px; } }

/* ---------- Grouped list (settings-style rows) ---------- */
.glist {
    list-style: none; margin: 0; padding: 0;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden;
}
.glist li + li .glist-row::before {
    content: ""; position: absolute; top: 0; right: 0; left: 96px;
    height: 1px; background: var(--rule);
}
.glist-plain li + li .glist-row::before { left: 18px; }
.glist-row {
    position: relative; display: flex; align-items: center; gap: 16px;
    min-height: 64px; padding: 14px 18px;
    color: var(--ink); text-decoration: none; transition: background-color 0.15s ease;
}
.glist-row:hover { background: #f6f8f5; color: var(--ink); text-decoration: none; }
.glist-row:active { background: var(--forest-tint); }
.glist-thumb { flex: none; width: 62px; height: 62px; border-radius: 12px; object-fit: cover; background: var(--forest-tint); }
.glist-text { flex: 1; min-width: 0; }
.glist-title { display: block; font-weight: 650; font-size: 1.04rem; line-height: 1.3; }
.glist-sub { display: block; margin-top: 2px; font-size: 0.92rem; line-height: 1.4; color: var(--moss); }
.glist-chev { flex: none; color: #9aa59c; font-size: 0.8rem; }

/* ---------- Projects rail ---------- */
.section-alt { background: var(--surface); }
.rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    list-style: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > li { scroll-snap-align: start; }
@media (min-width: 576px) { .rail { grid-auto-columns: 46%; } }
@media (min-width: 992px) {
    .rail {
        grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr));
        margin: 0; padding: 0; overflow: visible;
    }
}
.pcard {
    height: 100%; background: var(--field);
    border-radius: var(--radius-m); overflow: hidden;
}
.pcard img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.pcard-body { padding: 14px 16px 18px; }
.v2 .pcard h3 { font-size: 1.15rem; margin-bottom: 6px; }
.pcard p { font-size: 0.94rem; color: var(--moss); margin-bottom: 8px; line-height: 1.45; }
.pcard .pcard-meta { font-size: 0.84rem; font-weight: 600; color: var(--forest); margin: 0; }
.rail-hint { font-size: 0.85rem; color: var(--moss); margin: 4px 0 0; }
@media (min-width: 992px) { .rail-hint { display: none; } }

/* ---------- Steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
    position: relative; counter-increment: step;
    display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px;
    padding-bottom: 24px;
}
.steps li::before {
    content: counter(step);
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
    background: var(--forest); color: #fff;
    font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.steps li:not(:last-child)::after {
    content: ""; position: absolute; left: 21px; top: 50px; bottom: 6px;
    width: 2px; background: var(--rule);
}
.v2 .steps h3 { margin: 9px 0 4px; }
.steps p { color: var(--moss); margin: 0; }

/* ---------- About teaser ---------- */
.about-teaser p { max-width: 62ch; }
.link-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Contact panel ---------- */
.contact-panel {
    display: grid; gap: 18px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l);
    padding: 26px 22px;
}
.contact-panel p { color: var(--moss); margin: 0; max-width: 52ch; }
.v2 .contact-panel h2 { margin-bottom: 8px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 992px) {
    .contact-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 40px 44px; }
}

/* ---------- Forest call-to-action panel ---------- */
.cta-panel {
    display: grid; gap: 18px;
    background: var(--forest); color: rgba(255, 255, 255, 0.86);
    border-radius: var(--radius-l); padding: 26px 22px;
}
.v2 .cta-panel h2 { color: #fff; margin-bottom: 8px; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); }
.cta-panel p { margin: 0; max-width: 52ch; }
.cta-panel :focus-visible { outline-color: var(--leaf); }
@media (min-width: 992px) {
    .cta-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 40px 44px; }
}

/* ---------- Inner page header: photo, title, intro, actions ---------- */
.page-head { padding: 16px 0 8px; }
.crumb { display: none; }
.page-head-grid { display: grid; gap: 20px; grid-template-areas: "photo" "copy"; }
.page-head-grid.is-text-only { grid-template-areas: "copy"; }
.page-head-copy { grid-area: copy; }
.page-head-photo { grid-area: photo; margin: 0; }
.page-head-photo img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
    border-radius: var(--radius-l); background: var(--forest-tint);
}
.v2 .page-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem); max-width: 20ch; margin-bottom: 14px; }
.page-note { font-size: 0.95rem; color: var(--moss); }
.page-actions { display: grid; gap: 10px; margin-top: 4px; }
@media (min-width: 576px) { .page-actions { display: flex; flex-wrap: wrap; gap: 12px; } }
@media (min-width: 992px) {
    .page-head { padding: 28px 0 24px; }
    .crumb { display: block; margin: 0 0 24px; font-size: 0.92rem; color: var(--moss); }
    .crumb a { text-decoration: none; }
    .crumb span { margin: 0 6px; }
    .page-head-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); grid-template-areas: "copy photo"; column-gap: 56px; align-items: center; }
    .page-head-grid.is-text-only { grid-template-columns: minmax(0, 1fr); }
    .page-head-photo img { aspect-ratio: 4 / 3; }
}

/* "On this page" jump links */
.chips {
    display: flex; gap: 8px; list-style: none;
    margin: 20px calc(var(--gutter) * -1) 0; padding: 4px var(--gutter);
    overflow-x: auto; scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
    background: var(--surface); border: 1px solid var(--rule); border-radius: 999px;
    color: var(--ink); font-size: 0.94rem; font-weight: 600; white-space: nowrap; text-decoration: none;
}
.chip:hover { border-color: var(--forest); color: var(--forest); text-decoration: none; }
@media (min-width: 992px) { .chips { flex-wrap: wrap; margin: 28px 0 0; padding: 0; overflow: visible; } }

/* ---------- Service cards (two per row on phones) ---------- */
.scards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .scards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 992px) {
    .scards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
    .scards.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
}
.scard {
    height: 100%; display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden;
}
.scard-media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--forest-tint); color: var(--forest); font-size: 2.2rem; }
.scard-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scard-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; }
.v2 .scard h3 { font-size: 1.08rem; line-height: 1.2; margin: 0; }
.scard p { margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--moss); }
.scard-link { margin-top: auto; padding-top: 6px; font-size: 0.9rem; font-weight: 600; text-decoration: none; }
.scard-link i { font-size: 0.75em; margin-left: 3px; }
@media (min-width: 992px) {
    .scard-body { gap: 6px; padding: 16px 18px 20px; }
    .v2 .scard h3 { font-size: 1.25rem; }
    .scard p { font-size: 0.95rem; }
}

/* ---------- Good to know: tap a question to open it ---------- */
.faq { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); overflow: hidden; }
.faq details + details {
    background-image: linear-gradient(var(--rule), var(--rule));
    background-size: calc(100% - 18px) 1px; background-position: right top; background-repeat: no-repeat;
}
.faq details[open] { background-color: #f6f8f5; }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 58px; padding: 14px 18px;
    font-weight: 600; line-height: 1.35; list-style: none; cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 9px; height: 9px;
    border-right: 2px solid var(--moss); border-bottom: 2px solid var(--moss);
    transform: translateY(-3px) rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] > summary::after { border-color: var(--forest); transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { background-color: #f6f8f5; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq-body { padding: 0 18px 18px; font-size: 0.97rem; color: #33413a; }
.faq-body p { max-width: 68ch; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body ul { margin: 0; padding-left: 1.15em; }
.faq-body li { margin-bottom: 6px; }
.faq-body li:last-child { margin-bottom: 0; }

/* ---------- Plain panels (About page) ---------- */
.panels { display: grid; gap: 14px; }
@media (min-width: 768px) { .panels.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panels.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius-l); padding: 20px 20px 22px; }
.v2 .panel h3 { font-size: 1.22rem; margin-bottom: 10px; }
.panel p:last-child { margin-bottom: 0; }
.panel p, .panel li { color: #33413a; font-size: 0.97rem; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; line-height: 1.45; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
    content: ""; position: absolute; left: 3px; top: 0.3em;
    width: 6px; height: 11px; border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest);
    transform: rotate(45deg);
}

/* ---------- Footer ---------- */
.site-foot { background: var(--canopy); color: rgba(255, 255, 255, 0.78); padding: 48px 0 24px; font-size: 0.95rem; }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--leaf); }
.site-foot :focus-visible { outline-color: var(--leaf); }
.brand-on-dark, .brand-on-dark:hover { color: #fff; }
.foot-grid { display: grid; gap: 32px; }
.foot-note { margin: 16px 0 8px; max-width: 40ch; }
.foot-small { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); max-width: 44ch; }
.v2 .foot-head { font-size: 1.08rem; color: #fff; margin-bottom: 12px; }
.foot-links { list-style: none; margin: 0; padding: 0; }
.foot-links li { margin-bottom: 8px; }
.foot-links a { text-decoration: none; }
.foot-base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
    margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem; color: rgba(255, 255, 255, 0.6);
}
.foot-base p { margin: 0; }
.foot-social { display: flex; flex-wrap: wrap; gap: 18px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; } }

/* ---------- Sheets (Bootstrap modals: bottom sheet on phones, dialog from 768px) ---------- */
.modal-backdrop.show { opacity: 0.45; }
.sheet .modal-content {
    border: 0; border-radius: var(--radius-l);
    background: var(--field);
    box-shadow: 0 24px 60px rgba(24, 35, 26, 0.25);
}
.sheet-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 20px 10px; }
.v2 .sheet-head h2 { font-size: 1.45rem; margin: 0; }
.sheet-grip { display: none; }
.sheet-close {
    margin-left: auto; flex: none;
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: rgba(14, 76, 18, 0.08); color: var(--ink); cursor: pointer;
}
.sheet-close:hover { background: rgba(14, 76, 18, 0.14); }
.sheet-body { padding: 6px 20px 24px; }
.sheet-body .glist + .glist { margin-top: 14px; }
.sheet-intro { color: var(--moss); }
.sheet-intro a { white-space: nowrap; }
.sheet-foot { font-size: 0.85rem; color: var(--moss); margin: 16px 0 0; }

@media (max-width: 767.98px) {
    .modal.sheet .modal-dialog {
        position: fixed; left: 0; right: 0; bottom: 0;
        width: 100%; max-width: none; margin: 0;
    }
    .modal.sheet.fade .modal-dialog { transform: translateY(100%); transition: transform 0.32s cubic-bezier(0.22, 0.9, 0.3, 1); }
    .modal.sheet.show .modal-dialog { transform: none; }
    .sheet .modal-content {
        border-radius: var(--radius-l) var(--radius-l) 0 0;
        max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px);
        overflow-y: auto; overscroll-behavior: contain;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .sheet-grip {
        display: block; position: absolute; top: 8px; left: 50%;
        width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: #c3ccc1;
    }
    .sheet-head { padding-top: 26px; }
}
@media (min-width: 768px) {
    .modal.sheet .modal-dialog { margin-top: 10vh; }
    #servicesSheet .modal-dialog { max-width: 560px; }
    #contactModal .modal-dialog { max-width: 600px; }
}

/* ---------- Form ---------- */
.form-v2 .field { margin-bottom: 16px; }
.form-v2 label { display: block; font-weight: 600; font-size: 0.95rem; margin-bottom: 6px; }
.form-v2 input, .form-v2 textarea {
    display: block; width: 100%;
    min-height: 50px; padding: 12px 14px;
    font: inherit; font-size: 17px; /* 16px+ stops iOS zooming into the field */
    color: var(--ink); background: var(--surface);
    border: 1px solid var(--rule); border-radius: 12px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-v2 textarea { resize: vertical; min-height: 110px; }
.form-v2 input::placeholder, .form-v2 textarea::placeholder { color: #8d998f; }
.form-v2 input:focus, .form-v2 textarea:focus {
    outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(14, 76, 18, 0.18);
}

/* ---------- Toast ---------- */
.toast-v2 {
    position: fixed; z-index: 1060; left: 50%; transform: translateX(-50%);
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
    display: flex; align-items: center; gap: 10px;
    width: max-content; max-width: calc(100% - 32px);
    padding: 14px 18px; border-radius: var(--radius-m);
    background: var(--canopy); color: #fff; font-weight: 600; font-size: 0.95rem;
    box-shadow: 0 12px 32px rgba(24, 35, 26, 0.3);
    animation: toast-in 0.3s ease-out;
    transition: opacity 0.4s ease;
}
.toast-v2 i { color: var(--leaf); }
.toast-v2.is-leaving { opacity: 0; }
@media (min-width: 992px) { .toast-v2 { bottom: 28px; } }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- Company profile PDF viewer ---------- */
.pdfv-toolbar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: #121518; color: rgba(255, 255, 255, 0.85);
    padding: 9px 16px; font-size: 12.5px; font-weight: 600;
}
.pdfv-count { color: var(--leaf); white-space: nowrap; }
.pdfv-scroll {
    height: min(72vh, calc(100vh - 220px));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    background: #3c423c; padding: 10px;
}
.pdfv-page {
    position: relative; max-width: 920px; margin: 0 auto 12px;
    background: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); border-radius: 4px; overflow: hidden;
}
.pdfv-page canvas { display: block; width: 100%; height: auto; }
@media (max-width: 767px) {
    #companyProfileModal .modal-dialog { margin: 8px; max-width: none; }
    .pdfv-scroll { height: calc(100vh - 190px); padding: 6px; }
    .pdfv-page { margin-bottom: 8px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .v2 *, .v2 *::before, .v2 *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* The quote panel sits close to the section above when they share a background */
.section:not(.section-alt) + .section-cta { padding-top: 0; }

/* ---------- Cards swing flat as they scroll in (classes and variables set by js/v2.js) ---------- */
@media screen {
    .swing {
        transform: perspective(900px) rotateY(var(--swing, 0deg)) scale(var(--swing-scale, 1));
        transform-origin: var(--hinge, center) center;
        will-change: transform;
    }
    .swing.is-flat { transform: none; will-change: auto; }
}
