/* ============================================================
   STYLES.CSS - SITE BOILERPLATE
   ============================================================
   TABLE OF CONTENTS
   01. CSS Variables
   02. Reset & Base (modern-normalize)
   03. Global / Typography
   04. Reusable Components
       - Buttons
       - Section Headers
       - Hero (full + short variants)
       - Parallax Sections
       - Two-Column Layout
       - Cards
       - CTA Section
   05. Header & Nav
   06. Footer
   07. INDEX - Homepage
   08. SERVICES
   09. SERVICE TEMPLATE (Individual Service Pages)
   10. GALLERY
   11. REVIEWS
   12. CONTACT
   13. 404
   ============================================================ */

@view-transition {navigation: auto;}

/* ============================================================
   01. CSS VARIABLES
   ============================================================ */

:root {
    /* Brand Colours */
    --color-dark:           #081f46;
    --color-accent:         #2a6dae;
    --color-accent-light:   #639ed9;
    --color-accent-dark:    #1b62a9;

    /* Backgrounds */
    --color-bg:             #ffffff;
    --color-bg-alt:         #f2f5fa;

    /* --- Grays --- */
    --gray-100:             #f8f9fa;
    --gray-200:             #e9ecef;
    --gray-400:             #adb5bd;
    --gray-600:             #00023c;
    --gray-800:             #343a40;
    --gray-900:             #212529;

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body:    'Poppins', sans-serif;

    /* --- Font Sizes (rem scale) --- */
    --text-sm:              0.875rem;   /* 14px */
    --text-base:            1rem;       /* 16px */
    --text-md:              1.25rem;   /* 18px */
    --text-lg:              1.35rem;    /* 20px */
    --text-xl:              1.5rem;     /* 24px */
    --text-2xl:             30px;      
    --text-3xl:             40px;   
    --text-4xl:             3.5rem;     /* 56px */

    /* --- Spacing --- */
    --section-padding:      5rem;
    --section-padding-sm:   3rem;

    /* --- Shadows --- */
    --shadow-sm:            0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:            0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.07);
    --shadow-lg:            0 10px 30px rgba(0,0,0,0.12), 0 4px 10px rgba(0,0,0,0.08);

    /* --- Gradients --- */
    --gradient-dark:        linear-gradient(135deg, var(--color-dark) 0%, #0e2d62 100%);
    --gradient-accent:      linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-dark) 100%);
    --gradient-overlay:     linear-gradient(90deg, rgba(0, 36, 72, 0.99) 0%, rgba(0, 23, 98, 0.4) 100%);
    --card-gradient:        linear-gradient(to top, rgba(0, 16, 68, 0.9) 0%, rgba(0, 0, 0, 0) 90%);
    --gradient-parallax:    linear-gradient(135deg, rgba(0, 36, 72, 0.7) 0%, rgba(0, 23, 98,0.7) 100%);

    /* --- Border Radius --- */
    --radius-sm:            0.25rem;
    --radius-md:            0.5rem;
    --radius-lg:            1rem;
    --radius-xl:            1.5rem;

    /* --- Transitions --- */
    --transition-fast:      0.2s ease;
    --transition-base:      0.35s ease;
    --transition-slow:      0.6s ease;

    /* --- Layout --- */
    --container-max:        1300px;
    --container-wide:       1400px;
    --header-height:        75px;
}


/* ============================================================
   02. RESET & BASE (modern-normalize)
   ============================================================ */
/* * {
    outline: 1px dashed grey;
} */

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

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--gray-900);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    display: block;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: 0.5em;
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-dark);
        letter-spacing: -1px;
}

h2 b {
    font-weight: 600;
    color: var(--color-accent);
}
p {
    margin-top: 0;
    margin-bottom: 1em;
    line-height: 1.8;
    font-size: 1rem;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

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

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

address {
    font-style: normal;
}

/* --- Accessibility --- */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

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


/* ============================================================
   03. GLOBAL / TYPOGRAPHY
   ============================================================ */

.container {
    width: 90%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
}

.container--wide {
    width: 92%;
    max-width: var(--container-wide);
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: var(--section-padding) 0;
}

section.alt-bg {
    background-color: var(--color-bg-alt);
}

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-md); }

.text-accent { color: var(--color-accent); }
.text-light  { color: var(--gray-100); }
.text-muted  { color: var(--gray-600); }
.text-center { text-align: center; }

.lead {
    color: var(--gray-600);
    line-height: 1.8;
    font-weight: 700;
}

.dark-bg {
    background-color: var(--color-dark) !important;
}

.dark-bg h2 {
    color: white;
}

.dark-bg h3 {
    color: white;
}

.dark-bg p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* ============================================================
   04. REUSABLE COMPONENTS
   ============================================================ */

/* --- Buttons --- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.75em 1.75em;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    text-decoration: none;
    transition: background-color var(--transition-fast),
                color var(--transition-fast),
                border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                transform var(--transition-fast);
    cursor: pointer;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

/* Primary - filled */
.btn-primary {
    background-color: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: #fff;
}

/* Secondary - outline */
.btn-secondary {
    background-color: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    color: #fff;
}

/* Secondary on dark backgrounds */
.btn-secondary--light {
    background-color: transparent;
    color: #fff;
    border-color: #fff;
}

.btn-secondary--light:hover {
    background-color: #fff;
    color: var(--color-dark);
}

/* Ghost - commented out, available if needed */
/*
.btn-ghost {
    background-color: transparent;
    color: var(--color-dark);
    border-color: transparent;
    padding-left: 0;
    padding-right: 0;
}
.btn-ghost:hover {
    color: var(--color-accent);
    box-shadow: none;
    transform: none;
}
*/

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}


/* --- Section Headers --- */

.section-header {
    margin-bottom: 3rem;
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--gray-600);
    font-size: var(--text-base);
    line-height: 1.8;
    margin-bottom: 0;
}

/* Section header on dark/image backgrounds */
.section-header--light h2,
.section-header--light .section-label,
.section-header--light p {
    color: #fff;
}

.section-header--light .section-label {
    color: var(--color-accent-light);
}

.section-header--light p {
    color: rgba(255,255,255,0.75);
}


/* --- Hero Variants --- */

/* Full hero - homepage, 100dvh */
.hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--color-dark);
}

/* Short hero - inner pages */
.hero--short {
    min-height: 40vh;
    padding: calc(var(--header-height) + 3rem) 0 4rem;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* parallax */
    z-index: 0;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: 50% 50%;
       object-position: 50% 50%;
    position: absolute;
    opacity: 0;
    -webkit-transition: opacity 1s ease-in-out, scale 5s linear;
    -o-transition: opacity 1s ease-in-out, scale 5s linear;
    transition: opacity 1s ease-in-out, scale 5s linear;
}

.hero-image-container img.active {
    opacity: 1;
    scale: 1.1; 
}

.is-cms .hero-image-container img {
    filter: brightness(0.5);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.is-cms .hero__overlay {
    display: none;
}

.hero__content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-top: var(--header-height);
}


.hero h1 {
    color: #fff;
    font-size: 55px;
    margin-bottom: 1rem;
    max-width: 23ch;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.3);
    font-weight: 600;
}

