/* =============================================================================
   Lucidflare — Main Stylesheet

   Single, unconditionally-enqueued stylesheet for the whole theme. Every
   Page Component's CSS lives here too, under its own banner comment below
   (search "Page Component —") — there is no `assets/css/components/`
   directory any more. Component styles used to be split one-file-per-
   component, each conditionally enqueued only on pages that embedded that
   component; they were consolidated into this one file so all theme CSS
   lives in one place and shared patterns are easy to find and reuse rather
   than quietly re-declared per component. See CLAUDE.md's "CSS
   architecture" note for the full rationale — read that before adding a
   new component's styles.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Custom Properties
   --------------------------------------------------------------------------- */
:root {
    --color-text: #1a1a1a;
    --color-text-muted: #6b7280;
    --color-bg: #ffffff;
    --color-border: #e5e7eb;
    --color-accent: #2563eb;
    --color-accent-dark: #1d4ed8;

    --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

    --text-base: 1rem;
    --text-sm: 0.875rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;

    --leading-tight: 1.25;
    --leading-normal: 1.6;

    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    --max-width-content: 720px;
    --max-width-wide: 1200px;

    --transition: 150ms ease;

    /* -------------------------------------------------------------------
       Tyne Sheds brand tokens — used by Page Components (Hero, etc.) and
       the shared primitives below (.btn, .section-inner, .kicker). Ported
       from ReferenceMaterial/mockup. Kept alongside the generic scaffold
       tokens above until the rest of the theme (header/nav/footer) is
       rebuilt as components too.
       ------------------------------------------------------------------- */
    --clr-forest:     #2f6b3f;
    --clr-forest-lt:  #8aac78;
    --clr-forest-dk:  #245431;
    --clr-forest-dkr: #17311e;
    --clr-timber:     #c07f33;
    --clr-timber-lt:  #e2a44f;

    --clr-ink:   #1c2620;
    --clr-body:  #46564d;
    --clr-muted: #7a8a80;
    --clr-line:  #e2e6df;
    --clr-stone: #f4f2ec;
    --clr-cream: #faf8f3;
    --clr-white: #ffffff;

    --fs-hero: clamp(2.85rem, 6vw, 5.75rem);
    --fs-h2:   clamp(2.1rem, 5vw, 3.6rem);
    --fs-lead: clamp(1.05rem, 2vw, 1.25rem);

    --ff-display: 'Poppins', var(--font-sans);
    --ff-body:    'Manrope', var(--font-sans);

    --nav-h:     74px;
    --radius-lg: 20px;
    --max-w:     1240px;

    --t: 0.28s ease;

    --shadow-sm: 0 4px 18px rgba(28, 38, 32, 0.06);
    --shadow-md: 0 14px 40px rgba(28, 38, 32, 0.1);
    --shadow-lg: 0 30px 70px rgba(28, 38, 32, 0.16);
}

/* ---------------------------------------------------------------------------
   Reset
   --------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--clr-body);
    background: var(--clr-cream);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--ff-display);
    margin: 0 0 var(--space-md);
    line-height: var(--leading-tight);
    font-weight: 700;
}

/* Site-wide heading identity. Individual sections may still control layout
   and scale, but h1/h2 typography comes from this one shared rule. */
h1,
h2 {
    font-weight: 500;
    color: var(--clr-ink);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

h1 em,
h2 em {
    color: var(--clr-forest);
    font-style: italic;
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

h5 {
    font-size: var(--text-lg);
}

h6 {
    font-size: var(--text-base);
}

p {
    margin: 0 0 var(--space-md);
}

ul,
ol {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-xl);
}

li {
    margin-bottom: var(--space-xs);
}

a {
    color: var(--color-accent);
    text-decoration: underline;
}

a:hover {
    color: var(--color-accent-dark);
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

figure {
    margin: 0;
}

hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: var(--space-2xl) 0;
}

code,
kbd,
samp,
pre {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
}

pre {
    overflow-x: auto;
    padding: var(--space-md);
    background: #f3f4f6;
    border-radius: var(--radius-md);
    margin: 0 0 var(--space-md);
}

blockquote {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
    border-left: 4px solid var(--color-accent);
    color: var(--color-text-muted);
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 var(--space-md);
}

th,
td {
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    text-align: left;
}

th {
    /* background: #f9fafb; */
    font-weight: 600;
}

/* ---------------------------------------------------------------------------
   Layout
   --------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width-wide);
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
    /* The header is fixed (see below), so on ordinary pages content needs
       clearance equal to its height, plus the usual breathing room. */
    padding-top: calc(var(--nav-h) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
}

/* Page-Component-driven pages (anything using [page_component]) manage
   their own vertical rhythm — the Hero's own top padding already accounts
   for the fixed header sitting over it (see .hero below), and each
   component owns its own spacing — so the generic content padding above,
   meant for blog-style pages, would just add an unwanted extra gap. See
   tynesheds_body_class() in functions.php for how .has-page-components
   gets added. */
body.has-page-components .site-content {
    padding: 0;
}

/* Optional full-viewport wrapper added by
   [page_component type="..." full_width="true"]. The component's own
   .section-inner continues to constrain its content. */
.page-component-full-width {
    margin-inline: calc(50% - 50vw);
}

/* The block editor can leave an empty paragraph after a shortcode. When a
   full-width component is the final piece of page content, that paragraph's
   global bottom margin otherwise creates a visible strip above the footer. */
.page-component-full-width + p:last-child:empty {
    display: none;
}

/* ---------------------------------------------------------------------------
   Header / Navigation
   Ported from ReferenceMaterial/mockup/1/styles.css (.site-nav etc.),
   applied to the existing .site-header element rather than introducing a
   parallel class name.
   --------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 200;
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
    padding: 0.75rem clamp(1.25rem, 5vw, 3rem);
    background: var(--clr-cream);
    border-bottom: 1px solid var(--clr-line);
    transition: box-shadow var(--t), border-color var(--t);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(1rem, 3vw, 2rem);
    position: relative;
}

.nav-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    z-index: 301;
}

.nav-logo img {
    height: 48px;
    width: auto;
    max-width: none;
    display: block;
}

.nav-logo .site-title {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--clr-ink);
    text-decoration: none;
}

/* Desktop primary menu — hidden below 1080px in favour of the burger/modal */
.nav-menu {
    display: none;
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 2.6vw, 2.5rem);
}

.nav-menu a {
    position: relative;
    display: inline-block;
    padding: 0.4rem 0.1rem;
    font-family: var(--ff-body);
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--clr-ink);
    text-decoration: none;
    transition: color var(--t);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -0.15rem;
    height: 2px;
    background: var(--clr-forest);
    border-radius: 2px;
    transition: right var(--t);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
    color: var(--clr-forest);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
    right: 0;
}

/* Keep the header actions available at every width and scroll position. */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-left: auto;
    flex-shrink: 0;
}

.nav-cta {
    display: inline-flex;
}

.header-search-toggle,
.site-search__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 11px;
    flex-shrink: 0;
    background: var(--clr-white);
    border: 1px solid var(--clr-line);
    border-radius: 12px;
    color: var(--clr-forest-dk);
    cursor: pointer;
}

.header-search-toggle:hover,
.site-search__close:hover {
    background: var(--clr-stone);
    border-color: var(--clr-forest-lt);
}

.header-search-toggle svg,
.site-search__close svg {
    width: 24px;
    height: 24px;
}

.header-search-toggle:focus-visible,
.site-search :is(a, button, input):focus-visible {
    outline: 3px solid var(--clr-forest);
    outline-offset: 4px;
}

.site-header__cart {
    margin-inline: 0.25rem 0.5rem;
}

.site-header__cart {
    display: flex;
    align-items: center;
}

.site-header__cart .cart-contents {
    position: relative;
    display: inline-flex;
    color: var(--clr-ink);
}

.site-header__cart .cart-count {
    position: absolute;
    top: -0.4rem;
    right: -0.5rem;
    min-width: 16px;
    padding: 0 4px;
    border-radius: 99px;
    background: var(--clr-forest);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
}

/* Burger (mobile nav trigger) */
.burger {
    position: relative;
    z-index: 301;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 12px;
    background: var(--clr-white);
    border: 1px solid var(--clr-line);
    border-radius: 12px;
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
}

.burger:hover {
    border-color: rgba(47, 107, 63, 0.4);
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--clr-ink);
    border-radius: 2px;
    transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}

