@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap');

/*  Variables  */
:root {
    --navy:      #071D3D;
    --teal:      #4ecdc4;
    --teal-light:#7ee8d8;
    --white:     #f4f4f4;
    --off-white: #f5f5f5;
    --text-dark: #1a1a1a;
}

/*  Reset */
* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
}

body {
    overflow-x: hidden;
}

/* Header */
#site-header {
    display: flex;
    align-items: center;
    background-color: var(--navy);
    padding: 1rem 2rem;
    gap: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: padding 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#site-header.scrolled {
    padding: 0.5rem 2rem;
    border-bottom: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

#site-header.scrolled #main-nav {
    border-bottom: none;
}

#site-header.scrolled #header-contact {
    display: none;
}

#site-header.scrolled #header-logo,
#site-header.scrolled #header-gas-safe {
    height: 60px;
}

#header-logo-link {
    flex-shrink: 0;
    line-height: 0;
    pointer-events: none;
    cursor: default;
}

#header-logo {
    height: 100px;
    width: auto;
}

#header-centre {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#header-contact {
    display: flex;
    gap: 2.5rem;
    padding: 1rem 0 0.6rem 0;
    width: 100%;
    justify-content: center;
}

#header-contact a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

#header-contact a:hover {
    color: var(--teal);
}

#main-nav {
    padding: 1rem 0 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    width: 100%;
    display: flex;
    justify-content: center;
}

#main-nav-list {
    display: flex;
    list-style: none;
}

#main-nav-list li a {
    display: block;
    padding: 0.25rem 2rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

#main-nav-list li a:hover {
    color: var(--teal);
}

#header-gas-safe {
    height: 90px;
    width: auto;
    flex-shrink: 0;
}

/* Hamburger button — hidden on desktop */
#nav-toggle {
    display: none;
}

/* Mobile-only hero logo — hidden on desktop */
#hero-logo-mobile {
    display: none;
}

/* Main */
main {
    min-height: 60vh;
}

/* Footer  */
footer {
    background-color: var(--navy);
    color: var(--white);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    font-size: 0.85rem;
}

footer p:last-child {
    text-align: right;
}

#footer-credit a {
    color: var(--teal);
}

#footer-credit a:hover {
    opacity: 0.8;
}

footer a:hover {
    color: var(--teal);
}

#footer-logo {
    height: 60px;
    width: auto;
}

/* Hero */
#hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 60vh;
    background-color: var(--navy);
    border-bottom: 2px solid var(--teal);
}

#hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    padding: 2rem 3rem 4rem 4rem;
}

#hero-eyebrow {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(to bottom, #96F3CF, #1F9195);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 42ch;
    text-align: left;
}

#hero-logo {
    width: 30ch;
    height: auto;
    margin-left: -1rem;
}

#hero-body {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.75;
    width: 100%;
}

#hero-body strong {
    color: var(--white);
    font-weight: 600;
}

#hero-cta {
    display: inline-block;
    align-self: flex-start;
    margin-top: 2.5rem;
    background: linear-gradient(to bottom, #96F3CF, #1F9195);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: opacity 0.2s;
}

#hero-cta:hover {
    opacity: 0.85;
}

#hero-image {
    position: relative;
    background-image: url('/static/images/hero-boiler.jpg');
    background-size: cover;
    background-position: center;
}

#hero-partnership {
    position: absolute;
    top: 1.5rem;
    left: 3rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
    z-index: 2;
}

#hero-partnership p {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

#hero-partnership img {
    width: 135px;
    height: auto;
}

#hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--navy) 0%, transparent 40%);
}

/* Trust badges */
#trust-badges {
    background-color: var(--off-white);
    padding: 3.5rem 2rem;
    border-bottom: 2px solid var(--teal);
}

#trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.trust-badge-icon {
    width: 48px;
    height: 48px;
    color: var(--teal);
}

.trust-badge p {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.5;
}


/* Services */
#services {
    background-color: var(--navy);
    padding: 4rem;
    border-bottom: 2px solid var(--teal);
}

#services-inner {
    max-width: 700px;
    margin: 0 auto;
}

#services h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2.5rem;
}

#services-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem 3rem;
    list-style: none;
}

