/* 
   Yogita Construction - Global Design System
   Theme: Premium, Eco-Friendly, Government Contractor
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Color Palette */
    --primary-bg: #0F2A1D;
    /* Deep Forest Green */
    --primary-light: #1A3E2D;
    /* Slightly lighter forest green for variation */
    --secondary-bg: #d0ecb1;
    /* Very Light Green Tint for light sections */
    --accent-pastel: #C9E97C;
    /* Pastel Green */
    --accent-color: #9BE24A;
    /* Fresh Green Highlight */
    --accent-hover: #8FD14F;
    /* Hover State */

    /* Text Colors */
    --text-white: #FFFFFF;
    --text-charcoal: #1F1F1F;
    --text-light-grey: #C7D6C9;
    /* On dark bg */
    --text-muted: #4B4B4B;
    /* On light bg */
    --border-soft: #7FBF6A;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 50px 0;

    /* Effects */
    --radius-pill: 999px;
    --radius-card: 24px;
    --radius-input: 14px;
    --shadow-soft: 0 10px 40px rgba(15, 42, 29, 0.08);
    --shadow-hover: 0 20px 50px rgba(15, 42, 29, 0.15);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-charcoal);
    line-height: 1.7;
    background-color: var(--secondary-bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-card);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 20px;
}

h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.75rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* Page Headers */
.page-header {
    background-color: var(--primary-bg);
    color: var(--text-white);
    padding: 140px 0 80px;
    /* Account for sticky header */
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
}

.page-header h1 {
    color: var(--text-white);
}

.page-header p {
    color: var(--text-light-grey);
    font-size: 1.2rem;
}

/* Backgrounds */
.bg-light {
    background-color: var(--secondary-bg);
    color: var(--text-charcoal);
}


.bg-light h1,
.bg-light h2,
.bg-light h3 {
    color: var();
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 10px;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-bg);
    box-shadow: 0 4px 15px rgba(155, 226, 74, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(155, 226, 74, 0.5);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: var(--primary-bg);
}

/* Header & Nav */
.header {
    background-color: rgba(15, 42, 29, 0.95);
    /* Semi-transparent Primary Bg */
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-top {
    display: none;
}

/* Check if user wants this removed or integrated. Expecting cleaner look now. */

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
}