.hero-home h1 {
    margin-top: 1em;
    max-width: 22ch;
}

.hero--service h1 {
    max-width: 20ch;
}



.hero--service .hero__content {
    padding-top: 0;
}

.hero h1 b {
    font-weight: inherit;
    color: var(--color-accent-light);
}

.hero__sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    max-width: 46ch;
    line-height: 1.8;
}

.hero--service .hero__sub {
    max-width: 45ch;
}

.hero-trust-signals {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.hero-trust-signal {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
}

.hero-trust-signal__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trust-signal__icon svg {
    width: 44px;
    height: 44px;
    display: block;
}

.hero-trust-signal strong {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.hero-trust-signal span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.95);
}

/* Hero trust row — horizontal variant (bathroom-refurbishments) */
.hero-trust-row {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 2rem;
}

.hero-trust-row__item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: #fff;
    padding: 0.5rem 2rem 0.5rem 0;
    margin-right: 2rem;
    border-right: 1px solid rgba(255,255,255,0.25);
}

.hero-trust-row__item:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.hero-trust-row__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-trust-row__icon svg {
    width: 36px;
    height: 36px;
    display: block;
}

.hero-trust-row__item strong {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.1rem;
}

.hero-trust-row__item span {
    display: inline-block;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    /* max-width: 20ch; */
    line-height: 1.4;
}

@media (max-width: 768px) {
    .hero-trust-row {
        flex-direction: column;
        gap: 0.85rem;
    }

    .hero-trust-row__item {
        border-right: none;
        padding-right: 0;
        margin-right: 0;
    }

    .hero-trust-row__item span {
        max-width: 1000ch;
    }
}


/* --- What's Included (Bathroom) --- */
.whats-included {
    padding: var(--section-padding) 0;
    /* background: var(--color-bg-alt); */
}

.whats-included__heading {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
}

.whats-included__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2rem 1.5rem;
}

.whats-included__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
}

.whats-included__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.whats-included__icon svg {
    width: 52px;
    height: 52px;
}

.whats-included__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
}


/* --- Bath Why Choose Us --- */
.bath-why-choose {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.bath-why-choose__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bath-why-choose__heading {
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.bath-why-choose__left p {
    margin-bottom: 2rem;
    color: var(--color-dark);
    line-height: 1.7;
    font-size: var(--text-base);
}

.bath-why-choose__right {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.bath-why-choose__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    /* text-align: center; */
    gap: 0.75rem;
    flex: 1;
}

.bath-why-choose__icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bath-why-choose__icon svg {
    width: 52px;
    height: 52px;
}

.bath-why-choose__item strong {
    display: block;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.2rem;
}

.bath-why-choose__item span {
    font-size: var(--text-sm);
    color: var(--color-mid);
}


.hero-home {
    /* padding-bottom: 0; */
    align-items: stretch

}

.hero-home .hero__content {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
}

.hero__accreditations {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
    margin-top: 2.5rem;
    position: relative;
    width: fit-content;
    margin-left: auto;
    margin-top: auto;
}

.hero__accreditations::before {
    content: 'Trusted partnerships:';
    position: absolute;
    font-size: 0.9rem;
    top: -2em;
    left: 0;
}

.hero__accreditations img {
    height: 55px;
    width: auto;
    /* filter: brightness(0) invert(1) opacity(1); */
}


/* --- Parallax Sections --- */

.parallax-section {
    position: relative;
    overflow: hidden;
    padding: var(--section-padding) 0;
}

.parallax-section__bg {
    position: absolute;
    inset: -20%; /* extra to allow parallax movement */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.section-bg-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.section-bg-img-container img {
    display: block;
    min-width: 100%;
    height: 130%;
    -o-object-fit: cover;
       object-fit: cover;
    -o-object-position: center;
       object-position: center;
    -webkit-transition: translate 0.3s;
    -o-transition: translate 0.3s;
    transition: translate 0.3s;
}

.is-cms .section-bg-img-container img {
    filter: brightness(0.5);
}

.parallax-section__overlay {
    position: absolute;
    inset: 0;
    background: var(--gradient-parallax);
    z-index: 1;
    backdrop-filter: blur(2px);
}

.is-cms .parallax-section__overlay {
    display: none;
}

.parallax-section__content {
    position: relative;
    z-index: 2;
    color: #fff;
}

.parallax-section__content h2 {
    text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}
/* --- Two-Column Layout --- */

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.two-col--reversed .two-col__image {
    order: -1;
}

.two-col__image {
    position: relative;
}

.stat-badge {
    position: absolute;
    bottom: 1.5rem;
    right: -2rem;
    width: 180px;
    height: 180px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    color: #fff;
    text-align: center;
    padding: 0.75rem;
}

.stat-badge svg {
    width: 44px;
    height: 44px;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
    margin-bottom: 0.5rem;
}

.stat-badge strong {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

.stat-badge span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.2;
}

.two-col__image img {
    width: 100%;
    height: 580px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background-color: rgba(0,0,0,0.1);
}

.two-col__text h2 {
    margin-bottom: 1rem;
}

.two-col__text p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}


/* --- Cards --- */

.card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Service cards - image bg with overlay */
.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.service-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-slow);
    z-index: 0;
}

.service-card:hover .service-card__bg {
    transform: scale(1.05);
}

.service-card__overlay {
    position: absolute;
    inset: 0;
    background: var(--card-gradient);
    z-index: 1;
}

.service-card__content {
    position: relative;
    z-index: 2;
    padding: 1.5rem;
    color: #fff;
}

.service-card__content h3 {
    color: #fff;
    font-size: var(--text-xl);
    margin-bottom: 0.25rem;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}

.service-card__content p {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-sm);
    margin-bottom: 0;
}

/* Services carousel */
.services-carousel {
    position: relative;
    overflow: hidden;
}

.services-carousel__track-wrap {
    overflow: hidden;
    /* Peek: reveals a sliver of the next card */
    padding-right: 4rem;
    margin-right: -4rem;
}

.services-carousel__track {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem; /* prevents box-shadow clipping */
}

.services-carousel__track::-webkit-scrollbar {
    display: none;
}

/* Fixed width cards so peeking works predictably regardless of card count */
.services-carousel__track .service-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    min-height: 380px;
}

/* Arrow buttons */
.services-carousel__controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.75rem;
    justify-content: flex-start;
}

.carousel-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    flex-shrink: 0;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    display: block;
}

.carousel-arrow:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
}

.carousel-arrow:disabled {
    background: var(--gray-200);
    color: var(--gray-400);
    cursor: not-allowed;
    transform: none;
}

.dark-bg .carousel-arrow:disabled {
    background: var(--gray-800);
}

/* --- CTA Section --- */

.cta-section {
    padding: var(--section-padding) 0;
    text-align: center;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 3px 3px 3px rgba(0,0,0,0.3);
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: var(--text-base);
    margin-bottom: 2rem;
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
}


/* --- Review Cards --- */

.review-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2rem;
}

.review-card__stars {
    color: #f5a623;
    font-size: var(--text-lg);
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.review-card__text {
    font-size: var(--text-base);
    color: var(--gray-800);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.review-card__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-accent);
    font-weight: 500;
}

