/*
Author: Kseniia Jannetts
Project: Website for Local Gas Engineer Business with Built-In Price Estimate Web Application
Date: September 2026
File: style.css
Description: Main stylesheet for website layout, responsiveness, and estimator styling.
*/

/* RESET */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* GLOBAL STYLES */

:root {
    --primary: #018749;
    --primary-light: #eefaf3;
    --primary-dark: #016b3c;
    --bright: #9ff1c5;
    --text: #111111;
    --text-light: #454545;
    --background: #ffffff;
    --section-bg1: #070e07;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

.menu-toggle {
    display: none;
}

img {
    width: 100%;
    display: block;
    border-radius: 6px;
}

.container {
    width: min(1200px, 90%);
    margin: 1rem auto;
}

h1,
h2,
h3 {
    line-height: 1.2;
}

h1 {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

p {
    color: var(--text-light);
}

section {
    padding: 2.5rem 0 2.5rem 0;
}

.section-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

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

/* GLOBAL BUTTONS */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 400;
}

.btn-primary:hover {
    border: 1px solid var(--bright);
    background: var(--bright);
    color: var(--text);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 400;
}

.btn-secondary:hover {
    border: 1px solid var(--bright);
    color: var(--text);
    background: var(--bright);
}

/* HEADER & NAV */

.header {
    padding: 24px 0;
    border-bottom: 1px solid var(--primary);
    top: 0;
    background: white;
}

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

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo img,
.footer-logo img {
    height: auto;
    max-width: 200px;
}

.nav .nav-link {
    text-decoration: none;
    color: var(--text);
}

.nav .nav-link:hover {
    color: var(--primary);
}

.nav .btn-primary {
    color: white;
}

.nav .btn-primary:hover {
    color: var(--text);
}

/* HERO */

.hero {
    border-bottom: 1px solid var(--primary);
}

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

.hero-content p {
    margin: 2rem 0;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    object-fit: contain;
}

/* INDEX - SERVICES, PROCESS, FAQ */

/* SERVICES & PROCESS */
.services-intro {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 2rem;
    align-items: flex-end;
}

.services-intro p {
    margin-bottom: 1.5rem;
}

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

.service-card,
.process-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 160px;
    background: white;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1.5rem;
}

.service-card {
    justify-content: center;
}

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