.logo i {
    color: var(--accent-color);
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: var(--text-light-grey);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.mobile-toggle {
    display: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cards & Grid */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.card,
.trust-box,
.service-card {
    background: var(--text-white);
    border-radius: var(--radius-card);
    padding: 15px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card:hover,
.trust-box:hover,
.service-card:hover {
    /* Assuming generic card usage */
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

/* Trust Box Specifics */
.trust-box {
    padding: 30px 20px;
    background: var(--text-white);
    height: 100%;
}

.trust-box i {
    color: var(--primary-bg) !important;
}

/* Override inline styles if present */
.trust-box p {
    color: var(--text-muted);
    margin: 0;
}

/* Service Cards */
.card h3,
.card h4 {
    color: var(--primary-bg);
    margin-top: 20px;
}

.card i {
    color: var(--primary-bg);
}

/* Hero Section & Page Headers */
.hero-section {
    position: relative;
    /* Dark Forest Green Gradient + Subtle Radial Pattern */
    background:
        radial-gradient(circle at 50% 50%, rgba(155, 226, 74, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #0F2A1D 0%, #1A3E2D 100%);
    padding: 140px 0 100px;
    /* Reduced top padding */
    overflow: hidden;
    color: var(--text-white);
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
}

.hero-section::before {
    /* Optional geometric pattern overlay or noise could go here */
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.02) 0px, rgba(255, 255, 255, 0.02) 1px, transparent 1px, transparent 10px);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-text {
    text-align: center;
}

/* Image styles removed as requested, keeping class for safety if reused or just removing from CSS */
.hero-image-wrapper,
.hero-image {
    display: none;
}

/* Page Header (Inner Pages) override */
.page-header {
    background: linear-gradient(135deg, #0F2A1D 0%, #163625 100%);
    position: relative;
    overflow: hidden;
    padding: 15px 0 15px;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    background: radial-gradient(circle at top right, rgba(155, 226, 74, 0.1), transparent 60%);
    pointer-events: none;
}

/* Client Logo Slider (Light Premium) */
.client-slider-section {
    padding: 60px 24px;
    background: transparent;
}

.slider-container-box {
    max-width: var(--container-width);
    margin: 0 auto;
    background: #F8FDF5;
    border-radius: 28px;
    padding: 60px 40px;
    box-shadow: 0 10px 40px rgba(15, 42, 29, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(155, 226, 74, 0.1);
}

.slider-container-box h2 {
    color: var(--primary-bg);
    margin-bottom: 50px;
    font-size: 2rem;
}

.slider-track {
    display: flex;
    gap: 80px;
    width: max-content;
    animation: scroll 60s linear infinite;
    align-items: center;
}

.slider-track:hover {
    animation-play-state: paused;
}

.client-logo {
    height: 130px;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
}

.client-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    border-radius: 0;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100% / 2));
    }
}

/* Responsive Logic for Visibility (Visual estimation based on gaps/sizes) 
   We just ensure the logical width allows 5-6 items on display.
   With 60px gap + approx 150px logo width = ~210px per item.
   1200px / 210 = ~5.7 items. Perfect for Desktop.
*/

@media (max-width: 992px) {
    .slider-container-box {
        padding: 40px 20px;
    }

    .slider-container-box h2 {
        font-size: 1.3rem;
        margin-bottom: 30px;
    }

    .client-logo {
        height: 150px;
    }
}

/* Typography Overrides */
.hero-title {
    font-size: 3.3rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 24px;
}

.highlight-green {
    color: #B6F36B;
    /* Neon/Fresh Green */
    position: relative;
    display: inline-block;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #CFE3D1;
    /* Soft Light Grey */
    margin-bottom: 40px;
    max-width: 100%;
    line-height: 1.6;
}

/* Hero Buttons */
.btn-hero-primary {
    background: linear-gradient(90deg, #9BE24A 0%, #C9F27C 100%);
    color: #0F2A1D;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(155, 226, 74, 0.25);
    border: none;
}

.btn-hero-primary:hover {
    background: linear-gradient(90deg, #8FD14F 0%, #B6E564 100%);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(155, 226, 74, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    border: 1.5px solid #9BE24A;
    color: #9BE24A;
    padding: 16px 34px;
    border-radius: 999px;
    font-weight: 600;
}

.btn-hero-secondary:hover {
    background: linear-gradient(90deg, #9BE24A 0%, #C9F27C 100%);
    color: #0F2A1D;
    border-color: transparent;
}

/* Responsive Grid */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-image {
        width: 280px;
        height: 280px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 14px 24px;
        font-size: 0.95rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
    overflow: hidden;
    padding-top: 80px;
    /* Extra padding for floating header */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 42, 29, 0.7);
    /* Dark overlay */
    z-index: 1;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Forms */
input,
select,
textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-input);
    border: 1px solid var(--border-soft);
    background-color: var(--text-white);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-charcoal);
    outline: none;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(155, 226, 74, 0.2);
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    color: var(--text-light-grey);
    padding: 100px 0 30px;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
    margin-top: 60px;
}

.footer h4 {
    color: var(--text-white);
}

.footer-links a {
    display: block;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Alignment Utilities override */
.text-center {
    text-align: center;
}

/* Responsive */
@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .page-header {
        border-radius: 0;
        padding: 120px 0 60px;
    }

    .hero-section {
        border-radius: 0;
    }

    .footer {
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .header-top {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-bg);
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        border-bottom-left-radius: 20px;
        border-bottom-right-radius: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5 {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 60px 0;
    }

    .card {
        padding: 30px;
    }
}

/* CTA Section (Highlighted) */
.cta-section {
    padding: 60px 24px;
    background: transparent;
}

.cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f0fce2 0%, #ddf5b8 100%);
    border-radius: 36px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(15, 42, 29, 0.08);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(155, 226, 74, 0.2);
}

.cta-box h2 {
    color: var(--text-charcoal);
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    min-width: 180px;
}

@media (max-width: 768px) {
    .cta-box {
        padding: 40px 24px;
        border-radius: 24px;
    }

    .cta-box h2 {
        font-size: 1.75rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* =========================================
   Visual Timeline Section (Premium)
   ========================================= */
/* =========================================
   Visual Timeline Section (Premium Staggered)
   ========================================= */
.timeline-section {
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

/* Premium Container */
.timeline-container-box {
    max-width: var(--container-width);
    margin: 0 auto;
    background: linear-gradient(180deg, #F8FDF5 0%, #ffffff 100%);
    border-radius: 40px;
    padding: 80px 40px;
    box-shadow: 0 20px 60px rgba(15, 42, 29, 0.06);
    position: relative;
    border: 1px solid rgba(155, 226, 74, 0.15);
}

.timeline-wrapper {
    position: relative;
    margin-top: 60px;
    padding: 20px 0;
}

/* The Line (Center Vertical for Desktop) */
.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg,
            rgba(155, 226, 74, 0.1) 0%,
            var(--accent-color) 20%,
            var(--accent-color) 80%,
            rgba(155, 226, 74, 0.1) 100%);
    border-radius: 4px;
    z-index: 0;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    min-height: 800px;
    /* Ensure space for staggered items */
}

/* Base Item Styles (Desktop Staggered) */
.timeline-item {
    position: relative;
    width: 46%;
    /* Slightly less than half */
    padding: 0;
    cursor: pointer;
    margin-bottom: 20px;
    clear: both;
}

/* Odd Items: Left Side */
.timeline-item:nth-child(odd) {
    align-self: flex-start;
    text-align: right;
    padding-right: 40px;
}

/* Even Items: Right Side */
.timeline-item:nth-child(even) {
    align-self: flex-end;
    text-align: left;
    padding-left: 40px;
    margin-top: -100px;
    /* Stagger effect to pull right side up slightly if needed */
}

/* Adjust top margin for first even item to start near first odd item */
.timeline-item:nth-child(2) {
    margin-top: -120px;
    /* Pulls the first right item up */
}

/* Reset margins for subsequent items to spacing out evenly vertically */
.timeline-item:nth-child(n+3) {
    margin-top: 20px;
}

.timeline-item:nth-child(even):not(:nth-child(2)) {
    margin-top: -40px;
    /* Pull subsequent right items up a bit to interleave */
}

/* Mobile/Tablet reset will handle layout shifts, for Desktop this creates Zig Zag */


/* Year Label */
.timeline-year {
    display: inline-block;
    color: var(--primary-bg);
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

/* The Dot (Centered on the line) */
.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--text-white);
    border: 4px solid #C4E89B;
    border-radius: 50%;
    position: absolute;
    top: 20px;
    /* Align with top of content approx */
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
    transition: all 0.4s ease;
    z-index: 2;
}

/* Dot Positioning for Staggered */
.timeline-item:nth-child(odd) .timeline-dot {
    right: -52px;
    /* Outside width + padding */
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -52px;
}


/* Content Card */
.timeline-content {
    background: var(--text-white);
    padding: 30px;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    opacity: 1;
    /* Always visible on desktop */
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

/* Hover Effects */
.timeline-item:hover .timeline-year {
    color: var(--accent-color);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-color);
    border-color: var(--primary-bg);
    transform: scale(1.4);
    box-shadow: 0 0 0 8px rgba(155, 226, 74, 0.2);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(15, 42, 29, 0.1);
    border-color: rgba(155, 226, 74, 0.3);
}

/* RESPONSIVE LAYOUT - TABLET (Keep Exact Previous Grid Layout) */
@media (max-width: 1100px) {
    .timeline-items {
        flex-direction: row;
        /* Restore row for grid */
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
        min-height: auto;
    }

    .timeline-line {
        display: none;
        /* Hide vertical center line */
    }

    .timeline-item {
        width: 45%;
        margin: 0;
        margin-bottom: 30px;
        text-align: center;
        padding: 0;
        align-self: auto;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: center;
        padding: 0;
        margin-top: 0;
        /* Reset desktop negative margins */
    }

    .timeline-dot {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        margin: 0 auto 20px auto;
        border: 4px solid var(--accent-color);
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: auto;
        right: auto;
    }

    .timeline-year {
        display: block;
        margin-bottom: 20px;
    }
}

/* RESPONSIVE LAYOUT - MOBILE (Keep Exact Previous Vertical Stack) */
@media (max-width: 768px) {
    .timeline-container-box {
        padding: 60px 24px;
        border-radius: 28px;
    }

    .timeline-wrapper {
        margin-top: 40px;
        padding-left: 10px;
    }

    .timeline-items {
        flex-direction: column;
        /* Vertical stack */
        gap: 0;
    }

    .timeline-item {
        width: 100%;
        margin-bottom: 0;
        padding: 0 0 40px 50px;
        /* Space for left line */
        text-align: left;
        align-items: flex-start;
        border-left: 3px solid rgba(155, 226, 74, 0.3);
        /* Mobile Line */
    }

    .timeline-item:last-child {
        border-left-color: transparent;
    }

    .timeline-dot {
        width: 24px;
        height: 24px;
        position: absolute;
        left: -13.5px;
        /* Center on 3px border */
        top: 0;
        margin: 0;
        border-width: 4px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: -13.5px;
        right: auto;
    }

    .timeline-year {
        margin-bottom: 8px;
        font-size: 1.2rem;
    }

    .timeline-content {
        padding: 20px;
        width: 100%;
    }

    .timeline-item:hover .timeline-content {
        transform: none;
    }
}

/* =========================================
   Premium Services Grid
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 60px;
}

.service-card {
    position: relative;
    height: 420px;
    /* Fixed Height */
    border-radius: 24px;
    overflow: hidden;
    background: #f0f0f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.service-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 60%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(0px);
    padding: 80px 24px 24px 24px;
    /* Top padding for gradient fade */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transform: translateY(0);
    /* Always visible */
    transition: all 0.4s ease;
}

.service-overlay h3 {
    font-size: 1.35rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.service-overlay p {
    font-size: 0.95rem;
    color: var(--text-charcoal);
    line-height: 1.5;
    margin-bottom: 0;
    opacity: 0.9;
}

.service-icon {
    position: absolute;
    top: -50px;
    /* Floating above text */
    left: 24px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(15, 42, 29, 0.2);
    margin-bottom: 15px;
    background: white;
    color: var(--primary-color);
}


/* Hover Effects (Desktop) */
@media (min-width: 1024px) {
    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 50px rgba(15, 42, 29, 0.15);
    }

    .service-card:hover img {
        transform: scale(1.1);
    }

    .service-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.98) 70%, rgba(255, 255, 255, 0) 100%);
        padding-bottom: 30px;
        /* Slight lift */
    }
}