.review-avatar {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: var(--text-base);
    color: #fff;
}

/* Avatar colour variants - assign based on reviewer initial for visual variety */
.avatar--a { background-color: var(--color-accent); }
.avatar--b { background-color: var(--color-accent-dark); }
.avatar--c { background-color: #2a7d4f; }
.avatar--d { background-color: #7c3aed; }
.avatar--e { background-color: #c2410c; }

.review-card__author {
    font-weight: 700;
    color: var(--color-dark);
    font-size: var(--text-base);
}


/* --- Areas / Map --- */

.areas-section #map {
    width: 100%;
    height: 480px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    z-index: 0;
    background-color: rgba(0,0,0,0.1);
}

.google-map-wrapper {
    width: 100%;
    min-height: 400px;
    margin-top: 3rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.google-map-wrapper iframe {
    width: 100% !important;
    height: 400px !important;
    border: none !important;
    outline: none !important;
    border-radius: var(--border-radius);
}

.leaflet-marker-icon {
    
}

.leaflet-tile-pane {

}

.leaflet-attribution-flag {
    width: 0 !important; /* Sorry, some clients don't want their site to be politicized
 */
}

.leaflet-marker-shadow {
    background-color: transparent;
}





/* ============================================================
   05. HEADER & NAV
   ============================================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
    transition: background-color var(--transition-base),
                box-shadow var(--transition-base);
}

.is-cms .site-header {
    position: absolute;
}

/* Transparent on load (hero pages) */
.site-header.transparent {
    background-color: transparent;
    box-shadow: none;
}

/* Scrolled state */
.site-header.scrolled {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-md);
}

/* Solid header - inner pages with short hero */
.site-header.solid {
    background-color: var(--color-bg);
    box-shadow: var(--shadow-md);
}


.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Nav overlay header (logo + close — mobile only) --- */
.nav-overlay-header {
    display: none;
}

/* --- Logo --- */

.header__logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: opacity 0.3s;
}

.header__logo:hover {
    opacity: 0.7;
}

.header__logo img {
    height: calc(var(--header-height)*0.7);
    width: auto;
    transform-origin: top left;
    transition: scale 0.7s;
}

.big-logo {
    scale: 1.4;
}


/* If using CSS filter approach instead of two images, apply like:
   .site-header.transparent .header__logo img { filter: invert(1) hue-rotate(180deg); }
   .site-header.scrolled .header__logo img { filter: none; }
*/

/* --- Nav --- */

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    padding: 0.5em 1em;
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast),
                background-color var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    color: var(--color-accent-light);
}

.site-header.scrolled .nav-list > li > a {
    color: var(--color-dark);
}

.site-header.scrolled .nav-list > li > a:not(btn):hover {
    color: var(--color-accent);
    /* background-color: var(--gray-100); */
}

.site-header.scrolled .nav-list > li > .btn:hover {
    color: white;
}

.nav-list > li > a.active {
    color: var(--color-accent-light);
}

.site-header.scrolled .nav-list > li > a.active {
    color: var(--color-accent-light);
}

/* CTA button in nav */
.nav-list > li > a.btn {
    margin-left: 0.75rem;
    color: #fff;
    border-radius: var(--radius-md);
}

.site-header.scrolled .nav-list > li > a.btn {
    color: #fff;
}

/* --- Dropdown chevron - auto via :has(), no extra classes needed --- */

.nav-list > li:has(ul) > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 0.4em;
    transition: transform var(--transition-base);
}

.nav-list > li:has(ul):hover > a::after,
.nav-list > li:has(ul):focus-within > a::after {
    transform: rotate(225deg) translateY(-2px);
}

/* --- Dropdown panel --- */

.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    min-width: 200px;
    background: var(--color-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100;
    list-style: none;
    margin: 0;
    /* Invisible bridge fills gap between trigger and panel
       so the dropdown doesn't close when moving the mouse down */
    padding-top: 1rem;
    margin-top: -0.5rem;
}

.nav-list > li:hover .nav-dropdown,
.nav-list > li:focus-within .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: block;
    padding: 0.6em 0.75em;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-dark);
    border-radius: var(--radius-sm);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition-fast),
                color var(--transition-fast);
}

.nav-dropdown li a:hover {
    background: var(--color-bg-alt);
    color: var(--color-accent);
}

/* --- Mobile nav --- */

@media (max-width: 1028px) {
    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .nav-list > li > a {
        color: white;
        padding: 0.2rem 1rem;
        justify-content: flex-end;
        font-size: 1.4rem;
    }

    /* .nav-list > li > a:hover {
        background-color: var(--gray-100);
        color: var(--color-accent);
    } */

    .nav-list > li > a.btn {
        margin-left: auto;
        margin-top: 0.5rem;
        color: #fff;
        width: fit-content;
    }

    /* Mobile dropdown - inline below trigger */
    .nav-dropdown {
        position: static;
        box-shadow: none;
        background: var(--color-bg-alt);
        border-radius: var(--radius-md);
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
        padding: 0.5rem;
    }

    /* Show dropdown on mobile when parent li has .open */
    .nav-list > li .nav-dropdown {
        display: none;
    }

    .nav-list > li.open .nav-dropdown {
        display: block;
    }

    .nav-list > li.open > a::after {
        transform: rotate(225deg) translateY(-2px);
    }

    .text-parallax-section h2 {
        font-size: var(--text-2xl) !important;
    }

    .site-header.scrolled .nav-list > li > a {
        color: white;
    }

    .nav-dropdown li a {
        padding: 0.5em 1rem;

    }

    .nav-dropdown li a:hover {
        background: transparent;
        color: var(--color-accent-light);
    }

    .nav-list > li:has(ul) > a::after {
        display: none;
    }
}

/* --- Mobile menu toggle --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 0;
    line-height: 0;
}

.nav-toggle span {
    display: block;
    width: 32px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: background-color var(--transition-fast),
                transform var(--transition-base),
                opacity var(--transition-fast);
}

.site-header.scrolled .nav-toggle span {
    background-color: var(--color-dark);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ============================================================
   06. FOOTER
   ============================================================ */

.site-footer {
    background: var(--color-dark);
    color: rgba(255,255,255,0.75);
    padding: 4rem 0 2rem;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__brand .footer__logo img {
    height: 80px;
    width: auto;
    margin-bottom: 1.25rem;
    transition: opacity 0.3s;
    /* Uses light logo by default */
}

.footer__brand .footer__logo img:hover {
    opacity: 0.7;
}

.footer__tagline {
    font-size: var(--text-sm);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
    max-width: 45ch;
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.08);
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.footer__social a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

.footer__social img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}


.footer__col h4 {
    color: #fff;
    font-size: var(--text-base);
    margin-bottom: 1.25rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer__links a {
    color: rgba(255,255,255,0.9);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-accent-light);
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.footer__contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: var(--text-sm);
    color: rgba(255,255,255,1);
    line-height: 1.5;
    font-weight: 700;
}

.footer-contact-icon {
    flex-shrink: 0;
    padding: 4px;
    width: 24px;
    height: 24px;
    color: white;
    margin-top: 0em;
    background-color: var(--color-accent);;
    border-radius: var(--radius-sm);
}

