:root {
    --primary-green: #2E8B57;
    /* Updated to match logo green better if needed, finding balance */
    --primary-yellow: #F59E0B;
    --primary-orange: #E64A19;
    --dark-text: #1F2937;
    --light-text: #F3F4F6;
    --bg-color: #F8FAFC;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
    scroll-behavior: smooth;
}

html,
body {
    background-color: var(--bg-color);
    color: var(--dark-text);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

/* Video Background */
.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    /* Reduced opacity to see video */
    z-index: 1;
}

/* Background Blobs (for pages without video) */
.blob-cont {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-green);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-yellow);
    top: 50%;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 600px;
    height: 600px;
    background: var(--primary-orange);
    bottom: -200px;
    left: 20%;
    animation-delay: -10s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(50px, 50px) scale(1.1);
    }
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), #218c53);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 139, 87, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 139, 87, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
    margin-left: 10px;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: white;
}

.highlight {
    color: var(--primary-green);
    background: -webkit-linear-gradient(45deg, var(--primary-green), var(--primary-orange));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 5px 30px;
    /* Thinner bar */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dark-text);
}

.logo img {
    height: 75px;
    /* Bigger by request */
    width: auto;
}

/* Reverted Font Size Bump */

.logo-green {
    font-weight: 800;
    color: var(--primary-green);
}

.logo-dark {
    color: #5D4037;
}

.division-card .icon-wrapper {
    width: 140px;
    height: 140px;
    background: white;
    background-color: #ffffff !important;
    background-image: none !important;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    border: 3px solid transparent;
    /* Base for trace border */
    position: relative;
    z-index: 2;
}

.division-card.construction .icon-wrapper {
    border-color: var(--primary-orange);
}

.division-card.restoration .icon-wrapper {
    border-color: var(--primary-yellow);
}

.division-card.maintenance .icon-wrapper {
    border-color: var(--primary-green);
}

.division-card .icon-wrapper img {
    width: 85%;
    height: auto;
    background-color: transparent !important;
}

.maple-icon {
    color: #D62828;
    width: 24px;
    height: 24px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-green);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-green);
}

.hamburger {
    display: none;
    cursor: pointer;
}

/* Mobile Menu (Fixed Position) */
.mobile-menu {
    display: none;
    position: fixed;
    /* Ensures it travels with scroll */
    top: 90px;
    right: 20px;
    left: auto;
    width: 250px;
    height: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 10px;
    border-radius: 15px;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    width: 100%;
    transition: color 0.3s, background 0.3s;
    border-radius: 10px;
}

.mobile-menu a:hover {
    color: var(--primary-green);
    background: rgba(46, 139, 87, 0.05);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Carousel */
/* Caption Styles */
/* Caption Styles */
.carousel-caption-container {
    position: absolute;
    top: 640px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    pointer-events: none;
    z-index: 20;
}

.carousel-caption-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-text);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8);
    text-align: center;
    width: 100%;
}

.carousel-caption-desc {
    background: rgba(255, 255, 255, 0.95);
    color: #444;
    padding: 20px 35px;
    border-radius: 15px;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    pointer-events: auto;
    text-align: center;
}