/* Tablet (2 cols) */
@media (max-width: 1023px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .service-card {
        height: 380px;
    }
}

/* Mobile (1 col) */
@media (max-width: 767px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        height: 360px;
    }

    .service-overlay {
        background: linear-gradient(to top, rgba(255, 255, 255, 0.98) 20%, rgba(255, 255, 255, 0.9) 70%, rgba(255, 255, 255, 0) 100%);
    }

    /* Trust Highlight Mobile Stack */
    .trust-container {
        flex-direction: column;
        align-items: stretch;
        /* Full width items */
    }

    .trust-item {
        width: 100%;
        justify-content: center;
        /* Center text */
        margin-bottom: 10px;
    }
}

/* =========================================
   Trust Highlight Section
   ========================================= */
.trust-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.trust-item {
    background: white;
    padding: 20px 30px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: transform 0.3s ease;
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.trust-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* ================================
   TRUST HIGHLIGHTS – FIX
================================ */

/* Base Trust Box Style */
.trust-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.08);
}


/* ================================
   DESKTOP + TABLET (SAME VIEW)
   ≥768px → 5 boxes in one row
================================ */

@media (min-width: 768px) {
    .grid-5 {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 20px !important;
        text-align: center;
    }

    .trust-box {
        width: 100%;
        max-width: none;
    }
}