.burger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.burger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 1080px) {
    .nav-inner {
        justify-content: flex-start;
        gap: clamp(1.5rem, 3vw, 3rem);
    }

    .nav-menu {
        display: block;
        margin-right: auto;
        margin-left: clamp(1.5rem, 4vw, 3.5rem);
    }

    .nav-cta {
        display: inline-flex;
    }

    .burger {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding-inline: 1rem;
    }

    .nav-inner {
        gap: 0.5rem;
    }

    .nav-actions {
        gap: 0.375rem;
    }

    .nav-logo img {
        height: 44px;
    }

    .nav-cta {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }

    .header-search-toggle,
    .burger {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 380px) {
    .site-header {
        padding-inline: 0.75rem;
    }

    .nav-inner {
        gap: 0.375rem;
    }

    .nav-actions {
        gap: 0.25rem;
    }

    .nav-logo img {
        height: 40px;
    }

    .nav-cta {
        font-size: 0.6875rem;
        padding-inline: 0.5rem;
    }
}

/* Native search dialog sits above all site chrome in the browser top layer. */
.site-search {
    width: min(640px, calc(100% - 2rem));
    max-width: none;
    max-height: calc(100dvh - 2rem);
    padding: 0;
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    background: var(--clr-cream);
    color: var(--clr-body);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.site-search::backdrop {
    background: rgba(23, 49, 30, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.site-search__panel {
    position: relative;
    padding: clamp(1.5rem, 5vw, 3rem);
    padding-top: 4.5rem;
}

.site-search__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.site-search h2 {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
}

.site-search .search-form {
    max-width: none;
    margin-block: 1.75rem 1.25rem;
}

.site-search .search-field {
    min-width: 0;
}

@media (max-width: 480px) {
    .site-search {
        margin-top: max(1rem, env(safe-area-inset-top));
    }

    .site-search .search-submit {
        min-height: 50px;
    }
}

/* Mobile nav modal */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 298;
    background: rgba(23, 49, 30, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-menu, 0.35s ease);
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-modal {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 299;
    width: min(360px, 86vw);
    background: var(--clr-cream);
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--t-menu, 0.35s ease);
    overflow-y: auto;
}

.nav-modal.open {
    transform: translateX(0);
}

.modal-inner {
    padding: clamp(4.5rem, 12vw, 6rem) clamp(1.5rem, 5vw, 2.5rem) 2.5rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.modal-close {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--clr-white);
    border: 1px solid var(--clr-line);
    border-radius: 12px;
    cursor: pointer;
}

.modal-close span {
    position: absolute;
    width: 18px;
    height: 2px;
    background: var(--clr-ink);
    border-radius: 2px;
}

.modal-close span:first-child {
    transform: rotate(45deg);
}

.modal-close span:last-child {
    transform: rotate(-45deg);
}

.modal-links {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-links a {
    display: block;
    padding: 0.7rem 0;
    font-family: var(--ff-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--clr-ink);
    text-decoration: none;
    border-bottom: 1px solid var(--clr-line);
    transition: color var(--t);
}

.modal-links .current-menu-item > a,
.modal-links a:hover {
    color: var(--clr-forest);
}

.modal-cta {
    margin-top: 2rem;
}

/* ---------------------------------------------------------------------------
   Footer
   Ported from ReferenceMaterial/mockup/1/styles.css.
   --------------------------------------------------------------------------- */
.site-footer {
    background: var(--clr-forest-dkr);
    color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: clamp(3rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 3rem) clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: 1.3fr 2fr;
    gap: clamp(2.5rem, 6vw, 5rem);
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-bottom: 1.25rem;
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    color: #fff;
}

.footer-logo img {
    height: 56px;
    width: auto;
    display: block;
    /* Logo is black line-art; invert to white for the dark footer. */
    filter: brightness(0) invert(1);
}

.footer-strapline {
    font-size: 0.925rem;
    line-height: 1.7;
    max-width: 340px;
    margin: 0;
}

.footer-socials {
    margin-top: 1.5rem;
}

.footer-socials ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-social-link {
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--t), border-color var(--t), color var(--t), transform var(--t);
}

.footer-social-link svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.footer-social-link:hover,
.footer-social-link:focus-visible {
    background: var(--clr-timber-lt);
    border-color: var(--clr-timber-lt);
    color: var(--clr-forest-dkr);
    transform: translateY(-2px);
}

.footer-menus {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.5rem, 4vw, 2.5rem);
}

.footer-col-title {
    font-family: var(--ff-body);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.1rem;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer-col a {
    font-size: 0.925rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color var(--t);
    line-height: 1.5;
}

.footer-col a:hover {
    color: var(--clr-timber-lt);
}

.footer-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 1.5rem clamp(1.25rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
}

.footer-bar p {
    margin: 0;
}

.footer-credit {
    margin: 0;
}

.footer-credit a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: color var(--t);
}

.footer-credit a:hover,
.footer-credit a:focus-visible {
    color: var(--clr-timber-lt);
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 480px) {
    .footer-menus {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ---------------------------------------------------------------------------
   Posts / Entries
   --------------------------------------------------------------------------- */
.entry+.entry {
    margin-top: var(--space-3xl);
    padding-top: var(--space-3xl);
    border-top: 1px solid var(--color-border);
}

.entry-title {
    margin-bottom: var(--space-sm);
}

.entry-title a {
    text-decoration: none;
    color: inherit;
}

.entry-title a:hover {
    color: var(--color-accent);
}

.entry-meta {
    display: flex;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.entry-thumbnail {
    margin-bottom: var(--space-lg);
}

.entry-thumbnail img {
    border-radius: var(--radius-md);
    width: 100%;
}

.entry-footer {
    margin-top: var(--space-lg);
    font-size: var(--text-sm);
    color: var(--color-text-muted);
}

/* ---------------------------------------------------------------------------
   Read More / Buttons
   --------------------------------------------------------------------------- */
.read-more,
.button,
button[type="submit"],
input[type="submit"] {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition);
}

.read-more:hover,
.button:hover,
button[type="submit"]:hover,
input[type="submit"]:hover {
    background: var(--color-accent-dark);
    color: #fff;
}

/* ---------------------------------------------------------------------------
   Forms
   --------------------------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="url"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font: inherit;
    font-size: var(--text-base);
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color var(--transition);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* ---------------------------------------------------------------------------
   Search Form
   --------------------------------------------------------------------------- */
.search-form {
    display: flex;
    gap: var(--space-sm);
}

.search-form .search-field {
    flex: 1;
}

.search-form .search-submit {
    flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
   Page Header
   --------------------------------------------------------------------------- */
.page-header {
    margin-bottom: var(--space-2xl);
}

.page-title {
    font-size: var(--text-3xl);
}

/* ---------------------------------------------------------------------------
   Pagination
   --------------------------------------------------------------------------- */
.nav-links,
.posts-navigation,
.post-navigation {
    margin-top: var(--space-3xl);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--space-md);
}

/* ---------------------------------------------------------------------------
   Comments
   --------------------------------------------------------------------------- */
.comments-area {
    margin-top: var(--space-3xl);
}

.comments-title {
    margin-bottom: var(--space-xl);
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-2xl);
}

.comment-body {
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

/* ---------------------------------------------------------------------------
   Sidebar / Widgets
   --------------------------------------------------------------------------- */
.widget {
    margin-bottom: var(--space-2xl);
}

.widget-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding-block: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
}

/* ---------------------------------------------------------------------------
   404 / No Results
   --------------------------------------------------------------------------- */
.no-results {
    text-align: center;
    padding-block: var(--space-3xl);
}

/* Branded 404 — scoped so the shared search form stays unchanged elsewhere. */
.error-404 {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-block: 1rem;
}

.error-404 h1 {
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    margin-bottom: 1.5rem;
}

.error-404__intro {
    max-width: 46ch;
    font-size: var(--fs-lead);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.error-404__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.error-404__illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    border-radius: 48% 48% var(--radius-lg) var(--radius-lg);
    background: var(--clr-stone);
    text-align: center;
}

.error-404__number {
    font-family: var(--ff-display);
    font-size: clamp(5rem, 9vw, 8rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
    color: var(--clr-forest-dk);
}

.error-404__illustration > svg {
    display: block;
    width: 100%;
    max-width: 440px;
    height: auto;
}

.error-404__caption {
    font-size: var(--text-sm);
    color: var(--clr-body);
}

.error-404__search {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-top: 1px solid var(--clr-line);
    padding-top: 2rem;
}

.error-404__search p {
    margin: 0;
    font-size: var(--text-sm);
}

.error-404__search .error-404__search-title {
    color: var(--clr-ink);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

:is(.error-404, .search-page, .site-search) .search-form {
    flex: 1;
    max-width: 460px;
    flex-direction: row;
    align-items: stretch;
}

.site-search .search-form {
    max-width: none;
}

@media (max-width: 480px) {
    .site-search .search-form {
        flex-direction: column;
    }
}

:is(.error-404, .search-page) .search-form label {
    flex: 1;
    min-width: 0;
}

:is(.error-404, .search-page, .site-search) .search-field {
    height: 100%;
    min-height: 50px;
    border-color: var(--clr-line);
    border-radius: var(--radius-md);
}

:is(.error-404, .search-page, .site-search) .search-submit {
    background: var(--clr-forest);
    border-radius: var(--radius-md);
    padding-inline: 1.5rem;
}

:is(.error-404, .search-page, .site-search) .search-submit:hover {
    background: var(--clr-forest-dk);
}

:is(.error-404, .search-page) :is(a, button, input):focus-visible {
    outline: 3px solid var(--clr-forest);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .error-404 {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.5rem;
        padding-block: 0;
    }

    .error-404__illustration {
        width: 100%;
        max-width: 400px;
        justify-self: center;
    }

    .error-404__search {
        flex-direction: column;
        align-items: stretch;
    }

    .error-404 .search-form {
        width: 100%;
        max-width: none;
    }
}

/* ---------------------------------------------------------------------------
   Utility
   --------------------------------------------------------------------------- */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .search-form {
        flex-direction: column;
    }
}

/* ---------------------------------------------------------------------------
   Tyne Sheds Design System — shared primitives
   ---------------------------------------------------------------------------
   Cross-component building blocks ported from ReferenceMaterial/mockup, or
   extracted while building Page Components below because two or more of
   them turned out to want the exact same rule. This is the first place to
   look before writing new component CSS — reuse or extend one of these
   rather than re-declaring the same pattern under a new component-scoped
   class. See CLAUDE.md's "CSS architecture" note.
   --------------------------------------------------------------------------- */
.section-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    width: 100%;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--ff-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--clr-forest);
    margin-bottom: 1rem;
}

.kicker::before {
    content: '';
    width: 22px;
    height: 2px;
    background: var(--clr-timber);
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    border-radius: 99px;
    cursor: pointer;
    transition: background var(--t), color var(--t), border-color var(--t), box-shadow var(--t), transform var(--t);
    white-space: nowrap;
}

.btn-lg {
    padding: 0.95rem 1.75rem;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.875rem;
}

.btn-full {
    width: 100%;
}

.btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform var(--t);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--clr-forest);
    color: #fff;
    box-shadow: 0 6px 18px rgba(47, 107, 63, 0.25);
}

.btn-primary:hover {
    background: var(--clr-forest-dk);
    box-shadow: 0 10px 26px rgba(47, 107, 63, 0.38);
    transform: translateY(-2px);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--clr-forest);
    border-color: rgba(47, 107, 63, 0.28);
}

.btn-ghost:hover {
    background: rgba(47, 107, 63, 0.06);
    border-color: var(--clr-forest);
    transform: translateY(-2px);
}

.btn-ghost svg:hover {
    transform: none;
}

