/* ==========================================================================
   Mountain Streams Garden Services - site styles
   Mobile-first: base styles are for small phones; larger screens are layered on
   with min-width media queries.
   Breakpoints: 480px (large phones), 640px, 768px (tablets), 1024px (desktop
   navigation), 1280px (wide screens).
   ========================================================================== */

/* ---------- Fonts ----------
   Self-hosted Inter and Playfair Display (variable fonts: one file covers every weight).
   Licence: SIL Open Font License 1.1, see /assets/fonts/LICENSE.txt.
   The "-latin" files are preloaded in each page's <head>; "-latin-ext" only downloads if a
   page uses those characters. */
@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("../fonts/inter-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("../fonts/playfair-display-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Playfair Display";
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url("../fonts/playfair-display-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Design tokens ---------- */
:root {
    --primary: #1c3d22;         /* deep botanical green */
    --primary-dark: #102614;    /* darkest green (footer, headings) */
    --accent: #2e6f40;          /* foliage green (links, highlights) */
    --gold: #bd9b41;            /* decorative gold (icons, borders, hover on the darkest green) */
    --gold-text: #876a1a;       /* gold for text on light backgrounds (meets AA contrast) */
    --gold-on-dark: #e2c77f;    /* gold for small text on green backgrounds (AA contrast, even under the gold glow) */
    --light: #f4f7f4;           /* soft green-white section background */
    --white: #ffffff;
    --text: #272e29;
    --gray: #5d6960;
    --border: #dfebd4;          /* decorative borders */
    --field-border: #7f9483;    /* form field borders (3:1 contrast) */
    --shadow: 0 16px 40px rgba(16, 38, 20, 0.07);
    --radius: 12px;

    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;

    --header-h: 68px;           /* sticky header height */
    --bar-h: 60px;              /* sticky mobile contact bar height (0 on desktop) */
    --focus: var(--accent);     /* focus ring colour; lighter on dark sections */
}

@media (min-width: 1024px) {
    :root {
        --header-h: 84px;
        --bar-h: 0px;
    }
}

/* ---------- Base ---------- */
/* The hidden attribute always wins over display rules (e.g. hidden form rows, the map button without JavaScript) */
[hidden] {
    display: none !important;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* keep anchored sections and focused fields clear of the sticky header and mobile bar */
    scroll-padding-top: calc(var(--header-h) + 12px);
    scroll-padding-bottom: calc(var(--bar-h) + 12px);
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    /* room for the fixed mobile contact bar, so it never covers the footer */
    padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom, 0px));
}

img,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-heading);
    text-wrap: balance;
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

p {
    margin: 0 0 1em;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

a {
    color: var(--accent);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--primary-dark);
}

button,
input,
select,
textarea {
    font: inherit;
}

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.on-dark {
    --focus: #f2d27a;
}

/* The inline icon set at the top of each page (tools/sync_icons.py): takes no space */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Line icons (inline copies of /assets/icons/icons.svg; colour follows the text colour) */
.icon {
    display: inline-block;
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 2000;
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--primary-dark);
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.skip-link:focus {
    top: 12px;
    color: var(--white);
}

.container {
    width: min(1200px, 100% - 32px);
    margin-inline: auto;
}

@media (min-width: 768px) {
    .container {
        width: min(1200px, 100% - 48px);
    }
}

main:focus {
    outline: none;
}

/* ---------- Buttons & links ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(28, 61, 34, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    border-color: var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-light:hover {
    background: #eaf5ee;
    color: var(--primary-dark);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.85);
    color: var(--white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-dark);
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.7;
    cursor: wait;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .btn:hover {
        transform: translateY(-2px);
    }
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-row > .btn {
    flex: 1 1 100%;
}

@media (min-width: 480px) {
    .btn-row > .btn {
        flex: 0 1 auto;
    }
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-weight: 600;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.text-link:hover {
    color: var(--primary-dark);
}

.link-arrow {
    margin-left: 0.35em;
}

/* ---------- Top bar (desktop only) ---------- */
.top-bar {
    display: none;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.875rem;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
}

.top-bar-links {
    display: flex;
    gap: 24px;
}

.top-bar a {
    display: inline-flex;
    align-items: center;
    min-height: 32px; /* comfortable click/tap target (WCAG 2.2: at least 24px) */
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.top-bar a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (min-width: 1024px) {
    .top-bar {
        display: block;
    }
}

/* ---------- Header & brand ---------- */
.site-header {
    position: relative;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 0.3s;
}

/* Sticky only when JavaScript is available (without it, the menu is shown in full) */
.js .site-header {
    position: sticky;
    top: 0;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(16, 38, 20, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    min-height: var(--header-h);
}

.js .header-inner {
    flex-wrap: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.brand-logo {
    flex: none;
    width: 44px;
    height: 44px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary-dark);
    white-space: nowrap;
}

.brand-suffix {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--gray);
}

.brand-tagline {
    display: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--gray);
}