/* Unified Carousel Styles (Desktop > 900px) */
@media (min-width: 901px) {
    .gallery-grid {
        position: relative;
        width: min(980px, 100%);
        margin-left: auto;
        margin-right: auto;
        margin-top: 0;
        /* Pull closer to title */
    }

    .gallery-grid .carousel-container {
        position: relative;
        width: 100%;
        height: 540px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: visible;
    }

    .gallery-grid .carousel-item {
        position: absolute;
        left: 50%;
        top: 50%;
        width: 76%;
        height: 500px;
        transform: translate(-50%, -50%);
        opacity: 0;
        pointer-events: none;
        transition: transform 250ms ease, opacity 250ms ease;
        background: transparent;
        box-shadow: none;
        z-index: 1;
    }

    .gallery-grid .carousel-item img {
        width: 100%;
        height: 100%;
        display: block;
        border-radius: 18px;
        object-fit: cover;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .gallery-grid .carousel-item.active {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%) scale(1);
        z-index: 3;
    }

    .gallery-grid .carousel-item.prev {
        opacity: 0.35;
        transform: translate(-135%, -50%) scale(0.92);
        z-index: 2;
    }

    .gallery-grid .carousel-item.next {
        opacity: 0.35;
        transform: translate(35%, -50%) scale(0.92);
        z-index: 2;
    }

    .gallery-grid .carousel-item.hidden {
        opacity: 0;
        pointer-events: none;
    }

    .gallery-grid .carousel-controls {
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        transform: translateY(-50%);
        display: flex;
        justify-content: space-between;
        padding: 0 14px;
        z-index: 5;
        pointer-events: none;
    }

    .gallery-grid .carousel-controls .control-btn {
        pointer-events: auto;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 0;
        cursor: pointer;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s, background 0.3s;
    }

    .gallery-grid .carousel-controls .control-btn:hover {
        background: var(--primary-green);
        color: white;
        transform: scale(1.1);
    }

    .gallery-grid .control-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Mobile Styles (<= 900px) - Swipe friendly */
@media (max-width: 900px) {
    .gallery-grid {
        position: relative;
        width: 100%;
        overflow: hidden;
        /* Prevent horizontal scroll */
        padding-bottom: 20px;
    }

    .gallery-grid .carousel-container {
        position: relative;
        width: 100%;
        height: 480px;
        perspective: 1000px;
        overflow: hidden;
    }

    .gallery-grid .carousel-item {
        position: absolute;
        width: 90%;
        height: 400px;
        transition: all 0.5s ease-in-out;
        border-radius: 15px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        overflow: hidden;
        cursor: pointer;
        background: #000;
        left: 50%;
        top: 0;
        transform: translateX(-50%) scale(0.9);
        opacity: 0.7;
        z-index: 1;
    }

    /* Mobile Caption Override */
    .carousel-caption-container {
        top: 420px;
        width: 95%;
        padding: 0;
    }

    .carousel-caption-title {
        font-size: 1.15rem;
        margin-bottom: 8px;
    }

    .carousel-caption-desc {
        font-size: 0.95rem;
        padding: 15px 20px;
    }

    .gallery-grid .carousel-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .gallery-grid .carousel-item.active {
        z-index: 3;
        transform: translateX(-50%) scale(1);
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }

    .gallery-grid .carousel-item.prev {
        z-index: 2;
        transform: translateX(-110%) scale(0.9);
        opacity: 0.5;
    }

    .gallery-grid .carousel-item.next {
        z-index: 2;
        transform: translateX(10%) scale(0.9);
        opacity: 0.5;
    }

    .gallery-grid .carousel-item.hidden {
        z-index: 0;
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }

    .gallery-grid .carousel-controls {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        left: 0;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
        pointer-events: none;
        z-index: 20;
    }

    .gallery-grid .control-btn {
        pointer-events: auto;
        background: rgba(255, 255, 255, 0.8);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-grid .control-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* Service Hover Fix */
.division-card {
    will-change: transform;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
}

.division-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
    z-index: 10;
}

/* Story Images Fix */
/* Replaced by masonry-grid, removing old class to prevent conflicts */

.full-width-img {
    flex: 1 1 100% !important;
    max-width: 800px !important;
    height: auto !important;
    margin: 20px auto 0;
    display: block;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #444;
    margin-bottom: 40px;
    max-width: 600px;
    font-weight: 500;
}

/* Page Headers (Story, Services, etc) */
.header-section {
    padding-top: 220px;
    /* Increased further */
    padding-bottom: 30px;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
    /* Space between title and subtitle */
}

/* Features Grid (Home) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    color: var(--primary-green);
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
}

/* Sections */
.section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-text);
}

