/* =====================================================
   1. ROOT VARIABLES
===================================================== */

:root {
    --primary: #2f3f5f;
    --dark: #1e2a40;
    --light: #f5f6f8;
    --accent: #e63946;
}


/* =====================================================
   2. BASE / FOUNDATION
===================================================== */

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    color: #333;
    line-height: 1.6;
}

a { text-decoration: none; }

ul {
    margin: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 0px;
}

h1, h2, h3 { color: var(--primary); }

p {
    margin-top: 0;
    margin-bottom: 16px;
}


/* =====================================================
   3. LAYOUT SYSTEM
===================================================== */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.smcontainer {
    width: 80%;
    max-width: 1000px;
    margin: auto;
}

.list-clean {
    list-style: none;
    padding-left: 0;
}

.list-spaced li {
    margin-bottom: 10px;
}

.list-tight li {
    margin-bottom: 6px;
}

.section {
    background: #ffffff;
    padding: 35px 0;
}

.section.alt {
    background: #eef2f6;
}

/* Compact grid spacing */
.layout-compact {
    gap: 40px 50px;
    margin-top: 40px;
}

/* Tight heading rhythm */
.tight-headings h3 {
    margin-bottom: 10px;
}

/* Tight list spacing */
.list-compact li {
    margin-bottom: 6px;
}

/* =============================
   CLEAN LAYOUT SYSTEM
   (Structural Only)
============================= */

.layout-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.layout-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.layout-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px auto;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.layout-split-wide {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

/* Reverse layout direction */
.layout-reverse {
    direction: rtl;
}

.layout-reverse > * {
    direction: ltr;
}

.bg-band {
    background: solid var(--accent);
}

.band-top-accent {
    border-top: 1px solid rgb(71, 73, 80);
    margin-bottom: 5px;
}

/* =====================================================
   4. TYPOGRAPHY SYSTEM
===================================================== */

.section p {
    color: #444;
}

.section h2 {
    font-weight: 800;
    font-size: 30px;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: -0.8px;
}

.right {
    block-size: auto;
}

.section h2::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: var(--accent);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.section h3 {
    margin-bottom: 25px;
}

.section ul li {
    margin-bottom: 10px;
    font-weight: 500;
}

.section-divider {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.section-tight-bottom {
    padding-bottom: 60px;
}

/* Subtle background band */
.bg-soft {
    background-color: #f7f8fa;
}

/* Subtle lift interaction */
.interactive-lift {
    transition: transform 180ms ease, color 180ms ease;
}

.interactive-lift:hover {
    transform: translateY(-4px);
}

/* =====================================================
   5. UTILITIES
===================================================== */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.narrow {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.split-image {
    width: 100%;
    border-radius: 8px;
    max-height: 420px;
    object-fit: cover;
}

.block-center {
    max-width: 720px;   /* control reading width */
    margin: 0 auto;     /* centers the block */
    text-align: left;   /* keeps text left aligned */
}

/* =====================================================
   6. GRID SYSTEM
===================================================== */

.grid-2,
.grid-3,
.grid-4 {
    gap: 32px;
    margin: 30px auto 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
}

/* Service Area override — always 3 columns */
.service-area .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    max-width: 1200px;
    gap: 40px;
}

.grid-auto-center {
    display: grid;
    grid-template-columns: auto auto auto;
    justify-content: center;
    gap: 200px;
}



/* =====================================================
   HEADER + NAVIGATION SYSTEM
===================================================== */

/* ---------- Emergency Bar ---------- */

.emergency-bar {
    background: var(--accent);
    color: white;
    text-align: center;
    padding: 6px 0;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .3px;
}

.emergency-bar a {
    color: white;
    text-decoration: underline;
}


/* ---------- Main Header ---------- */

.site-header {
    background: #ffffff;
    border-bottom: 3px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}

.site-header {
    overflow: hidden;
}


/* =============================
   HEADER LOGO (ICON + WORDMARK)
============================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
    color: var(--primary);
}

.logo img {
    height: 46px;
    width: auto;
    display: block;
}

.logo span {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    font-size: 22px;
    font-weight: 700;
}

.logo strong {
    font-size: 24px;
    font-weight: 800;
}

.logo:hover {
    opacity: 0.9;
}

/* ---------- Desktop Navigation ---------- */

.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;   /* controls spacing between links */
}

.main-nav a {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary);
}

.main-nav a:hover {
    color: var(--accent);
}

.main-nav a.active {
    color: var(--accent);
    font-weight: 700;
}

.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--accent);
}


/* ---------- Right Side (Phone + CTA + Burger) ---------- */