@media (min-width: 480px) {
    .brand-tagline {
        display: block;
    }
}

@media (min-width: 1024px) {
    .brand-logo {
        width: 56px;
        height: 56px;
    }

    .brand-name {
        font-size: 1.3rem;
    }

    .brand-suffix {
        font-size: 0.82rem;
    }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
    .brand-tagline {
        display: none;
    }
}

/* ---------- Menu button (phones & tablets) ---------- */
.menu-toggle {
    display: none;
}

.js .menu-toggle {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    min-width: 44px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--field-border);
    border-radius: 8px;
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.menu-toggle-icon,
.menu-toggle-icon::before,
.menu-toggle-icon::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 0.2s, background-color 0.2s;
}

.menu-toggle-icon {
    position: relative;
}

.menu-toggle-icon::before,
.menu-toggle-icon::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-toggle-icon::before {
    top: -6px;
}

.menu-toggle-icon::after {
    top: 6px;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon {
    background: transparent;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::before {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-icon::after {
    transform: translateY(-6px) rotate(-45deg);
}

@media (min-width: 1024px) {
    .js .menu-toggle {
        display: none;
    }
}

/* Smallest phones: icon-only menu button and a slightly smaller logo so nothing overlaps */
@media (max-width: 379.98px) {
    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 40px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .js .menu-toggle {
        padding: 8px 12px;
    }

    .menu-toggle-text {
        display: none;
    }
}

/* ---------- Main navigation ---------- */
.site-nav {
    width: 100%;
}

.nav-list,
.dropdown ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 12px 4px;
    border: 0;
    background: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 1.05rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link[aria-current="page"],
.nav-item.is-current > .nav-link {
    color: var(--accent);
}

.chevron {
    flex: none;
    width: 12px;
    height: 8px;
    transition: transform 0.2s;
}

.dropdown-toggle[aria-expanded="true"] .chevron {
    transform: rotate(180deg);
}

.dropdown-heading {
    margin: 10px 0 2px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold-text);
}

.dropdown a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
}

.dropdown a:hover {
    background: var(--light);
    color: var(--accent);
}

.dropdown a[aria-current="page"] {
    color: var(--accent);
    font-weight: 600;
}

.dropdown-all {
    margin: 4px 0 0;
}

.dropdown-all a {
    font-weight: 600;
    color: var(--accent);
}

/* Phones & tablets: menu panel below the header */
@media (max-width: 1023.98px) {
    .nav-item {
        border-bottom: 1px solid var(--border);
    }

    .nav-item-cta {
        border-bottom: 0;
        padding: 16px 0 4px;
    }

    .nav-item-cta .btn {
        width: 100%;
    }

    .dropdown {
        padding: 0 0 12px 12px;
    }

    .js .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        max-height: calc(100vh - var(--header-h) - var(--bar-h));
        max-height: calc(100dvh - var(--header-h) - var(--bar-h));
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 4px 16px 20px;
        background: var(--white);
        border-top: 1px solid var(--border);
        box-shadow: 0 24px 40px rgba(16, 38, 20, 0.16);
    }

    .js .site-nav.is-open {
        display: block;
    }

    .js .dropdown {
        display: none;
    }

    .js .dropdown.is-open {
        display: block;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .js .site-nav {
        padding-inline: 24px;
    }
}

/* Desktop: inline navigation with dropdown panels */
@media (min-width: 1024px) {
    .site-nav {
        width: auto;
    }

    .nav-list {
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        display: inline-flex;
        width: auto;
        min-height: 44px;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 1rem;
    }

    .nav-link:hover,
    .dropdown-toggle[aria-expanded="true"] {
        background: var(--light);
        color: var(--accent);
    }

    .nav-link[aria-current="page"],
    .nav-item.is-current > .nav-link {
        box-shadow: inset 0 -2px 0 var(--accent);
    }

    .nav-item-cta {
        margin-left: 10px;
    }

    .nav-item-cta .btn {
        padding: 10px 20px;
    }

    .dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        z-index: 20;
        min-width: 270px;
        padding: 16px;
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: 0 24px 50px rgba(16, 38, 20, 0.16);
    }

    .dropdown.is-open {
        display: block;
    }

    .dropdown-services {
        min-width: 540px;
    }

    .dropdown-services.is-open {
        display: grid;
        grid-template-columns: 1.25fr 1fr;
        gap: 20px;
    }

    .dropdown-heading {
        margin-top: 0;
        padding: 0 10px;
    }

    .dropdown-services .dropdown-all {
        grid-column: 1 / -1;
        margin: 0;
        padding-top: 10px;
        border-top: 1px solid var(--border);
    }

    /* Without JavaScript, open panels on hover / keyboard focus */
    html:not(.js) .has-dropdown:hover > .dropdown,
    html:not(.js) .has-dropdown:focus-within > .dropdown {
        display: block;
    }
}

