/*
Theme Name: Consim Invest Theme
Theme URI: https://consim.ro
Author: Albosmart Srl
Description: Custom theme for CONSIM INVEST, featuring modern industrial design with specific domain accents.
Version: 1.0.0
*/

:root {
    /* Primary Colors */
    --color-primary: #003366;
    /* Professional Dark Blue */
    --color-secondary: #333333;
    /* Dark Grey/Anthracite */
    --color-text: #2c3e50;
    --color-light: #f8f9fa;
    --color-white: #ffffff;

    /* Accenture Colors */
    --color-water: #3498db;
    /* Light Blue */
    --color-greenhouse: #2ecc71;
    /* Fresh Green */
    --color-gas: #f39c12;
    /* Yellow/Orange */
    --color-land: #1abc9c;
    /* Blue/Green */
    --color-canalizare: #2980b9;
    /* Dark Blue */
    --color-electric: #9b59b6;
    /* Purple */
    --color-concrete: #95a5a6;
    /* Grey */
    --color-precast: #e67e22;
    /* Pumpkin Orange */

    /* Layout */
    --container-width: 100%;
    /* Default full width */
    --header-height: 80px;
    --desktop-margin: 300px;
    /* Requested margin */

    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    font-size: 22.5px;
    color: var(--color-text);
    background-color: #ffffff;
    line-height: 1.8;
    margin: 0;
    padding: 0;
}

body:not(.home) {
    padding-top: 120px;
}

@media (max-width: 992px) {
    body:not(.home) {
        padding-top: 0;
        /* Remove gap on mobile to match home */
    }
}

img {
    max-width: 100%;
    height: auto;
}

figure {
    margin: 0;
    padding: 0;
}

/* Fix WP Columns wrapping */
.wp-block-columns {
    flex-wrap: wrap !important;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-primary);
    font-weight: 800;
    /* Bolder for Outfit */
    margin-bottom: 2rem;
    line-height: 1.1;
    letter-spacing: -1px;
    /* Tighter for modern look */
}

a {
    text-decoration: none;
    color: var(--color-primary);
    transition: all 0.3s ease;
    font-weight: 700;
}

a:hover {
    color: var(--color-water);
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 3000;
    /* Above everything */
    position: absolute;
    right: 20px;
    top: 45px;
    /* Vertically centered relative to header height approx */
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--color-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu Container */
.mobile-menu-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 2500;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    /* Hidden by default */
    transition: transform 0.4s ease-in-out;
}

.mobile-menu-container.active {
    transform: translateX(0);
}

.mobile-nav ul {
    list-style: none;
    text-align: center;
    padding: 0;
}

.mobile-nav li {
    margin: 30px 0;
}

.mobile-nav a {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
}

.btn-mobile-cta {
    background: var(--color-primary);
    color: white !important;
    padding: 15px 40px;
    border-radius: 8px;
    margin-top: 20px;
    display: inline-block;
}

/* Responsive Portfolio Table */
@media (max-width: 992px) {
    .portfolio-table-header {
        display: none !important;
        /* Hide headers on mobile */
    }

    .portfolio-table-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px;
        background: #f9f9f9;
        margin-bottom: 15px;
        border-radius: 8px;
    }

    .portfolio-col {
        width: 100%;
        text-align: center;
    }

    .portfolio-col:nth-child(1) {
        font-weight: 800;
        color: var(--color-primary);
        font-size: 1.2rem;
    }

    .portfolio-col:nth-child(2) {
        color: var(--color-primary);
        font-weight: 600;
        opacity: 0.8;
    }
}

/* Responsive Overrides */
@media (max-width: 992px) {
    .split-nav {
        display: none !important;
        /* Hide desktop navs */
    }

    .mobile-menu-toggle {
        display: flex;
        /* Show hamburger */
    }

    .site-logo.centered-logo {
        margin: 0;
        /* Center properly */
        top: 0;
        padding: 10px 15px;
    }

    .site-logo.centered-logo img {
        height: 120px;
        /* Increased 50% from 80px */
    }

    .site-header {
        height: 140px;
        /* Increased to accommodate larger logo */
        justify-content: space-between;
    }

    /* Stack content on mobile: Text Top, Image Bottom */
    .about-section .container>div {
        flex-direction: column;
    }

    .about-section .container>div>div {
        width: 100%;
        /* Full width */
        min-width: 0 !important;
        /* Override min-width */
    }
}

/* Container */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    /* Base mobile padding increased */
    transition: max-width 0.3s ease;
    /* Smooth resize */
}