.footer-contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.footer__contact-list a {
    color: rgba(255,255,255,1);
    font-size: 1.1rem;
}

.footer__contact-list a:hover {
    color: var(--color-accent-light);
}

address {
    font-style: normal;
    color: rgba(255,255,255,0.65);
}

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer__bottom a {
    color: rgba(255,255,255,0.7);
}

.footer__bottom a:hover {
    color: var(--color-accent-light);
}

.seo-keywords {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
}

.seo-keywords:empty {
    display: none;
}


/* ============================================================
   07. INDEX - HOMEPAGE
   ============================================================ */

/* Hero handled by global .hero styles above */

/* --- Trust Badges --- */
.trust-badges {
    background: var(--color-dark);
    padding: 1.5rem 0;
}

.trust-badges__list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.trust-badge__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-light);
}

.trust-badge__icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.trust-badge strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.trust-badge span {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.65);
}

/* --- Trust Strip (boiler-installations) --- */
.trust-strip {
    background: var(--color-dark);
    padding: 1.5rem 0;
}

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

.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.75rem;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,0.3);
}

.trust-strip__item:first-child { padding-left: 0; }
.trust-strip__item:last-child  { border-right: none; padding-right: 0; }

.trust-strip__stars {
    display: flex;
    gap: 2px;
    flex-shrink: 0;
}

.trust-strip__stars svg {
    width: 27px;
    height: 27px;
    display: block;
}

.trust-strip__img {
    flex-shrink: 0;
    height: 44px;
    width: auto;
    filter: brightness(0) invert(1);
}

.trust-strip__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-strip__icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.trust-strip__item strong {
    display: block;
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 0.15rem;
    color: #fff;
}

.trust-strip__item span {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.4;
}

/* --- Installation Process (boiler-installations) --- */
.install-process {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.container hr {
    border-top: 1px solid var(--color-bg-alt);
}

.install-process__cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.install-card {
    flex: 1 1 160px;
    max-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--color-accent-light);
}

.install-card:last-child {
    border-right: none;
}

.install-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.install-card__icon svg,
.install-card__icon img {
    width: 60%;
    aspect-ratio: 1;
    display: block;
    aspect-ratio: 1;
    object-fit: contain;
}

.install-card__icon img {
    filter: brightness(0) saturate(100%) invert(9%) sepia(35%) saturate(3848%) hue-rotate(203deg) brightness(98%) contrast(98%);
}

.install-card__step {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.install-card__desc {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* --- Boiler Types (boiler-installations) --- */
.boiler-types {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.boiler-types .section-header {
    max-width: 750px
}

.boiler-types__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}

.boiler-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.boiler-card__img-wrap {
    width: 100%;
    overflow: hidden;
    margin: 1.5rem;
    margin-bottom: 0;
}

.boiler-card__img-wrap img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: contain;
    object-position: center;
}

.boiler-card__body {
    padding: 1.75rem;
    flex: 1;
}

.boiler-card__body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.boiler-card__subtitle {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.boiler-card__body > p:not(.boiler-card__subtitle) {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.boiler-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.boiler-card__list li {
    font-size: var(--text-sm);
    color: var(--color-dark);
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.boiler-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-accent);
    font-weight: 700;
    font-size: 0.9em;
    line-height: 1.5;
}

/* --- Why Choose Us (boiler-installations) --- */
.why-choose-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg-alt);
}

.why-choose__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
}

.why-choose__item {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.why-choose__icon {
    width: 50px;
    height: 50px;
    object-fit: contain;
    flex-shrink: 0;
    margin-top: 2px;
    filter: brightness(0) saturate(100%) invert(33%) sepia(98%) saturate(473%) hue-rotate(168deg) brightness(95%) contrast(85%);
}

.why-choose__item strong {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.2rem;
}

.why-choose__item span {
    font-size: 0.82rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* --- Boiler Brands (boiler-installations) --- */
.brands-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.brands-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 3rem;
}

.brands-grid li {
    display: flex;
    align-items: center;
    justify-content: center;
}

.brands-grid img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) opacity(0.6);
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.brands-grid img:hover {
    opacity: 1;
}

/* --- Installs & Reviews (boiler-installations) --- */
.ir-section {
    padding: var(--section-padding) 0;
    background: var(--color-bg);
}

.ir-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3rem;
    align-items: start;
}

.ir-col__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--color-bg-alt);
}

.ir-col__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
}

.ir-col__link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}

.ir-col__link:hover {
    text-decoration: underline;
}

.ir-col__link svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* Installation cards */
.ir-installs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.ir-install-card__img {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--radius-md);
    margin-bottom: 0.75rem;
}

.ir-install-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.ir-install-card:hover .ir-install-card__img img {
    transform: scale(1.04);
}

.ir-install-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.ir-install-card__title span {
    /* font-weight: 400;
    color: var(--gray-600); */
}

.ir-install-card__desc {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Review cards */
.ir-reviews {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: start;
}

.ir-review-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.ir-review-card__stars {
    display: flex;
    gap: 3px;
    margin-bottom: 0.85rem;
}

.ir-review-card__stars svg {
    width: 18px;
    height: 18px;
    display: block;
}

.ir-review-card__text {
    font-size: var(--text-sm);
    color: var(--color-dark);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.ir-review-card__attr {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--gray-600);
    margin: 0;
}

.ir-review-card__attr span {
    font-weight: 400;
}

/* --- Finance CTA (boiler-installations) --- */
.finance-cta {
    overflow: visible;
}

.finance-cta__inner {
    display: grid;
    grid-template-columns: 1fr 4fr 4fr;
    gap: 2rem;
    background: var(--color-dark);
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
}

.finance-cta__mascot {
   margin-top: -5vw;
}

.finance-cta__mascot img {
    height: auto;
    display: block;
    filter: brightness(1.2);
}

.finance-cta-img img {
   margin-top: -5vw;
} 

.finance-cta__text {

}

.finance-cta__text h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 1.6rem;
}

.finance-cta__text p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.75rem;
    max-width: 52ch;
    line-height: 1.8;
    margin-bottom: 0;
}



/* --- Closing CTA (boiler-installations) --- */
.closing-cta {
    background: var(--color-dark);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.closing-cta h2 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: var(--text-2xl)
}

.closing-cta p {
    color: rgba(255,255,255,0.95);
    font-size: var(--text-md);
    margin: 0;
}

/* --- Work Grid (Latest Work) --- */
.work-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
    aspect-ratio: 4/3;
}

.grid-item-large {
    grid-row: 1 / 3;
}

.grid-item {
    overflow: hidden;
    background-color: rgba(0,0,0,0.1);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-md);
    filter: contrast(1.1) saturate(1.1);
}


/* --- Intro Section --- */
.intro-section {
    padding: var(--section-padding) 0;
        overflow: hidden;
}



.intro-section .two-col__image img {
    position: relative;
}



/* --- Services Section --- */
.home-services {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
}

.home-services .section-header {
    max-width: 720px;
}

/* --- Optional Text Section (parallax) --- */
.text-parallax-section {
    /* Uses .parallax-section styles */
    text-align: center;
}

.text-parallax-section h2 {
    color: #fff;
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
    max-width: 25ch;
    margin-left: auto;
    margin-right: auto;
}