/* ---------- Home hero ----------
   Works without a photo (brand green + mountain line). When a real MSGS photo is
   available, add class "has-photo" to the section and put the <picture class="hero-photo">
   snippet from the README inside it: the overlay below keeps the text readable. */
.hero {
    position: relative;
    overflow: hidden;
    padding: 40px 0 92px;
    color: var(--white);
    background: radial-gradient(circle at 85% 10%, rgba(189, 155, 65, 0.22), transparent 42%),
        linear-gradient(135deg, var(--primary-dark), var(--primary) 70%, #24502c);
}

@media (min-width: 768px) {
    .hero {
        padding: 72px 0 120px;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 88px 0 136px;
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
}

.hero-inner > * {
    max-width: 680px;
}

.hero-ridge {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 72px;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-ridge {
        height: 120px;
    }
}

.hero-photo,
.hero-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The photo sits behind the overlay (::before) and the text */
.hero-photo {
    z-index: -1;
}

/* Crop focus: keeps the lawn curve and the planted bed on the right in view on narrow screens */
.hero-photo img {
    object-position: 62% 55%;
}

.hero.has-photo {
    isolation: isolate;
    background: var(--primary-dark);
}

.hero.has-photo::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(rgba(16, 38, 20, 0.55), rgba(16, 38, 20, 0.8));
}

@media (min-width: 1024px) {
    /* Dark behind the text column (container edge + 680px of text + a margin) at every width, then
       fading out so the photo shows on the right; keeps the text above AA contrast */
    .hero.has-photo::before {
        background: linear-gradient(90deg, rgba(16, 38, 20, 0.88) 0%, rgba(16, 38, 20, 0.72) calc(max(24px, 50% - 600px) + 720px), rgba(16, 38, 20, 0.15) 100%);
    }
}

.hero-badge {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 16px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 16px;
    font-size: clamp(2.1rem, 1.35rem + 3.6vw, 3.6rem);
    line-height: 1.12;
    letter-spacing: -0.5px;
    color: var(--white);
}

.hero-lead {
    max-width: 58ch;
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .hero-lead {
        font-size: 1.2rem;
    }
}

.hero-note {
    margin-top: 16px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-note a {
    color: var(--white);
    font-weight: 600;
    white-space: nowrap;
}

.nowrap {
    white-space: nowrap;
}

/* Faint line icon on the right of the home hero (desktop, until a real hero photo is added) */
.hero-deco {
    display: none;
}

@media (min-width: 1024px) {
    .hero-deco {
        display: block;
        position: absolute;
        right: 7%;
        top: 46%;
        width: 300px;
        height: 300px;
        transform: translateY(-50%);
        color: rgba(255, 255, 255, 0.07);
        stroke-width: 0.9;
    }

    .hero.has-photo .hero-deco {
        display: none;
    }
}

.hero-b2b {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.975rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-b2b a {
    /* keep the link text together: it moves to the next line as one piece instead of splitting */
    display: inline-block;
    color: var(--white);
    font-weight: 600;
}

.hero-b2b a:hover,
.hero-note a:hover {
    color: #f2d27a;
}

/* Hero and page-hero buttons sit side by side on most phones (the sticky bar also offers call/WhatsApp) */
@media (min-width: 360px) {
    .hero .btn-row > .btn,
    .page-hero .btn-row > .btn {
        flex: 1 1 0;
        padding-inline: 14px;
    }
}

@media (min-width: 480px) {
    .hero .btn-row > .btn,
    .page-hero .btn-row > .btn {
        flex: 0 1 auto;
        padding-inline: 24px;
    }
}

/* ---------- Proof strip (directly below the home hero) ----------
   Only confirmed facts. Real Google rating / named clients can be added as extra <li> items
   (see the PROOF SLOT template in index.html). */
.proof {
    position: relative;
    z-index: 2;
    margin-top: -56px;
}

@media (min-width: 768px) {
    .proof {
        margin-top: -72px;
    }
}

.proof-list {
    display: grid;
    gap: 2px;
    list-style: none;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    box-shadow: 0 24px 50px rgba(16, 38, 20, 0.14);
}

@media (min-width: 1024px) {
    .proof-list {
        grid-template-columns: repeat(4, 1fr);
        padding: 12px;
    }
}

/* Phones and tablets: a compact 2 x 2 grid, icon above the text */
@media (max-width: 1023.98px) {
    .proof-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-list li {
        flex-direction: column;
        gap: 6px;
        padding: 12px 10px;
    }
}

@media (min-width: 640px) and (max-width: 1023.98px) {
    .proof-list li {
        flex-direction: row;
        gap: 12px;
        padding: 14px 12px;
    }
}

.proof-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--gray);
}

.proof-list li > .icon {
    flex: none;
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.proof-list strong {
    display: block;
    margin-bottom: 2px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    line-height: 1.25;
    color: var(--primary-dark);
}

@media (min-width: 1024px) {
    .proof-list li {
        padding: 16px 18px;
    }

    .proof-list li + li {
        border-left: 1px solid var(--border);
    }
}

/* ---------- Inner page header ---------- */
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 20px 0 40px;
    color: var(--white);
    background: radial-gradient(circle at 88% 12%, rgba(189, 155, 65, 0.2), transparent 45%),
        linear-gradient(135deg, var(--primary-dark), var(--primary));
}

@media (min-width: 768px) {
    .page-hero {
        padding: 28px 0 64px;
    }
}

.page-hero .container {
    position: relative;
}

/* Large faint line icon on the right of inner-page headers (desktop only): gives each page its own
   look without using photos that aren't MSGS's own */
.page-hero-icon {
    display: none;
}

@media (min-width: 1024px) {
    .page-hero-icon {
        display: block;
        position: absolute;
        right: 0;
        top: 50%;
        width: 200px;
        height: 200px;
        transform: translateY(-46%);
        color: rgba(255, 255, 255, 0.1);
        stroke-width: 1.1;
    }
}

.page-hero h1 {
    max-width: 24ch;
    margin: 10px 0 14px;
    font-size: clamp(1.95rem, 1.3rem + 3vw, 3.2rem);
    line-height: 1.15;
    color: var(--white);
}

.page-hero .lead {
    max-width: 64ch;
    margin-bottom: 24px;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 768px) {
    .page-hero .lead {
        font-size: 1.15rem;
    }
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb li + li::before {
    content: "\203A";
    margin-right: 8px;
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: rgba(255, 255, 255, 0.92);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb [aria-current="page"] {
    color: var(--white);
}

/* ---------- Sections ---------- */
.section {
    padding: clamp(48px, 7vw, 96px) 0;
}

.section-alt {
    background: var(--light);
}

.eyebrow {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold-text);
}

.on-dark .eyebrow {
    color: var(--gold-on-dark);
}

.section-head {
    max-width: 720px;
    margin-bottom: 32px;
}

.section-head.center {
    margin-inline: auto;
    text-align: center;
}

.section-head h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
}

.section-head p {
    font-size: 1.05rem;
    color: var(--gray);
}

.subsection-title {
    margin: 0 0 20px;
    font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem);
}