/* Section heading: a two-part "prefix" + emphasised "highlight" <h2>,
   applied directly on the heading itself (`class="section-heading"`) —
   shared by the Product Ranges, Why Us, Reviews and Service Area
   components below rather than each redeclaring the same font-family/
   size/colour rule. Add `.section-heading--light` alongside it on
   dark-background sections (Reviews, Service Area) for the white/timber
   palette swap. `.section-sub` is the paragraph immediately under it, same
   "apply directly on the element" pattern; its colour on a dark background
   isn't identical between components (by original mockup design — Reviews
   sits on the darkest green and wants lower contrast than Service Area's
   lighter one) so that override stays local to each component section
   below rather than being forced into a shared `--light` variant here.
   Each component still owns its own surrounding layout (column width,
   centring, spacing) via its own wrapper class alongside these. */
.section-heading {
    font-size: var(--fs-h2);
}

section{
    border-top: 1px solid var(--clr-line);
}

.section-heading em {
    color: var(--clr-forest);
}

.section-heading--light {
    color: #fff;
}

.section-heading--light em {
    color: var(--clr-timber-lt);
}

.section-sub {
    margin-top: 1rem;
    font-size: var(--fs-lead);
    line-height: 1.65;
    color: var(--clr-body);
}

/* Centred CTA button beneath a section's main content — identical wrapper
   used by both Product Ranges (under the card grid) and Why Us. */
.section-cta {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
    display: flex;
    justify-content: center;
}

/* =============================================================================
   Page Components
   =============================================================================
   Each Page Component's own CSS (previously one file per component under
   assets/css/components/, now bundled here — see the note at the top of
   this file and CLAUDE.md's "CSS architecture" section). Every component's
   classes are still scoped by a component-specific prefix (`.hero-*`,
   `.why-us-*`, `.reviews-*`, `.service-area-*`, …) so bundling them
   together into one unconditionally-loaded file doesn't risk clashes.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   Page Component — Hero
   Ported/adapted from ReferenceMaterial/mockup/1/styles.css. Shared tokens
   (--clr-*, --ff-*, ...) and the .btn/.section-inner primitives are defined
   above in this same file. (The entrance-animation JS is still enqueued
   conditionally — see hero.js / lucidflare_enqueue_assets() in
   functions.php — only this CSS is now unconditional.)
   --------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(var(--nav-h) + 2.5rem) 0 5.5rem;
    overflow: hidden;
    background: var(--clr-forest-dkr);
}

.hero em {
    font-style: italic;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    color: var(--clr-white);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.58);
}

.hero-sub {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    text-shadow: 0 1px 7px rgba(0, 0, 0, 0.72);
}

/* Prevent a flash of fully-visible content before the entrance animation
   runs (see assets/js/components/hero.js). The .js-anim class is added to
   <html> synchronously in <head> — see lucidflare_js_anim_flag() in
   functions.php — and removed (never added at all, if prefers-reduced-
   motion) once GSAP has taken over or decided not to run. */
.js-anim .hero-title,
.js-anim .hero-sub,
.js-anim .hero-btns {
    opacity: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Background photo — visible, especially away from the copy column. Opacity
   plus the wash below keep the text readable without washing out the photo. */
.hero-bg-photo {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-photo);
    background-size: cover;
    background-position: center 60%;
    opacity: 1;
}

/* Dark cinematic wash: concentrated behind the copy, then fading rapidly
   through the middle so the sky and building on the right stay sunlit. */
.hero-bg-wash {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(7, 20, 15, 0.8) 0%, rgba(7, 20, 15, 0.7) 28%, rgba(7, 20, 15, 0.46) 40%, rgba(7, 20, 15, 0.18) 52%, rgba(7, 20, 15, 0.04) 62%, transparent 72%),
        radial-gradient(ellipse 70% 58% at 12% 100%, rgba(7, 20, 15, 0.48) 0%, rgba(7, 20, 15, 0.2) 48%, transparent 78%);
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.hero-orb-1 {
    width: clamp(300px, 45vw, 560px);
    height: clamp(300px, 45vw, 560px);
    background: rgba(47, 107, 63, 0.12);
    top: -12%;
    right: -6%;
    animation: hero-orb-float 11s ease-in-out infinite;
}

.hero-orb-2 {
    width: clamp(220px, 35vw, 420px);
    height: clamp(220px, 35vw, 420px);
    background: rgba(192, 127, 51, 0.1);
    bottom: 2%;
    left: -6%;
    animation: hero-orb-float 14s ease-in-out infinite reverse;
    animation-delay: -4s;
}

@keyframes hero-orb-float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-26px) scale(1.05);
    }
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 790px);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    flex: 1;
}

.hero-title {
    font-size: var(--fs-hero);
    margin-bottom: 1.5rem;
}

.hero-title .line {
    display: block;
}

.hero-title em {
    color: var(--clr-white);
}

.hero-sub {
    font-family: var(--ff-body);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 2.25rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.875rem;
    margin-bottom: 2rem;
}

.hero .btn-ghost {
    color: var(--clr-forest);
    background: var(--clr-white);
    border-color: var(--clr-white);
    box-shadow: 0 6px 18px rgba(7, 20, 15, 0.2);
}

.hero .btn-ghost:hover {
    color: var(--clr-forest-dk);
    background: var(--clr-cream);
    border-color: var(--clr-cream);
    box-shadow: 0 10px 26px rgba(7, 20, 15, 0.28);
}

