/* ==========================================================================
   SGD Professional Tree Felling — Garden Route
   Stylesheet
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Base & typography
   3.  Layout helpers
   4.  Buttons & links
   5.  Header / navigation
   6.  Hero & page headers
   7.  Sections
   8.  Services
   9.  Work / gallery
   10. Areas, process, callouts
   11. Contact & forms
   12. Footer
   13. Motion & responsive
   ========================================================================== */


/* 1. Design tokens
   ========================================================================== */
:root {
    /* Brand palette, sampled from the SGD logo and flyers */
    --canopy-900: #1c2a12;
    --canopy-800: #24351a;
    --canopy-700: #33471f;
    --canopy-600: #445e29;
    --moss-500: #6b8f42;
    --bark-800: #33200f;
    --bark-700: #4a2e15;
    --bark-600: #6a4523;
    --ember: #d4622a;
    --ember-dark: #b64f1f;
    --gold: #bb9a5c;
    --gold-light: #d9c08a;

    --paper: #f5f2e9;
    --paper-2: #ece7d9;
    --paper-3: #ded7c4;
    --white: #ffffff;

    --ink: #22201b;
    --ink-soft: #4a4639;
    --muted: #726b5c;
    --rule: #d6cfbc;
    --rule-dark: rgba(255, 255, 255, .14);

    --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Sans 3", "Segoe UI", Helvetica, Arial, sans-serif;

    --shell: 1200px;
    --gutter: 24px;

    --shadow-sm: 0 1px 2px rgba(28, 42, 18, .06), 0 4px 12px rgba(28, 42, 18, .06);
    --shadow-md: 0 2px 4px rgba(28, 42, 18, .07), 0 14px 34px rgba(28, 42, 18, .12);
    --shadow-lg: 0 4px 8px rgba(28, 42, 18, .08), 0 26px 60px rgba(28, 42, 18, .18);

    --ease: cubic-bezier(.22, .61, .36, 1);
}


/* 2. Base & typography
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 108px;
    overflow-x: clip;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
svg { max-width: 100%; display: block; }

/* Neutralise the width/height attributes so the CSS aspect ratios below win.
   The attributes stay in the markup to reserve layout space while loading. */
img { height: auto; }

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.018em;
    color: var(--canopy-900);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.7rem); }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.45rem); letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: var(--canopy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ember-dark); }

strong { font-weight: 600; color: var(--canopy-900); }

::selection { background: var(--moss-500); color: #fff; }

:focus-visible {
    outline: 2px solid var(--ember);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 999;
    background: var(--canopy-800);
    color: #fff;
    padding: 10px 18px;
    border-radius: 3px;
    font-weight: 600;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}


/* 3. Layout helpers
   ========================================================================== */
.shell {
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.shell--narrow { max-width: 820px; }

.section { padding: clamp(60px, 8vw, 104px) 0; }
.section--tight { padding: clamp(46px, 5.5vw, 72px) 0; }

.section--paper2 { background: var(--paper-2); }

.section--dark {
    background: var(--canopy-800);
    color: rgba(255, 255, 255, .8);
}
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark strong { color: #fff; }
.section--dark a { color: var(--gold-light); }

.cta-strip strong,
.page-head strong { color: #fff; }

/* Faint paper grain — keeps large flat areas from looking synthetic */
.grain { position: relative; }
.grain::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--bark-600);
    margin: 0 0 18px;
}
.eyebrow::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--ember);
    flex: none;
}
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .eyebrow::before { background: var(--gold); }

.lede {
    font-size: clamp(1.08rem, 1.6vw, 1.22rem);
    line-height: 1.6;
    color: var(--ink-soft);
}
.section--dark .lede { color: rgba(255, 255, 255, .82); }

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 28px 64px;
    align-items: end;
    margin-bottom: clamp(34px, 4vw, 56px);
}
.section-head > :last-child { padding-bottom: 6px; }
.section-head h2 { margin-bottom: 0; }

.rule {
    height: 1px;
    background: var(--rule);
    border: 0;
    margin: 0;
}
.section--dark .rule { background: var(--rule-dark); }