* + .subsection-title {
    margin-top: 48px;
}

.lead-text {
    font-size: 1.1rem;
}

.muted {
    color: var(--gray);
}

.section-more {
    margin-top: 28px;
}

/* ---------- Grids ---------- */
.grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 28px;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    padding: 22px 20px 20px;
}

@media (min-width: 768px) {
    .card-body {
        padding: 26px 26px 22px;
    }
}

/* Line icon in a soft green chip (replaces the old emoji icons) */
.card-icon {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eaf3ec;
    color: var(--accent);
}

.card-icon .icon {
    width: 26px;
    height: 26px;
}

/* Whole card is clickable through its heading link (one link per card, no "Learn more" clutter) */
.card-link {
    position: relative;
}

.card-link h3 a,
.card-link h4 a {
    color: var(--primary-dark);
    text-decoration: none;
}

.card-link h3 a::after,
.card-link h4 a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.card-link h3 a:hover,
.card-link h4 a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.card-link .link-arrow {
    color: var(--accent);
    font-family: var(--font-body);
}

.card-link:focus-within {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.card-link h3 a:focus-visible,
.card-link h4 a:focus-visible {
    outline: none;
}

/* Phones: compact service cards (icon left, text right) keep the services list short */
@media (max-width: 639.98px) {
    .card-row .card-body {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
        row-gap: 4px;
        padding: 16px;
    }

    .card-row .card-icon {
        grid-row: span 3;
        width: 42px;
        height: 42px;
    }

    .card-row .card-icon .icon {
        width: 22px;
        height: 22px;
    }

    .card-row .card-body > :not(.card-icon) {
        grid-column: 2;
    }

    .card-row h3,
    .card-row h4 {
        font-size: 1.1rem;
    }
}

.card h3,
.card h4 {
    font-size: 1.3rem;
}

.card p {
    margin: 0;
    font-size: 0.975rem;
    color: var(--gray);
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 20px;
    margin-top: auto;
    padding-top: 4px;
}

/* Cards with a real photo (.card-has-media + .card-media). Phones: cards with a photo become compact rows (photo left, text right) to keep pages short */
@media (max-width: 639.98px) {
    .card-has-media {
        flex-direction: row;
    }

    .card-has-media .card-media {
        flex: 0 0 36%;
    }

    .card-has-media .card-media img {
        height: 100%;
        aspect-ratio: auto;
    }

    .card-has-media .card-icon {
        display: none;
    }

    .card-has-media .card-body {
        gap: 6px;
        padding: 14px 14px 8px;
    }

    .card-has-media h3,
    .card-has-media h4 {
        font-size: 1.08rem;
    }

    .card-has-media p {
        font-size: 0.9rem;
    }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .card {
        transition: transform 0.3s, box-shadow 0.3s;
    }

    .card:hover {
        transform: translateY(-4px);
        box-shadow: 0 26px 50px rgba(16, 38, 20, 0.12);
    }
}

/* Small linked tiles (related pages) */
.tile-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

@media (min-width: 640px) {
    .tile-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .tile-list {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.tile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 100%;
    min-height: 60px;
    padding: 14px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--primary-dark);
    font-weight: 600;
    text-decoration: none;
}

.tile:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.tile-arrow {
    flex: none;
    color: var(--accent);
}

/* ---------- Split (text + media) ---------- */
.split {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 900px) {
    .split {
        grid-template-columns: 1fr 1fr;
        gap: 56px;
    }

    .split-media-first .split-media {
        order: -1;
    }
}

.split-content h2 {
    margin: 8px 0 16px;
    font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem);
}