.header-right {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-phone {
    font-weight: 600;
    font-size: 16px;
    color: var(--primary);
    letter-spacing: .3px;
}

.header-btn {
    padding: 6px 16px;      /* smaller vertical, balanced horizontal */
    font-size: 14px;        /* matches nav weight visually */
    border-radius: 20px;    /* tighter than pill */

    display: inline-flex;
    align-items: center;
    justify-content: center;

    white-space: nowrap;
}

/* Burger Animation */
.nav-toggle span {
    transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ---------- Burger Toggle ---------- */

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 24px;
    height: 18px;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
}

.nav-toggle span {
    height: 2px;
    width: 100%;
    background: var(--primary);
    display: block;
}


/* ---------- Mobile Navigation ---------- */

.mobile-nav {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 2px solid var(--primary);
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
}

.mobile-nav a {
    padding: 16px 20px;
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid #f0f0f0;
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav a:hover {
    background: #f4f6f9;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a.active {
    color: var(--accent);
    font-weight: 700;
}

/* =====================================================
   8. HERO SYSTEM
===================================================== */

.hero {
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center 35%;
}

.hero-inner {
    width: 100%;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 18px;
    color: white;
}

.hero p {
    font-size: 26px;
    opacity: .95;
    margin-bottom: 30px;
    color: #e0e6f0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 30px;
}

/* HERO BACKGROUNDS */

.hero-home {
    background:
        linear-gradient(rgba(30,42,64,.88), rgba(30,42,64,.95)),
        url('../images/home.jpg');
}

.hero-residential {
    background:
        linear-gradient(rgba(30,42,64,.85), rgba(30,42,64,.95)),
        url('../images/residential.jpg');
}

.hero-commercial {
    background:
        linear-gradient(rgba(30,42,64,.88), rgba(30,42,64,.95)),
        url('../images/commercial.jpg');
}

.hero-refrigeration {
    background:
        linear-gradient(rgba(30,42,64,.88), rgba(30,42,64,.95)),
        url('../images/refrigeration.jpg');
}

.hero-projects {
    background:
        linear-gradient(rgba(30,42,64,.88), rgba(30,42,64,.95)),
        url('../images/projects.jpg');
}

.hero-contact {
    background:
        linear-gradient(rgba(30,42,64,.88), rgba(30,42,64,.95)),
        url('../images/contact.jpg');
}


/* =====================================================
   9. TRUST BAND
===================================================== */

.trust-band {
    background: #eef2f7;
    padding: 30px 0;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: .4px;
}

.trust-meta {
    font-weight: 600;
    letter-spacing: .4px;
    text-align: center;
}


/* =====================================================
   10. BUTTONS
===================================================== */

.btn {
    padding: 16px 32px;
    border-radius: 40px;
    font-weight: 600;
    display: inline-block;
    font-size: 16px;
    transition: .2s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: white;
    color: var(--primary);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: 0 6px 18px rgba(230,57,70,.35);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-center {
    display: block;
    width: fit-content;
    margin: 25px auto 0 auto;
}


/* =====================================================
   11. CARD SYSTEM
===================================================== */

.card {
    background: white;
    padding: 36px;
    border-radius: 8px;
    border: 1px solid #e3e8ee;
    border-top: 3px solid var(--primary);
    box-shadow: 0 10px 20px rgba(0,0,0,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}

.card-check {
    list-style: disc;
    padding-left: 20px;
}

.card-check li {
    padding-left: 0;
}

.card ul {
    padding-left: 22px;
    margin-top: 14px;
}

.card li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* =====================================================
   12. INTRO CONTENT
===================================================== */

.intro-content {
    max-width: 900px;
    margin: 0 auto;
}



.layout-3 .feature-group {
    max-width: 320px;     /* controls reading width */
    margin: 0 auto;       /* centers the block */
    text-align: left;     /* keeps text readable */
}

.layout-3 .feature-group h3 {
    text-align: center;
}

.layout-3 .feature-group ul {
    text-align: left;
}

/* =============================
   SERVICES WITH IMAGE LAYOUT
============================= */

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    margin-top: 60px;
    align-items: start;
}

.services-image img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px 40px;
}

.service-block {
    text-decoration: none;
    color: inherit;
}

.service-block h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 700;
}

.service-block ul {
    list-style: none;
    padding-left: 14px;
    padding: 0;
    margin: 0;
}

.service-block li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

/* =====================================================
   SERVICE AREA BLOCK
===================================================== */

.service-area h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 24px;
    font-size: 22px;
    font-weight: 700;
}