@media (max-width: 900px) {
    /* Mobile becomes an image-led poster: the photo stays bright above and
       the copy sits over a gradual dark fade at the bottom. */
    .hero {
        height: var(--hero-mobile-height, 100dvh);
        min-height: var(--hero-mobile-height, 100dvh);
        max-height: var(--hero-mobile-height, 100dvh);
        padding: 0;
    }

    .hero-inner {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: flex-end;
        min-height: 0;
        padding-top: calc(var(--nav-h) + 1rem);
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .hero-title {
        max-width: 100%;
        margin-bottom: 0.65rem;
        font-size: clamp(2rem, 10.5vw, 3.15rem);
        line-height: 1.02;
        letter-spacing: -0.035em;
    }

    .hero-title .line {
        white-space: nowrap;
    }

    .hero-title em {
        font-style: normal;
    }

    .hero-sub {
        max-width: 34ch;
        margin-bottom: 1.15rem;
        font-size: clamp(1rem, 4.5vw, 1.2rem);
        line-height: 1.4;
    }

    .hero-btns {
        margin-top: 0;
        margin-bottom: 0;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    /* Keep the subject and sky clear in the upper frame. The fade only
       becomes substantial where the copy begins. */
    .hero-bg-photo {
        background-position: center top;
        opacity: 1;
    }

    @media (max-width: 600px) {
        .hero-bg-photo {
            background-size: auto 76%;
            background-repeat: no-repeat;
        }
    }

    .hero-bg-wash {
        background: linear-gradient(
            180deg,
            transparent 0%,
            rgba(7, 20, 15, 0.04) 34%,
            rgba(7, 20, 15, 0.48) 54%,
            rgba(7, 20, 15, 0.86) 72%,
            rgba(7, 20, 15, 0.97) 100%
        );
    }

    /* Keep both CTAs inside the viewport footer on short phones. */
    @media (max-height: 700px) {
        .hero-inner {
            padding-top: calc(var(--nav-h) + 0.75rem);
            padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
        }

        .hero-title {
            font-size: clamp(2.1rem, 9.8vw, 2.55rem);
            margin-bottom: 0.55rem;
        }

        .hero-sub {
            font-size: 0.95rem;
            line-height: 1.4;
            margin-bottom: 0.85rem;
        }

        .hero-btns {
            gap: 0.625rem;
        }

        .hero-btns .btn-lg {
            padding-block: 0.8rem;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-orb {
        animation: none;
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Page Hero
   A shorter image-led banner for inner pages. Each component instance owns
   its image and copy, and is selected with the page_component shortcode's
   id attribute. The left-weighted shade keeps the text readable while
   leaving the right side of the photograph visible, matching the supplied
   workshop reference.
   --------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: clamp(440px, 62vh, 680px);
    padding: calc(var(--nav-h) + clamp(3.5rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 6.5rem);
    overflow: hidden;
    background: var(--clr-forest-dkr);
    color: #fff;
}

.page-hero-media,
.page-hero-shade {
    position: absolute;
    inset: 0;
}

.page-hero-media {
    z-index: -2;
}

.page-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.page-hero-shade {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(12, 22, 15, 0.9) 0%, rgba(12, 22, 15, 0.78) 38%, rgba(12, 22, 15, 0.3) 72%, rgba(12, 22, 15, 0.2) 100%),
        linear-gradient(0deg, rgba(10, 18, 12, 0.38), transparent 55%);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    max-width: min(720px, 68vw);
}

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0 0 1.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
}

.page-hero-eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--clr-timber-lt);
}

.page-hero-title {
    margin: 0;
    max-width: 13ch;
    font-size: clamp(2.75rem, 5.7vw, 5.35rem);
    letter-spacing: -0.035em;
    line-height: 0.98;
    text-wrap: balance;
    color: #fff;
}

.page-hero-title span,
.page-hero-title em {
    display: block;
}

.page-hero-title em {
    color: var(--clr-forest-lt);
    font-style: italic;
    font-weight: 500;
}

.page-hero-intro {
    max-width: 58ch;
    margin: clamp(1.25rem, 2.5vw, 1.75rem) 0 0;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 760px) {
    .page-hero {
        min-height: clamp(500px, 74vh, 650px);
        align-items: flex-end;
        padding-top: calc(var(--nav-h) + 3rem);
        padding-bottom: clamp(3rem, 10vw, 4.5rem);
    }

    .page-hero-content {
        max-width: 100%;
    }

    .page-hero-title {
        max-width: 15ch;
        font-size: clamp(2.5rem, 12vw, 4rem);
    }

    .page-hero-shade {
        background:
            linear-gradient(0deg, rgba(10, 18, 12, 0.94) 0%, rgba(10, 18, 12, 0.67) 58%, rgba(10, 18, 12, 0.28) 100%),
            linear-gradient(90deg, rgba(10, 18, 12, 0.42), transparent 85%);
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Trust Bar
   A full-width row of four compact proof points, following the supplied
   cream strip reference. Icons are fixed to preserve visual consistency;
   both text lines remain editable on the component post.
   --------------------------------------------------------------------------- */
.trust-bar {
    border-top: 1px solid rgba(28, 38, 32, 0.13);
    border-bottom: 1px solid rgba(28, 38, 32, 0.13);
    background: var(--clr-cream);
}

.trust-bar .section-inner {
    padding-block: 0;
}

.trust-bar-list {
    display: grid;
    grid-template-columns: repeat(var(--trust-bar-items, 4), minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-bar-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.9rem, 2vw, 1.35rem);
    min-width: 0;
    min-height: 88px;
    padding: 1rem clamp(1rem, 2.5vw, 2rem);
}

.trust-bar-item + .trust-bar-item {
    border-left: 1px solid rgba(28, 38, 32, 0.12);
}

.trust-bar-icon {
    flex: 0 0 auto;
    color: var(--clr-forest);
}

.trust-bar-icon svg {
    display: block;
    width: clamp(36px, 3.2vw, 44px);
    height: clamp(36px, 3.2vw, 44px);
}

.trust-bar-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0;
    font-family: var(--ff-body);
    font-size: clamp(0.7rem, 1vw, 0.8rem);
    font-weight: 600;
    letter-spacing: 0.055em;
    line-height: 1.45;
    text-transform: uppercase;
    color: var(--clr-ink);
}

.trust-bar-copy strong,
.trust-bar-copy span {
    display: block;
}

.trust-bar-copy strong {
    font: inherit;
}

@media (max-width: 820px) {
    .trust-bar-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .trust-bar-item {
        justify-content: flex-start;
    }

    .trust-bar-item:nth-child(odd) {
        border-left: 0;
    }

    .trust-bar-item:nth-child(n + 3) {
        border-top: 1px solid rgba(28, 38, 32, 0.12);
    }
}

@media (max-width: 480px) {
    .trust-bar-list {
        grid-template-columns: 1fr;
    }

    .trust-bar-item,
    .trust-bar-item + .trust-bar-item {
        min-height: 76px;
        padding-inline: 0.5rem;
        border-left: 0;
    }

    .trust-bar-item:nth-child(n + 2) {
        border-top: 1px solid rgba(28, 38, 32, 0.12);
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Product Ranges & Products — card grid
   Shared by the [product_ranges] shortcode (tynesheds_product_ranges_shortcode()
   in functions.php) and the "Products in this range" grid on
   single-product_range.php. Ported/adapted from the mockup's .products-section
   (ReferenceMaterial/mockup/1/styles.css) — renamed .product-card → .content-card
   etc. to avoid colliding with WooCommerce's own .product / .products-* front-end
   classes (dormant in this theme — see inc/woocommerce.php — but a real risk if
   the shop is ever switched on). Shared tokens (--clr-*, --ff-*, ...) and the
   .btn/.section-inner/.kicker/.section-heading/.section-sub/.section-cta
   primitives are defined above in this same file.
   --------------------------------------------------------------------------- */
.product-ranges {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    /* background: #fff; */
}

/* Centred intro block (heading + .section-sub) — layout only; the
   heading/sub typography itself comes from the shared .section-heading /
   .section-sub primitives above, applied directly on the <h2>/<p> in
   product-ranges.php. */
.product-ranges-intro {
    max-width: 720px;
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.content-card {
    display: flex;
    flex-direction: column;
    background: var(--clr-white);
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
    box-shadow: var(--shadow-md);
}

.content-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: rgba(47, 107, 63, 0.3);
}

.content-card-media {
    position: relative;
    display: flex;
    aspect-ratio: 16 / 10;
    border: none;
    border-bottom: 1px solid var(--clr-line);
    overflow: hidden;
    background: var(--clr-white);
    text-decoration: none;
}

.content-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.content-card:hover .content-card-media img {
    transform: scale(1.05);
}

.content-card-body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.content-card-body h3 {
    font-family: var(--ff-display);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
}

.content-card-body h3 a {
    color: inherit;
    text-decoration: none;
}

.content-card-body p {
    font-size: 0.925rem;
    color: var(--clr-body);
    line-height: 1.55;
    flex: 1;
}

.content-card-price-badge {
    position: absolute;
    left: clamp(0.85rem, 2vw, 1.5rem);
    bottom: clamp(0.85rem, 2vw, 1.25rem);
    z-index: 1;
    min-width: 108px;
    padding: 0.7rem 0.9rem 0.75rem;
    border-radius: var(--radius-md);
    background: var(--clr-forest);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.content-card-price-badge .price-from {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.content-card-price-badge .price-from-label {
    margin-bottom: 0.3rem;
    font-family: var(--ff-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.content-card-price-badge .price-from-value {
    font-family: var(--ff-display);
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 600;
    letter-spacing: -0.025em;
}

.content-card-price-badge .price-on-request-value {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 0.35rem;
}

.content-card-price-badge .price-on-request-currency {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 0.9;
}

.content-card-price-badge .price-on-request-words {
    display: flex;
    flex-direction: column;
    font-family: var(--ff-display);
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 0.85;
}

.content-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--clr-forest);
    text-decoration: none;
    margin-top: 0.5rem;
    transition: gap var(--t);
}

.content-card-link svg {
    width: 16px;
    height: 16px;
}

.content-card:hover .content-card-link {
    gap: 0.7rem;
}

/* "Products in this range" — same card component, its own section chrome. */
.product-related {
    padding: clamp(1.5rem, 1vw, 1.5rem) 0
             clamp(4.5rem, 5vw, 5rem);
    border-top:none;
}

.product-related h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
    text-align: center;
}

/* Centre incomplete rows while preserving a maximum of three cards per row. */
.product-related .card-grid {
    --product-card-gap: clamp(1.25rem, 2.5vw, 1.75rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--product-card-gap);
}

.product-related .content-card {
    flex: 0 1 calc((100% - (2 * var(--product-card-gap))) / 3);
}

@media (max-width: 860px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }

    .product-related .content-card {
        flex-basis: calc((100% - var(--product-card-gap)) / 2);
    }
}
@media (max-width: 540px) {
    .card-grid { grid-template-columns: 1fr; }

    .product-related .content-card {
        flex-basis: 100%;
    }
}

/* ---------------------------------------------------------------------------
   Search results — shared catalogue cards and branded search controls
   --------------------------------------------------------------------------- */
.search-page__header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 2.5rem;
}

.search-page h1 {
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    overflow-wrap: anywhere;
    margin-bottom: 1.25rem;
}

.search-page h1 em {
    display: block;
    margin-top: 0.2em;
}

.search-page__intro {
    max-width: 48ch;
    margin: 0;
    line-height: 1.75;
}

.search-page__refine {
    padding: clamp(1.25rem, 3vw, 2rem);
    background: var(--clr-stone);
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
}

.search-page__label {
    color: var(--clr-ink);
    font-weight: 700;
    font-size: 0.925rem;
    margin-bottom: 0.875rem;
}

.search-page__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    border-top: 1px solid var(--clr-line);
    padding-block: 1.5rem;
}

.search-page__toolbar p,
.search-page__toolbar .content-card-link {
    margin: 0;
    font-size: var(--text-sm);
}

.search-result {
    min-width: 0;
    box-shadow: var(--shadow-sm);
}

.search-result .content-card-body h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    margin: 0.25rem 0 0.5rem;
    overflow-wrap: anywhere;
}

.search-result h2 a {
    color: inherit;
    text-decoration: none;
}

.search-result h2 a:hover {
    color: var(--clr-forest);
}

.search-result__type {
    color: var(--clr-forest-dk);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.search-result .content-card-link {
    margin-top: auto;
    padding-top: 0.75rem;
}

.search-result__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    background: var(--clr-stone);
    color: var(--clr-forest);
    font-size: var(--text-sm);
}

.search-result__placeholder svg {
    width: 64px;
    height: 64px;
}

.search-page__empty {
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    background: var(--clr-white);
    padding: clamp(2rem, 5vw, 4rem) 1.5rem;
    text-align: center;
}

.search-page__empty > svg {
    width: 48px;
    height: 48px;
    color: var(--clr-forest);
    margin-bottom: 1.25rem;
}

.search-page__empty h2 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.search-page__empty p {
    max-width: 52ch;
    margin: 0 auto 1.75rem;
}

.search-page .pagination .nav-links {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-page .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-md);
    color: var(--clr-forest);
    text-decoration: none;
}

.search-page .page-numbers.current,
.search-page a.page-numbers:hover {
    background: var(--clr-forest);
    border-color: var(--clr-forest);
    color: var(--clr-white);
}

@media (max-width: 768px) {
    .search-page__header {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
        padding-bottom: 2rem;
    }

    .search-page .search-form {
        max-width: none;
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Product Ranges & Products — single template chrome
   Shared by single-product_range.php and single-tynesheds_product.php: the
   full-bleed hero banner (title/strapline/intro over the ACF "Hero image"),
   the WYSIWYG "Copy" prose area, and the Product's FileBird media gallery
   grid. Card-grid styling (used further down both templates) is the section
   above instead. Shared tokens (--clr-*, --ff-*, ...) and the
   .btn/.section-inner/.kicker primitives are defined above in this same
   file.
   --------------------------------------------------------------------------- */
/* Desktop reference: text on the left and one oversized circular image on
   the right. The hero clips the circle equally at its top and bottom to
   create the large arc shown in the supplied design. */
.product-banner {
    --banner-text-w: min(460px, 34vw);
    --banner-gutter: calc(max(0px, (100vw - var(--max-w)) / 2) + clamp(1.25rem, 5vw, 3rem));
    --banner-photo-gap: clamp(2rem, 4vw, 4rem);
    --banner-photo-left: calc(var(--banner-gutter) + var(--banner-text-w) + var(--banner-photo-gap));
    /* 47vw matches the reference at full desktop width. The third cap only
       reduces it near the breakpoint so it stays inside the viewport. */
    --banner-photo-size: min(47vw, 820px, calc(100vw - var(--banner-photo-left) - 2rem));
    position: relative;
    display: flex;
    align-items: center;
    min-height: 60vh;
    padding: calc(var(--nav-h) + 3rem) 0 3.5rem;
    overflow: hidden;
    background: var(--clr-forest-dkr);
}

/* One square image box, centred vertically. `object-fit` crops the source
   without stretching it; the hero supplies the top and bottom clipping. */
.product-banner-photo {
    position: absolute;
    z-index: 2;
    top: 53%;
    right: auto;
    left: var(--banner-photo-left);
    width: var(--banner-photo-size);
    height: auto;
    aspect-ratio: 1;
    box-sizing: border-box;
    transform: translateY(-50%);
    object-fit: cover;
    object-position: center;
    border: 1px solid var(--clr-timber-lt);
    border-radius: 50%;
    background-color: var(--clr-white);
}

/* The border belongs to the image itself, so no second shape can drift out
   of alignment or leave a green gap around the photograph. */
.product-banner-arc {
    display: none;
}

/* On range pages the editable strapline becomes a handwritten annotation
   beside the top-left of the desktop photograph. The curved arrow is inline
   SVG so it keeps the same hand-drawn colour and scales cleanly. */
.product-banner-note {
    position: absolute;
    z-index: 3;
    top: calc(var(--nav-h) + clamp(0.35rem, 1.3vw, 1.15rem));
    right: calc(100vw - var(--banner-photo-left) + clamp(0.75rem, 1.5vw, 1.5rem));
    left: auto;
    display: none;
    width: clamp(10rem, 13vw, 12.5rem);
    margin: 0;
    color: var(--clr-timber-lt);
    font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 0.98;
    text-align: left;
    transform: rotate(-3deg);
}

.product-banner-note span {
    display: block;
    white-space: nowrap;
}

.product-banner-note svg {
    display: block;
    width: 5rem;
    height: 4rem;
    margin: -0.15rem -3.25rem 0 auto;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-4deg);
}

@media (min-width: 761px) {
    .product-range-banner .product-banner-note {
        display: block;
    }

    .product-range-banner.has-banner-note .kicker {
        display: none;
    }
}

.product-banner-inner {
    position: relative;
    z-index: 1;
}

/* Everything but the features row is held to the text column's width. The
   features row is deliberately left full-width — see its own rule below. */
.product-banner .kicker,
.product-banner h1,
.product-banner-intro {
    max-width: var(--banner-text-w);
}

.product-banner .kicker {
    color: #fff;
}

.product-banner .kicker::before {
    background: var(--clr-timber-lt);
}

.product-banner .kicker a {
    color: var(--clr-timber-lt);
    text-decoration: underline;
}

.product-banner h1 {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    color: #fff;
}

.product-banner-intro {
    margin-top: 1rem;
    font-size: var(--fs-lead);
    color: rgba(255, 255, 255, 0.86);
}

.product-banner-cta {
    margin-top: 2rem;
}

/* Callout features icon row — template-parts/product-features.php, fed by
   the "Callout features" ACF field on both single-tynesheds_product.php and
   single-product_range.php (see CLAUDE.md).

   The rule above the row runs the full .section-inner width (carrying on
   under the photo) while the items themselves stay in a compact block of
   four equal columns at the left, clear of the photo's arc — hence the
   fixed-width grid tracks rather than sizing each item to its own label.
   Divider lines sit *before* every item but the first, so the last item
   never carries a trailing rule. */
.product-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 112px));
    justify-content: start;
    list-style: none;
    margin: 2.25rem 0 0;
    padding: 1.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.product-features-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.75rem;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
}