/* 4. Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .93rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 26px;
    border: 1.5px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background-color .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease), transform .22s var(--ease),
                box-shadow .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
    background: var(--ember);
    color: #fff;
    box-shadow: 0 6px 18px rgba(212, 98, 42, .28);
}
.btn--primary:hover { background: var(--ember-dark); color: #fff; box-shadow: 0 10px 26px rgba(212, 98, 42, .34); }

.btn--dark { background: var(--canopy-700); color: #fff; }
.btn--dark:hover { background: var(--canopy-800); color: #fff; }

.btn--ghost {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: #fff; color: var(--canopy-900); border-color: #fff; }

.btn--outline {
    border-color: var(--canopy-700);
    color: var(--canopy-800);
}
.btn--outline:hover { background: var(--canopy-800); color: #fff; }

.btn--whatsapp { background: #1f8a4c; color: #fff; }
.btn--whatsapp:hover { background: #18723e; color: #fff; }

.btn--sm { padding: 11px 18px; font-size: .82rem; }

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Quiet text link with an arrow */
.arrow-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--canopy-700);
    border-bottom: 1.5px solid var(--rule);
    padding-bottom: 5px;
    transition: color .2s var(--ease), border-color .2s var(--ease);
}
.arrow-link svg { width: 16px; height: 16px; transition: transform .24s var(--ease); }
.arrow-link:hover { color: var(--ember-dark); border-color: var(--ember); }
.arrow-link:hover svg { transform: translateX(5px); }
.section--dark .arrow-link { color: var(--gold-light); border-color: var(--rule-dark); }
.section--dark .arrow-link:hover { color: #fff; border-color: var(--gold); }


/* 5. Header / navigation
   ========================================================================== */
.utility-bar {
    background: var(--canopy-900);
    color: rgba(255, 255, 255, .72);
    font-size: .84rem;
}
.utility-bar .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 38px;
}
.utility-bar a {
    color: rgba(255, 255, 255, .8);
    text-decoration: none;
    transition: color .18s var(--ease);
}
.utility-bar a:hover { color: #fff; }

.utility-list {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.utility-list li { display: flex; align-items: center; gap: 8px; }
.utility-list svg { width: 14px; height: 14px; opacity: .7; flex: none; }

.social-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.social-row a {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.social-row a:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.social-row svg { width: 16px; height: 16px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck {
    box-shadow: 0 6px 24px rgba(28, 42, 18, .12);
    background: var(--paper);
    /* No backdrop-filter here. A filtered element becomes the containing block
       for its position:fixed descendants, which would re-anchor the off-canvas
       menu to the header and add its width to the document's scrollable area
       (a blank strip you could pan to on mobile once the header stuck). The
       background was 96% opaque anyway, so nothing is lost visually. */
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 88px;
    transition: min-height .25s var(--ease);
}
.site-header.is-stuck .header-inner { min-height: 74px; }

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
    flex: none;
}
.brand img {
    width: auto;
    height: 70px;
    transition: height .25s var(--ease);
}
.site-header.is-stuck .brand img { height: 58px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -.015em;
    color: var(--canopy-900);
    text-transform: uppercase;
}
.brand-sub {
    font-family: var(--font-display);
    font-size: .66rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bark-600);
    margin-top: 4px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav a {
    position: relative;
    font-family: var(--font-display);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--canopy-900);
    padding: 6px 0;
    transition: color .2s var(--ease);
}
.primary-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--ember);
    transition: width .26s var(--ease);
}
.primary-nav a:hover { color: var(--ember-dark); }
.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after { width: 100%; }
.primary-nav a[aria-current="page"] { color: var(--bark-700); }

.header-cta { display: flex; align-items: center; gap: 14px; flex: none; }

.header-phone {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    line-height: 1.15;
}
.header-phone .label {
    font-family: var(--font-display);
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
}
.header-phone .number {
    font-family: var(--font-display);
    font-size: 1.16rem;
    font-weight: 800;
    color: var(--canopy-900);
    letter-spacing: -.01em;
}
.header-phone:hover .number { color: var(--ember-dark); }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--rule);
    background: transparent;
    border-radius: 3px;
    cursor: pointer;
    padding: 0;
    place-items: center;
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--canopy-900);
    position: relative;
    transition: background-color .2s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--canopy-900);
    transition: transform .25s var(--ease), top .2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }


/* 6. Hero & page headers
   ========================================================================== */