@media (min-width: 1600px) {
    .container {
        /* "Double the margins" -> ~600px total removed from width */
        max-width: calc(100% - 600px);
        padding: 0;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .container {
        /* Previous setting (300px total) for standard laptops */
        max-width: calc(100% - 300px);
        padding: 0;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .container {
        max-width: 90%;
        padding: 0 20px;
    }
}

/* Header - Split Layout: Left - Logo - Right */
.site-header {
    background: #ffffff;
    position: absolute;
    /* Changed from fixed to absolute so it scrolls away */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 120px;
    /* Increased height for bigger logo */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.header-inner {
    display: flex !important;
    /* Force flex */
    flex-direction: row !important;
    /* Horizontal layout */
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    gap: 20px;
    /* Reduced from 40px */
}

/* Logo Styles */
/* Logo Styles - Enlarged and Overlapping */
/* Logo Styles - Enlarged and Overlapping */
.site-logo.centered-logo {
    flex: 0 0 auto;
    margin: 0 20px;
    z-index: 2000;
    position: relative;
    top: 45px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.site-logo.centered-logo img {
    height: 150px;
    transition: transform 0.3s ease;
}

/* ... */

.split-nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    letter-spacing: 1px;
    padding: 8px 12px;
    /* Reduced from 12px 20px */
    transition: all 0.3s ease;
    position: relative;
    color: var(--color-primary);
    white-space: nowrap;
    /* Prevent wrapping */
}

/* ... */

.btn-header-cta {
    background-color: var(--color-primary);
    color: white !important;
    padding: 15px 40px;
    /* Larger padding */
    border-radius: 8px;
    /* Slightly larger radius to match scale */
    font-size: 1.425rem;
    /* Increased to 1.9rem */
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Simple, strong corporate look */
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

/* ... */

/* Hero Content - Responsive Width Constraint */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* Inherit container max-width logic via .container class usage on parent or direct rule */
    /* Since .hero-content IS .container (in HTML: class="hero-content container"), 
       it inherits max-width from .container rules automatically! 
       Just ensure no other max-width overrides it. */
    /* max-width: 900px;  <-- REMOVE THIS OLD OVERRIDE */
    animation: fadeInUp 1s ease-out;
    padding: 0 20px;
}

/* Split Navigation Styles */
.split-nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    /* Reduced from 20px */
    margin: 0;
    padding: 0;
}

.split-nav.left-nav ul {
    justify-content: flex-end;
    /* Push towards logo */
}

.split-nav.right-nav ul {
    justify-content: flex-start;
    /* Push from logo */
}

.split-nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--color-primary);
    white-space: nowrap;
}

/* Hover Effect */
.split-nav a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-gas);
    transition: width 0.3s ease, left 0.3s ease;
}

.split-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Tablet/Mobile Responsive Override */
@media (max-width: 992px) {
    .site-header {
        height: auto;
        padding: 5px 20px !important;
        /* Minimized padding */
    }

    .header-inner {
        flex-direction: row !important;
        /* Keep items side-by-side */
        justify-content: space-between !important;
        align-items: center !important;
        gap: 0;
    }

    .split-nav {
        display: none !important;
        /* Hide Desktop Nav */
    }

    .site-logo.centered-logo {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin: 0 !important;
    }

    .site-logo.centered-logo img {
        height: 50px !important;
        /* Much smaller logo for mobile */
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Full Viewport Height */
    display: flex;
    align-items: center;
    align-items: center;
    justify-content: center;
    /* Center content horizontally */
    text-align: center;
    /* Changed back to center */
    color: white;
    /* overflow: hidden; */
    padding-top: 120px;
    overflow: hidden;
    /* Ensure images stay within bounds */
}

/* Ensure Hero Images act as Backgrounds */
.hero-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* Target the FIGURE tag which is the direct child of the group */
.hero-slider-container>.wp-block-image {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 1;
    /* Default to visible, JS toggles classes on this or child? JS toggles .active */
    transition: opacity 1.5s ease-in-out;
}

/* If JS targets .hero-slide and adds .active, we need to ensure specificity */
.hero-slide {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    /* Remove inline-block spacing */
}

/* Modern gradient overlay handled in separate element, but ensure base is nice */


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    /* More dynamic gradient */
}

.hero-content {
    position: relative;
    z-index: 2;
    /* max-width removed to use container width */
    animation: fadeInUp 1s ease-out;
    /* padding: 0 20px; Removed to inherit container padding */
    text-align: center;

    /* Force container behavior if flex parent interferes */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    /* Max-widths are handled by .container media queries */
}