.gallery-section {
    background-color: #e6ebe7;
    padding-bottom: 40px;
    /* Reduced from default 80px */
}

.gallery-section .section-title {
    margin-bottom: 20px;
}

.gallery-btn-container {
    text-align: center;
    margin-top: 0px;
    /* Pull button closer to carousel */
    position: relative;
    z-index: 5;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-top: -30px;
    margin-bottom: 50px;
}

/* Content Grid (Story) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.story-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

.caption {
    text-align: center;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.large-shadow {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Divisions Grid (Services) */
.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.divisions-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, #f8fafc 100%);
}

.about-section {
    padding-top: 30px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(46, 139, 87, 0.08);
}

.about-card--center {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.about-card .section-title,
.about-card .section-subtitle {
    text-align: center;
    margin-left: 0;
}

.about-card .section-subtitle {
    margin-top: 8px;
    margin-bottom: 16px;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #45505b;
    margin: 12px 0 0;
    /* Reset auto margins */
}

/* New Layout Styles */
.about-flex-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.about-pictures {
    position: relative;
    width: 100%;
    /* Start with full width on mobile */
    height: 300px;
    /* Fixed height for slideshow stability */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.about-slide-img.active {
    opacity: 1;
    z-index: 2;
}

@media (min-width: 900px) {
    .about-card--center {
        max-width: 1100px;
        /* Increase width for side-by-side */
        text-align: left;
        padding: 60px;
    }

    .about-flex-wrapper {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    .about-content {
        flex: 1;
    }

    .about-pictures {
        flex: 1;
        height: 400px;
        /* Taller on desktop */
        margin-top: 65px;
    }

    .about-card .section-title,
    .about-card .section-subtitle {
        text-align: left;

    }
}

.division-card {
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 5px solid transparent;
    cursor: pointer;
    border: none;
    width: 100%;
    color: inherit;
}

.division-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.division-card:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 4px;
}

.division-card.construction {
    border-color: var(--primary-orange);
}

.division-card.restoration {
    border-color: var(--primary-yellow);
}

.division-card.maintenance {
    border-color: var(--primary-green);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;

    overflow: hidden;
    border: 3px solid transparent;
}

.icon-wrapper img {
    width: 115%;
    height: 115%;
    object-fit: cover;
}

.construction .icon-wrapper {
    background: #fff7ed;
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.restoration .icon-wrapper {
    background: #fefce8;
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.maintenance .icon-wrapper {
    background: #f0fdf4;
    color: var(--primary-green);
    border-color: var(--primary-green);
}

.div-icon {
    width: 40px;
    height: 40px;
}

.sub-head {
    color: #888;
    margin-top: 5px;
    margin-bottom: 15px;
    font-weight: 400;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Services Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 20px;
    width: 100%;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 20px;
}

.masonry-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.masonry-item:hover img {
    transform: scale(1.02);
}

.light-bg {
    background: #f5f7fb;
}

/* Careers */
.careers-intro {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
}

.career-highlight,
.career-aside {
    padding: 35px;
    border-radius: 25px;
    box-shadow: var(--shadow);
}

.career-highlight h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.career-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-list i {
    color: var(--primary-green);
    margin-right: 8px;
}

.career-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: #e6f4ec;
    color: var(--primary-green);
    font-weight: 700;
    font-size: 0.9rem;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.career-card {
    background: white;
    padding: 28px;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.career-card .btn {
    align-self: flex-start;
}

.career-card.single-card {
    grid-column: 1 / -1;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
}

.career-card.single-card .btn {
    align-self: center;
}

.career-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e6f4ec;
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }

}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}


/* Contact */
/* Navigation & Logo */
.logo img {
    height: 75px;
    /* Bigger by request */
    width: auto;
}

/* Contact Section Redesign */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    /* Info/Map on left (smaller), Form on right (wider) */
    gap: 40px;
    padding: 40px;
    align-items: start;
}

.contact-left-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.map-container {
    height: 300px;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info {
    text-align: left;
}

.contact-form-container {
    width: 100%;
}

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

    .map-container {
        height: 250px;
    }
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-radius: 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--glass-border);
}