.service-area h2 {
    text-align: center;
}

.service-area .grid-3 {
    max-width: 900px;      /* slightly narrower than full container */
    margin-left: auto;
    margin-right: auto;
    text-align: left;      /* keeps text left-aligned */
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-area.grid-3 ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Proper spacing + custom bullet */
.service-area.grid-3 li {
    position: relative;
    padding-left: 16px;  /* controlled indent */
    margin-bottom: 8px;
}

/* Accent bullet */
.service-area.grid-3 li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* =========================================
   MEDIA BLOCK (Reusable Image System)
========================================= */

.media-block {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.media-block.ratio-16-9 {
    aspect-ratio: 16 / 9;
}

.media-block.ratio-4-3 {
    aspect-ratio: 4 / 3;
}

.media-block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   FEATURE GRID SYSTEM (Reusable)
========================================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 70px;
    margin-top: 60px;
    align-items: start;
}

.feature-group h3 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

.feature-group h3::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin-top: 10px;
}

.feature-group ul {
    list-style: none;
    text-align: left;
    padding: 0;
    margin: 0;
}

.feature-group li {
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    position: relative;
    padding-left: 18px;
}

.feature-group li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: 0;
}

/* Reusable Feature Block */
.feature {
    padding-left: 24px;
    padding-right: 24px;
}

.feature-link {
    text-decoration: none;
    color: inherit;
    transition: transform 180ms ease, color 180ms ease;
}

.feature-link h3 {
    margin-bottom: 12px;
}

.feature-link ul {
    margin: 0;
    padding-left: 18px;
}

.feature-link:hover {
    transform: translateY(-3px);
}

.feature-link:hover h3 {
    color: var(--accent);
}

    /* Center content inside feature blocks */
.feature-centered {
    text-align: center;
}


.feature-centered ul {
    list-style-position: inside;
    padding-left: 0;
}

.feature-centered li {
    margin-bottom: 6px;
}

.feature-grid-tight {
    max-width: 600px;
    margin-top: 40px;
    gap: 50px;
}

.feature-list-tight li {
    margin-bottom: 8px;
}


/* =========================================
   FEATURE EXPLAIN BLOCK
   (Media + Stacked Feature Text Pattern)
========================================= */

.feature-explain h3 {
    margin-bottom: 8px;
    margin-top: 22px;
}

.feature-explain h3:first-child {
    margin-top: 0;
}

.feature-explain p {
    margin-bottom: 16px;
}

/* Center ONLY the two capability columns */

.split-feature-columns {
    max-width: 820px;
    margin: 50px auto 0 auto;
    gap: 50px;
}

.split-feature-columns .feature-group {
    text-align: center;
}

.split-feature-columns .feature-group h3::after {
    margin: 12px auto 0 auto;
}

/* =========================================
   INDUSTRY GRID
========================================= */

.industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.industry-item {
    padding: 18px 10px;
    text-align: center;
    font-weight: 600;
    border-bottom: 2px solid #e6ebf1;
}

.project-layout .grid-3 {
    grid-template-columns: 1.3fr 1fr 1fr;
}

/* =====================================================
   CTA SECTION
===================================================== */

.cta-section {
    background: var(--dark);
    color: white;
    text-align: center;
    padding: 65px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 15px;
}

.cta-section p {
    opacity: .9;
    margin-bottom: 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-section {
    border-bottom: 1px solid rgba(255,255,255,.08);
}

/* =====================================================
   14. FORM SYSTEM (Consolidated + Clean)
===================================================== */

#contact-form .card {
    max-width: 560px;
    margin: 0 auto;
    padding: 50px 45px 55px 45px;
    border-radius: 14px;
    box-shadow: 0 25px 55px rgba(0,0,0,.08);
    text-align: center;
}

.emergency-panel {
    position: relative;
    background:
        linear-gradient(rgba(30,42,64,.75), rgba(30,42,64,.80)),
        url('../images/contact-split.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    border-radius: 14px;
    padding: 55px 45px;
    display: flex;
    align-items: center;
}

.emergency-panel h2 {
    color: white;
    font-size: 30px;
    margin-bottom: 18px;
}

.emergency-panel p {
    color: #e0e6f0;
    max-width: 480px;
    margin: 0 auto 16px auto;
}

/* Form Layout */

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    margin-top: 28px;
}

.form-submit {
    text-align: center;
    margin-top: 40px;
}

/* Labels */

.form-group label {
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .2px;
    margin-bottom: 6px;
    color: var(--primary);
}

/* Inputs */

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    background: #f9fbfd;
    transition: all .2s ease;
}