.product-features-item:first-child {
    padding-left: 0;
    border-left: none;
}

.product-features-ico {
    color: var(--clr-timber-lt);
}

.product-features-ico svg {
    width: 26px;
    height: 26px;
}

.product-features-label {
    font-family: var(--ff-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.82);
}

/* Tall tablet/small-laptop viewports make a 60vh banner unnecessarily deep.
   Let the content determine the height in this range and trim the vertical
   padding while retaining the side-by-side desktop composition. */
@media (min-width: 761px) and (max-width: 1024px) {
    .product-banner {
        min-height: 0;
        padding: calc(var(--nav-h) + 1.5rem) 0 2rem;
    }

    .product-banner-note{
        top: calc(var(--nav-h) + -20px);
    }
}

/* Near the mobile breakpoint the circular photo can reach the final feature
   items. Lift the row over the photo and feather the banner green beneath it
   so the gold icons and white labels keep their contrast. */
@media (min-width: 761px) and (max-width: 1100px) {
    .product-range-banner .product-banner-inner {
        z-index: auto;
    }

    .product-range-banner .product-features {
        position: relative;
        z-index: 3;
    }

    .product-range-banner .product-features::before {
        content: '';
        position: absolute;
        z-index: -1;
        top: -1.25rem;
        bottom: -2rem;
        left: -2rem;
        width: min(calc(100% + 4rem), 512px);
        border-radius: 50%;
        background: radial-gradient(
            ellipse 68% 88% at 62% 55%,
            rgba(23, 49, 30, 0.78) 0%,
            rgba(23, 49, 30, 0.58) 30%,
            rgba(23, 49, 30, 0.3) 55%,
            rgba(23, 49, 30, 0.1) 75%,
            rgba(23, 49, 30, 0) 100%
        );
        filter: blur(20px);
        pointer-events: none;
    }
}

/* Below this width the disc and the text column stop fitting side by side:
   the fixed-width callout row starts running over the disc. The two stack:
   kicker/heading/intro/CTA/features first, then the photo as a plain
   rounded card underneath, inset from the section's edges. Switching
   .product-banner (already a flex container) to a column and taking the
   photo out of `position: absolute` makes it a real flex item that the
   text pushes down naturally. `order` puts it last without reordering the
   markup — the photo stays first in the DOM so the desktop rules above can
   treat it as a background layer.

   At 760px and below the mobile composition takes over. */
@media (max-width: 760px) {
    .product-banner {
        --banner-text-w: 100%;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: calc(var(--nav-h) + 1.5rem) 0 1.75rem;
        overflow: hidden;
    }

    .product-banner-inner {
        order: -1;
    }

    /* Capped and centred rather than simply inset from both edges: at the
       top of this range an uncapped card would be over 1100px wide. */
    .product-banner-photo {
        position: static;
        order: 1;
        width: min(100% - 2.5rem, 720px);
        height: auto;
        aspect-ratio: 3 / 2;
        transform: none;
        border: 0;
        margin: 1.75rem auto 0;
        border-radius: 20px;
    }

    .product-range-banner.has-banner-note .kicker {
        display: none;
    }

    .product-range-banner .product-banner-note {
        position: relative;
        top: auto;
        right: auto;
        left: auto;
        order: 2;
        display: flex;
        align-items: center;
        gap: 15px;
        width: min(100% - 2.5rem, 720px);
        margin: 1.75rem auto 0;
        color: var(--clr-timber-lt);
        font-size: clamp(1.05rem, 4.7vw, 1.45rem);
        line-height: 1;
        transform: rotate(-1deg);
    }

    .product-range-banner .product-banner-note span {
        display: inline;
        white-space: nowrap;
    }

    .product-range-banner .product-banner-note span + span::before {
        content: ' ';
    }

    .product-range-banner .product-banner-note svg {
        position: static;
        flex: 0 0 auto;
        width: 3.25rem;
        height: 2.25rem;
        margin: 0;
        transform: translateY(-50%) scaleY(-1) rotate(5deg);
    }

    .product-banner-arc {
        display: none;
    }

    /* Stretched to fill the row rather than sitting in a compact block at
       the left, so the four items stay evenly spread. The max-width only
       bites at the top of this range — on a phone the content is narrower
       than 640px, so the row (and its rule) still spans the full width the
       way the design reference has it. */
    .product-features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        max-width: 640px;
    }
}

/* Four items still stay on one row on a phone rather than wrapping to a
   2x2 grid (see the design reference) — just tighter: smaller icon and
   type, less padding between items. */
@media (max-width: 540px) {
    .product-features-item {
        gap: 0.45rem;
        padding: 0 0.4rem;
    }

    .product-features-ico svg {
        width: 22px;
        height: 22px;
    }

    .product-features-label {
        font-size: 0.62rem;
        letter-spacing: 0.02em;
    }
}

/* Breadcrumb trail — sits directly under the hero banner on both
   single-product_range.php and single-tynesheds_product.php (see
   tynesheds_render_breadcrumbs() in functions.php / template-parts/
   breadcrumbs.php). A thin, low-emphasis strip rather than its own section
   — .section-inner gives it the same horizontal alignment as the banner
   content above it and the copy/CTA row below it. */
.breadcrumbs {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--clr-line);
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.85rem;
}

.breadcrumbs-item a {
    color: var(--clr-muted);
    text-decoration: none;
    transition: color var(--t);
}

.breadcrumbs-item a:hover {
    color: var(--clr-forest);
}

.breadcrumbs-item span[aria-current] {
    color: var(--clr-ink);
    font-weight: 600;
}

.breadcrumbs-sep {
    color: var(--clr-muted);
    opacity: 0.55;
}

.product-copy {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    /* background: var(--clr-stone); */
}

/* Two-column row: the WYSIWYG "Copy" field on the left, with the range price
   and [quote_cta] accent card (see the "Page Component — Quote CTA" section
   below) stacked in a fixed-width aside on the right. Flexbox lets either
   side be missing (an editor can leave "Copy" blank, or no "Quote CTA"
   component has been published yet — see the $copy / $quote_cta_card
   guards in single-product_range.php / single-tynesheds_product.php) and
   the other still lays out full-width without an empty column reserving
   space. flex-wrap handles the mobile stack; the explicit breakpoint below
   just tidies the CTA card's width once it drops under the copy. */
.product-copy-layout {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: clamp(2rem, 4vw, 3.5rem);
}

.product-copy-inner {
    flex: 1 1 420px;
    min-width: 0;
}

.product-copy-inner > :first-child {
    margin-top: 0;
}