.contact-info p {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f9f9f9;
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

/* Footer */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    margin-top: 40px;
}

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

.socials {
    display: flex;
    gap: 20px;
}

.socials a:hover {
    color: var(--primary-green);
}

.footer-signature {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 30px;
    font-weight: 300;
    opacity: 0.7;
    letter-spacing: 0.5px;
}

/* Navbar */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 5px 30px;
    /* Thinner bar */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    /* Reduced gap to fit more */
    margin-top: 40px;
    padding: 20px;
    width: 100%;
}

.logo-item {
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    /* Ensure no flex-grow that forces single column */
    flex: 0 0 auto;
}

.logo-item:hover {
    transform: translateY(-5px);
}

.logo-item img {
    max-width: 120%;
    /* Bigger */
    max-height: 120%;
    /* Bigger */
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(0%);
    transition: filter 0.3s;
    opacity: 1;
    /* Make them pop */
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Customers marquee */
.customers-section {
    background: #f8fafc;
    color: Black;
    padding-bottom: 60px;
}

.customers-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    margin-bottom: 28px;
}

.customers-header .section-title,
.customers-header .section-subtitle {
    margin: 0;
    color: Black;
}

/* Services Page Redesign */
.services-layout {
    display: flex;
    flex-direction: column;
    gap: 80px;
    padding-bottom: 60px;
}

.service-section {
    position: relative;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    scroll-margin-top: 160px;
    /* Offset for fixed navbar to center view */
}

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

.service-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 30px;
    gap: 20px;
}

.service-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-green);
    opacity: 0.8;
    line-height: 1;
}

.service-title-block {
    flex: 1;
    padding-top: 10px;
}

.service-title-block h2 {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin: 0;
    line-height: 1.1;
}

.service-subtitle {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #8d6e63;
    /* Brownish tone from logo */
    letter-spacing: 1px;
    margin-top: 5px;
    text-transform: uppercase;
}

.website-banner {
    display: inline-block;
    background: #E8F5E9;
    /* Light green bg */
    color: var(--primary-green);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid rgba(46, 139, 87, 0.2);
    letter-spacing: 0.5px;
}

.service-logo img {
    width: 180px;
    /* Adjusted size another 15% */
    height: auto;
}

.service-content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-text-col p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .service-header-row {
        flex-wrap: wrap;
    }

    .service-logo {
        order: -1;
        width: 100%;
        text-align: left;
        margin-bottom: 10px;
    }

    .service-content-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .customer-card__list {
        grid-template-columns: 1fr;
    }

    .customer-card__pill {
        font-size: 0.85rem;
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: block;
    }

    .content-grid {
        display: flex;
        flex-direction: column-reverse;
        /* Text on top? Or Image? */
        /* Actually keep original layout or stack */
        gap: 30px;
    }

    .contact-box {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .gallery-grid {
        columns: 1;
    }

    /* Video Fix: Unhide and ensure it covers to bottom */
    .video-bg {
        position: fixed;
        min-height: 100vh;
        z-index: -2;
        background: black;
        /* Fallback */
    }

    .video-bg video {
        display: block;
        /* Force show */
    }

    .carousel-container {
        height: 350px;
    }

    .carousel-item {
        width: 85%;
    }

    .carousel-item.prev {
        transform: translateX(-100%) scale(0.9);
        opacity: 0;
    }

    /* Hide sides on mobile */
    .carousel-item.next {
        transform: translateX(100%) scale(0.9);
        opacity: 0;
    }

    /* Center controls on mobile and contract */
    .carousel-controls {
        width: 100%;
        left: 0;
        padding: 0 20px;
    }
}