.text-parallax-section p {
    color: rgba(255,255,255,0.8);
    font-size: var(--text-md);
    max-width: 70ch;
    margin: 0 auto 2rem;
}

/* --- Areas Covered Section --- */
.areas-section {
    padding: var(--section-padding) 0;
}

.areas-section__inner {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: start;
}

.areas-section__text p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* --- Latest Work (carousel) --- */
.latest-work {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
    overflow: hidden;
}

.latest-work__carousel {
    position: relative;
    margin-top: 2.5rem;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.5rem;
}

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

.carousel-track img {
    flex-shrink: 0;
    width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: var(--radius-md);
    scroll-snap-align: start;
}

.carousel-controls {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: center;
    align-items: center;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.carousel-btn:hover {
    background: var(--color-accent-dark);
    transform: scale(1.05);
}

/* --- Reviews Section (homepage - 2 cards) --- */
.home-reviews {
    padding: var(--section-padding) 0;
}

.home-reviews .section-header {
    max-width: 800px;
}


.reviews-grid--home {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-top: 2.5rem;
}

.reviews-grid--home .review-card {
    padding: 1.5rem;
}

.reviews-grid--home .review-card__text {
    font-size: vaR(--text-base);
    display: -webkit-box;
    -webkit-line-clamp: 5; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.reviews-grid--home  .review-card__author {
    font-size: 0.9rem;
    font-weight: 600;
}


/* --- CTA Section (homepage) --- */
.home-cta {
    /* Uses .parallax-section + .cta-section styles */
}




/* ============================================================
   07. MEDIA QUERIES - HOMEPAGE
   ============================================================ */

@media (max-width: 1028px) {
    /* Carousel needs no change at 1024px - cards stay fixed width, peeking still works */
    .areas-section__inner {
        grid-template-columns: 1fr;
    }

    .header__inner {
        position: relative;
        z-index: 1;
    }

    .header__nav {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 100dvh;
        z-index: 0;
        background: var(--gradient-overlay),
                    url('../media/images/hero-bg.jpg') 50% 0% / cover no-repeat;
        flex-direction: column;
        align-items: stretch;
        /* justify-content: space-between; */
        padding: 0;
        gap: 0;
        /* Hidden state */
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    }

    .header__nav.open {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transition: opacity 0.3s ease, visibility 0s linear 0s;
    }

    .nav-overlay-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.25rem;
        height: var(--header-height);
        flex-shrink: 0;
    }



    .nav-overlay-logo img {
        height: calc(var(--header-height) * 0.7);
        width: auto;
    }

    .nav-overlay-close {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 0;
        line-height: 0;
    }

    .nav-overlay-close span {
        display: block;
        width: 28px;
        height: 2px;
        background: #fff;
        border-radius: 2px;
    }

    .nav-overlay-close span:nth-child(1) { transform: translateY(1px) rotate(45deg); }
    .nav-overlay-close span:nth-child(2) { transform: translateY(-1px) rotate(-45deg); }

    .header__nav .nav-list {
        align-items: flex-end;
        text-align: right;
        gap: 0.25rem;
        width: 100%;
        padding: 0 1.5rem 2.5rem;
        overflow-y: auto;
        padding-top: 4rem;
    }

    .header__nav a {
        color: #fff;
        padding: 0.5em 0.75em;
    }

    .header__nav a:hover {
        /* background-color: rgba(255, 255, 255, 0.08); */
        color: #fff;
    }

    .header__nav .nav-dropdown {
        display: block !important;
        background: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0.25rem 0;
        margin: 0;
        margin-top: 0.5rem;
    }

    .header__nav .nav-dropdown a {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1em;
    }

    .header__nav .nav-list > li:has(> .btn) {
        width: 100%;
    }

    .header__nav .btn {
        margin-left: 0;
        margin-top: 0.5rem;

    }

    .nav-toggle {
        display: flex;
    }

    .header__nav a.nav-overlay-logo {
        padding: 0;
    }

    .reviews-grid--home {
        grid-template-columns: repeat(4, 1fr);
    }

    .reviews-grid--home .review-card:nth-of-type(5) {
        display: none;
    }

    .trust-strip__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .whats-included__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-strip__item {
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .trust-strip__item:first-child { padding-left: 1.25rem; }
    .trust-strip__item:last-child  { padding-right: 1.25rem; border-right: none; border-bottom: none; }
    .trust-strip__item:nth-child(2n) { border-right: none; }
    .trust-strip__item:nth-child(3)  { border-bottom: none; }

    .finance-cta__inner {
        align-items: center;;
    }

    .finance-cta__mascot {
        margin-top: 0;
    }

    .finance-cta__mascot img {
        height: auto;
        display: block;
        filter: brightness(1.2);
    }

    .finance-cta-img img {
        margin-top: 0;
    } 

    .ir-reviews {
        grid-template-columns: 1fr;
    }

    .finance-cta__inner {
        grid-template-columns: 1fr 1fr;
    }

    .finance-cta__text p {
        font-size: 1rem;
    }

    .finance-cta__mascot {
        display: none;
    }


}

@media (max-width: 768px) {
    :root {
        --section-padding: 3.5rem;
        --header-height: 70px;
    }

    .header__inner {
        align-items: flex-start;
    }
    h1 { font-size: var(--text-3xl); }
    h2 { font-size: var(--text-2xl); }

    .hero h1 {
        font-size: clamp(1rem, 9vw, 3rem);
    }



    .hero__sub {
        margin-top: 2em;
        font-size: 1rem;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .two-col--reversed .two-col__image {
        order: 0;
    }

    .two-col__image img {
        height: 320px;
    }

    /* Slightly narrower cards on mobile so peeking still works */
    .services-carousel__track .service-card {
        flex: 0 0 240px;
        min-height: 320px;
    }

    .reviews-grid--home {
        grid-template-columns: 1fr;
    }

    .trust-badges__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .trust-strip__list {
        grid-template-columns: 1fr;
    }

    .trust-strip__item {
        border-right: none;
        padding: 0.75rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.3);
    }

    .trust-strip__item:first-child { padding-left: 0; }
    .trust-strip__item:last-child  { border-bottom: none; padding-right: 0; }
    .trust-strip__item:nth-child(2n) { border-right: none; }
    .trust-strip__item:nth-child(3)  { border-bottom: 1px solid rgba(255,255,255,0.3); }

    .boiler-types__grid {
        grid-template-columns: 1fr;
    }

    .why-choose__list {
        grid-template-columns: 1fr;
    }

    .bath-why-choose__grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bath-why-choose__right {
        flex-direction: column;
        gap: 1.5rem;
    }

    .bath-why-choose__item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .ir-grid {
        grid-template-columns: 1fr;
    }

    .finance-cta__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .finance-cta__mascot {
        display: block;
        margin-inline: auto;
        width: 50%;
        max-width: 100px;
        margin-top: -15vw;
    }

    .finance-cta__text {
        padding-top: 0;
    }

    .finance-cta__text p {
        max-width: 100%;
    }

    .finance-cta-img img {
        margin-inline: auto;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .areas-section__inner {
        gap: 1rem;
    }

    .areas-section #map {
        height: 360px;
    }

    .trust-badge span:not(:has(svg)) {
        display: none;
    }

    .hero__accreditations {
        justify-content: flex-start;
        gap: 1rem;
        width: 100%;
        margin-left: unset;
    }

        .hero__accreditations img {
        height: 7vw;
    }

    .install-card {
        border-right: none;
    }

    .boiler-card__img-wrap img {
        width: 90%;
        height: auto;
    }

    


}

@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem;
        --header-height: 60px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-badges__list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .brands-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }

    .brands-grid li {
        justify-content: center;
    }

    .ir-installs {
        grid-template-columns: 1fr;
    }

    .whats-included__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__contact-list a[href^="mailto:"] {
        /* font-size: 1rem; */
    }

    .contact-info-list a[href^="mailto:"] {
        /* font-size: 1rem; */
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .hero__accreditations {
        justify-content: space-around;
        text-align: center;
    }

    .hero__accreditations::before {
        width: 100%;
        text-align: center;
    }

    .hero__accreditations img {
        height: 10vw;
    }

    .sidebar-cta {display: none;}

    .trust-badge strong {font-size: 1rem;};



}


/* ============================================================
   08. SERVICES PAGE
   ============================================================ */

/* Short hero handled by .hero--short */

.services-intro {
    padding: var(--section-padding) 0;
}

/* Services list - big <ul> variant */
.services-list {
    columns: 300px;
    column-gap: 3rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background-color: #fff;
    border-radius: var(--radius-md);
}

.services-list li {
    position: relative;
    padding-left: 2.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    break-inside: avoid;
    font-weight: 600;
}

.services-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    background-color: var(--color-accent);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px;
    border-radius: var(--radius-sm);
}