.product-copy-inner h2,
.product-copy-inner h3 {
    margin: 1.75rem 0 0.75rem;
}

.product-copy-inner p {
    color: var(--clr-body);
    line-height: 1.7;
    margin-bottom: 1.1rem;
}

.product-copy-inner ul,
.product-copy-inner ol {
    color: var(--clr-body);
    line-height: 1.7;
    margin: 0 0 1.1rem 1.25rem;
}

.product-copy-inner a {
    color: var(--clr-forest);
}

/* Compact range-level starting price above the Quote CTA. This is emitted by
   [price_from_promo] and shares the Range price visibility switch in Site
   Config with Range card badges. */
.price-from-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin: 0;
    padding: 1.1rem 1.4rem;
    overflow: hidden;
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    background: var(--clr-white);
    color: var(--clr-forest);
    box-shadow: var(--shadow-md);
}

.price-from-promo-label,
.price-from-promo-value {
    display: block;
}

.price-from-promo-label {
    max-width: 8ch;
    margin: 0;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.35;
    text-transform: uppercase;
}

.price-from-promo-value {
    font-family: var(--ff-display);
    font-size: clamp(2.25rem, 4vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 0.95;
}

.product-copy-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 0 1 340px;
    min-width: 280px;
    /* Keeps the card in view alongside a long "Copy" field as the page
       scrolls, clearing the fixed header the same way .product-banner
       does. Only meaningful once the row is tall enough for it to matter —
       harmless no-op otherwise. */
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
}

.product-copy-cta:only-child {
    margin-left: auto;
}

/* Product pricing table — two columns by default, with the optional third
   column rendered only when at least one configured row contains Extras. */
.product-pricing {
    padding: clamp(3.5rem, 4vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.breadcrumbs + .product-pricing {
    padding-top: clamp(3rem, 6vw, 4.5rem);
}

.product-pricing h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.product-pricing-groups {
    display: grid;
    gap: clamp(2rem, 4vw, 3rem);
    min-width: 0;
}

.product-pricing-group {
    width: 100%;
    max-width: 48rem;
    min-width: 0;
}

.product-pricing-group h3 {
    margin: 0 0 0.85rem;
    color: var(--clr-ink);
    font-family: var(--ff-display);
    font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.product-pricing-table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    /* border: 1px solid var(--clr-line); */
    border-radius: var(--radius-lg);
    background: #fff;
}

.product-pricing-table {
    width: 100%;
    min-width: 420px;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.product-pricing-table--two-columns th,
.product-pricing-table--two-columns td {
    width: 50%;
}

.product-pricing-table--three-columns th,
.product-pricing-table--three-columns td {
    width: 33.333%;
}

.product-pricing-table th,
.product-pricing-table td {
    padding: 0.9rem clamp(0.875rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--clr-line);
    text-align: left;
    vertical-align: top;
}

.product-pricing-table thead th {
    background: var(--clr-forest);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-pricing-table tbody th {
    color: var(--clr-ink);
    font-weight: 700;
}

.product-pricing-table tbody tr:nth-child(even) {
    /* background: var(--clr-cream); */
}

.product-pricing-table tbody tr:last-child th,
.product-pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.product-pricing-value {
    color: var(--clr-forest);
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 720px) {
    .product-copy-cta {
        flex-basis: 100%;
        position: static;
    }
}

.product-gallery {
    scroll-margin-top: calc(var(--nav-h) + 1rem);
    padding: clamp(3.5rem, 4vw, 4rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.product-gallery h2 {
    font-size: clamp(1.75rem, 3.5vw, 2.4rem);
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.media-grid {
    columns: 3;
    column-gap: 1.25rem;
}

.media-grid-item {
    display: block;
    position: relative;
    width: 100%;
    margin: 0 0 1.25rem;
    break-inside: avoid;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--clr-stone);
}

.media-grid-item img,
.media-grid-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.media-grid-item--image,
.media-grid-item--video {
    cursor: zoom-in;
}

.media-grid-item:hover > img,
.media-grid-item:hover > video,
.media-grid-item:focus-visible > img,
.media-grid-item:focus-visible > video {
    transform: scale(1.04);
}

.media-grid-item:focus-visible {
    outline: 3px solid var(--clr-timber);
    outline-offset: 4px;
}

.media-grid-zoom {
    position: absolute;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    color: #fff;
    background: rgba(22, 41, 30, 0.82);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(0.4rem);
    transition: opacity var(--t), transform var(--t);
}

.media-grid-zoom svg {
    width: 1.15rem;
    height: 1.15rem;
}

.media-grid-item--image:hover .media-grid-zoom,
.media-grid-item--image:focus-visible .media-grid-zoom {
    opacity: 1;
    transform: translateY(0);
}

.media-grid-item--video {
    aspect-ratio: var(--media-aspect-ratio, 16 / 9);
    cursor: pointer;
}

.media-grid-item--video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-grid-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    place-items: center;
    width: clamp(3.25rem, 8vw, 4.5rem);
    height: clamp(3.25rem, 8vw, 4.5rem);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: #fff;
    background: rgba(22, 41, 30, 0.86);
    box-shadow: var(--shadow-md);
    transform: translate(-50%, -50%);
    transition: background var(--t), transform var(--t);
}

.media-grid-play svg {
    width: 45%;
    height: 45%;
    margin-left: 0.15rem;
}

.media-grid-item--video:hover .media-grid-play,
.media-grid-item--video:focus-visible .media-grid-play {
    background: var(--clr-timber);
    transform: translate(-50%, -50%) scale(1.08);
}

.product-lightbox {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    color: #fff;
    background: rgba(9, 16, 12, 0.96);
}

.product-lightbox[open] {
    display: grid;
    place-items: center;
}

.product-lightbox::backdrop {
    background: rgba(9, 16, 12, 0.96);
}

.product-lightbox-shell {
    position: relative;
    display: grid;
    grid-template-columns: 3.5rem minmax(0, 1fr) 3.5rem;
    align-items: center;
    width: min(96vw, 1500px);
    height: 100%;
    padding: clamp(4rem, 8vh, 6rem) 0 2rem;
}

.product-lightbox-figure {
    /* Keep media in the wide column when single-item galleries hide navigation. */
    grid-column: 2;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-height: 100%;
    margin: 0;
}

.product-lightbox-media-wrap {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 10rem;
    flex: 1 1 auto;
}

.product-lightbox-media-wrap.is-loading::before {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: product-lightbox-spin 0.75s linear infinite;
}

@keyframes product-lightbox-spin {
    to { transform: rotate(360deg); }
}

.product-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100dvh - 9rem);
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.product-lightbox-media-wrap.is-loading .product-lightbox-image {
    opacity: 0;
}

.product-lightbox-video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 9rem);
    background: #000;
}

.product-lightbox-image[hidden],
.product-lightbox-video[hidden] {
    display: none;
}

.product-lightbox-meta {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 1.5rem;
    padding-top: 0.75rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
}

.product-lightbox-count {
    margin-left: auto;
    white-space: nowrap;
}

.product-lightbox-close,
.product-lightbox-nav {
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: background var(--t), transform var(--t);
}

.product-lightbox-close:hover,
.product-lightbox-close:focus-visible,
.product-lightbox-nav:hover,
.product-lightbox-nav:focus-visible {
    background: rgba(255, 255, 255, 0.22);
}

.product-lightbox-close:focus-visible,
.product-lightbox-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.product-lightbox-close {
    position: absolute;
    z-index: 2;
    top: 1rem;
    right: 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
}

.product-lightbox-close span {
    transform: translateY(-0.08em);
}

.product-lightbox-nav {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 3.5rem;
    border-radius: 999px;
    font-size: 2.5rem;
    line-height: 1;
}

.product-lightbox-nav--previous {
    justify-self: start;
}

.product-lightbox-nav--next {
    justify-self: end;
}

.product-lightbox-nav[hidden] {
    display: none;
}

body.product-lightbox-open {
    overflow: hidden;
}

@media (max-width: 860px) {
    .media-grid { columns: 2; }
}
@media (max-width: 540px) {
    .media-grid { columns: 1; }

    .media-grid-zoom {
        opacity: 1;
        transform: none;
    }

    .product-lightbox-shell {
        grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
        width: 100vw;
        padding-inline: 0.35rem;
    }

    .product-lightbox-nav {
        width: 2.35rem;
        height: 3rem;
    }

    .product-lightbox-close {
        right: 0.75rem;
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Why Us
   Ported from the mockup's #why / .why-section (ReferenceMaterial/mockup/1/
   styles.css) — renamed .why-* → .why-us-* to keep it scoped under the
   component's own root class, matching the product-cards convention above.
   Shared tokens (--clr-*, --ff-*, ...) and the
   .btn/.section-inner/.section-heading/.section-sub/.section-cta
   primitives are defined above in this same file.
   --------------------------------------------------------------------------- */
.why-us {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: var(--clr-stone);
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}

.why-us-list {
    list-style: none;
    display: grid;
    gap: 1.35rem;
    margin: 2rem 0 2.5rem;
    padding: 0;
}

.why-us-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.why-us-ico {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(47, 107, 63, 0.1);
    color: var(--clr-forest);
}

.why-us-ico svg {
    width: 23px;
    height: 23px;
}

.why-us-list strong {
    display: block;
    font-size: 1.05rem;
    color: var(--clr-ink);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.why-us-list span {
    font-size: 0.925rem;
    color: var(--clr-body);
    line-height: 1.55;
}

.why-us-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.why-us-photo {
    aspect-ratio: 16 / 11;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.why-us-photo--small {
    aspect-ratio: 16 / 6;
}

.why-us-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 860px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }

    .why-us-visual {
        order: -1;
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Reviews
   Ported from ReferenceMaterial/mockup/1/styles.css (#reviews / .reviews-section).
   .btn/.section-inner/.kicker/.section-heading/.section-sub primitives are
   defined above in this same file.
   --------------------------------------------------------------------------- */
.reviews-section {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: var(--clr-forest-dkr);
    overflow: hidden;
}

.reviews-intro {
    max-width: var(--max-w);
    margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
    padding-inline: clamp(1.25rem, 5vw, 3rem);
}

/* .section-heading/.section-sub supply the shared font-family/size/colour;
   this is just the local, darker-than-Service-Area tint the mockup uses for
   Reviews' subheading specifically (see the shared-primitives note above). */
.reviews-intro .section-sub {
    color: rgba(255, 255, 255, 0.7);
}

.reviews-intro .kicker {
    color: var(--clr-timber-lt);
}

/* ---------------------------------------------------------------------------
   Carousel (listing-type="carousel", the default)
   --------------------------------------------------------------------------- */
.reviews-scroller-outer {
    -webkit-mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, black 0%, black 92%, transparent 100%);
}

.reviews-track {
    display: flex;
    justify-content: center; /* fallback for browsers without "safe" support below */
    justify-content: safe center; /* center the cards when they all fit; behave like flex-start (scrollable from the first card) rather than clipping the start once they overflow */
    gap: 1.25rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 0.5rem clamp(1.25rem, 5vw, 3rem) 1.5rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
}

.reviews-track::-webkit-scrollbar {
    display: none;
}

.reviews-track.is-grabbing {
    cursor: grabbing;
    scroll-behavior: auto;
}

.reviews-scrollbar-wrap {
    max-width: var(--max-w);
    margin: 1.5rem auto 0;
    padding-inline: clamp(1.25rem, 5vw, 3rem);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviews-arrow {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--t), border-color var(--t), opacity var(--t);
}

.reviews-arrow:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--clr-timber-lt);
}

.reviews-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.reviews-arrow svg {
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.reviews-scrollbar {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    position: relative;
    cursor: pointer;
}

.reviews-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    background: var(--clr-timber-lt);
    border-radius: 99px;
    cursor: grab;
}

.reviews-scrollbar-thumb.is-dragging {
    cursor: grabbing;
}

/* ---------------------------------------------------------------------------
   Grid (listing-type="grid") — same cards, laid out in a static responsive
   grid instead of a horizontal scroller. No JS/arrows/progress-bar needed.
   --------------------------------------------------------------------------- */
.reviews-grid {
    max-width: var(--max-w);
    margin: 0 auto;
    /* padding-inline: clamp(1.25rem, 5vw, 3rem); */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.reviews-grid .review-card {
    width: auto;
}

/* ---------------------------------------------------------------------------
   Review card — shared by both listing types.
   [reviews] is a standalone, reusable shortcode (see functions.php) that can
   be dropped onto any page, not just rendered inside the dark "Reviews"
   Page Component section — so the card is self-contained by default (solid
   card background, dark text) rather than assuming a dark backdrop. The
   translucent white-on-dark look from the mockup is layered on underneath
   as a `.reviews-section .review-card` override further down, so it still
   applies wherever the card renders inside that dark section (i.e. the
   homepage), without breaking it anywhere else (e.g. a plain page using
   [reviews] directly, on the theme's default white/cream background).
   --------------------------------------------------------------------------- */
.review-card {
    flex-shrink: 0;
    width: clamp(280px, 33vw, 380px);
    background: var(--clr-cream);
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    padding: 1.85rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    box-shadow: var(--shadow-sm);
    transition: border-color var(--t), background var(--t), box-shadow var(--t);
}

.review-card:hover {
    border-color: var(--clr-timber-lt);
    box-shadow: var(--shadow-md);
}

.review-stars {
    color: var(--clr-timber-lt);
    font-size: 1.05rem;
    letter-spacing: 0.08em;
}

.review-quote {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.55;
    color: var(--clr-body);
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid var(--clr-line);
}

.review-quote {
    overflow-wrap: anywhere;
}

.review-show-more {
    align-self: flex-start;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--clr-timber-lt);
    border-radius: var(--radius-md);
    background: var(--clr-timber-lt);
    color: var(--clr-ink);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--t), border-color var(--t);
}

.review-show-more:hover {
    background: #f0bc72;
    border-color: #f0bc72;
}

.review-show-more:focus-visible,
.review-modal-close:focus-visible {
    outline: 2px solid var(--clr-timber-lt);
    outline-offset: 4px;
}

.review-modal {
    width: min(680px, calc(100% - 2rem));
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 1.5rem;
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-lg);
    background: var(--clr-cream);
    color: var(--clr-body);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.review-modal::backdrop {
    background: rgba(0, 0, 0, 0.65);
}

.review-modal-close {
    position: sticky;
    top: 0;
    display: block;
    margin: 0 0 1rem auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--clr-line);
    border-radius: var(--radius-sm);
    background: var(--clr-cream);
    color: var(--clr-ink);
    font: inherit;
    cursor: pointer;
}

.review-modal .review-card {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.review-modal .review-quote {
    white-space: pre-line;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--clr-timber), var(--clr-timber-lt));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.review-avatar--photo {
    object-fit: cover;
}

.review-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--clr-ink);
    line-height: 1.2;
}