/* Ensure inner Gutenberg containers don't shrink */
.hero-content .wp-block-group__inner-container {
    width: 100%;
}

.site-logo img {
    height: 90px;
    transition: transform 0.3s ease;
}

/* ... */

.split-nav a {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    /* Reduced from 1.1rem */
    letter-spacing: 1px;
    padding: 10px 15px;
    transition: all 0.3s ease;
    position: relative;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ... */

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 30px;
    background-color: transparent;
    color: white;
    padding: 0;
    display: block;
    box-shadow: none;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.hero-subtitle {
    font-size: 1.2rem;
    /* Doubled subtitle */
    margin-bottom: 50px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    /* Add bg for readability on slider */
    padding: 15px;
    border-radius: 8px;
    color: var(--color-primary);
    display: inline-block;
}

/* PNRR Banner */
.pnrr-banner-wrapper {
    position: relative;
    z-index: 10;
    padding: 40px 0 0;
    background: transparent;
}

.pnrr-banner-link {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.pnrr-banner-link:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.pnrr-banner-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
}

@media (max-width: 992px) {
    .pnrr-banner-wrapper {
        padding: 30px 0 0;
    }

    .pnrr-banner-link {
        border-radius: 8px;
    }

    .pnrr-banner-img {
        border-radius: 8px;
    }
}

@media (max-width: 600px) {
    .pnrr-banner-wrapper {
        padding: 20px 0 0;
    }

    .pnrr-banner-wrapper .container {
        padding: 0 15px;
    }

    .pnrr-banner-link {
        border-radius: 6px;
    }

    .pnrr-banner-img {
        border-radius: 6px;
    }
}

/* Services Grid */
.services-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    /* Doubled from 2.5rem */
    color: var(--color-primary);
    margin-bottom: 60px;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    margin: 15px auto 0;
}

/* Services Grid - Forced 4x2 layout */
.wp-block-columns.services-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    justify-content: center;
    width: 100% !important;
    flex-wrap: wrap !important;
    /* Fallback */
}

.wp-block-columns.services-grid>.wp-block-column {
    margin: 0 !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
    /* For grid-column compatibility in some browsers and fallback */
    width: 100% !important;
}

.zeroes-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--color-primary);
    color: white;
    padding: 40px 20px;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    width: 100%;
    box-sizing: border-box;
}

.zero-item {
    text-align: center;
    font-weight: 800;
    font-size: 1.1rem;
    line-height: 1.2;
}

.zero-item span {
    display: block;
    font-size: 1.8rem;
    color: var(--color-gas);
    line-height: 1;
}

@media (max-width: 992px) {
    .wp-block-columns.services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .zeroes-container {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 50px !important;
    }
}

@media (max-width: 600px) {
    .wp-block-columns.services-grid {
        grid-template-columns: 1fr !important;
    }

    .zeroes-container {
        grid-template-columns: 1fr;
    }
}

/* WP Columns usually have a class like wp-block-column */
.wp-block-column.service-card {
    background: var(--color-light);
    padding: 40px 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    background: white;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    transition: filter 0.3s ease;
}

/* Domain specific accent hover effects */
.service-card.apa:hover,
.service-card.water:hover {
    border-bottom: 4px solid var(--color-water);
}

.service-card.canalizare:hover {
    border-bottom: 4px solid var(--color-canalizare);
}

.service-card.gas:hover {
    border-bottom: 4px solid var(--color-gas);
}

.service-card.electric:hover {
    border-bottom: 4px solid var(--color-electric);
}

.service-card.greenhouse:hover {
    border-bottom: 4px solid var(--color-greenhouse);
}

.service-card.land:hover {
    border-bottom: 4px solid var(--color-land);
}

.service-card.statie-betoane:hover {
    border-bottom: 4px solid var(--color-concrete);
}

.service-card.prefabricate:hover {
    border-bottom: 4px solid var(--color-precast);
}

.service-card.gas:hover {
    border-bottom: 4px solid var(--color-gas);
}

.service-card.land:hover {
    border-bottom: 4px solid var(--color-land);
}

.service-card.canalizare:hover {
    border-bottom: 4px solid #34495e;
}

.service-card.statie-betoane:hover {
    border-bottom: 4px solid #7f8c8d;
}

.service-card.prefabricate:hover {
    border-bottom: 4px solid #95a5a6;
}

/* Service Icons - Image Block */
.service-icon-img {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
}

.service-icon-img img {
    max-width: 80px;
    height: auto;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon-img img {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.08em;
    /* Proportional to 30px body -> ~54px */
    margin-bottom: 15px;
    font-weight: 800;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--color-light);
}