/* Service blocks - individual anchored sections */
.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--color-accent-light);
}

.service-block:last-child {
    border-bottom: none;
}

.service-block:nth-child(even) .service-block__image {
    order: -1;
}

.service-block__image img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.service-block__text h3 {
    margin-bottom: 1rem;
}

.service-block__text p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Services blocks wrapper */
.services-blocks {
    padding: var(--section-padding) 0;
}

.services-blocks .section-header.centered {
    margin-bottom: 0;
}
/* Services CTA blurb */
.services-cta-blurb {
    padding: 0;
}

.services-cta-blurb .container {
        padding: 1.5rem;
        border-radius: var(--radius-lg);
        background-color: var(--color-dark);
        box-shadow: var(--shadow-lg); 
        text-align: center;
}

.services-cta-blurb h3 {
    color: white;
}
.services-cta-blurb p {
    max-width: 700px;
    margin-inline: auto;
    color: rgba(255,255,255,0.8);
}

.services-list-section {
    padding: var(--section-padding) 0;
}

/* Why choose us section */
.why-us {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
}

.why-us__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}

.why-us__item {
    padding: 1.75rem;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.why-us__icon {
    width: 52px;
    height: 52px;
    background: var(--color-accent);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #fff;
}

.why-us__icon svg {
    width: 26px;
    height: 26px;
    display: block;
}

.why-us__item h3 {
    font-size: var(--text-lg);
}

.why-us__item h4 {
    margin-bottom: 0.5rem;
    font-size: var(--text-base);
}

.why-us__item p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 0;
    line-height: 1.7;
}

/* --- FAQ Accordion --- */

.faq-list {
    max-width: 780px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-item:first-child {
    border-top: 1px solid var(--gray-200);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-dark);
    text-align: left;
    transition: color var(--transition-fast);
    list-style: none; /* removes native marker in Firefox */
}

/* Removes native marker in Chrome/Safari */
.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question:hover {
    color: var(--color-accent);
}

details[open] .faq-question {
    color: var(--color-accent);
}

/* Animated +/× icon */
.faq-icon {
    flex-shrink: 0;
    position: relative;
    width: 16px;
    height: 16px;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-fast);
}