.review-role {
    font-size: 0.82rem;
    color: var(--clr-muted);
}

@media (max-width: 540px) {
    .review-card {
        width: clamp(260px, 80vw, 320px);
    }
}

/* ---------------------------------------------------------------------------
   Dark-on-dark variant — restores the mockup's translucent white-on-forest
   look wherever the card renders inside the "Reviews" Page Component's own
   dark section (the homepage), overriding the light, self-contained
   defaults above. See the doc comment on .review-card.
   --------------------------------------------------------------------------- */
.reviews-section .review-card {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.reviews-section .review-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(226, 164, 79, 0.5);
    box-shadow: none;
}

.reviews-section .review-quote {
    color: rgba(255, 255, 255, 0.92);
}

.reviews-section .review-author {
    border-top-color: rgba(255, 255, 255, 0.12);
}

.reviews-section .review-name {
    color: #fff;
}

.reviews-section .review-role {
    color: rgba(255, 255, 255, 0.6);
}

/* ---------------------------------------------------------------------------
   Page Component — Service Area
   Ported from the mockup's .area-section / .area-band (ReferenceMaterial/
   mockup/1/styles.css) — renamed .area-* → .service-area-* to keep it
   scoped under the component's own root class, matching the Why Us
   convention above. Shared tokens (--clr-*, --ff-*, ...) and the
   .section-inner/.section-heading/.section-sub primitives are defined
   above in this same file.
   --------------------------------------------------------------------------- */
.service-area {
    padding: clamp(3.5rem, 7vw, 5.5rem) 0;
    /* background: var(--clr-white); */
}

.service-area-band {
    position: relative;
    /* Clips .service-area-map's oversized, rotated bleed to the band's own
       rounded corners — see below. */
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(192, 127, 51, 0.12), transparent 60%),
        var(--clr-forest);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2.25rem, 5vw, 3.5rem);
}

/* Optional decorative graphic (`background_map_image` ACF field) — sits
   behind all the band's actual content as a faint textural watermark, big
   and rotated for an "abstract", not-quite-literal placement rather than a
   neat little icon. Inverted to white + low opacity so any source image
   (designed as dark line-art on transparent background, e.g. a map
   outline) reads correctly against the green regardless of its own
   colours — same trick as the footer logo invert, see CLAUDE.md.
   Sized off the band's *height* (not width) and vertically centred so it
   bleeds past the top/bottom edges (clipped by .service-area-band's
   overflow: hidden) rather than sitting small in one corner — the taller
   the card, the taller the graphic. */
.service-area-map {
    position: absolute;
    top: 50%;
    right: -8%;
    height: 145%;
    width: auto;
    transform: translateY(-50%) rotate(8deg);
    opacity: 0.14;
    filter: brightness(0) invert(1);
    pointer-events: none;
    z-index: 0;
}

.service-area-map img {
    height: 100%;
    width: auto;
    display: block;
}

/* Everything else in the band sits above .service-area-map explicitly —
   it's positioned (not just later in DOM order), so siblings need their
   own stacking context to guarantee they paint on top of it. */
.service-area-copy,
.service-area-list,
.service-area-notice {
    position: relative;
    z-index: 1;
}

/* .section-heading/.section-sub supply the shared font-family/size/colour;
   this is just the local, lighter-than-Reviews tint the mockup uses for
   Service Area's description specifically (see the shared-primitives note
   above). */
.service-area-copy .section-sub {
    color: rgba(255, 255, 255, 0.85);
}

.service-area-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.service-area-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    font-weight: 600;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.service-area-list li::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--clr-timber-lt);
}

/* Full-width strip inside the green band — white background so it stands
   out from the surrounding .service-area-band, same radius language as the
   band itself but smaller. Spans both grid columns regardless of where the
   grid's auto-placement cursor lands. */