.about-section h2 {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 30px;
    font-weight: 700;
}

/* Override WP default rounded style for About section image */
.about-section .is-style-rounded img,
.about-section .wp-block-image.is-style-rounded img {
    border-radius: 20px !important;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: flex;
    gap: 250px;
    /* Horizontal space between items */
    margin-top: 100px;
    /* Vertical separation as requested */
    flex-wrap: wrap;
    justify-content: center;
    /* Centered */
}

.stat-item {
    background: white;
    padding: 25px 35px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft premium shadow */
    border-left: 5px solid var(--color-water);
    /* Accent line */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 180px;
    text-align: left;
    /* Align text inside card */
    position: relative;
    overflow: hidden;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.stat-item h4 {
    font-size: 3.5rem;
    /* Big impact number */
    color: var(--color-primary);
    margin-bottom: 0;
    line-height: 1;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.stat-item p {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #7f8c8d;
    font-weight: 700;
    margin-top: 10px;
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

/* Projects Table (Portfolio) */
.projects-table-container {
    overflow-x: auto;
    margin-top: 40px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

table.projects-table {
    width: 100%;
    border-collapse: collapse;
}

table.projects-table th,
table.projects-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

table.projects-table th {
    background-color: var(--color-primary);
    color: white;
    font-weight: 600;
}

table.projects-table tr:hover {
    background-color: #f9f9f9;
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--color-primary);
    color: white;
}

/* Contact Page */
.contact-hero {
    height: 50vh;
    background-color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: -50px auto 50px;
    position: relative;
    z-index: 10;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    text-align: center;
}

/* Form Styles */
.wpcf7-form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
}

.wpcf7-submit {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    text-transform: uppercase;
    transition: background 0.3s;
}

.wpcf7-submit:hover {
    background: #002244;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: var(--shadow-md);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Mobile Adjustments for Stats/Zeroes */
@media (max-width: 992px) {
    .zeroes-grid {
        margin-top: 30px !important;
        /* Reset overlap */
        border-radius: 0;
        /* Optional: edge-to-edge if desired, or keep rounded */
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.6;
        /* Increased line spacing */
        margin-bottom: 60px;
        /* Doubled margin */
    }

    .hero-subtitle {
        line-height: 1.8;
        /* Increased line spacing */
        margin-bottom: 40px;
    }
}

@media (min-width: 768px) {
    .site-header {
        padding: 15px 0;
    }
}

.site-footer {
    background: linear-gradient(135deg, #001f3f 0%, #001122 100%);
    color: #fff;
    padding: 80px 0 40px;
}

@media (min-width: 768px) {
    .footer-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
        /* Tighter gap to ensure fit */
    }
}

.footer-logo-container {
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: -120px;
    /* Overlap upwards into the body */
    margin-bottom: 20px;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-logo {
    height: 135px;
    /* Increased 50% from 90px */
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-col h4 {
    color: var(--color-water);
    font-size: 0.84rem;
    margin-bottom: 25px;
}

.footer-col p,
.footer-col ul li a {
    font-size: 1.2rem;
    /* Increased to 1.6rem */
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    display: block;
}

.footer-col ul {
    list-style: none;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Header CTA Button - Right Nav */
.header-cta-item {
    margin-left: 20px;
}

.btn-header-cta {
    background-color: var(--color-primary);
    /* Logo Dark Blue */
    color: white !important;
    padding: 12px 30px;
    border-radius: 6px;
    /* Smaller radius as requested */
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Simple, strong corporate look */
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 51, 102, 0.3);
    background: linear-gradient(135deg, #004080 0%, #003366 100%);
    color: white;
}

/* Quote Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Ensure z-index is super high */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    /* Modern blur effect */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

/* Modal Content Box */
.modal-content {
    background-color: #fff;
    padding: 50px;
    border-radius: 20px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.show .modal-content {
    transform: scale(1);
}

/* Close Button */
.close-modal {
    color: #333;
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    line-height: 1;
}

.close-modal:hover {
    color: var(--color-gas);
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.modal-header p {
    font-size: 1.1rem;
    color: #666;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #eee;
    /* Thicker border */
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-gas);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.1);
}

.btn-submit-quote {
    background: var(--color-primary);
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit-quote:hover {
    background: var(--color-water);
}

/* Mission Vision Values Section */
.mvv-section {
    padding: 80px 0;
    /* Gradient based on user image: Deep Purple/Blue to Lighter Cyan/Blue */
    background: linear-gradient(135deg, #4b3ca3 0%, #4facfe 100%);
}

.wp-block-columns.mvv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    width: 100% !important;
}

.mvv-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    /* Softer rounded corners */
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy subtle pop */
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Clean base shadow */
}

/* Gradient Stroke/Border Effect via Pseudo-element */
.mvv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    /* Top border strip */
    background: linear-gradient(90deg, var(--color-primary), var(--color-water));
    transition: height 0.3s ease;
    z-index: -1;
}

.mvv-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.15);
    /* Colored shadow */
}

/* Full card gradient background on hover (optional, user asked for colors & gradient) 
   Let's keep text readable, so maybe just expand the border or a subtle fill.
   Let's try expanding the accent to the full background but with low opacity?
   Or better: Icon gradient is strong, card remains clean but gets a "glow".
   Let's stick to the top strip becoming a full glow or similar. 
*/
.mvv-card:hover::before {
    height: 8px;
    /* Slightly thicker */
}

.mvv-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px;
    color: white;
    /* Icon text/svg color white */
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-water) 100%);
    /* Modern Gradient */
    padding: 20px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease, box-shadow 0.3s ease;
}