.hero {
    position: relative;
    min-height: min(84vh, 720px);
    display: flex;
    align-items: flex-end;
    padding: clamp(80px, 12vw, 130px) 0 clamp(44px, 5vw, 64px);
    background: var(--canopy-900);
    overflow: hidden;
}
.hero__media {
    position: absolute;
    inset: 0;
}
.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 100%;
}
.hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(20, 30, 13, .92) 0%, rgba(20, 30, 13, .72) 34%, rgba(20, 30, 13, .18) 62%, rgba(20, 30, 13, .34) 100%),
        linear-gradient(to top, rgba(16, 24, 10, .75) 0%, rgba(16, 24, 10, 0) 45%);
}
.hero .shell { position: relative; z-index: 2; }

.hero__content { max-width: 660px; }
.hero h1 {
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .35);
    margin-bottom: 22px;
}
.hero h1 em {
    font-style: normal;
    color: var(--gold-light);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .55);
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: clamp(.64rem, .9vw, .73rem);
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 20px;
}
.hero__eyebrow::before {
    content: "";
    width: 40px;
    height: 2px;
    background: var(--ember);
}
.hero p {
    color: rgba(255, 255, 255, .87);
    font-size: clamp(1.05rem, 1.5vw, 1.18rem);
    max-width: 560px;
    margin-bottom: 32px;
}

.hero__marks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 38px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero__marks span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .82);
}
.hero__marks svg { width: 16px; height: 16px; color: var(--moss-500); flex: none; }

/* Compact header for interior pages — deliberately not a full-height banner */
.page-head {
    position: relative;
    background: var(--canopy-800);
    color: #fff;
    padding: clamp(52px, 7vw, 86px) 0 clamp(44px, 6vw, 66px);
    overflow: hidden;
}
.page-head__media {
    position: absolute;
    inset: 0;
    opacity: .26;
}
.page-head__media img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--ember) 0 22%, var(--gold) 22% 46%, var(--moss-500) 46% 100%);
}
.page-head .shell { position: relative; z-index: 2; }
.page-head h1 { color: #fff; max-width: 16ch; margin-bottom: 16px; }
.page-head p { color: rgba(255, 255, 255, .8); max-width: 56ch; font-size: 1.08rem; }
.page-head .eyebrow { color: var(--gold-light); }
.page-head .eyebrow::before { background: var(--ember); }

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    list-style: none;
    margin: 26px 0 0;
    padding: 0;
    font-size: .84rem;
    color: rgba(255, 255, 255, .6);
}
.breadcrumb a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; opacity: .5; }


/* 7. Sections — intro, split content
   ========================================================================== */
.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(36px, 5vw, 76px);
    align-items: center;
}
.split--wide-left { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split--wide-right { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.split--top { align-items: start; }

.figure {
    position: relative;
    margin: 0;
}
.figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 3px;
}
.figure--portrait img {
    aspect-ratio: 4 / 5;
    object-position: 50% 74%;
}
.figure--framed {
    padding: 14px;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 3px;
}
.figure figcaption {
    font-size: .85rem;
    color: var(--muted);
    margin-top: 12px;
    padding-left: 14px;
    border-left: 2px solid var(--ember);
}

.figure--stacked {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 46px);
    gap: 16px;
}
.figure--stacked img:first-child { grid-column: 1; grid-row: 1 / 5; }
.figure--stacked img:nth-child(2) { grid-column: 2; grid-row: 2 / 6; }

/* Fact strip — plain facts, no invented statistics */
.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 1px;
    background: var(--rule);
    border: 1px solid var(--rule);
    margin-top: 40px;
}
.facts > div {
    background: var(--paper);
    padding: 24px 22px;
}
.facts dt {
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--bark-600);
    margin-bottom: 8px;
}
.facts dd {
    margin: 0;
    font-size: .98rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.section--paper2 .facts > div { background: var(--paper-2); }


/* 8. Services
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--rule);
    border-top: 1px solid var(--rule);
    border-left: 1px solid var(--rule);
}
.service {
    background: var(--paper);
    padding: 34px 30px 32px;
    position: relative;
    transition: background-color .28s var(--ease);
}
.service:hover { background: var(--white); }
.service__no {
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .16em;
    color: var(--gold);
    display: block;
    margin-bottom: 20px;
}
.service__icon {
    width: 34px;
    height: 34px;
    color: var(--canopy-700);
    margin-bottom: 18px;
    transition: color .28s var(--ease), transform .28s var(--ease);
}
.service:hover .service__icon { color: var(--ember); transform: translateY(-2px); }
.service h3 { margin-bottom: 10px; }
.service p {
    font-size: .97rem;
    color: var(--ink-soft);
    margin: 0;
}

/* Detailed service entries (services page) */
.service-detail {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: clamp(30px, 4.5vw, 64px);
    align-items: center;
    padding: clamp(44px, 5vw, 68px) 0;
    border-bottom: 1px solid var(--rule);
}
.service-detail:last-of-type { border-bottom: 0; }
.service-detail:nth-child(even) .service-detail__media { order: 2; }
.service-detail__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: var(--shadow-sm);
}
.service-detail__index {
    font-family: var(--font-display);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--bark-600);
    margin-bottom: 14px;
    display: block;
}