.process-card {
    justify-content: flex-start;
    position: relative;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.process-number {
    width: 100px;
    height: 100px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 600;
}

/* STATS */
.stats-section {
    background: var(--section-bg1);
    color: white;
}

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

.stats-content p,
.stat-box p {
    color: white;
}

.stats-boxes {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-box h3 {
    font-size: 4rem;
    color: var(--bright);
}

/* REVIEWS */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.review-grid img {
    max-width: 600px;
    object-fit: contain;
}

.review-content span {
    color: var(--text-light);
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 0.8rem;
}

.stars {
    color: #f5b301;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* CTA */
.section-heading.center {
    text-align: center;
    max-width: 700px;
    margin: auto auto 4rem;
}

.cta-box {
    background: var(--primary-light);
    border-radius: 6px;
    padding: 4rem 2rem;
    text-align: center;
}

.cta-box p {
    margin: 1.5rem auto 2.5rem;
    max-width: 600px;
}

.cta-box .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* FAQ */
.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
}

details {
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1rem;
    background: white;
    margin-bottom: 1rem;
}

details[open] p {
    margin-top: 0.6rem;
}

summary {
    font-weight: 600;
    cursor: pointer;
}

summary::marker {
    color: var(--primary);
    margin-right: 1rem;
}

/* FOOTER */
.footer-logo img {
    max-height: 60px;
    width: auto;
}

.footer {
    border-top: 1px solid var(--primary);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer .gas-safe img {
    height: 100px; /* minimum 40px due to Gas Safe logo rules */
    width: auto;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.8rem;
}

/* SERVICES PAGE */

/* HERO */
.services-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.services-hero-image img {
    max-height: 600px;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
}

/* DETAILED GRID */
.card-label {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1rem;
}

.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.services-detailed-grid .service-card {
    justify-content: flex-start;
    position: relative;
}

.service-card img {
    max-width: 100px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* WHY CHOOSE US */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.why-card {
    background: white;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.why-card img {
    display: block;
    max-width: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

/* CONTACT PAGE */

/* CONTACT INFO */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.contact-card {
    background: white;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-card img {
    display: block;
    max-width: 90px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

.contact-card a {
    color: var(--primary);
    font-weight: 600;
    margin-top: 1rem;
}

/* AREAS AND OFFICE LOCATION */

.areas-section {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.areas-section .section-heading {
    margin-bottom: 3rem;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: left;
    margin: 2rem 0 0;
}

.areas-card img,
.areas-card iframe {
    width: 100%;
    min-height: 400px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    object-fit: cover;
}

.areas-card h3 {
    margin-bottom: 1rem;
}

/* CONTACT FORM */

/* Style */
.message-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    margin: 0 auto;
    background: white;
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    box-shadow: 0 20px 40px var(--primary-light);
    padding: 2rem 2rem;
}

.message-info {
    margin-bottom: 3rem;
}

.message-info p {
    max-width: 700px;
    color: var(--text-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.contact-form label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    background: white;
    transition: 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--bright);
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 6px;
}

.checkbox input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s ease;
}

.checkbox input[type="checkbox"]:checked::after {
    content: "✓";
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.checkbox label {
    margin: 0;
    font-weight: 400;
    color: var(--text-light);
}

.checkbox a {
    color: var(--primary);
    font-weight: 400;
    text-decoration: none;
}

.checkbox a:hover {
    text-decoration: underline;
}

.contact-form .btn {
    font-size: 1rem;
    width: fit-content;
    align-self: center;
}

/* Form messages */
#form-warning,
#warning {
    color: #bf0830;
    margin: 0.5rem 0;
    font-size: 0.9rem;
    transition: 0.3s ease;
}

#success-message {
    align-self: center;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 6px;
    color: var(--primary-dark);
    font-weight: 500;
}

/* ESTIMATE PAGE */

/* HERO */
.estimate-hero {
    max-width: 800px;
    text-align: center;
}

/* ESTIMATE APP */
.estimate-screen {
    margin-top: 2rem;
    justify-content: center;
}

.active-screen {
    display: flex;
}

/* Utility class to hide screens */
.hidden {
    display: none !important;
}

/* Estimate Card */
.estimate-card {
    width: 100%;
    max-width: 720px;
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 4rem;
    background: white;
}

/* Intro Card */
.intro-card {
    text-align: center;
}

.intro-card h2 {
    margin-bottom: 1rem;
}

.intro-card p {
    margin: 2rem 0;
}

.estimate-time {
    display: block;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

#start-btn {
    font-weight: 400;
    padding: 16px 32px;
}

/* Progress */
.progress-wrapper {
    margin-bottom: 3rem;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bright);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: 0.3s ease;
}

#progress-text {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Questions */
#question-title {
    font-size: 1.8rem;
    margin: 2rem 0;
}

.answer-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.estimate-nav {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 4rem;
}

.estimate-nav .btn {
    width: fit-content;
}

.text-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 6px;
    border: 1px solid var(--primary);
    font-size: 1rem;
    margin-top: 20px;
}

.text-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--bright);
    border: 1px solid var(--primary);
}

.question-info {
    font-size: 0.9rem;
    margin: 1rem 0 2rem;
}

/* Answer buttons */
.estimate-card .btn {
    font-size: 1rem;
    width: fit-content;
    align-self: center;
}

.answer-btn {
    border: 1px solid var(--primary);
    background-color: white;
    color: var(--primary);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s ease;
}

.answer-btn:hover {
    background-color: var(--bright);
    border-color: var(--bright);
    color: var(--text);
}

.answer-btn.active {
    background-color: var(--bright);
    border-color: var(--bright);
    color: var(--text);
}

#back-btn {
    border: 1px solid var(--primary);
    background-color: var(--background);
    color: var(--primary);
}