/* Horizontal bar */
.faq-icon::before {
    width: 100%;
    height: 3px;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

/* Vertical bar */
.faq-icon::after {
    width: 3px;
    height: 100%;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Rotate vertical bar to form × when open */
details[open] .faq-icon::after,
.faq-item[open] .faq-icon::after {
    transform: translateX(-50%) rotate(90deg);
    opacity: 0;
}

/* Answer panel - height animated by JS */
.faq-answer {
    overflow: hidden;
    height: 0;
    transition: height var(--transition-base);
}

.faq-answer__inner {
    padding-bottom: 1.25rem;
}

.faq-answer__inner p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0;
}
/* ============================================================
   08. MEDIA QUERIES - SERVICES PAGE
   ============================================================ */

@media (max-width: 768px) {
    .services-list {
        column-count: 1;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-block:nth-child(even) .service-block__image,
    .service-block:nth-child(odd) .service-block__image {
        order: -1;
    }

    .service-block__image img {
        height: 260px;
    }

    .why-us__grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav-list > li > a.btn {
        width: 100%;
        margin-left: unset;
        text-align: center;
        justify-content: center;
    }
}


/* ============================================================
   09. SERVICE TEMPLATE (Individual Service Pages)
   ============================================================ */

.service-page {
    padding: var(--section-padding) 0;
    padding-bottom: 0;
}

.service-page__inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.service-page__content h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.service-page__content h3 {
    font-size: var(--text-xl);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.service-page__content p {
    color: var(--gray-600);
    line-height: 1.8;
}

.service-page__content ul {
    list-style: disc;
    padding: 1rem;
    padding-left: 2.5em;
    margin-bottom: 1.5rem;
    background-color: var(--color-bg-alt);
}

.service-page__content ul li {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    padding-left: 0.25em;
    font-weight: 600;
    font-size: var(--text-base);
    line-height: 1.5em;
    border-radius: var(--radius-md);
}

.service-page__content ul li::marker {
    color: var(--color-accent);
}

.service-page__content img {
    width: 100%;
    margin: 2rem 0;
    aspect-ratio: 1.8;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

/* Sidebar */
.service-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-nav {
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.sidebar-nav h4 {
    font-size: var(--text-md);
    /* text-transform: uppercase; */
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6em 0.75em;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: #e9f2fc;
    color: var(--color-accent);
}

.sidebar-cta {
    border: 1px solid rgba(0,0,0,0.3);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    color: var(--color-dark);
}

.sidebar-cta h4 {
    color: var(--color-dark);
    margin-bottom: 0.5rem;
}

.sidebar-cta p {
    font-size: var(--text-sm);
    color: var(--color-dark);
    margin-bottom: 1.25rem;
}

.sidebar-cta .phone {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Service page reviews nudge */
.service-reviews-nudge {
    padding: var(--section-padding-sm) 0;
}

/* ============================================================
   09. MEDIA QUERIES - SERVICE TEMPLATE
   ============================================================ */

@media (max-width: 900px) {
    .service-page__inner {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .service-page__content h2 {
        font-size: 1.9rem;
    }

    .service-page__content img {
        aspect-ratio: 1.6;
    }
}

@media (max-width: 480px) {
    .service-page__content img {
        aspect-ratio: 1.2;
    }
}


/* ============================================================
   10. GALLERY PAGE
   ============================================================ */

.gallery-page {
    padding: var(--section-padding) 0;
}

.gallery-grid {
    columns: 3;
    column-gap: 1rem;
}

.gallery-grid a {
    display: block;
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    filter: contrast(1.1) saturate(1.1);
    transition: transform var(--transition-base), filter var(--transition-base);
}

.gallery-grid a:hover img {
    transform: scale(1.03);
}

/* Multiple galleries with headings */
.gallery-category {
    margin-bottom: 4rem;
}

.gallery-category h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.gallery-socials {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.gallery-socials a {
    font-weight: 600;
}

/* Uniform grid - all images same aspect ratio (4:3) */
.gallery-grid--uniform {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.gallery-grid--uniform.three-col {
    margin: 2rem 0;
    grid-template-columns: 1fr 1fr 1fr;
}

.gallery-grid--uniform.two-col {
    margin: 2rem 0;
    grid-template-columns: 1fr 1fr;
}

.gallery-grid--uniform.three-col img, 
.gallery-grid--uniform.two-col img {
    margin-top: 0;
}

.gallery-grid--uniform a {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    aspect-ratio: 1.4;
}

.gallery-grid--uniform img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: contrast(1.1) saturate(1.1);
    transition: transform var(--transition-base), filter var(--transition-base);
}

.gallery-grid--uniform a:hover img {
    transform: scale(1.05);
}

/* ============================================================
   10. MEDIA QUERIES - GALLERY
   ============================================================ */

@media (max-width: 900px) {
    .gallery-grid {
        columns: 2;
    }

    .gallery-grid--uniform {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        columns: 1;
    }

    .gallery-grid--uniform {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid--uniform.three-col {
        grid-template-columns: 1fr 1fr;
    }
}


/* ============================================================
   11. REVIEWS PAGE
   ============================================================ */

.reviews-page {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
}

/* Masonry layout */
.reviews-masonry {
    columns: 4;
    column-gap: 1rem;
}

.reviews-masonry .review-card {
    break-inside: avoid;
    margin-bottom: 1.5rem;
}

.reviews-sources {
    text-align: center;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-600);
}

.reviews-sources a {
    font-weight: 600;
}

/* ============================================================
   11. MEDIA QUERIES - REVIEWS
   ============================================================ */

@media (max-width: 900px) {
    .reviews-masonry {
        columns: 2;
    }
}

@media (max-width: 480px) {
    .reviews-masonry {
        columns: 1;
    }
}


/* ============================================================
   12. CONTACT PAGE
   ============================================================ */

.contact-page {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.contact-details h3 {
    margin-bottom: 1.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.contact-info-list li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    font-size: var(--text-lg);
    color: var(--gray-700);
    line-height: 1.5;
}

.contact-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: var(--color-accent);
    margin-top: 0.15rem;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-info-list li a {
    color: var(--gray-700);
    font-weight: 600;
}

.contact-info-list li a:hover {
    color: var(--color-accent);
}

.contact-social {
    margin-top: 2rem;
}

.contact-social h4 {
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.contact-social__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.contact-social__links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5em 1em;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    transition: border-color var(--transition-fast),
                color var(--transition-fast),
                background var(--transition-fast);
}

.contact-social__links a:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--gray-100);
}

.contact-social__links img {
    width: 18px;
    height: 18px;
}

/* Contact form */
.contact-form {
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
}

.contact-form h3 {
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75em 1em;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--color-bg);
    color: var(--gray-900);
    font-size: var(--text-base);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(29,111,216,0.12);
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group--checkbox {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.7rem;
}

.form-group--checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--color-primary);
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-areas {
    margin-top: var(--section-padding);
}

.contact-page {
    padding: var(--section-padding) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Right column sidebar boxes */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-sidebar__box {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contact-sidebar__box h4 {
    font-size: var(--text-base);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-600);
    margin-bottom: 1.25rem;
}

.contact-sidebar__box p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Map box - no padding around the map itself */
.contact-sidebar__box--map {
    overflow: hidden;
}

.contact-sidebar__box--map #map {
    width: 100%;
    height: 260px;
    border-radius: var(--radius-sm);
    margin-top: 1rem;
    z-index: 0;
}

/* ============================================================
   12. MEDIA QUERIES - CONTACT
   ============================================================ */

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 1.5rem;
    }
}


/* ============================================================
   13. 404 PAGE
   ============================================================ */

.page-404 {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.page-404__inner {
    max-width: 520px;
}

.page-404__code {
    font-size: 8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.2;
}

.page-404 h1 {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.page-404 p {
    color: var(--gray-600);
    margin-bottom: 2rem;
    font-size: var(--text-md);
}


/* ============================================================
   14. SUCCESS & FAILURE PAGES
   ============================================================ */

.page-status {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.page-status__inner {
    max-width: 520px;
}

.page-status__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 auto 2rem;
    color: #fff;
}

.page-status__icon--success {
    background-color: #2a7d4f;
}

.page-status__icon--failure {
    background-color: #c2410c;
}

.page-status h1 {
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
}

.page-status p {
    color: var(--gray-600);
    font-size: var(--text-md);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Direct contact details on failure page */
.page-status__contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.page-status__contact a {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-dark);
}

.page-status__contact a:hover {
    color: var(--color-accent);
}


/* ============================================================
   15. PRIVACY POLICY PAGE
   ============================================================ */

.policy-page {
    padding: var(--section-padding) 0;
}

.policy-content {
    max-width: 780px;
    margin: 0 auto;
}

.policy-updated {
    font-size: var(--text-sm);
    color: var(--gray-400);
    margin-bottom: 2.5rem;
}

.policy-content h2 {
    font-size: var(--text-2xl);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.policy-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.policy-content h3 {
    font-size: var(--text-lg);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.policy-content ul {
    list-style: disc;
    padding-left: 1.5em;
    margin-bottom: 1.25rem;
}

.policy-content ul li {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 0.4rem;
    padding-left: 0.25em;
}

.policy-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.policy-contact {
    margin-top: 1rem;
    font-style: normal;
    color: var(--gray-600);
    line-height: 2;
}

.policy-contact strong {
    color: var(--color-dark);
}


/*=============== SCROLL ANIMATIONS ===============*/
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slide-left {
    from { transform: translateX(-40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-right {
    from { transform: translateX(40px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slide-down {
    from { transform: translateY(-40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slide-up {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes pulse {
    0% { scale: 1; }
    50% { scale: 1.1; }
    100% { scale: 1; }
}

@media (prefers-reduced-motion: no-preference) {

    /* FADE IN --------------------------------- */
    .fade-in { opacity: 0; }
    .is-cms .fade-in { opacity: 1; }
    .fade-in-animation { animation: fade-in 1s ease forwards; }
    .is-cms .fade-in-animation { animation: none; }

    /* SLIDE LEFT ------------------------------ */
    .slide-left { opacity: 0; }
    .is-cms .slide-left { opacity: 1; }
    .slide-left-animation { animation: slide-left 1s ease forwards; }
    .is-cms .slide-left-animation { animation: none; }

    /* SLIDE RIGHT ----------------------------- */
    .slide-right { opacity: 0; }
    .is-cms .slide-right { opacity: 1; }
    .slide-right-animation { animation: slide-right 1s ease forwards; }
    .is-cms .slide-right-animation { animation: none; }

    /* SLIDE DOWN ------------------------------ */
    .slide-down { opacity: 0; }
    .is-cms .slide-down { opacity: 1; }
    .slide-down-animation { animation: slide-down 1s ease forwards; }
    .is-cms .slide-down-animation { animation: none; }

    /* SLIDE UP -------------------------------- */
    .slide-up { opacity: 0; }
    .is-cms .slide-up { opacity: 1; }
    .slide-up-animation { animation: slide-up 1s ease forwards; }
    .is-cms .slide-up-animation { animation: none; }

    /* PULSE ----------------------------------- */
    .pulse-animation { animation: pulse 0.7s ease forwards; }
    .is-cms .pulse-animation { animation: none; }

    /* ANIMATION DELAYS ------------------------ */
    .delay-200ms  { animation-delay: 200ms;  animation-fill-mode: both; }
    .delay-300ms  { animation-delay: 300ms;  animation-fill-mode: both; }
    .delay-400ms  { animation-delay: 400ms;  animation-fill-mode: both; }
    .delay-500ms  { animation-delay: 500ms;  animation-fill-mode: both; }
    .delay-600ms  { animation-delay: 600ms;  animation-fill-mode: both; }
    .delay-700ms  { animation-delay: 700ms;  animation-fill-mode: both; }
    .delay-800ms  { animation-delay: 800ms;  animation-fill-mode: both; }
    .delay-900ms  { animation-delay: 900ms;  animation-fill-mode: both; }
    .delay-1000ms { animation-delay: 1000ms; animation-fill-mode: both; }
}


/* ============================================================
   16. FINANCE PAGE
   ============================================================ */

/* Finance banner (index.html and boiler-installations.html) */
.finance-banner { 
    /* padding: 2rem 0;  */
    background-image: linear-gradient(0deg,var(--color-dark) 0%, var(--color-dark) 50%, var(--color-bg-alt) 50%, var(--color-bg-alt) 100%);
}

.finance-banner.banner-alt-bg {
        background-image: linear-gradient(0deg,var(--color-bg) 0%, var(--color-bg) 50%, var(--color-bg) 50%, var(--color-bg) 100%);
}

.finance-banner h2 {
    margin-bottom: 0;
    color: white;
    font-size: 2rem;
}

.finance-wrapper {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.finance-banner a { 
    display: block;
    transition: filter 0.3s;
}

.finance-banner a:hover {
    filter: brightness(1.05);
}

.finance-banner img {
     width: 100%;
     max-width: 700px;
     margin-inline: auto;
     height: auto;
     display: block;
     border-radius: 8px; 
     margin-top: -6rem;
     box-shadow: var(--shadow-md);
}



@media (max-width: 1028px) {
    .finance-banner {
        padding-top: 5rem;
    }

    .finance-wrapper {
        flex-direction: column-reverse;
    }

    .finance-banner h2 {
        margin-bottom: 1rem;
        text-align: center;;
    }

    .finance-banner img {
        max-width: 90%;
    }

}

@media (max-width: 480px) {
    .finance-wrapper {
        padding: 1rem;
    }

    .finance-banner img {
        max-width: 100%;
    }

    .finance-banner h2 {
        font-size: 1.7rem;
    }
}

/* On-page FCA disclaimer (finance.html) */
.finance-page__fca { font-size: 0.75rem; color: var(--gray-500); border-top: 1px solid var(--gray-200); padding-top: 1.25rem; margin-top: 2rem; line-height: 1.6; }

/* Representative example box */
.finance-rep-example { background: var(--color-bg-alt); border-left: 3px solid var(--color-accent); padding: 1rem 1.25rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: var(--text-base); color: var(--gray-600); line-height: 1.7; }

/* Footer FCA disclaimer (all pages) */
.footer__fca { font-size: 0.9rem; color: rgba(255,255,255,0.7); margin-top: 0.75rem; line-height: 1.5; }

/* 
.shapedividers_com-7806{
overflow:hidden;
position:relative;
}
.shapedividers_com-7806::before{ 
content:'';
font-family:'shape divider from ShapeDividers.com';
position: absolute;
z-index: 3;
pointer-events: none;
background-repeat: no-repeat;
bottom: -0.1vw;
left: -0.1vw;
right: -0.1vw;
top: -0.1vw; 
background-size: 100% 45px;
background-position: 50% 100%;  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.278 3.52" preserveAspectRatio="none"><path d="M0 3.528S27.04 3.352 35.278 0v3.528z" opacity=".2" fill="%23ffffff"/><path d="M0 3.528S27.04 3.374 35.278.425v3.103z" opacity=".2" fill="%23ffffff"/><path d="M0 3.528S27.04 3.396 35.278.882v2.646z" fill="%23ffffff"/><path d="M0 3.527h35.278v.092H0z" fill="%23ffffff"/></svg>'); 
}

@media (min-width:2100px){
.shapedividers_com-7806::before{
background-size: 100% calc(2vw + 45px);
}
}


.shapedividers_com-2822{
overflow:hidden;
position:relative;
}
.shapedividers_com-2822::before{ 
content:'';
font-family:'shape divider from ShapeDividers.com';
position: absolute;
z-index: 3;
pointer-events: none;
background-repeat: no-repeat;
bottom: -0.1vw;
left: -0.1vw;
right: -0.1vw;
top: -0.1vw; 
background-size: 100% 45px;
background-position: 50% 100%;  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.278 3.52" preserveAspectRatio="none"><path d="M0 3.528S27.04 3.352 35.278 0v3.528z" opacity=".2" fill="%23efeff7"/><path d="M0 3.528S27.04 3.374 35.278.425v3.103z" opacity=".2" fill="%23efeff7"/><path d="M0 3.528S27.04 3.396 35.278.882v2.646z" fill="%23efeff7"/><path d="M0 3.527h35.278v.092H0z" fill="%23efeff7"/></svg>'); 
}

@media (min-width:2100px){
.shapedividers_com-2822::before{
background-size: 100% calc(2vw + 45px);
}
}


.shapedividers_com-2490{
overflow:hidden;
position:relative;
}
.shapedividers_com-2490::before{ 
content:'';
font-family:'shape divider from ShapeDividers.com';
position: absolute;
z-index: 3;
pointer-events: none;
background-repeat: no-repeat;
bottom: -0.1vw;
left: -0.1vw;
right: -0.1vw;
top: -0.1vw; 
background-size: 100% 45px;
background-position: 50% 100%;  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.278 3.52" preserveAspectRatio="none"><path d="M0 3.528S27.04 3.352 35.278 0v3.528z" opacity=".2" fill="%23081f46"/><path d="M0 3.528S27.04 3.374 35.278.425v3.103z" opacity=".2" fill="%23081f46"/><path d="M0 3.528S27.04 3.396 35.278.882v2.646z" fill="%23081f46"/><path d="M0 3.527h35.278v.092H0z" fill="%23081f46"/></svg>'); 
}

@media (min-width:2100px){
.shapedividers_com-2490::before{
background-size: 100% calc(2vw + 45px);
}
}
 
 
  */