/* ================================
   MOBILE ONLY FIX
   ≤767px
================================ */

@media (max-width: 767px) {
    .grid-5 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 30px !important;
        justify-items: center;
    }

    .trust-box {
        width: 100%;
        max-width: 160px;
    }

    /* Center last (5th) trust box */
    .grid-5 .trust-box:nth-child(5) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* ================================
   VERY SMALL PHONES (OPTIONAL)
================================ */

@media (max-width: 420px) {
    .trust-box {
        max-width: 150px;
        padding: 18px 10px;
    }

    .trust-box p {
        font-size: 0.85rem;
    }
}

/* =========================================
  PDF View Modal - No Download
  ========================================= */
.pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.pdf-modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.pdf-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1;
}

.pdf-close:hover {
    color: var(--primary-color);
}

#pdf-container {
    flex: 1;
    width: 100%;
    height: 100%;
    background: #f4f4f4;
    border-radius: 8px;
    overflow: hidden;
}

#pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.pdf-fallback {
    display: none;
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Hide download & print buttons in PDF.js */
#download,
#print,
#secondaryDownload,
#secondaryPrint {
    display: none !important;
}

/* Lightbox CSS (Restored) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
}

.lightbox-caption {
    color: white;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
}

.gallery-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-card);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 42, 29, 0.85);
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}