.split-content > p {
    color: var(--gray);
    font-size: 1.05rem;
}

.split-content .checklist,
.split-content .btn-row {
    margin-top: 24px;
}

.split-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ---------- Photo slots ----------
   Placeholder where a real MSGS photo will go (see README "Photography"). Slots are never shown on
   the live site, so no section looks like a missing or fake photo: a split whose media is only a
   photo slot becomes a single text column. Add ?preview=slots to a page address to see the slots.
   Replace the whole <div class="photo-slot"> with the <img> snippet from the README once the photo exists. */
.photo-slot {
    display: none;
}

.split > .split-media:has(> .photo-slot:only-child) {
    display: none;
}

@media (min-width: 900px) {
    .split:has(> .split-media > .photo-slot:only-child) {
        grid-template-columns: minmax(0, 760px);
    }

    .show-slots .split:has(> .split-media > .photo-slot:only-child) {
        grid-template-columns: 1fr 1fr;
    }

    .show-slots .photo-slot {
        align-items: center;
        justify-content: center;
        width: 100%;
        aspect-ratio: 4 / 3;
        border-radius: var(--radius);
        border: 1px solid var(--border);
        background: linear-gradient(160deg, #eef4ee, #dfeadf);
        color: rgba(46, 111, 64, 0.38);
    }

    .show-slots .photo-slot .icon {
        width: 96px;
        height: 96px;
        stroke-width: 1.2;
    }
}

/* ---------- Lists ---------- */
.checklist {
    display: grid;
    gap: 10px;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 32px;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.checklist.two-col {
    gap: 10px 28px;
}

@media (min-width: 640px) {
    .checklist.two-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

.link-list {
    display: grid;
    gap: 2px;
    list-style: none;
}

.link-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

/* ---------- Info panels ---------- */
.panel {
    height: 100%;
    padding: 26px 22px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .panel {
        padding: 32px 30px;
    }
}

.panel h2,
.panel h3 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.panel > p {
    color: var(--gray);
}

.panel-accent {
    border-top: 4px solid var(--gold);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.panel-title .icon {
    color: var(--accent);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

.option-card {
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.option-card h3 {
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.option-card p {
    color: var(--gray);
}

/* ---------- Steps ---------- */
.steps {
    display: grid;
    gap: 16px;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 640px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

.step {
    padding: 22px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    counter-increment: step;
}

.step::before {
    content: counter(step);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
}

.step h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.step p {
    color: var(--gray);
}

.steps-note {
    margin-top: 20px;
    color: var(--gray);
}

/* ---------- FAQ ---------- */
.faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
}

.faq details {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
}

/* Questions are plain <summary> text (no headings inside: <summary> acts as a button) */
.faq summary {
    position: relative;
    display: block;
    min-height: 52px;
    padding: 15px 52px 15px 18px;
    cursor: pointer;
    list-style: none;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.45;
    color: var(--primary-dark);
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--accent);
}

.faq details[open] summary::after {
    content: "\2013";
}

.faq .faq-answer {
    padding: 0 18px 16px;
    color: var(--gray);
}

/* ---------- Closing call-to-action panel (light, so it doesn't merge into the dark footer) ---------- */
.cta-band {
    padding: clamp(40px, 5vw, 64px) 0;
    border-top: 1px solid var(--border);
    background: var(--white);
}

.cta-band-inner {
    display: grid;
    gap: 22px;
    align-items: center;
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--light);
}

@media (min-width: 1024px) {
    .cta-band-inner {
        grid-template-columns: 1.2fr auto;
        gap: 40px;
    }
}

.cta-band h2 {
    margin-bottom: 10px;
    font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
    color: var(--primary-dark);
}

.cta-band p {
    color: var(--gray);
}

/* ---------- Contact ---------- */
.contact-layout {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1.4fr 0.9fr;
        gap: 36px;
    }
}

.contact-aside {
    display: grid;
    gap: 20px;
}

.contact-card {
    padding: 24px 22px;
    background: var(--light);
    border-radius: var(--radius);
}

.contact-card h3 {
    margin-bottom: 14px;
    font-size: 1.3rem;
}

.contact-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.contact-list strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.contact-list a {
    font-weight: 600;
    word-break: break-word;
}

.contact-card p {
    color: var(--gray);
}

.section-alt .contact-card {
    background: var(--white);
}

/* ---------- Quote form ---------- */
.contact-form {
    padding: 24px 18px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

@media (min-width: 768px) {
    .contact-form {
        padding: 36px 34px;
    }
}

.form-intro {
    margin-bottom: 20px;
    color: var(--gray);
}

.form-group {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    min-width: 0;
}

.form-row {
    display: grid;
    gap: 0 18px;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-form label,
.contact-form legend {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-dark);
}

.required-mark {
    color: #a33a2b;
}

.contact-form input:not([type="radio"]):not([type="checkbox"]),
.contact-form select,
.contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background: var(--light);
    color: var(--text);
    font-size: 1rem; /* 16px avoids zoom-on-focus in iOS Safari */
}

.contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 1px;
    background: var(--white);
}

.choice-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.contact-form .choice {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--field-border);
    border-radius: 6px;
    background: var(--light);
    font-weight: 500;
    cursor: pointer;
}

.contact-form .choice input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--primary);
}