/* Specific Service Title Colors */
#property-maintenance h2 {
    color: var(--primary-green);
}

#construction h2 {
    color: var(--primary-orange);
}

#restoration h2 {
    color: var(--primary-yellow);
}

/* Our Story Background */
.story-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* Brought up from -1 to 0 to test visibility, in case body bg was hiding it */
    background-image: url('images/oscover.jpg');
    background-size: cover;
    background-position: center 25%;
    opacity: 0.25;
    /* Increased opacity */
    /* Reverse vignette: fade edges to transparent */
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 30%, transparent 100%);
    pointer-events: none;
}

/* Story Readability Enhancements */
.story-lead,
.story-text,
.story-block-title,
.about-text,
.quote-box p,
.caption {
    /* distinct dark shadow for better separation */
    text-shadow: 0 2px 4px rgba(255, 255, 255, 1), 0 0 20px rgb(216, 216, 216);
    /* actually, let's try a white halo to clear the bg, then a tiny dark outline? 
       User said "shadow all around". A white glow usually does this best for separation. 
       Let's make it stronger opacity. */
    text-shadow: 0 0 10px rgba(255, 255, 255, 1), 0 0 20px rgba(196, 196, 196, 0.712);
    position: relative;
    z-index: 1;
}



/* Founder Slideshow (New Layout) */
.founder-slideshow {
    position: relative;
    width: 100%;
    /* Fixed height for uniformity */
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    background: white;
    /* Fallback */
}

.founder-slide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.founder-slide-wrapper.active {
    opacity: 1;
    z-index: 2;
}

.founder-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* ESSENTIAL for uniformity */
    display: block;
}

.founder-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: white;
    /* Ensure visible on potential dark overlaid image parts */
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    padding: 40px 10px 15px;
    /* Increased top padding for better gradient fade, adjusted bottom */
    z-index: 3;
}

/* Story Layout Updates */
.story-top {
    /* Ensure grid matches intent */
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
    margin-top: 10px;
}

.story-full-width {
    width: 100%;
    max-width: 100%;
    /* Ensure it doesn't overflow parent .story-wrap */
}

/* Mobile adjustments */
@media (max-width: 900px) {
    .story-top {
        grid-template-columns: 1fr;
    }

    .founder-slideshow {
        height: 350px;
        /* Slightly smaller on mobile*/
    }
}

/* Property Maintenance Sub-Services Grid */
.sub-service-grid {
    display: grid;
    /* Force 4 columns on desktop */
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.sub-service-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    will-change: transform;
    /* Performance optimization */
}

.sub-service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sub-img-wrap {
    width: 100%;
    /* Increase height */
    height: 250px;
    overflow: hidden;
    background: #f0f0f0;
}

.sub-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    will-change: transform;
    /* Performance optimization */
}

.sub-service-card:hover .sub-img-wrap img {
    transform: scale(1.05);
}