/* Focus State */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
}

/* Textarea */

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* =====================================================
   FOOTER – Contractor Style
===================================================== */

/* =============================
   FOOTER SYSTEM
============================= */

.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px 0;
}
    
.footer-grid{ 
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-bottom: 40px;
}
    
.footer-col h4{
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: .4px;
}

.footer-col p,
    
.footer-col a{
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.6;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    transition: opacity .2s ease;
}

.footer-col a:hover{
    color: white;
    opacity: 1;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 12px;
    font-size: 14px;
    text-align: center;
    opacity: .55;
}

.contact-note {
    margin-top: 18px;
}

.section + .section {
    padding-top: 70px;
}

.section-compact {
    padding-top: 50px;
    padding-bottom: 50px;
}

.section-flow {
    margin-top: 50px;
}

.section-flow h3 {
    margin-top: 40px;
}

.section-flow h3:first-of-type {
    margin-top: 0;
}


/* =====================================================
   16. RESPONSIVE
===================================================== */

/* ================================
   1100px
================================ */
@media (max-width: 1300px) {
    .header-btn {
        padding: 8px 18px;
        font-size: 13px;
    }
}

@media (max-width: 1100px) {

    /* Header adjustments */
    .main-nav {
        display: none; 
        flex: 0;
    }

    .header-phone { display: none; 
        flex: 0;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        margin-left: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .logo strong {
        font-size: 22px; 
    }
    
    /* 1100px → 2 columns */

    .layout-4 {
        grid-template-columns: repeat(2, 1fr);
        justify-items: center;
        text-align: left;
    }
}


.facebook-button {
    position: fixed;
    bottom: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    background: #1877F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }

  .footer-facebook::before {
    content: "";
    width: 18px;
    height: 18px;
    background: #1877F2;
    border-radius: 50%;
    display: inline-block;
}

.btn-facebook{
    display:inline-block;
    margin-top:12px;
    padding:10px 18px;
    background:#1877F2;
    color:#fff !important;
    border-radius:6px;
    font-weight:600;
    text-decoration:none;
}

.btn-facebook:hover{
    background:#166FE5;
    color:#fff !important;
}

.footer-col .btn-facebook{
    margin-top:16px;
}



/* ================================
   1000px
================================ */
@media (max-width: 1000px) {
    .services-layout,
    .services-grid,
    .capabilities-top,
    .feature-grid,
    .layout-2 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .layout-split,
    .layout-split-wide {
        grid-template-columns: 1fr;
        column-gap: 40px;  /* irrelevant when stacked */
        row-gap: 24px;     /* tighter vertical spacing */
    }

    .layout-split .media-block {
        margin-bottom: 0;
    }
    
    .layout-3 {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
    }

    .industry-grid {
    grid-template-columns: 1fr;
    justify-items: center;
    }

    .capability-group:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid #e6ebf1;
    padding-bottom: 40px;
    margin-bottom: 40px;
    }

    .services-layout {
    grid-template-columns: 1fr;
    }


    .header-btn {
    display: none;
    }

}  

/* ================================
900px
================================ */
@media (max-width: 900px) {

    .layout-2 {
        grid-template-columns: 1fr;
        margin: 0 auto;
    }

    .footer-col:nth-child(3) { 
    text-align: center;
    }

    .service-area .grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ================================
800px
================================ */
@media (max-width: 800px) {
    .grid-4,
    .grid-2,
    .project-layout,
    .grid-3 {
        gap: 40px;
        justify-items: center;
        grid-template-columns: 1fr;
    }

    .grid-2 > div:has(.split-image) {
        order: -1;
    }

/* Prevent collapse only for service area */
    .service-area.grid-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
    
    .service-area.grid-3 li {
        font-size: 13px;
        line-height: 1.25;
    }

    .grid-auto-center {
        grid-template-columns: 1fr;
        text-align: center;
        margin-bottom: 8;
    }

    .layout-4 {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 0 auto;
        justify-items: center;
    }
    
    .layout-4 > * {
        width: 100%;
        text-align: left;
    }
}   




/* ================================
600px
================================ */
@media (max-width: 600px) {

    .grid-4 {
        grid-template-columns: 1fr;
        justify-items: center; /* centers the cards */
    }

    .feature-link {
        max-width: 420px;
        width: 100%;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .grid-auto-center {
        grid-template-columns: 1fr;
    }

    .service-area .grid-3 {
        gap: 10px; /* tighter column spacing */
    }

    .service-area .grid-3 li {
        font-size: 13px;
        line-height: 1.25;
    }

}