.mvv-card:hover .mvv-icon {
    transform: scale(1.1) rotate(5deg);
    /* Playful animation */
    box-shadow: 0 15px 30px rgba(0, 51, 102, 0.3);
}

.mvv-card h3 {
    font-size: 1.44em;
    /* Match service card title */
    margin-bottom: 20px;
    background: -webkit-linear-gradient(45deg, var(--color-primary), var(--color-water));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Gradient Text */
    font-weight: 800;
}

.mvv-card p {
    /* font-size: 1.1rem; Removed to inherit body size (30px) */
    line-height: 1.5;
    /* Match body line-height */
    margin-bottom: 15px;
    color: var(--color-text);
    text-align: left;
}

.mvv-list {
    list-style: none;
    padding: 0;
    text-align: center;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 2 Columns */
    gap: 10px;
}

.mvv-list li {
    /* font-size: 1.2rem; Removed to inherit */
    font-weight: 700;
    color: var(--color-primary);
    margin: 5px 0;
}

@media (max-width: 992px) {

    /* JS Forced Class */
    .wp-block-columns.force-mobile-stack {
        display: block !important;
        width: 100% !important;
    }

    /* Target by Parent Section (Broadest Selector) */
    .mvv-section .wp-block-columns {
        display: block !important;
        width: 100% !important;
    }

    /* Existing Class (if present) */
    .wp-block-columns.mvv-grid {
        display: block !important;
        width: 100% !important;
    }

    /* Target Cards Directly - The most robust CSS-only method */
    .wp-block-column.mvv-card {
        display: block !important;
        width: 100% !important;
        min-width: 100% !important;
        flex-basis: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 30px !important;
        box-sizing: border-box !important;
    }

    /* Helper for JS injected class */
    .force-mobile-stack>.wp-block-column,
    .mvv-section .wp-block-columns>.wp-block-column {
        width: 100% !important;
        margin-bottom: 30px !important;
        display: block !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .wp-block-columns.mvv-grid>.wp-block-column:last-child,
    .force-mobile-stack>.wp-block-column:last-child,
    .mvv-section .wp-block-columns>.wp-block-column:last-child {
        margin-bottom: 0 !important;
    }
}

/* Portfolio Page Hero */
.portfolio-hero {
    height: 40vh;
    min-height: 300px;
    background: linear-gradient(135deg, #4b3ca3 0%, #4facfe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    /* Keeps the container centered on screen */
    text-align: left;
    /* Aligns the text inside the container to the left */
    margin-top: 0;
    /* Remove top offset if handled by padding-top in generic hero */
}

.portfolio-hero .hero-content {
    text-align: left;
    /* Explicitly ensure content is left aligned */
    width: 100%;
    /* Ensure container takes full width to allow left alignment relative to grid */
}

.portfolio-hero .hero-subtitle {
    background: transparent !important;
    background-color: transparent !important;
    color: white !important;
    padding: 0;
    box-shadow: none !important;
}

/* Blog / Single Post Styles */
.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 25px;
}

.post-meta {
    color: #888;
    margin-bottom: 10px;
}

.post-title {
    margin-bottom: 15px;
    font-weight: 700;
}

.post-title a {
    color: var(--color-primary);
    text-decoration: none;
}

.post-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.read-more {
    color: var(--color-water);
    font-weight: 700;
    text-decoration: none;
}

/* Force white color on portfolio hero */
.portfolio-hero,
.portfolio-hero *,
.portfolio-hero a {
    color: white !important;
}

/* Hero CTA Button (Contour Effect) */
.btn-hero-cta {
    display: inline-block;
    /* margin-top: 40px; handled by wrapper */
    padding: 16px 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass feel */
    color: white !important;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 50px;
    /* Pill shape for modern look */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-hero-cta:hover {
    background: white;
    color: var(--color-primary) !important;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Button Hover */
.hero-content .btn-hero-cta {
    background-color: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    color: white !important;
    transition: all 0.3s ease;
}

.hero-content .btn-hero-cta:hover {
    background-color: var(--color-water) !important;
    border-color: var(--color-water) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Adjustments for Hero */
@media (max-width: 992px) {
    .site-header {
        position: relative;
        z-index: 200;
        background-color: #ffffff !important;
        /* White background */
        height: 60px !important;
        /* Fixed height */
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .site-header .header-inner {
        flex-direction: row !important;
        /* Keep items side-by-side */
        justify-content: center !important;
        /* Center Flex Items (Logo) */
        align-items: center !important;
        gap: 0;
    }

    .split-nav {
        display: none !important;
        /* Hide Desktop Nav */
    }

    /* Overlapping Centered Logo */
    .site-logo.centered-logo {
        position: relative !important;
        top: 20px !important;
        /* Push down to overlap content */
        margin: 0 !important;
        /* Reset margins */
        background: white;
        padding: 5px;
        border-radius: 0 0 8px 8px;
        /* Rounded bottom corners */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        z-index: 201;
        width: auto !important;
        /* Allow natural width */
    }

    .site-logo.centered-logo img {
        height: 90px !important;
        /* Larger logo */
    }

    /* Move burger to the far right */
    .mobile-menu-toggle {
        margin-left: auto;
        position: absolute;
        right: 20px;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin-top: 0 !important;
        z-index: 202;
    }

    .hero-content {
        padding-top: 180px !important;
        /* Keep clearance */
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Modal Form Grid Layout */
.quote-form-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 0;
}

.form-col-left,
.form-col-right {
    flex: 1;
}

/* Responsive: Stack on mobile */
@media (max-width: 600px) {
    .quote-form-grid {
        flex-direction: column;
        gap: 0;
    }
}

/* GDPR Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 51, 102, 0.95);
    color: white;
    padding: 15px 0;
    z-index: 10000;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    /* Flex but hidden initially via inline style or JS */
    justify-content: center;
    align-items: center;
}

.cookie-content {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.cookie-content p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: center;
}

.cookie-content a {
    color: var(--color-water);
    text-decoration: underline;
}

.btn-accept-cookies {
    background-color: var(--color-water);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s;
    white-space: nowrap;
}

.btn-accept-cookies:hover {
    background-color: white;
    color: var(--color-water);
}

/* --- Responsive Fixes --- */

/* Tablet (max 1024px) */
@media (max-width: 1024px) {
    .stats-grid {
        gap: 100px;
        /* Reduce massive gap */
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {

    /* Stats: Stack or tight grid */
    .stats-grid {
        gap: 40px;
        margin-top: 60px;
        /* Reduce top margin */
        flex-direction: column;
        align-items: center;
    }

    .stat-item {
        width: 100%;
        max-width: 300px;
    }

    /* Footer: Stack columns nicely */
    .site-footer .footer-grid {
        flex-direction: column;
        gap: 60px;
        /* Increased grouping space */
        padding-top: 20px;
    }

    .site-footer .footer-col {
        width: 100% !important;
        margin-right: 0 !important;
        min-width: unset !important;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 40px;
    }

    .site-footer .footer-col:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .site-footer h4 {
        margin-bottom: 25px !important;
        /* Clearer separation */
        font-size: 1.8em !important;
        /* Bigger headers */
    }

    .site-footer .social-icons {
        justify-content: center;
        margin-top: 25px !important;
    }

    .site-footer .newsletter-form {
        width: 100% !important;
        max-width: 350px;
        /* Constrain max width */
        margin: 0 auto;
    }

    /* Hero adjustments */
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn-hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    .container {
        padding: 0 20px;
    }
}



/* Social Icons */
.social-icon svg {
    transition: transform 0.3s, color 0.3s;
}

.social-icon:hover svg {
    transform: translateY(-3px);
    color: var(--color-water) !important;
}

/* Missing Btn Hero CTA */
.btn-hero-cta {
    background-color: var(--color-primary);
    color: white !important;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 1.425rem;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* Simple, strong corporate look */
    background: linear-gradient(135deg, #003366 0%, #004080 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.wp-block-button.btn-hero-cta .wp-block-button__link {
    /* Inherit our custom styles */
    background: transparent !important;
    color: white !important;
    padding: 0 !important;
    border: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    transition: color 0.3s ease;
}




/* MVV Section Styles (Mission, Vision, Values) */
.mvv-section {
    padding: 80px 0;
    background-color: #f8f9fa;
}

/* Force CSS Grid for Robust Equal Height */
body .wp-block-columns.mvv-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 30px !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
}

/* Individual Cards (Grid Items) */
body .wp-block-columns.mvv-grid>.wp-block-column,
body .wp-block-columns.mvv-grid>.wp-block-column.mvv-card {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    /* Force to fill grid cell height */
    width: auto !important;
    /* Let grid control width */
    flex-basis: auto !important;
    margin: 0 !important;

    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* Hover Effect */
body .wp-block-columns.mvv-grid>.wp-block-column.mvv-card:hover {
    transform: translateY(-5px);
}

.mvv-card:hover {
    transform: translateY(-5px);
}

.mvv-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.mvv-icon img {
    height: 60px;
    width: auto;
}

.mvv-card h3 {
    margin-bottom: 15px;
    color: var(--color-primary);
    font-weight: 800;
}

/* Specific List Styling for Values */
.mvv-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    text-align: center;
}

.mvv-list li {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 10px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
    display: block;
    /* Align nicely */
}

.mvv-list li:last-child {
    border-bottom: none;
}

/* FINAL MOBILE OVERRIDES - High Priority */
@media (max-width: 992px) {

    /* 1. Fix Stats Overlap */
    .zeroes-grid {
        margin-top: 50px !important;
        /* Increased space */
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    /* 2. Fix Portfolio Horizontal Scroll */
    /* 2. Fix Portfolio Horizontal Scroll */
    .projects-table thead {
        display: none !important;
    }

    .projects-table,
    .projects-table tbody,
    .projects-table tr {
        display: block !important;
        width: 100% !important;
    }

    .projects-table tr {
        display: flex !important;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px;
        background: #f9f9f9;
        margin-bottom: 20px;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }

    .projects-table td {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 5px 0 !important;
        white-space: normal !important;
    }

    .projects-table td:first-child {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--color-primary);
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding-bottom: 10px !important;
        margin-bottom: 5px;
    }



    /* 3. Fix Header/Logo Centering Robustness */
    .header-inner {
        justify-content: center !important;
    }

    /* Ensure no flex-basis conflict */
    .header-inner>* {
        flex: 0 1 auto;
    }

    .site-logo.centered-logo {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 20px !important;
        width: auto !important;
        display: block !important;
    }
}

/* =========================================
   Services Page Styles (Migrated from inline)
   ========================================= */
.services-wrapper {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.services-intro {
    max-width: 800px;
    margin: 0 auto 80px;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-row:last-child {
    margin-bottom: 0;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-image {
    flex: 1;
    position: relative;
}

.img-wrapper {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    box-shadow: 20px 20px 0 rgba(0, 51, 102, 0.05);
    transition: transform 0.4s ease;
}

.service-row:hover .img-wrapper {
    transform: scale(1.02);
}

.service-content {
    flex: 1;
}

.card-glass {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 20px;
}

.icon-header h3 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--color-primary);
}

.card-glass ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-glass ul li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 1.05rem;
    color: #444;
}

.card-glass ul li::before {
    content: '';
    color: var(--color-water);
    font-size: 1.5em;
    position: absolute;
    left: 0;
    top: -5px;
}

.accordion-item {
    margin-bottom: 25px;
}

.accordion-item h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.water {
    background: var(--color-water);
}

.dot.gas {
    background: var(--color-gas);
}

.dot.land {
    background: var(--color-greenhouse);
}

/* Services Page Mobile Styles */
@media (max-width: 992px) {
    .services-wrapper {
        padding-top: 10px !important;
        padding-bottom: 120px !important;
        /* Added huge bottom padding to prevent footer overlap */
    }

    .services-intro {
        margin-bottom: 20px !important;
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .services-intro p {
        margin-bottom: 10px !important;
    }

    .service-row {
        margin-bottom: 30px !important;
        /* Slightly increased for separation */
        margin-top: 0 !important;
        gap: 20px !important;
    }

    .service-row,
    .service-row.reverse {
        flex-direction: column !important;
        gap: 20px !important;
    }

    .img-wrapper {
        height: 200px !important;
        /* Restored visibility */
        box-shadow: 5px 5px 0 rgba(0, 51, 102, 0.02) !important;
        margin-bottom: 0 !important;
    }

    .card-glass {
        padding: 20px !important;
        border-radius: 15px !important;
        margin-top: 0 !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05) !important;
    }

    .icon-header {
        margin-bottom: 15px !important;
        padding-bottom: 15px !important;
    }

    .icon-header h3 {
        font-size: 1.4rem !important;
        margin-bottom: 0 !important;
    }

    body {
        font-size: 16px !important;
    }

    .lead-text {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
}


/* =========================================
   Zeroes Stats Counter Styles
   ========================================= */
.zeroes-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    text-align: center;
    width: 100%;
}

.zero-item {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.zero-item .counter {
    font-size: 3.5rem;
    font-weight: 800;
    color: #FFAB00;
    /* Vibrant Orange */
    display: block;
    line-height: 1;
    margin-bottom: 5px;
}

@media (max-width: 992px) {
    .zeroes-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns on Mobile */
        gap: 20px;
    }

    .zero-item {
        width: 100%;
        margin-bottom: 20px;
        flex: auto;
    }

    .zero-item .counter {
        font-size: 2.5rem;
        /* Smaller counter on mobile */
    }
}

/* Portfolio Hero Mobile Adjustment */
@media (max-width: 992px) {
    .portfolio-hero .hero-content {
        padding-top: 80px !important;
        /* Reduced from 180px by approx 100px */
        margin-top: 0 !important;
    }

    .portfolio-hero {
        height: auto !important;
        min-height: 250px !important;
        align-items: flex-start !important;
        padding-bottom: 40px !important;
    }
}


/* Contact Hero Mobile Adjustment */
@media (max-width: 992px) {
    .contact-hero .container {
        padding-top: 80px !important;
        /* Reduced from default 150-180px */
        margin-top: 0 !important;
    }

    .contact-hero {
        padding-top: 0 !important;
        height: auto !important;
        min-height: 300px !important;
        align-items: flex-start !important;
    }
}


/* Contact Page Fixes - Step 2 (Aggressive) */
@media (max-width: 992px) {

    /* Fix Hero Text Position - Higher Up */
    .contact-hero .container {
        padding-top: 30px !important;
        /* Reduced further from 80px */
    }

    /* Fix Horizontal Scroll & Grid Layout */
    .contact-info-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .contact-card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-wrap: break-word !important;
        /* Prevent long words from causing scroll */
    }

    /* Ensure no other element causes scroll */
    .contact-hero {
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Global scroll fix for mobile */
    body {
        overflow-x: hidden;
    }
}


/* Contact Hero - Aggressive Lift (Force) */
@media (max-width: 992px) {
    .contact-hero .container {
        padding-top: 0 !important;
        margin-top: -80px !important;
        /* Force lift */
        position: relative;
        z-index: 10;
        /* Ensure on top */
    }
}

/* Services Page Styles - FORCE Desktop Layout */
@media (min-width: 993px) {
    .services-wrapper {
        padding: 80px 0;
        overflow: hidden;
    }

    .service-row {
        display: flex !important;
        flex-direction: row !important;
        /* Force row */
        flex-wrap: nowrap !important;
        margin-bottom: 80px;
        align-items: stretch;
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    }

    .service-row.reverse {
        flex-direction: row-reverse !important;
    }

    .service-image {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        min-height: 400px;
        position: relative;
        overflow: hidden;
    }

    .service-content {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Global Styles (Mobile First / Shared) */
.services-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    font-size: 1.2rem;
    line-height: 1.6;
}

.img-wrapper {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
    min-height: 400px;
}

.service-row:hover .img-wrapper {
    transform: scale(1.05);
}

.card-glass {
    background: transparent;
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.icon-header h3 {
    margin: 0;
    font-size: 1.8rem;
}

.service-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: var(--color-text);
}

.service-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Accordion Styles */
.accordion-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.accordion-item h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-secondary);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.water {
    background-color: var(--color-water);
}

.dot.gas {
    background-color: var(--color-gas);
}

.dot.land {
    background-color: var(--color-land);
}

/* Responsive */
@media (max-width: 992px) {
    .service-row {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }

    .service-row.reverse {
        flex-direction: column !important;
        /* Stack normally on mobile */
    }

    .service-image,
    .service-content {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .service-image {
        height: 300px;
        min-height: 300px;
    }

    .service-content {
        padding: 40px 20px;
    }
}