.sub-service-label {
    display: block;
    padding: 20px 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    background: white;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

/* Responsive adjustments for the grid */
@media (max-width: 1200px) {
    .sub-service-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

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

    .sub-img-wrap {
        height: 220px;
    }
}

/* =========================================
   Interactive Carousel & Lightbox Styles
   ========================================= */

/* Carousel Title Overlay (Corner Box) */
.slide-title-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 15px 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
    max-width: 80%;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-title-overlay div:first-child {
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.slide-title-overlay:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Hide old caption container if still present but unused */
.carousel-caption-container {
    display: none !important;
}

/* Lightbox Overlay */
.project-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: fadeInLightbox 0.4s forwards;
}

@keyframes fadeInLightbox {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Scrollable Container */
.project-lightbox-content.vertical-scroll {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
}

.lightbox-hybrid-wrapper {
    width: 95%;
    max-width: 1600px;
    margin: 40px auto;
    color: white;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
}

/* --- TOP SECTION: Image + Sidebar --- */
.lightbox-top-section {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin-bottom: 40px;
    height: 75vh;
    /* Fixed height for top section to make sidebar scrollable */
}

/* A. Main Image Column */
.lightbox-main-col {
    flex: 3;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-main-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Arrows */
.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.lightbox-arrow:hover {
    background: white;
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-arrow.prev {
    left: 20px;
}

.lightbox-arrow.next {
    right: 20px;
}


/* B. Sidebar Column */
.lightbox-side-col {
    flex: 1;
    height: 100%;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-width: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-side-col h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    flex-shrink: 0;
}

.lightbox-side-grid {
    flex: 1;
    /* Fills remaining height */
    overflow-y: auto;
    /* Scrollable thumbnails */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    align-content: start;
    padding-right: 5px;
    /* Space for scrollbar */
}

/* Custom Scrollbar for sidebar */
.lightbox-side-grid::-webkit-scrollbar {
    width: 6px;
}

.lightbox-side-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.lightbox-side-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.lightbox-side-thumb {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square thumbnails */
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.lightbox-side-thumb:hover {
    opacity: 1;
    transform: scale(1.02);
}

.lightbox-side-thumb.active {
    opacity: 1;
    border-color: var(--primary-green);
    box-shadow: 0 0 10px rgba(var(--primary-green-rgb), 0.3);
}


/* --- BOTTOM SECTION: Description --- */
.lightbox-bottom-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease;
}

.lightbox-bottom-section h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 5px;
}

.lightbox-location {
    font-size: 1rem;
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 20px;
}

.lightbox-desc-text p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #ddd;
    margin: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Close Button */
.lightbox-close {
    position: fixed;
    top: 25px;
    right: 25px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10010;
    backdrop-filter: blur(5px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 900px) {
    .lightbox-hybrid-wrapper {
        margin-top: 50px;
        /* Space for close button */
        width: 100%;
    }

    /* Stack Columns */
    .lightbox-top-section {
        flex-direction: column;
        height: auto;
        gap: 15px;
        margin-bottom: 20px;
    }

    /* Main Image Area */
    .lightbox-main-col {
        height: 50vh;
        /* Good height for mobile portrait */
        width: 100%;
        flex: none;
        border-radius: 0;
        /* Full bleed potential */
        background: black;
    }

    .lightbox-main-img {
        max-height: 50vh;
        width: 100%;
        object-fit: contain;
    }

    /* Bigger Arrows for Touch */
    .lightbox-arrow {
        width: 50px;
        height: 50px;
        background: rgba(0, 0, 0, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lightbox-arrow svg {
        width: 32px;
        height: 32px;
    }

    /* Filmstrip Gallery (Horizontal Scroll) */
    .lightbox-side-col {
        width: 100%;
        height: auto;
        flex: none;
        background: transparent;
        border: none;
        padding: 0 10px;
        /* Side padding */
        min-width: 0;
    }

    .lightbox-side-col h4 {
        display: none;
        /* Hide 'Project Gallery' title to save space on mobile */
    }

    .lightbox-side-grid {
        display: flex;
        /* Horizontal Row */
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        /* Horizontal Scroll */
        overflow-y: hidden;
        padding-bottom: 15px;
        /* Space for scrollbar */
        height: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .lightbox-side-thumb {
        width: 80px;
        /* Fixed width for filmstrip items */
        height: 80px;
        flex-shrink: 0;
        /* Don't squash */
        border-radius: 6px;
    }

    /* Bottom Description */
    .lightbox-bottom-section {
        padding: 20px;
        margin: 0 10px 40px 10px;
        /* Side margins */
        width: calc(100% - 20px);
        background: transparent;
        /* Cleaner on mobile */
        border: none;
    }

    .lightbox-bottom-section h2 {
        font-size: 1.6rem;
    }

    .lightbox-desc-text p {
        font-size: 1rem;
    }

    /* Close Button */
    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.5);
    }
}