.service-area-notice {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin-top: 0.5rem;
    padding: 1.25rem clamp(1.25rem, 3vw, 2rem);
    background: var(--clr-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.service-area-notice-text {
    margin: 0;
    font-size: 0.975rem;
    line-height: 1.5;
    color: var(--clr-ink);
}

@media (max-width: 720px) {
    .service-area-band {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .service-area-map {
        /* On the stacked single-column layout the band is much taller
           (heading + description + pills + notice all stacked), so scale
           this down from the desktop 145% or it would tower over the
           whole card. */
        height: 55%;
        opacity: 0.1;
    }

    .service-area-list {
        gap: 0.9rem;
    }

    .service-area-list li {
        padding: 0.85rem 1rem;
        line-height: 1.35;
    }

    .service-area-notice {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
}

/* ---------------------------------------------------------------------------
   Page Component — Contact CTA
   Ported, simplified, from the mockup's #contact / .cta-section
   (ReferenceMaterial/mockup/1/styles.css) — the two-column contact-details
   list and inline quote form are dropped (see contact-cta.php), so this is
   just the closing headline + button, centred, on the same warm stone
   background the mockup used for that section. Meant to be the last Page
   Component on a page, directly above the dark .site-footer — the light
   background here is the deliberate contrast beat before that, same idea as
   Service Area's white section sitting above Reviews' dark one. Shared
   tokens (--clr-*, --ff-*, ...) and the .section-inner/.section-heading/
   .section-sub/.btn/.section-cta primitives are defined above in this same
   file — nothing new to declare beyond the centring below.
   --------------------------------------------------------------------------- */
.contact-cta {
    padding: clamp(4.5rem, 9vw, 7rem) 0;
    background: var(--clr-stone);
}

.contact-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.contact-cta-inner .section-sub {
    max-width: 480px;
    margin-inline: auto;
}

/* ---------------------------------------------------------------------------
   Page Component — Quote CTA
   The [quote_cta] shortcode's bare card (heading/text/button — see
   template-parts/quote-cta-card.php) plus the section chrome the "Quote
   CTA" Page Component wraps it in for standalone placement (template-parts/
   components/quote-cta.php) — same shortcode/component split as Product
   Ranges above. Its main use is un-wrapped, sat next to the "Copy" field as
   .product-copy-cta on single-product_range.php / single-tynesheds_product.php
   (see the "single template chrome" section above) — .quote-cta-card is
   deliberately self-contained (own background/padding/radius) so it reads
   the same either way. Brand forest-green background — the same solid
   --clr-forest plus a faint top-right timber-tinted glow used by
   .service-area-band above, reused here rather than inventing a new
   background treatment for another "dark card, white text" component.
   Because that leaves the card the same colour as .btn-primary, the button
   gets a scoped white-on-forest override below (the same idea as
   .product-banner .kicker overriding a shared primitive's colour for its
   own dark-background context) so it doesn't disappear into the card.
   Shared tokens (--clr-*, --ff-*, ...) and the .section-inner/.btn/
   .btn-full primitives are defined above in this same file.
   --------------------------------------------------------------------------- */
.quote-cta-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(192, 127, 51, 0.16), transparent 60%),
        var(--clr-forest);
    border-radius: var(--radius-lg);
    padding: clamp(1.75rem, 3vw, 2.25rem);
    box-shadow: var(--shadow-md);
}

.quote-cta-card-heading {
    font-family: var(--ff-display);
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.quote-cta-card-text {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* White-on-forest, swapped from .btn-primary's default forest-on-white so
   the button stays visible against this card's own forest-green
   background — see the banner comment above. */
.quote-cta-card .btn-primary {
    margin-top: auto;
    padding: 0.9rem 1.5rem;
    background: #fff;
    color: var(--clr-forest);
    box-shadow: none;
}

.quote-cta-card .btn-primary:hover {
    background: var(--clr-cream);
    box-shadow: var(--shadow-sm);
}

/* Standalone section wrapper, only used via [page_component type="quote-cta"]
   — the .product-copy-cta placement above doesn't touch this. */
.quote-cta-section {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.quote-cta-section .quote-cta-card {
    max-width: 560px;
    margin: 0 auto;
}

/* ---------------------------------------------------------------------------
   Page Component — Contact Info
   The Contact page's address/phone/email + opening hours + embedded WPForms
   form. Icons for the three contact-detail slots are ported from the
   mockup's #contact / .cta-contacts (ReferenceMaterial/mockup/1/styles.css)
   — see template-parts/components/contact-info.php's doc comment for why
   that content lives here rather than in .contact-cta above. Layout uses
   a narrower details column and wider form column at desktop, matching the
   supplied Contact design, then collapses to one column below 860px.
   Shared tokens (--clr-*, --ff-*, ...) and the .section-inner primitive
   are defined above in this same file.
   --------------------------------------------------------------------------- */
.contact-info {
    padding: clamp(3rem, 6vw, 4.5rem) 0;
    background: var(--clr-cream);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    align-items: flex-start;
    gap: clamp(2.5rem, 5vw, 4rem);
}

.contact-info-grid--single {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin: 0 auto;
}

.contact-info-details {
    min-width: 0;
}

.contact-info-form-card {
    box-sizing: border-box;
    background: var(--clr-white);
    border-radius: 14px;
    box-shadow: var(--shadow-md);
    padding: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-info-grid--single .contact-info-form-card {
    max-width: none;
}

/* Optional linked map image. It shares the section-inner wrapper with the
   details/form grid, so its edges align with the full contact container. */
.contact-info-map {
    overflow: hidden;
    border: 1px solid var(--clr-line);
    border-radius: 14px;
    background: var(--clr-white);
    box-shadow: var(--shadow-md);
}

.contact-info-grid + .contact-info-map {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

.contact-info-map-link {
    display: block;
}

.contact-info-map-link:focus-visible {
    outline: 3px solid var(--clr-timber);
    outline-offset: -3px;
}

.contact-info-map-image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform var(--t);
}

.contact-info-map-link:hover .contact-info-map-image {
    transform: scale(1.01);
}

/* Contact headings inherit the central h2 typography above; this component
   only adds its underline and local spacing. */
.contact-info-heading {
    position: relative;
    margin: 0 0 1.6rem;
    padding-bottom: 0.75rem;
}

.contact-info-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 48px;
    height: 2px;
    border-radius: 2px;
    background: var(--clr-forest);
}

.contact-info-items {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.contact-info-item {
    display: flex;
    gap: 1.15rem;
    align-items: flex-start;
    margin: 0;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--clr-line);
}

.contact-info-item:first-child {
    padding-top: 0;
}

.contact-info-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--clr-forest);
    color: #fff;
}

.contact-info-icon svg {
    width: 16px;
    height: 16px;
}

.contact-info-item div {
    min-width: 0;
    padding-top: 0.05rem;
}

.contact-info-item strong,
.contact-info-item a {
    display: block;
    font-size: 1rem;
    color: var(--clr-ink);
    font-weight: 700;
    text-decoration: none;
}

.contact-info-item a:hover strong {
    color: var(--clr-forest);
}

/* No display: block here (unlike .contact-info-item strong/a below) — it
   would also match .contact-info-icon (also a <span>, and a *less*
   specific selector than this one, so it would win and clobber the icon's
   own display: grid centring). The preceding strong/a being display:block
   already forces this span onto its own line without needing to be block
   itself — same reasoning as .why-us-list's identical two-line pattern. */
.contact-info-item span {
    margin-top: 0.15rem;
    font-size: 0.9rem;
    color: var(--clr-body);
    line-height: 1.5;
}

.contact-info-hours {
    margin-top: 2rem;
}

.contact-info-hours-list {
    list-style: none;
    margin: 0;
    padding: 0.75rem 1.5rem;
    background: rgba(244, 242, 236, 0.8);
    border: 1px solid rgba(226, 230, 223, 0.6);
    border-radius: 10px;
}

.contact-info-hours-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--clr-line);
    font-size: 0.9rem;
}

.contact-info-hours-row:last-child {
    border-bottom: none;
}

.contact-info-hours-icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--clr-forest);
    color: #fff;
}

.contact-info-hours-icon svg {
    width: 14px;
    height: 14px;
}

.contact-info-hours-label {
    color: var(--clr-ink);
    font-weight: 600;
}

.contact-info-hours-value {
    color: var(--clr-body);
}

/* WPForms override, scoped to this component's card so it doesn't affect
   any other WPForms embed elsewhere on the site. WPForms renders its own
   markup (.wpforms-container, .wpforms-field, …) without this theme's own
   classes, so the brand look has to be applied onto its selectors directly
   rather than reusing .btn/.section-inner/etc. */
.contact-info-form-card .wpforms-container {
    margin: 0;
    --wpforms-button-background-color: var(--clr-forest) !important;
    --wpforms-button-border-color: var(--clr-forest) !important;
    --wpforms-button-border-radius: 10px !important;
    --wpforms-button-size-height: 44px !important;
}

.contact-info-form-card .wpforms-field {
    padding: 0 0 1.35rem;
}

.contact-info-form-card .wpforms-field-label {
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--clr-ink);
    margin-bottom: 0.4rem;
}

.contact-info-form-card .wpforms-field-required {
    color: var(--clr-forest);
}

.contact-info-form-card input[type='text'],
.contact-info-form-card input[type='email'],
.contact-info-form-card input[type='tel'],
.contact-info-form-card textarea,
.contact-info-form-card select {
    width: 100%;
    box-sizing: border-box;
    font-family: var(--ff-body);
    font-size: 0.95rem;
    color: var(--clr-ink);
    padding: 0.75rem 0.9rem;
    border: 1.5px solid var(--clr-line);
    border-radius: 0;
    background: var(--clr-white);
    transition: border-color var(--t);
}

.contact-info-form-card input[type='text']:focus,
.contact-info-form-card input[type='email']:focus,
.contact-info-form-card input[type='tel']:focus,
.contact-info-form-card textarea:focus,
.contact-info-form-card select:focus {
    outline: none;
    border-color: var(--clr-forest);
}

.contact-info-form-card textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info-form-card .wpforms-field-checkbox {
    padding-bottom: 0.9rem;
}

.contact-info-form-card .wpforms-field-checkbox fieldset,
.contact-info-form-card .wpforms-field-checkbox ul {
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-info-form-card .wpforms-field-checkbox li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
}

.contact-info-form-card .wpforms-field-checkbox input[type='checkbox'] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0.15rem 0 0;
    accent-color: var(--clr-forest);
}

.contact-info-form-card .wpforms-field-checkbox .wpforms-field-label-inline,
.contact-info-form-card .wpforms-field-checkbox .wpforms-field-description {
    font-family: var(--ff-body);
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--clr-body);
}

.contact-info-form-card .wpforms-field-checkbox .wpforms-field-description {
    margin: 0.15rem 0 0 1.65rem;
}

.contact-info-form-card .wpforms-field-checkbox .wpforms-field-description a {
    color: var(--clr-forest-dk);
}

.contact-info-form-card .wpforms-submit-container {
    margin-top: 0.5rem;
}

.contact-info-form-card button[type='submit'].wpforms-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    background: var(--clr-forest) !important;
    border: none;
    border-radius: 10px;
    padding: 0.95rem 1.5rem;
    cursor: pointer;
    transition: background var(--t), transform var(--t);
}

.contact-info-form-card button[type='submit'].wpforms-submit:hover {
    background: var(--clr-forest-dk) !important;
    transform: translateY(-2px);
}

.contact-info-form-card .wpforms-error,
.contact-info-form-card .wpforms-field-description {
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}