.tick-list {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
}
.tick-list li {
    position: relative;
    padding-left: 30px;
    font-size: .98rem;
    color: var(--ink-soft);
}
.tick-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .42em;
    width: 15px;
    height: 9px;
    border-left: 2.5px solid var(--ember);
    border-bottom: 2.5px solid var(--ember);
    transform: rotate(-45deg);
}
.section--dark .tick-list li { color: rgba(255, 255, 255, .82); }
.section--dark .tick-list li::before { border-color: var(--gold); }


/* 9. Work / gallery
   ========================================================================== */
.work-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.work-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 3px;
    background: var(--canopy-900);
    cursor: pointer;
    border: 0;
    padding: 0;
    width: 100%;
    text-align: left;
    font: inherit;
    color: inherit;
}
.work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease), opacity .4s var(--ease);
}
.work-card:hover img { transform: scale(1.045); opacity: .88; }
.work-card img { aspect-ratio: 4 / 3; }
.work-card--tall { grid-row: span 2; }
.work-card--tall img { aspect-ratio: auto; height: 100%; }
.work-card--wide { grid-column: span 3; }
.work-card--wide img { aspect-ratio: 21 / 9; }
/* For a full-width card whose subject is vertical: 21/9 would cut the top off,
   so keep the photograph's own 16:9 frame. The responsive rules below still
   override this at narrower widths. */
.work-card--banner img { aspect-ratio: 16 / 9; }

.work-card__meta {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 46px 20px 18px;
    background: linear-gradient(to top, rgba(16, 24, 10, .88), rgba(16, 24, 10, 0));
    color: #fff;
}
.work-card__meta strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -.005em;
}
.work-card__meta span {
    font-size: .84rem;
    color: rgba(255, 255, 255, .74);
}

/* Video card: sits in the grid like a photograph, with a play badge over the
   still frame. The clip itself opens in the lightbox. */