#services-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 500;
}

.service-bullet {
    height: 18px;
    width: auto;
    flex-shrink: 0;
    filter: invert(76%) sepia(26%) saturate(700%) hue-rotate(130deg) brightness(95%);
}

#services-blurb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

#services-blurb p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.75;
}

#services-blurb strong {
    color: var(--white);
    font-weight: 600;
}

#services-blurb img {
    height: 80px;
    width: auto;
    flex-shrink: 0;
}

/* Contact */
#contact {
    background-color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

#contact-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

#contact h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--navy);
}

#contact > div > p,
#contact-inner > p {
    color: var(--navy);
    font-size: 1rem;
}

#contact-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

#contact-icons img {
    width: 32px;
    height: 32px;
    transition: opacity 0.2s;
}

#contact-icons a:hover img {
    opacity: 0.7;
}

#contact-cta {
    display: inline-block;
    margin-top: 0.5rem;
    background: linear-gradient(to bottom, #96F3CF, #1F9195);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: opacity 0.2s;
}

#contact-cta:hover {
    opacity: 0.85;
}

/* About page */
#about-intro {
    background-color: var(--off-white);
    padding: 4rem 2rem;
    border-bottom: 2px solid var(--teal);
}

#about-intro-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

#about-intro-text h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.5rem;
}

#about-intro-text p {
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.75;
}

#about-intro-table-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#about-intro-table-wrap {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(7, 29, 61, 0.12);
}

#about-competencies {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

#about-competencies thead tr {
    background-color: var(--navy);
    color: var(--white);
}

#about-competencies th {
    padding: 0.6rem 0.75rem;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.02em;
}

#about-competencies th:not(:first-child) {
    text-align: center;
}

#about-competencies td {
    padding: 0.5rem 0.75rem;
    color: var(--navy);
    border-bottom: 1px solid rgba(7, 29, 61, 0.08);
}

#about-competencies td:not(:first-child) {
    text-align: center;
}

#about-competencies tbody tr:last-child td {
    border-bottom: none;
}

#about-competencies tbody tr:nth-child(even) {
    background-color: rgba(7, 29, 61, 0.04);
}

#about-competencies-link {
    display: block;
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--teal);
    transition: opacity 0.2s;
}

#about-competencies-link:hover {
    opacity: 0.7;
}

.comp-tick {
    color: var(--teal);
    font-weight: 700;
    font-size: 1.1rem;
}

.comp-dash {
    color: rgba(7, 29, 61, 0.2);
    font-size: 1.1rem;
}

#about-boiler {
    background-color: var(--navy);
    padding: 4rem 2rem;
    border-bottom: 2px solid var(--teal);
}

#about-boiler-inner {
    max-width: 1000px;
    margin: 0 auto 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

#about-boiler-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.about-service-subtitle {
    color: var(--teal);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.about-body-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.75;
}

#about-brands {
    max-width: 1000px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.about-brands-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

#about-brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.brand-logo-tile {
    background-color: var(--white);
    border-radius: 6px;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 90px;
}

.brand-logo-tile img {
    max-height: 70px;
    width: 100%;
    object-fit: contain;
}

.brand-logo-tile:nth-child(4) img {
    transform: scale(1.5);
}

.about-service-section {
    background-color: var(--off-white);
    padding: 4rem 2rem;
    border-bottom: 2px solid var(--teal);
}

.about-service-row {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-service-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1.25rem;
}

.about-service-text p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.75;
}

.about-image-placeholder {
    background-color: rgba(7, 29, 61, 0.08);
    border-radius: 4px;
    min-height: 260px;
}

.about-image-placeholder--dark {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
}

.about-cta-btn {
    display: inline-block;
    margin-top: 1.5rem;
    background: linear-gradient(to bottom, #96F3CF, #1F9195);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    transition: opacity 0.2s;
}

.about-cta-btn:hover {
    opacity: 0.85;
}

#about-emergency {
    background-color: var(--navy);
    padding: 4rem 2rem;
    border-bottom: 2px solid var(--teal);
}

#about-emergency-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: center;
}

#about-emergency-icon {
    width: 140px;
    height: auto;
    flex-shrink: 0;
}