#back-btn:hover {
    background-color: var(--bright);
    border-color: var(--bright);
    color: var(--text);
}

/* Result Card */
.result-card {
    display: flex;
    flex-direction: column;
    justify-self: center;
    text-align: center;
}

.result-label {
    display: inline-block;
    margin-bottom: 2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
}

#result-price {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.boiler {
    display: block;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Alternative boilers */
.alternatives {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 2rem;
}

.alternative-boiler {
    border-top: 1px solid var(--primary);
}

.alternative-line {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.alternatives-title {
    font-weight: 600;
    margin: 1rem 0;
    color: var(--text);
}

.alternative-name {
    text-align: left;
}

.alternative-dots {
    flex: 1;
    border-bottom: 1px dotted var(--text-light);
    margin-top: 0.75rem;
}

.alternative-price {
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.alternative-difference {
    display: block;
    text-align: right;
    margin-top: 6px;
    opacity: 0.7;
}

/* Disclaimer */
.disclaimer {
    max-width: 500px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 1rem auto 0;
}

/* CTA buttons */
.result-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

/* LEGAL PAGES */

.legal-content {
    max-width: 1200px;
    margin-top: 2rem;
}

.legal-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content a {
    color: var(--primary);
}

.legal-content a:hover {
    color: var(--primary-dark);
}

/* RESPONSIVE */

/* LAPTOP */

@media (max-width: 1200px) {

    /* Adjust typography for smaller screens */
    h1 {
        font-size: 2.6rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Adjust grids for smaller screens */
    .hero-grid,
    .services-intro,
    .stats-grid,
    .review-grid,
    .faq-grid {
        gap: 2.25rem;
    }

    /* Adjust services intro margin */
    .services-intro {
        margin-bottom: 1.5rem;  
    }

    /* Adjust review image size */
    .review-image {
        max-width: 500px;
        max-height: 100%;
    }

}

/* TABLETS */

@media (max-width: 992px) {

    section {
        padding: 1.5rem 0 1.5rem 0;
    }

    /* Adjust grids for smaller screens */
    .hero-grid,
    .stats-grid,
    .faq-grid,
    .review-grid,
    .services-intro {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }

    .contact-grid,
    .areas-grid,
    .message-grid,
    .form-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-grid,
    .process-grid {
        gap: 2rem;
    }



    /* Adjust other elements for smaller screens */
    .contact-card,
    .contact-form,
    .message-info,
    .result-card {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }

    .message-grid {
        padding: 4rem 0;
    }

    .review-content {
        padding-top: 2rem;
    }

    .section-heading.center {
        margin-bottom: 3rem;
    }

    /* Adjust images sizes */
    .review-grid img {
        max-width: max-content;
    }

    .areas-card img,
    .areas-card iframe {
        width: 100%;
        min-height: 450px;
    }

    .logo img,
    .footer-logo img {
        height: auto;
        max-width: 175px;
    }

    .hero-image img,
    .review-image {
        max-height: 400px;
        object-fit: contain;
    }

    .message-info img {
        max-width: 400px;
        margin: 0 auto;
    }

    .footer .gas-safe img {
        height: 100px; /* minimum 40px due to Gas Safe logo rules */
        width: auto;
    }
}

/* MOBILE */

@media (max-width: 768px) {

    /* Adjust padding for smaller screens */
    section {
        padding: 1.5rem 0 1.5rem 0;
    }

    /* Show menu toggle and adjust nav on mobile */
    .header {
        padding: 1rem 0;
    }

    .nav-container {
        position: relative;
        flex-direction: row;
    }

    .menu-toggle {
        display: block;
        background: none;
        color: var(--text);
        padding: 0.25rem;
        border: none;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: max-content;
        background: white;
        border: 1px solid var(--primary);
        border-radius: 6px;
        flex-direction: column;
        align-items: center;
        padding: 1.5rem;
        gap: 1rem;
        z-index: 1000;
    }

    .nav.active {
        display: flex;
    }

    .nav .btn-primary {
        padding: 10px 18px;
        font-size: 0.95rem;
        width: auto;
    }

    .services-detailed-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-detailed-grid p {
        font-size: 0.88rem;
    }
    
    /* Adjust logo for smaller screens */
    .logo img,
    .footer-logo img {
        height: auto;
        max-width: 175px;
    }

    /* Adjust grids for smaller screens */
    .hero-grid,
    .stats-grid,
    .faq-grid,
    .review-grid,
    .services-intro {
        grid-template-columns: 1fr;
    }

    .process-card p {
        font-size: 0.88rem;
    }

    .services-grid,
    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-grid p {
        font-size: 0.88rem;
    }

    .service-card {
        justify-content: flex-start;
    }

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

    .contact-grid {
        gap: 1rem;
    }

    .why-card p {
        font-size: 0.88rem;
    }

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

    .services-grid,
    .process-grid {
        gap: 1rem;
    }

    .faq-grid {
        gap: 2rem;
    }

    .process-number {
    width: 75px;
    height: 75px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.7rem;
    font-weight: 600;
}

    /* Adjust other elements for smaller screens */
    .service-card,
    .process-card {
        padding: 1.5rem;
        min-height: auto;
    }

    .message-grid {
        padding: 2rem;
        min-height: auto;
    }

    .stats-boxes {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-box h3 {
        font-size: 3rem;
    }

    .review-content {
        padding-top: 0;
    }

    details {
        padding: 1rem;
    }

    .review-content p {
        font-size: 0.88rem;
    }

     .review-content span {
        font-size: 0.8rem;
    }

    .form-row {
        gap: 1rem;
    }

    /* Adjust images sizes */
    .review-grid img {
        max-width: max-content;
        align-self: center;
    }

    .hero-grid img {
        max-width: 500px;
        object-position: center;
    }

    .areas-card img,
    .areas-card iframe {
        min-height: 300px;
    }

    .why-card {
        padding: 1rem;
    }

    .why-card img {
        display: block;
        max-width: 80px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

    .contact-card img {
        display: block;
        max-width: 60px;
        object-fit: contain;
        margin-bottom: 1rem;
    }

    .contact-card p, span {
        font-size: 0.88rem;
    }

    /* Adjust estimate app for mobile */

    .estimate-card,
    .result-card,
    .intro-card {
        padding: 2rem 1.5rem;
    }

    .intro-card p {
        font-size: 0.88rem;
    }

    .estimate-time {
        font-size: 0.88rem;
    }

    .cta-box {
        width: 100%;
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
        padding: 2rem 1.5rem;
    }

    #result-price {
        font-size: 2rem;
    }


    /* Adjust footer for mobile */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        font-size: 0.88rem;
    }

    .footer .gas-safe img {
        height: 90px; /* minimum 40px due to Gas Safe logo rules */
        width: auto;
    }

}

/* SMALL MOBILE */

@media (max-width: 480px) {

    /* Adjust container for smaller screens */
    .container {
        width: calc(100% - 32px);
    }

    /* Adjust grids for smaller screens */
    .hero-grid,
    .stats-grid,
    .faq-grid,
    .review-grid,
    .services-intro {
        grid-template-columns: 1fr;
    }

    /* Adjust typography for smaller screens */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .stat-box h3 {
        font-size: 1.5rem;
    }

    .services-intro,
    .faq-grid {
        gap: 0;
    }

    .services-intro p {
        margin-bottom: 0;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 14px;
    }

    .contact-form textarea {
        min-height: 150px;
    }

    /* Adjust padding for smaller screens */
    .cta-box,
    .message-grid {
        padding: 3rem 1.5rem;
    }

    .cta-box p {
        font-size: 0.88rem;
    }

    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        min-height: 44px;
    }

    /* Adjust images sizes */
    .logo img,
    .footer-logo img {
        height: auto;
        max-width: 150px;
    }

    .hero-grid img {
        max-width: 400px;
        object-position: center;
    }

    .footer .gas-safe img {
        height: 90px; /* minimum 40px due to Gas Safe logo rules */
        width: auto;
    }
}