.work-card__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 30, 13, .5);
    border: 2px solid rgba(255, 255, 255, .85);
    display: grid;
    place-items: center;
    pointer-events: none;
    transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.work-card__play svg {
    width: 20px;
    height: 20px;
    color: #fff;
    margin-left: 3px;
}
.work-card:hover .work-card__play {
    background: var(--ember);
    border-color: #fff;
    transform: translate(-50%, -50%) scale(1.06);
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(12, 18, 8, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img,
.lightbox__video {
    max-width: 100%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 2px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__video { background: #000; }
.lightbox [hidden] { display: none; }
.lightbox__caption {
    position: absolute;
    left: 0; right: 0; bottom: 3vh;
    text-align: center;
    color: rgba(255, 255, 255, .82);
    font-size: .95rem;
    padding-inline: 20px;
}
.lightbox__close,
.lightbox__nav {
    position: absolute;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background-color .2s var(--ease);
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 3vh; right: 4vw; }
.lightbox__nav svg,
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__nav--prev { left: 2vw; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 2vw; top: 50%; transform: translateY(-50%); }


/* 10. Areas, process, callouts
   ========================================================================== */
.area-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.area-list li {
    font-family: var(--font-display);
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 10px 18px;
    border: 1px solid var(--rule);
    background: var(--paper);
    border-radius: 2px;
    color: var(--canopy-800);
}
.section--dark .area-list li {
    border-color: var(--rule-dark);
    background: rgba(255, 255, 255, .05);
    color: rgba(255, 255, 255, .88);
}

.process {
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}
.process--2up { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process--3up { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.process > li {
    counter-increment: step;
    list-style: none;
    padding-top: 22px;
    border-top: 2px solid var(--rule);
    position: relative;
}
.process > li::before {
    content: "0" counter(step);
    position: absolute;
    top: -14px;
    left: 0;
    background: var(--paper);
    padding-right: 12px;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .1em;
    color: var(--ember);
}
.section--dark .process > li { border-color: var(--rule-dark); }
.section--dark .process > li::before { background: var(--canopy-800); color: var(--gold-light); }
.section--paper2 .process > li::before { background: var(--paper-2); }
.process h3 { font-size: 1.12rem; margin-bottom: 8px; }
.process p { font-size: .95rem; color: var(--ink-soft); margin: 0; }
.section--dark .process p { color: rgba(255, 255, 255, .76); }

/* Slim call-to-action strip */
.cta-strip {
    background: var(--bark-800);
    color: #fff;
    padding: clamp(36px, 4.5vw, 54px) 0;
}
.cta-strip .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}
.cta-strip h2 {
    color: #fff;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    margin: 0 0 6px;
}
.cta-strip p { color: rgba(255, 255, 255, .74); margin: 0; }

.emergency-note {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 22px 24px;
    background: rgba(212, 98, 42, .09);
    border-left: 3px solid var(--ember);
    margin-top: 30px;
}
.emergency-note svg { width: 24px; height: 24px; color: var(--ember); flex: none; margin-top: 2px; }
.emergency-note p { margin: 0; font-size: .96rem; color: var(--ink-soft); }
.section--dark .emergency-note {
    background: rgba(255, 255, 255, .06);
    border-color: var(--gold);
}
.section--dark .emergency-note p { color: rgba(255, 255, 255, .82); }
.section--dark .emergency-note svg { color: var(--gold-light); }


/* 11. Contact & forms
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: start;
}

.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 2px;
    background: var(--rule);
    border: 1px solid var(--rule);
}
.contact-list li {
    background: var(--paper);
    display: flex;
    gap: 16px;
    padding: 22px 24px;
}
.contact-list svg { width: 22px; height: 22px; color: var(--canopy-700); flex: none; margin-top: 3px; }
.contact-list .k {
    display: block;
    font-family: var(--font-display);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 4px;
}
.contact-list .v {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--canopy-900);
    text-decoration: none;
    letter-spacing: -.005em;
    word-break: break-word;
}
a.v:hover { color: var(--ember-dark); }
.contact-list .v-sub {
    display: block;
    margin-top: 4px;
    font-size: .92rem;
    line-height: 1.45;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-weight: 400;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--rule);
    padding: clamp(26px, 3.5vw, 40px);
    box-shadow: var(--shadow-sm);
    border-radius: 3px;
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label {
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 8px;
}
.field label .req { color: var(--ember); }
.field input,
.field select,
.field textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 2px;
    padding: 13px 14px;
    transition: border-color .2s var(--ease), background-color .2s var(--ease);
    width: 100%;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--canopy-600);
    background: var(--white);
}
.field input::placeholder,
.field textarea::placeholder { color: #a49d8d; }

.form-note {
    font-size: .87rem;
    color: var(--muted);
    margin: 18px 0 0;
}
.form-status {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(107, 143, 66, .12);
    border-left: 3px solid var(--moss-500);
    font-size: .93rem;
    color: var(--ink-soft);
    display: none;
}
.form-status.is-visible { display: block; }

.map-embed {
    border: 1px solid var(--rule);
    border-radius: 3px;
    overflow: hidden;
    background: var(--paper-2);
}
.map-embed iframe { display: block; width: 100%; height: 340px; border: 0; }


/* 12. Footer
   ========================================================================== */
.site-footer {
    background: var(--canopy-900);
    color: rgba(255, 255, 255, .68);
    padding: clamp(52px, 6vw, 78px) 0 0;
    font-size: .96rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}
.site-footer h4 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
}
.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 11px;
}
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

.footer-brand img { height: 96px; width: auto; margin-bottom: 18px; }
.footer-brand p { max-width: 34ch; line-height: 1.6; }
.footer-brand .social-row { margin-top: 20px; }
.footer-brand .social-row a { background: rgba(255, 255, 255, .07); width: 38px; height: 38px; }
.footer-brand .social-row a:hover { background: var(--moss-500); }
.footer-brand .social-row svg { width: 18px; height: 18px; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 22px 0 28px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: .86rem;
    color: rgba(255, 255, 255, .5);
}
.footer-bottom a { color: rgba(255, 255, 255, .6); }

/* Floating WhatsApp — small, unobtrusive */
.float-wa {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 55;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #1f8a4c;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .26);
    transition: transform .22s var(--ease), background-color .22s var(--ease);
}
.float-wa:hover { transform: scale(1.07); background: #18723e; color: #fff; }
.float-wa svg { width: 27px; height: 27px; }


/* 13. Motion & responsive
   ========================================================================== */
@keyframes nav-slide-in {
    from { transform: translateX(100%); }
    to   { transform: none; }
}

/* Scoped to .js (set by an inline script in <head>) so that with scripting
   off the content is simply visible rather than stuck at opacity 0. */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
    .js [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
    .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .primary-nav ul { gap: 22px; }
    .header-phone { display: none; }
}

@media (max-width: 900px) {
    html { scroll-padding-top: 80px; }

    .utility-bar { display: none; }

    .nav-toggle { display: grid; }

    /* Closed: display:none, so the panel has no geometry at all and cannot
       extend the page sideways however its ancestors are painted. It slides in
       with a keyframe on open; closing is immediate. */
    .primary-nav {
        display: none;
        position: fixed;
        inset: 0 0 0 auto;
        width: min(340px, 84vw);
        background: var(--paper);
        border-left: 1px solid var(--rule);
        box-shadow: -18px 0 50px rgba(28, 42, 18, .18);
        padding: 96px 30px 40px;
        overflow-y: auto;
        z-index: 70;
    }
    .primary-nav.is-open {
        display: block;
        animation: nav-slide-in .32s var(--ease);
    }
    .primary-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .primary-nav li { border-bottom: 1px solid var(--rule); }
    .primary-nav a {
        display: block;
        padding: 16px 0;
        font-size: 1rem;
    }
    .primary-nav a::after { display: none; }
    .nav-toggle { position: relative; z-index: 80; }

    .nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(20, 30, 13, .5);
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s var(--ease);
        /* Below the header (60) so the panel inside it is not dimmed by its
           own scrim, but above the floating WhatsApp button (55). */
        z-index: 58;
    }
    .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

    .header-inner { min-height: 74px; }
    .brand img { height: 52px; }
    .site-header.is-stuck .brand img { height: 46px; }
    .brand-name { font-size: 1.1rem; }
    .brand-sub { font-size: .58rem; letter-spacing: .18em; }

    .split,
    .contact-layout,
    .section-head,
    .service-detail { grid-template-columns: 1fr; }
    .split--wide-left,
    .split--wide-right { grid-template-columns: 1fr; }
    .section-head { gap: 18px; }
    .section-head > :last-child { padding-bottom: 0; }
    .service-detail:nth-child(even) .service-detail__media { order: 0; }

    .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .work-card--tall { grid-row: span 1; }
    .work-card--tall img { aspect-ratio: 4 / 3; height: auto; }
    .work-card--wide { grid-column: span 2; }
    .work-card--wide img { aspect-ratio: 16 / 9; }

    .hero { min-height: 0; padding-top: clamp(64px, 16vw, 96px); }
    .figure--stacked { grid-template-rows: repeat(5, 34px); }
}

@media (max-width: 620px) {
    body { font-size: 16px; }


    /* The header has to fit a logo, a wordmark and the menu button on a phone,
       so the quote button steps aside — the sticky WhatsApp bubble covers it. */
    .header-cta > .btn { display: none; }
    .header-inner { gap: 12px; }
    .brand { gap: 10px; }
    .brand img,
    .site-header.is-stuck .brand img { height: 46px; }
    .brand-name { font-size: .98rem; }
    .brand-sub { font-size: .52rem; letter-spacing: .16em; }
    .nav-toggle { width: 42px; height: 42px; }
    .services-grid { grid-template-columns: 1fr; }
    .process { grid-template-columns: 1fr; }
    .work-grid { grid-template-columns: 1fr; }
    .work-card--wide { grid-column: span 1; }
    .work-card--wide img { aspect-ratio: 4 / 3; }
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .btn { width: 100%; }
    .btn-row { flex-direction: column; align-items: stretch; }
    .cta-strip .shell { flex-direction: column; align-items: flex-start; }
    .float-wa { right: 14px; bottom: 14px; }
    .figure--stacked { grid-template-columns: 1fr; grid-template-rows: none; }
    .figure--stacked img { grid-column: 1 !important; grid-row: auto !important; }
}

@media print {
    .site-header, .utility-bar, .float-wa, .site-footer, .cta-strip { display: none; }
    body { background: #fff; }
}