#about-emergency-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

#about-call-cta {
    background-color: var(--off-white);
    padding: 4rem 2rem;
    text-align: center;
}

#about-call-cta p {
    color: var(--navy);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

#about-call-cta a {
    display: block;
    color: var(--navy);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    transition: color 0.2s;
}

#about-call-cta a:hover {
    color: var(--teal);
}

/* Contact map */
#contact-map {
    background-color: var(--off-white);
    border-top: 2px solid var(--teal);
    padding: 3rem 2rem 4rem;
}

#contact-map-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#contact-map-text h2 {
    color: var(--navy);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

#contact-map-text p {
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

#contact-map-ctas {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

#contact-map-phone {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    transition: color 0.2s;
}

#contact-map-phone:hover {
    color: var(--teal);
}

.contact-map-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
    transition: opacity 0.2s;
}

.contact-map-link:hover {
    opacity: 0.75;
}

#map {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(7, 29, 61, 0.12);
}

/* Contact page */
#contact-page {
    background-color: var(--navy);
    padding: 5rem 2rem;
    border-bottom: 2px solid var(--teal);
}

#contact-page-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 5rem;
    align-items: start;
}

#contact-page-intro h1 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

#contact-page-intro > p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

#contact-page-details {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

#contact-page-details a {
    color: var(--teal);
    font-size: 1rem;
    font-weight: 600;
    transition: opacity 0.2s;
}

#contact-page-details a:hover {
    opacity: 0.8;
}

#contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    color: var(--white);
    font-size: 0.95rem;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--teal);
}

#contact-submit {
    align-self: flex-end;
    margin-top: 1rem;
    margin-top: 0.5rem;
    background: linear-gradient(to bottom, #96F3CF, #1F9195);
    color: var(--navy);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.85rem 2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}

#contact-submit:hover {
    opacity: 0.85;
}