.contact-form .choice:has(input:checked) {
    border-color: var(--accent);
    background: #eaf5ee;
    box-shadow: inset 0 0 0 1px var(--accent);
}

.contact-form .choice:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.contact-form .choice input:focus-visible {
    outline: none;
}

.form-honeypot {
    display: none !important;
}

.form-note {
    margin-bottom: 18px;
    font-size: 0.9rem;
    color: var(--gray);
}


/* Inline error messages (set by script.js; linked to their field with aria-describedby) */
.field-error {
    display: flex;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #a33a2b;
}

.field-error::before {
    content: "!";
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: #a33a2b;
    color: var(--white);
    font-size: 0.75rem;
    line-height: 1;
}

.field-error[hidden] {
    display: none;
}

.contact-form [aria-invalid="true"] {
    border-color: #a33a2b !important;
    box-shadow: inset 0 0 0 1px #a33a2b;
}

/* Divider between the required fields and the optional extras */
.form-optional-head {
    margin: 26px 0 16px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-dark);
}

.form-optional-head span {
    font-weight: 400;
    color: var(--gray);
}

.form-privacy {
    margin: 4px 0 18px;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-reassure {
    margin: 12px 0 0;
    font-size: 0.9rem;
    text-align: center;
    color: var(--gray);
}

.form-success,
.form-error {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.form-success {
    color: #1e4d2b;
    background: #eaf5ee;
    border: 1px solid #cce6d5;
}

.form-error {
    color: #7a2419;
    background: #fbecea;
    border: 1px solid #f0c8c2;
}

.form-error a {
    color: inherit;
}

.form-success:focus,
.form-error:focus {
    outline: none;
}

/* ---------- Map ----------
   The Google map only loads when the visitor asks for it (button in .map-facade), so the
   contact page doesn't download ~430 KB of map scripts up front. */
.map-embed {
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

@media (min-width: 768px) {
    .map-embed iframe {
        height: 420px;
    }
}

.map-facade {
    display: grid;
    gap: 16px;
    align-content: center;
    min-height: 260px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: radial-gradient(circle at 80% 15%, rgba(189, 155, 65, 0.12), transparent 50%),
        linear-gradient(160deg, #ffffff, #e8f0e8);
}

.map-facade p {
    margin: 0;
    color: var(--gray);
}

/* ---------- Service area ---------- */
.area-list {
    display: grid;
    gap: 12px;
    list-style: none;
}

@media (min-width: 640px) {
    .area-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.area-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 60px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    font-weight: 600;
    color: var(--primary-dark);
}

.area-list .icon {
    flex: none;
    color: var(--accent);
}

/* ---------- Feature list ("Why MSGS", "How we work") ---------- */
.feature-grid {
    display: grid;
    gap: 16px;
    list-style: none;
}

@media (min-width: 640px) {
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .feature-grid.cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.feature > div {
    min-width: 0;
}

.feature a {
    overflow-wrap: anywhere;
}

.feature h3 {
    margin-bottom: 6px;
    font-size: 1.15rem;
}

.feature p {
    margin: 0;
    font-size: 0.975rem;
    color: var(--gray);
}

/* ---------- Two-column "included / quoted separately" panels ---------- */
.scope-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .scope-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 28px;
    }
}

.panel .checklist + p,
.panel p + .checklist {
    margin-top: 14px;
}

.panel-quiet {
    background: var(--light);
    box-shadow: none;
}

.section-alt .panel-quiet {
    background: var(--white);
}

/* ---------- Simple icon lists (contact details, documents) ---------- */
.icon-list {
    display: grid;
    gap: 14px;
    list-style: none;
}

.icon-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.icon-list .icon {
    flex: none;
    margin-top: 2px;
    color: var(--accent);
}

/* ---------- Content slots (README "Placeholders") ----------
   <template data-slot="..."> blocks hold sections that need real information (reviews, recent
   work, company details...). They never show on the live site. Add ?preview=slots to any page
   address to see them, outlined, with their slot names; photo slots are labelled too. */
.slot-preview {
    position: relative;
    outline: 3px dashed #b0761e;
    outline-offset: -3px;
}

.slot-preview::before,
.show-slots .photo-slot::before {
    content: "PLACEHOLDER: " attr(data-slot-name);
    position: absolute;
    top: -11px;
    left: 10px;
    z-index: 5;
    padding: 4px 8px;
    border-radius: 4px;
    background: #b0761e;
    color: var(--white);
    font: 700 12px/1.2 var(--font-body);
    letter-spacing: 0.5px;
}

.show-slots .photo-slot {
    position: relative;
    display: flex;
    min-height: 160px;
    background-color: #eef4ee;
    outline: 3px dashed #b0761e;
    outline-offset: -3px;
}

/* Layouts used by the "Recent work" and "Reviews" slots once they're filled in */
.work-grid,
.review-grid {
    display: grid;
    gap: 20px;
    list-style: none;
}

@media (min-width: 640px) {
    .work-grid,
    .review-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .work-grid,
    .review-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.work-grid figure {
    margin: 0;
}

.work-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
}

.work-grid figcaption {
    margin-top: 8px;
    font-size: 0.9rem;
    color: var(--gray);
}

.review {
    height: 100%;
    margin: 0;
    padding: 24px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.review blockquote {
    margin: 0;
}

.review p {
    color: var(--text);
}

.review figcaption {
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray);
}

.show-slots .photo-slot::before {
    content: "PHOTO: " attr(data-photo-slot);
}

.show-slots .split > .split-media,
.show-slots .split > .split-media:has(> .photo-slot:only-child) {
    display: block;
}

/* ---------- Long-form text (privacy policy) ---------- */
.prose {
    max-width: 780px;
}

.prose h2 {
    margin: 36px 0 12px;
    font-size: 1.35rem;
    color: var(--primary);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose p,
.prose li {
    color: var(--gray);
    line-height: 1.8;
}

.prose ul {
    margin: 0 0 1em;
    padding-left: 22px;
}

.prose li {
    margin-bottom: 6px;
}

/* ---------- Simple centred pages (thank-you, 404) ---------- */
.message-page {
    max-width: 720px;
}

.message-page .btn-row {
    margin-top: 28px;
}

/* ---------- Footer ---------- */
.site-footer {
    padding-top: 56px;
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
}

.footer-grid {
    display: grid;
    gap: 36px;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.35fr 1fr 1fr 1.15fr;
        gap: 44px;
    }
}

.footer-brand {
    display: block;
    margin-bottom: 14px;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer-heading {
    margin: 0 0 12px;
    font-size: 1.15rem;
    color: var(--white);
}

* + .footer-heading {
    margin-top: 28px;
}

.footer-links {
    display: grid;
    gap: 2px;
    list-style: none;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
}

.site-footer a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    list-style: none;
}

.footer-contact li {
    display: flex;
    flex-direction: column;
    padding: 4px 0;
}

.footer-contact span {
    font-size: 0.78rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.footer-contact a {
    min-height: 32px;
    align-self: flex-start;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    margin-top: 44px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.66);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- Sticky mobile contact bar (phones & tablets) ---------- */
.mobile-cta-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1001;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(16, 38, 20, 0.12);
}

.mobile-cta-bar a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: calc(var(--bar-h) - 1px); /* 1px top border + links = exactly --bar-h */
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}

.mobile-cta-bar a + a {
    border-left: 1px solid var(--border);
}

/* Hidden while the visitor is typing in the quote form (set by script.js) */
.is-form-focused .mobile-cta-bar {
    display: none;
}

.mobile-cta-bar .mobile-cta-quote {
    background: var(--primary);
    color: var(--white);
}

.mobile-cta-bar a:focus-visible {
    outline-offset: -4px;
}

.mobile-cta-bar .mobile-cta-quote:focus-visible {
    --focus: #f2d27a;
}

.mobile-cta-bar .icon {
    width: 20px;
    height: 20px;
}

@media (min-width: 1024px) {
    .mobile-cta-bar {
        display: none;
    }
}

/* Floating WhatsApp button (desktop only; phones use the contact bar) */
.whatsapp-float {
    display: none;
}

@media (min-width: 1024px) {
    .whatsapp-float {
        position: fixed;
        right: 28px;
        bottom: 28px;
        z-index: 999;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 58px;
        height: 58px;
        border-radius: 50%;
        background: #1f7a45;
        color: var(--white);
        box-shadow: 0 10px 30px rgba(31, 122, 69, 0.35);
    }

    .whatsapp-float:hover {
        background: #17643a;
        color: var(--white);
    }

    .whatsapp-float .icon {
        width: 26px;
        height: 26px;
    }
}

/* Avoid a single word left alone on the last line of intro paragraphs */
.hero-lead,
.lead,
.section-head p {
    text-wrap: pretty;
}

/* ---------- Compact sections and narrow containers ---------- */
.section-tight {
    padding: clamp(40px, 5vw, 64px) 0;
}

.container.container-narrow {
    width: min(820px, 100% - 32px);
}

@media (min-width: 768px) {
    .container.container-narrow {
        width: min(820px, 100% - 48px);
    }
}

/* Plain feature list (homepage "Why choose"): no card borders, so it reads as a list, not more boxes */
.feature-grid.is-plain {
    gap: 28px 40px;
}

.feature-grid.is-plain .feature {
    padding: 0;
    border: 0;
    background: none;
}

/* ---------- FAQ with a side panel ---------- */
.faq-layout {
    display: grid;
    gap: 24px;
}

@media (min-width: 1024px) {
    .faq-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: 40px;
        align-items: start;
    }

    .faq-aside {
        position: sticky;
        top: calc(var(--header-h) + 24px);
    }
}

.faq-aside {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
}

.faq-aside h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.faq-aside p {
    color: var(--gray);
}

.faq-aside .btn-row {
    margin-top: 16px;
}

.faq-aside .btn-row > .btn {
    flex: 1 1 100%;
}

/* Phone numbers never break across two lines */
a[href^="tel:"] {
    white-space: nowrap;
}

/* ---------- Inner-page hero: three short facts under the call line ---------- */
.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    list-style: none;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.hero-facts li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-facts .icon {
    width: 16px;
    height: 16px;
    flex: none;
    color: var(--gold);
}

/* Short closing line inside a panel (e.g. "How it works") */
.panel-foot {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    font-size: 0.95rem;
    color: var(--gray);
}

/* ---------- Form hints (e.g. area "Other") ---------- */
.form-hint {
    margin: 6px 0 0;
    font-size: 0.9rem;
    color: var(--gray);
}

.form-hint:empty {
    display: none;
}

/* ---------- Icons in buttons, tiles and contact cards (all from /assets/icons/icons.svg) ---------- */
.btn .icon {
    width: 20px;
    height: 20px;
}

.tile-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.tile .icon {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.contact-list strong .icon {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.contact-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-card h3 .icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