#contact-success {
    background-color: rgba(78, 205, 196, 0.15);
    border: 1px solid var(--teal);
    border-radius: 4px;
    padding: 0.85rem 1rem;
    color: var(--teal);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 768px) {
    #site-header {
        justify-content: center;
        padding: 0.85rem 1.25rem;
        position: sticky;
        top: 0;
    }
    #site-header.scrolled {
        padding: 0.85rem 1.25rem;
    }
    #header-logo-link {
        pointer-events: auto;
        cursor: pointer;
    }
    #site-header.scrolled #header-logo,
    #header-logo {
        height: 60px;
    }
    #site-header.scrolled #header-gas-safe {
        height: 40px;
    }
    #header-gas-safe {
        display: block;
        height: 40px;
        width: auto;
        position: absolute;
        left: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
    #nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        position: absolute;
        right: 1.25rem;
        top: 50%;
        transform: translateY(-50%);
    }
    #nav-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background-color: var(--white);
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }
    #nav-toggle:hover span {
        opacity: 0.7;
    }
    #nav-toggle.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    #nav-toggle.open span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }
    #nav-toggle.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    #header-centre {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        position: absolute;
        top: 100%;
        right: 0;
        width: 180px;
        background-color: var(--navy);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-top: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        z-index: 99;
        border-radius: 0 0 0 8px;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        transition: max-height 0.3s ease, padding 0.3s ease;
    }
    #header-centre.open {
        max-height: 200px;
        padding: 0.5rem 0 0.75rem;
    }
    #header-contact {
        display: none;
    }
    #main-nav {
        border-bottom: none;
        padding: 0;
        width: 100%;
    }
    #main-nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }
    #main-nav-list li a {
        font-size: 1rem;
        padding: 0.4rem 1.25rem;
    }

    /* Hero */
    #hero {
        grid-template-columns: 1fr;
        background-image: url('/static/images/hero-boiler.jpg');
        background-size: cover;
        background-position: center;
        position: relative;
    }
    #hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(7, 29, 61, 0.85);
    }
    #hero-content {
        position: relative;
        z-index: 1;
        padding: 0.5rem 1.5rem 3rem;
        width: 100%;
        box-sizing: border-box;
        align-items: center;
    }
    #hero-text-group {
        align-items: center;
        text-align: center;
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    #hero-logo {
        display: none;
    }
    #hero-logo-mobile {
        display: block;
        width: 14ch;
        margin: 0 auto 2rem;
        border-radius: 16px;
        border: 2px solid var(--teal);
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    }
    #hero-cta {
        align-self: center;
    }
    #hero-image {
        display: none;
    }

    /* Trust badges */
    #trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Footer */
    footer {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1rem;
        justify-items: center;
    }
    footer p:last-child {
        text-align: center;
    }

    /* About */
    main {
        display: flex;
        flex-direction: column;
    }
    #about-intro     { order: 1; }
    #about-boiler    { order: 2; }
    #about-eicr      { order: 3; }
    #about-emergency { order: 4; }
    #about-leaks     { order: 5; }
    #about-call-cta  { order: 6; }

    #about-intro,
    #about-emergency,
    #about-call-cta {
        padding: 3rem 1.5rem;
    }
    #about-intro-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    #about-intro-text {
        order: -1;
    }
    #about-intro-text h1 {
        font-size: 1.75rem;
        text-align: center;
    }
    #about-intro-text p {
        text-align: center;
    }

    .about-brands-label {
        text-align: center;
    }

    /* Boiler — image as background */
    #about-boiler {
        padding: 0;
    }
    #about-boiler-inner {
        display: block;
        position: relative;
        overflow: hidden;
        margin: 0;
    }
    #about-boiler-inner::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(7, 29, 61, 0.78);
        z-index: 1;
    }
    #about-boiler-inner .about-section-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        z-index: 0;
    }
    #about-boiler-text {
        position: relative;
        z-index: 2;
        padding: 3rem 1.5rem;
    }
    #about-brands {
        padding: 2rem 1.5rem;
    }
    #about-brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #about-emergency-icon {
        width: 80px;
        height: auto;
        flex-shrink: 0;
    }

    /* Service rows — image as background */
    .about-service-section {
        padding: 0;
    }
    .about-service-row {
        display: block;
        position: relative;
        overflow: hidden;
    }
    .about-service-row::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(7, 29, 61, 0.78);
        z-index: 1;
    }
    .about-service-row .about-section-img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        z-index: 0;
    }
    .about-service-text {
        position: relative;
        z-index: 2;
        padding: 3rem 1.5rem;
    }
    .about-service-text h2 {
        font-size: 1.5rem;
        color: var(--white);
    }
    .about-service-text p {
        color: rgba(255, 255, 255, 0.85);
    }

    #about-emergency-inner {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    #about-emergency-text h2 {
        font-size: 1.5rem;
    }
    #about-call-cta a {
        font-size: 2rem;
    }

    .brand-logo-tile:nth-child(4) img {
        transform: scale(1.2);
    }

    #about-eicr {
        text-align: center;
    }

    #about-leaks {
        text-align: center;
    }

    /* Services */
    #services {
        padding: 3rem 1.5rem;
    }
    #services h2 {
        text-align: center;
    }
    #services-list {
        grid-template-columns: 1fr;
    }
    #services-blurb {
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        text-align: center;
    }

    /* Contact */
    #contact-page {
        padding: 3rem 1.5rem;
    }
    #contact-page-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    #contact-page-intro h1,
    #contact-page-intro > p {
        font-size: 1.75rem;
        text-align: center;
    }
    #contact-page-intro > p {
        font-size: 1rem;
    }
    #contact-page-details {
        align-items: center;
    }
    #contact-submit {
        align-self: stretch;
    }

    /* Map */
    #contact-map {
        padding: 3rem 1.5rem;
    }
    #contact-map-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
    }
    #contact-map-text h2,
    #contact-map-text p {
        font-size: 1.5rem;
        text-align: center;
    }
    #contact-map-text p {
        font-size: 0.95rem;
    }
    #contact-map-ctas {
        align-items: center;
    }
    #contact-map-phone {
        font-size: 1.5rem;
    }
    #map {
        aspect-ratio: 4 / 3;
    }
}

@media (min-width: 769px) and (max-width: 860px) {
    .brand-logo-tile:nth-child(4) img {
        transform: scale(1);
    }
}

@media (max-width: 390px) {
    #hero-content {
        padding-top: 2rem;
    }
}
