/* --- HOME PAGE SPECIFIC CSS --- */

/* Hero Section Background & Layout */
.hero-section {
    /* Calculates screen height minus approx header height so it fits perfectly on screen */
    min-height: calc(100vh - 85px); 
    background-image: url('../images/hero/11.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.58) 0%,
        rgba(0, 0, 0, 0.48) 22%,
        rgba(0, 0, 0, 0.32) 40%,
        rgba(0, 0, 0, 0.16) 52%,
        rgba(0, 0, 0, 0) 72%);
    pointer-events: none;
    z-index: 0;
}

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

.hero-copy {
    text-align: left;
}

@media (min-width: 992px) {
    .hero-section::before {
        background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.64) 0%,
            rgba(0, 0, 0, 0.56) 14%,
            rgba(0, 0, 0, 0.42) 28%,
            rgba(0, 0, 0, 0.26) 40%,
            rgba(0, 0, 0, 0.12) 50%,
            rgba(0, 0, 0, 0) 58%);
        pointer-events: none;
        z-index: 0;
    }
}

/* Hero Typography */
.hero-title {
    font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 64px;
    /* text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.4);  */
}

/* Keep the hero title locked to exactly two lines */
.hero-title-line {
    display: block;
    white-space: nowrap;
}

.hero-title-mobile {
    display: inline-block;
    text-align: left;
}

.hero-title-mobile-line {
    display: block;
    white-space: nowrap;
}

/* Admin-custom titles may wrap instead of forcing a single locked line */
.hero-title-custom .hero-title-line,
.hero-title-custom .hero-title-mobile-line {
    white-space: normal;
}

/* Green gradient text for the highlighted phrase */
.hero-gradient-text {
    position: relative;
    display: inline-block;
    background:#40e703;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    padding-bottom: 0.12em;
}

/* .hero-gradient-text::after {
    content: '';
    position: absolute;
    left: -4%;
    bottom: -0.22em;
    width: 108%;
    height: 10px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M0,15 C50,0 150,0 200,15' fill='none' stroke='%2320b038' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: 100% 100%;
    z-index: -1;
} */

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    opacity: 0.95;
    /* text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.5); */
    max-width: 95%;
}

.hero-segment-line {
    font-family: 'Poppins', sans-serif;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.96);
    max-width: 90%;
}

.hero-segment-item {
    display: inline-block;
}

.hero-segment-residential {
    color: #fff;
}

.hero-segment-commercial {
    color: #fff;
}

.hero-segment-housing {
    color: #fff;
}

.hero-segment-separator {
    color: #40e703;
    font-weight: 400;
}

/* Mobile Responsive Adjustments for Massive Fonts */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 40px;
    }
    .hero-section .row {
        transform: translateY(18px);
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        /* min-height: 600px !important; */
        background-position: 85% center; 
    }
    .hero-title {
        font-size: 54px; /* Scaled down for tablets */
        line-height: 64px;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        min-height: 94svh;
        background-position: right left; 
        align-items: flex-start;
        padding: 24px 0 28px;
    }
    .hero-section::before {
        background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.60) 0%,
            rgba(0, 0, 0, 0.52) 18%,
            rgba(0, 0, 0, 0.38) 34%,
            rgba(0, 0, 0, 0) 48%,
            rgba(0, 0, 0, 0) 62%,
            rgba(0, 0, 0, 0) 78%);
    }
    .hero-title {
        font-size: 40px;
        line-height: 1.08;
        text-align: left;
        text-shadow: 0px 3px 12px rgba(0, 0, 0, 0.35);
    }
    .hero-subtitle {
        font-size: 1.05rem;
    }
    .hero-segment-line {
        font-size: 0.72rem;
        line-height: 1.4;
        gap: 0.32rem;
    }
    .hero-title-mobile {
        font-size: 30px;
        line-height: 1.08;
    }
    .hero-title-mobile-line {
        white-space: nowrap;
    }
    .hero-section .col-12 {
        padding-top: 0 !important;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    .hero-section .btn {
        margin-left: 0;
        margin-right: auto;
    }
    .hero-gradient-text::after {
        height: 8px;
        bottom: -0.18em;
    }
    .hero-subtitle {
        max-width: 65% !important;
    }
}

.desktop-only {
    display: block;
}

@media (max-width: 767px) {
    .desktop-only {
        display: none !important;
    }
    .hero-mb-btn {
        font-size: 14px !important;
        padding: 8px !important;

    }
}




/* --- TRUST STRIP SECTION --- */
.trust-strip {
    background-color: #ffffff;
    padding: 50px 100px 50px; /* Matches the exact height and breathing room */
    overflow: hidden;
    position: relative;
}

.trust-track {
    display: flex;
    justify-content: center;
    align-items: center;
}

.trust-group {
    display: flex;
    align-items: center;
    gap: 55px; /* Wide spacing for desktop */
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.trust-icon {
    height: 90px; /* Scaled perfectly to match reference */
    width: auto;
    object-fit: contain;
}

.trust-text {
    /* font-family: 'Poppins', sans-serif; */
    font-size: 19px;
    font-weight: 500;
    color: #0c0e1b; /* Deep navy text */
    white-space: nowrap;
}

/* --- MOBILE MARQUEE ANIMATION --- */
@media (max-width: 767.98px) {
    .trust-strip {
        padding: 30px 0;
    }
    .trust-track {
        justify-content: flex-start;
        width: max-content;
        /* The animation takes 12s to do one full loop, linear for smooth constant speed */
        animation: marqueeScroll 20s linear infinite; 
    }
    .trust-group {
        gap: 40px;
        padding-right: 40px; /* Gap between the end of Group 1 and start of Group 2 */
    }
    .trust-icon {
        height: 50px; /* Slightly smaller for mobile */
    }
    .trust-text {
        font-size: 16px;
    }
}

/* Keyframes for the infinite scroll */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Shifts exactly 50% of the track (which equals exactly 1 full trust-group width) */
        transform: translateX(-50%); 
    }
}



/* --- GET SOLAR FOR SECTION --- */
.get-solar-section {
    background-color: #ffffff;
}

.section-title {
    font-size: 36px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #0c0e1b;
    text-align: center; /* Centered on desktop */
}

/* Card Styling */
.solar-card {
    padding: 15px 10px;
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

/* .solar-card:hover {
    background-color: #f8f9fa; 
} */

/* Icons */
.solar-icon-box {
    flex-shrink: 0;
    width: 60px; /* Adjust based on your actual 3D icon sizes */
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solar-img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Typography for Cards */
.solar-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1a1a1a;
}

.solar-chevron {
    font-size: 13px;
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

/* Hover effect: slide the arrow */
.solar-card:hover .solar-chevron {
    transform: translateX(4px);
    color: #20b038; /* Turns Vanguard green */
}

.solar-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #4a4a52;
    line-height: 1.5;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .section-title {
        text-align: left; /* Aligns left on mobile/tablet like the reference */
        font-size: 28px;
    }
    
    .solar-card-wrapper {
        border-bottom: 1px solid #eef0f2; /* Subtle divider lines */
    }
    
    /* Remove border from the last item */
    .solar-card-wrapper:last-child {
        border-bottom: none;
    }
    
    .solar-card {
        padding: 24px 0; /* More vertical breathing room between dividers */
    }
    
    /* Remove the hover background on mobile to keep it looking like a native list */
    .solar-card:hover {
        background-color: transparent; 
    }
}




/* --- PROCESS / TRUST BAR SECTION --- */
.process-section {
    background-color: #ffffff; 
}

/* The dark bordered box container */
.process-container {
    background-color: #0c0e1b;
    border-radius: 8px; 
    /* Adding an actual thin 1px CSS border just to make the edge crisp */
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-headline {
    font-family: 'DM Sans', sans-serif;
    color: #ffffff;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.15;
}

.process-card {
    padding-right: 25px; 
}

.process-icon {
    height: 100px;
    width: 100px; 
    object-fit: contain;
    margin-bottom: 10px;
    flex-shrink: 0; 
}

.process-step-title {
    font-family: 'DM Sans', sans-serif;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.process-text {
    font-family: 'Poppins', sans-serif;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- DESKTOP FADING DIVIDERS (1px crisp lines) --- */
@media (min-width: 992px) {
    .process-card-wrapper {
        padding-left: 25px;
        position: relative;
    }
    
    /* Using pseudo-element to force an exact 1px width gradient line */
    .process-card-wrapper::before {
        content: '';
        position: absolute;
        left: 0;
        top: 5%;
        bottom: 5%;
        width: 1px; /* The absolute thinnest line */
        background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    }
    
    /* Hide the line on the very first item */
    .process-card-wrapper:first-child::before {
        display: none;
    }
    .process-card-wrapper:first-child {
        padding-left: 0;
    }
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .process-headline {
        font-size: 38px;
    }
    
    .process-card-wrapper {
        padding-bottom: 30px;
        margin-bottom: 30px;
        position: relative;
    }
    
    /* Mobile horizontal fading lines */
    .process-card-wrapper::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 5%;
        right: 5%;
        height: 1px; /* The absolute thinnest line */
        background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
    }
    
    .process-card-wrapper:last-child::after {
        display: none;
    }
    .process-card-wrapper:last-child {
        padding-bottom: 0;
        margin-bottom: 0;
    }
    
    .process-icon {
        margin-bottom: 0; 
        height: 80px; 
        width: 80px;
    }
    
    .process-card {
        padding-right: 0; 
    }
}

@media (max-width: 767.98px) {
    .process-container {
        border-radius: 8px;
        padding: 30px 20px !important; 
    }
    .process-headline {
        font-size: 32px;
    }
}
/* --- TIMELINE DAY BADGES --- */
.process-day-badge {
    display: inline-block;
    background-color: rgba(32, 176, 56, 0.15); /* Soft transparent Vanguard green */
    color: #20b038; /* Bright Vanguard green text */
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}






/* --- WE HANDLE EVERYTHING SECTION --- */
.handle-section {
    background-color: #f4f7f9; /* Very soft blue-grey background */
}

/* Split screen image styling (Desktop) */
.handle-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 50%;
    background-image: url('../images/home/1.png');
    background-size: cover;
    background-position: center;
    /* border-radius: 24px 0 0 24px; */
}

.handle-headline {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

/* Timeline Layout */
.timeline-container {
    margin-top: 2rem;
}

.timeline-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 35px;
    position: relative;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

/* The vertical dashed line */
.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 20px; /* Centers the line under the 40px icon */
    top: 45px;
    bottom: -25px;
    width: 1px;
    border-left: 1px dashed #ced4da;
}

/* Custom Hand-Drawn Scribble Icon */
.step-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* This creates the overlapping scribble rings! */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M30,5 C45,6 55,18 53,35 C51,50 35,56 20,48 C7,40 4,22 15,10 C25,1 45,5 50,20 C54,32 45,45 30,50 C18,53 10,42 12,30' fill='none' stroke='%2320b038' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    /* background-color: #f4f7f9; */
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #1a1a1a;
    position: relative;
    z-index: 2;
}

.step-content {
    padding-left: 20px;
    padding-top: 6px;
}

.step-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #2c2c33;
    margin-bottom: 8px;
}

.step-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #55555c;
    line-height: 1.6;
    margin-bottom: 0;
}

/* --- RESPONSIVE TWEAKS --- */
@media (min-width: 992px) {
    .py-lg-6 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

@media (max-width: 991.98px) {
    .handle-headline {
        font-size: 32px;
    }
    .step-title {
        font-size: 18px;
    }
    .timeline-step:not(:last-child)::after {
        bottom: -15px;
    }
}





/* --- REAL-TIME MONITORING APP SECTION --- */
.app-section {
    position: relative;
    background-image: url('../images/home/bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Adding a subtle min-height ensures it looks balanced even if the text is short */
    min-height: 500px; 
    display: flex;
    align-items: center;
}

.app-headline {
    font-family: 'DM Sans', sans-serif;
    color: #1a1a1a; /* Dark sleek color matching the reference */
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.app-subline {
    font-family: 'Poppins', sans-serif;
    color: #4a4a52;
    font-size: 18px;
    line-height: 1.6;
    max-width: 90%;
}

/* App Badges */
.store-badge {
    height: 48px; /* Standard visible height for app badges */
    width: auto;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border-radius: 8px; /* Matches the badge rounding */
}

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

/* App Mockup Image Styling */
.app-mockup-wrapper {
    position: relative;
    /* Adds a soft floating animation to the phone mockup */
    animation: float 6s ease-in-out infinite; 
}

.app-mockup-img {
    max-width: 100%;
    height: auto;
    /* Scales it nicely on desktop so it doesn't overwhelm the container */
    max-height: 500px; 
    object-fit: contain;
}

/* Floating Animation */
/* @keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
} */

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .app-section {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .app-headline {
        font-size: 36px;
    }
    .app-subline {
        font-size: 16px;
        max-width: 100%;
    }
    .store-badge {
        height: 42px; /* Slightly smaller on mobile */
    }
    .app-mockup-wrapper {
        margin-top: 2rem;
        /* Disable float on mobile to save battery/resources and keep layout stable */
        animation: none; 
    }
    .app-mockup-img {
        max-height: 500px;
    }
}

@media (max-width: 767.98px) {
    .app-headline {
        font-size: 32px;
    }
}




/* --- CALCULATE YOUR SAVINGS SECTION --- */
.calculator-section {
    background-color: #f2fcf7; /* Soft mint/teal background matching reference */
    overflow: hidden;
}

/* Concentric Circles & Icon Background */
.calc-bg-pattern {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    width: 300px;
    height: 300px;
    background-image: 
        /* The calculator SVG icon */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a7e6c9'%3E%3Cpath d='M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 14H7v-2h10v2zm0-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E"),
        /* The concentric circles */
        radial-gradient(circle, transparent 40%, rgba(167, 230, 201, 0.4) 41%, transparent 42%),
        radial-gradient(circle, transparent 55%, rgba(167, 230, 201, 0.3) 56%, transparent 57%),
        radial-gradient(circle, transparent 70%, rgba(167, 230, 201, 0.2) 71%, transparent 72%);
    background-size: 60px, 100%, 100%, 100%;
    background-position: center, center, center, center;
    background-repeat: no-repeat;
    z-index: 1;
    pointer-events: none;
}

.calc-headline {
    font-family: 'DM Sans', sans-serif;
    color: #0c0e1b;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
}

.calc-subline {
    font-family: 'Poppins', sans-serif;
    color: #4a4a52;
    font-size: 16px;
    line-height: 1.6;
}

/* Form Styling */
.calc-input {
    border: 1px solid #55f838; /* Soft blue border from reference */
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    box-shadow: none;
}
.calc-input:focus {
    border-color: #20b038;
    box-shadow: 0 0 0 0.25rem rgba(32, 176, 56, 0.15);
}

.calc-label {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
}
.calc-value {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #0c0e1b;
}

/* --- CUSTOM TOOLTIP STYLING --- */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}
.info-tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10;
}
/* The tiny downward arrow on the tooltip */
.info-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}
/* Show tooltip on hover */
.info-tooltip-wrapper:hover .info-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: 130%; /* Adds a slight slide-up animation */
}

/* --- CUSTOM RANGE SLIDER (With dynamic fill) --- */
.custom-calc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 36px; 
    /* CSS Variable handles the dynamic green fill */
    background: linear-gradient(to right, #008751 var(--slider-fill, 10%), #c6f6d5 var(--slider-fill, 10%));
    border-radius: 8px;
    outline: none;
    transition: opacity .2s;
    margin: 0; /* Resets any default spacing */
    padding: 0;
}

/* 1. HIDE DEFAULT TRACKS (Removes the white horizontal line) */
.custom-calc-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 36px;
    background: transparent; /* Forces the default thin line to be invisible */
    border: none;
}

.custom-calc-slider::-moz-range-track {
    width: 100%;
    height: 36px;
    background: transparent;
    border: none;
}

/* 2. FIX THUMB ALIGNMENT */
.custom-calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 44px;
    height: 36px;
    margin-top: 0; /* Forces perfect vertical alignment with the track */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* Creates the "||" drag icon on the thumb */
    background-image: 
        linear-gradient(to right, #a0aec0 2px, transparent 2px),
        linear-gradient(to right, #a0aec0 2px, transparent 2px);
    background-size: 2px 14px;
    background-position: 16px center, 24px center;
    background-repeat: no-repeat;
}

.custom-calc-slider::-moz-range-thumb {
    width: 44px;
    height: 36px;
    margin-top: 0; /* Forces perfect vertical alignment */
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    /* Adding the drag icon for Firefox users too! */
    background-image: 
        linear-gradient(to right, #a0aec0 2px, transparent 2px),
        linear-gradient(to right, #a0aec0 2px, transparent 2px);
    background-size: 2px 14px;
    background-position: 16px center, 24px center;
    background-repeat: no-repeat;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .calc-headline {
        font-size: 32px;
    }
    .calc-bg-pattern {
        /* Move pattern to top right on mobile */
        top: -20px;
        left: auto;
        right: -50px;
        transform: translateY(0);
        width: 200px;
        height: 200px;
        background-size: 40px, 100%, 100%, 100%;
    }
    .calc-text-wrapper {
        padding-top: 2rem;
    }
}



/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    background-color: #ffffff;
}

.testi-headline {
    font-family: 'DM Sans', sans-serif;
    color: #0c0e1b;
    font-size: 42px;
    font-weight: 700;
}

/* Base Marquee Setup */
.testimonial-track-wrapper {
    position: relative;
    width: 100%;
}

.testimonial-track {
    display: flex;
    align-items: center;
}

.testi-group {
    display: flex;
    gap: 24px; /* Space between cards */
    padding-right: 24px; /* Gap before the second cloned group starts */
}

/* The Individual Card */
.testi-card {
    position: relative;
    width: 350px;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* Background Image */
.testi-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gradient overlay so the default text is readable */
.testi-card::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* Default Bottom Info */
.testi-info-default {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 24px;
    z-index: 2;
    color: #ffffff;
}

.testi-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.testi-loc {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
}

/* The Sliding Quote Overlay */
.testi-quote-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background-color: #0c0e1b; /* Dark navy background */
    color: #ffffff;
    padding: 30px 24px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.quote-text {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,0.9);
    margin-bottom: 20px;
}

.quote-divider {
    border-color: rgba(255,255,255,0.15);
    margin: 0 0 16px 0;
    opacity: 1;
}

.quote-name {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}

.quote-loc {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* --- DESKTOP ANIMATIONS (Hover) --- */
@media (min-width: 992px) {
    .testimonial-track {
        width: max-content;
        /* Infinite scrolling animation */
        animation: marqueeScrollTesti 25s linear infinite; 
    }
    
    /* Pause the whole track when hovering over ANY part of it */
    .testimonial-track:hover {
        animation-play-state: paused;
    }
    
    /* Triggers the overlay and image zoom on Desktop Hover */
    .testi-card:hover .testi-quote-overlay {
        transform: translateY(0);
    }
    .testi-card:hover .testi-bg {
        transform: scale(1.08); /* Slow, smooth zoom */
    }
}

/* Keyframes for the marquee */
@keyframes marqueeScrollTesti {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- MOBILE ANIMATIONS (Swipe & Tap) --- */
@media (max-width: 991.98px) {
    .testi-headline {
        font-size: 32px;
    }
    
    /* Convert track into a swipeable slider */
    .testimonial-track-wrapper {
        padding-left: 15px; /* Adds a bit of padding so first card isn't touching edge */
    }
    
    .testimonial-track {
        overflow-x: auto;
        scroll-snap-type: x mandatory; /* Snaps cards into place */
        -webkit-overflow-scrolling: touch;
        padding-bottom: 30px; /* Space for scroll shadow */
        gap: 16px;
    }
    
    /* Hide the scrollbar for a cleaner look */
    .testimonial-track::-webkit-scrollbar {
        display: none; 
    }
    
    .testi-group {
        gap: 16px;
        padding-right: 16px; 
    }
    
    .testi-card {
        width: 80vw; /* Takes up 80% of screen so the next card peeks in! */
        max-width: 320px;
        scroll-snap-align: center; 
    }

    /* Triggers the overlay and image zoom on Mobile Tap (.show-quote class toggled via JS) */
    .testi-card.show-quote .testi-quote-overlay {
        transform: translateY(0);
    }
    .testi-card.show-quote .testi-bg {
        transform: scale(1.08);
    }
}

/* --- MOBILE TESTIMONIAL PAGINATION DOTS --- */
.testi-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.testi-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e2e8f0; /* Light grey */
    transition: all 0.3s ease;
}

.testi-dot.active {
    width: 24px; /* Elongated pill shape for active dot */
    border-radius: 4px;
    background-color: #0c0e1b; /* Dark navy */
}







/* --- FAQ SECTION --- */
.faq-section {
    background-color: #eef1f5; /* Light soft grey matching Arkahub */
}

.faq-headline {
    font-family: 'DM Sans', sans-serif;
    color: #0c0e1b;
    font-size: 38px;
    font-weight: 600;
}

/* FAQ Tabs (Pill Style) */
.faq-tabs {
    gap: 12px;
}
.faq-tabs .nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4a4a52;
    background-color: transparent;
    border: 1px solid #ced4da;
    border-radius: 50px; /* Pill shape */
    padding: 8px 24px;
    transition: all 0.3s ease;
}
.faq-tabs .nav-link:hover {
    border-color: #0c0e1b;
    color: #0c0e1b;
}
.faq-tabs .nav-link.active {
    background-color: #0c0e1b;
    border-color: #0c0e1b;
    color: #ffffff;
}

/* Custom Accordion Styling */
.vanguard-accordion .accordion-item {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08); /* Clean thin divider */
    border-radius: 0;
}
.vanguard-accordion .accordion-item:last-child {
    border-bottom: none;
}

.vanguard-accordion .accordion-header {
    margin: 0;
}

/* Hide Bootstrap's default accordion arrow */
.vanguard-accordion .accordion-button::after {
    display: none; 
}

.vanguard-accordion .accordion-button {
    background-color: transparent !important;
    color: #0c0e1b;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 24px 0;
    box-shadow: none !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom FontAwesome Chevron Icon */
.vanguard-accordion .faq-icon {
    font-size: 14px;
    color: #0c0e1b;
    transition: transform 0.3s ease;
}
/* Rotates arrow when accordion is open */
.vanguard-accordion .accordion-button:not(.collapsed) .faq-icon {
    transform: rotate(180deg);
}

.vanguard-accordion .accordion-body {
    padding: 0 0 24px 0;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.6;
}

.vanguard-accordion .accordion-body ul {
    margin-top: 10px;
    margin-bottom: 0;
    padding-left: 20px;
}
.vanguard-accordion .accordion-body ul li {
    margin-bottom: 6px;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .faq-headline {
        font-size: 32px;
        text-align: center;
    }
    
    /* Make tabs scrollable horizontally on mobile if they overflow */
    .faq-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }
    .faq-tabs::-webkit-scrollbar {
        display: none;
    }
    .faq-tabs .nav-link {
        white-space: nowrap;
    }
    
    .vanguard-accordion .accordion-button {
        padding: 20px 0;
    }
}




/* --- BLOGS SECTION --- */
.blogs-section {
    background-color: #ffffff;
}

.blogs-headline {
    font-family: 'DM Sans', sans-serif;
    color: #0c0e1b;
    font-size: 38px;
    font-weight: 700;
}

/* Swiper Slide Equal Height Fix */
.blogs-swiper .swiper-slide {
    height: auto; /* Forces slides to stretch to the height of the tallest slide */
}

/* Card Styling */
.blog-card {
    background-color: #f5f7fa; 
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.blog-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    overflow: hidden;
    background-color: #e8edf3;
}

.blog-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img {
    transform: scale(1.05);
}

.blog-img-empty {
    width: 100%;
    height: 100%;
    background: #e2e8f0;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0c0e1b;
    line-height: 1.4;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-author {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #4a4a52;
}

/* --- SWIPER CONTROLS STYLING --- */
.blog-pagination .swiper-pagination-bullet {
    background-color: #cbd5e1;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}
.blog-pagination .swiper-pagination-bullet-active {
    background-color: #0c0e1b;
}

/* Custom Circular Navigation Arrows */
.blog-nav-btn {
    position: static; /* Removes absolute positioning from default swiper */
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background-color: #ffffff;
    margin: 0;
    transition: all 0.3s ease;
}
.blog-nav-btn::after {
    font-size: 14px; /* Makes the default arrow icon smaller */
    color: #0c0e1b;
    font-weight: bold;
}
.blog-nav-btn:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e1;
}
.blog-nav-btn.swiper-button-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .blogs-headline {
        font-size: 32px;
    }
}

@media (max-width: 767.98px) {
    .blog-img-wrapper {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .blog-content {
        padding: 12px; 
    }
    .blog-title {
        font-size: 14px; 
        -webkit-line-clamp: 3; 
    }
    .blog-author {
        font-size: 12px;
    }
}

/* --- HOME SECTION HEADING TYPOGRAPHY OVERRIDES --- */
.section-title,
.process-headline,
.handle-headline,
.app-headline,
.calc-headline,
.testi-headline,
.faq-headline,
.blogs-headline {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    font-weight: 700 !important;
}

@media (max-width: 767.98px) {
    .section-title,
    .process-headline,
    .handle-headline,
    .app-headline,
    .calc-headline,
    .testi-headline,
    .faq-headline,
    .blogs-headline {
        font-size: 28px;
        font-family: 'Poppins', sans-serif;
        font-weight: 700 !important;
    }
}



/* --- READ MORE / SEO ACCORDION SECTION --- */
.read-more-section {
    background-color: #ffffff;
}

/* Customizing the Accordion Button */
.vanguard-read-more-accordion .accordion-button {
    background-color: transparent !important;
    color: #0c0e1b;
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    box-shadow: none !important;
}

/* The Quote Box */
.seo-quote-box {
    background-color: #f8fafc;
    border-radius: 16px;
    max-width: 1200px;
}

.seo-quote-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #4a4a52;
    line-height: 1.6;
}

/* Typography for SEO Text Block */
.seo-content p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.6;
    margin-bottom: 16px;
}

.seo-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0c0e1b;
    margin-top: 40px;
    margin-bottom: 16px;
}

.seo-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0c0e1b;
    margin-top: 30px;
    margin-bottom: 12px;
}

.seo-content ul {
    margin-bottom: 24px;
    padding-left: 20px;
}

.seo-content ul li {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #4a4a52;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Mobile responsive adjustments */
@media (max-width: 767.98px) {
    .vanguard-read-more-accordion .accordion-button {
        font-size: 20px;
    }
    .seo-quote-text {
        font-size: 16px;
    }
    .seo-content h3 {
        font-size: 20px;
        margin-top: 30px;
    }
    .seo-content h4 {
        font-size: 16px;
    }
}











/* --- RESIDENTIAL PROJECTS SLIDER --- */
.cursor-pointer { cursor: pointer; }

/* Swiper Slides Fix */
.res-projects-swiper .swiper-slide {
    height: auto;
}
.res-projects-swiper .testi-card {
    width: 100%; /* Overrides the old 320px fixed width */
}

/* Slider Controls */
.res-project-pagination .swiper-pagination-bullet {
    background-color: #cbd5e1;
    opacity: 1;
    width: 8px; height: 8px;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}
.res-project-pagination .swiper-pagination-bullet-active {
    background-color: #0c0e1b;
}
.res-project-nav-btn {
    position: static; 
    width: 44px; height: 44px;
    border: 1px solid #e2e8f0; border-radius: 50%;
    background-color: #ffffff; color: #0c0e1b;
    margin: 0; transition: all 0.3s ease;
}
.res-project-nav-btn::after { font-size: 14px; font-weight: bold; }
.res-project-nav-btn:hover { background-color: #f8fafc; border-color: #cbd5e1; }
.res-project-nav-btn.swiper-button-disabled { opacity: 0.4; cursor: not-allowed; }

/* --- PROJECT DETAILS MODAL --- */
.project-details-modal-dialog {
    max-width: 800px;
    width: calc(100% - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    margin: 0.75rem auto;
}

.project-details-modal-dialog .modal-content {
    max-height: calc(100dvh - 1.5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.project-details-modal-dialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-modal-layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    max-height: calc(100dvh - 1.5rem);
    align-items: stretch;
}

.project-modal-left {
    background-color: #f8fafc;
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.project-modal-left .modal-quote-box {
    min-height: 0;
}

.project-modal-right {
    min-height: 0;
    max-height: 100%;
    overflow: hidden;
}

.project-modal-header {
    padding-right: 2.75rem; /* clear absolute close button */
}

.modal-proj-title {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: #0c0e1b;
}

.modal-data-box {
    background-color: #f8fafc;
    border-radius: 8px;
    padding: 12px 16px;
    border: 1px solid #f1f5f9;
}

.modal-list-data li {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    border-bottom: 1px dashed #e2e8f0;
    padding-bottom: 8px;
}
.modal-list-data li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-quote-box {
    border-left-color: #1e3a8a !important; /* Vanguard Navy accent border */
}

.modal-quote-text {
    font-size: 14px;
}

/* Image Swiper inside Modal — 1:1 square */
.modal-img-pagination .swiper-pagination-bullet,
.b2b-modal-img-pagination .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.5;
}
.modal-img-pagination .swiper-pagination-bullet-active,
.b2b-modal-img-pagination .swiper-pagination-bullet-active {
    opacity: 1;
}

.modal-img-swiper,
.b2b-modal-img-swiper,
.project-modal-swiper {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto !important;
    overflow: hidden;
    flex-shrink: 0;
}

.modal-img-swiper .swiper-wrapper,
.b2b-modal-img-swiper .swiper-wrapper,
.project-modal-swiper .swiper-wrapper,
.modal-img-swiper .swiper-slide,
.b2b-modal-img-swiper .swiper-slide,
.project-modal-swiper .swiper-slide {
    height: 100% !important;
}

.modal-img-swiper .swiper-slide img,
.b2b-modal-img-swiper .swiper-slide img,
.project-modal-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

/* Desktop: fit entire modal in one viewport — no scroll */
@media (min-width: 992px) {
    .project-modal-left.col-lg-5 {
        flex: 0 0 380px;
        width: 380px;
        max-width: 380px;
    }

    .project-modal-right.col-lg-7 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
    }

    .modal-quote-text {
        font-size: clamp(16px, 2.4vh, 24px);
        line-height: 1.35;
        margin-bottom: 0.35rem !important;
    }

    .project-modal-swiper {
        width: min(100%, calc(100dvh - 13rem));
        max-width: 100%;
        max-height: calc(100dvh - 13rem);
    }

    .project-modal-left .modal-quote-box {
        margin: 0.75rem !important;
        padding: 0.75rem 0.9rem !important;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .project-modal-right {
        padding: 0.9rem 1.15rem !important;
    }

    .project-modal-right .mb-4 {
        margin-bottom: 0.65rem !important;
    }

    .project-modal-right .row.g-3 {
        --bs-gutter-x: 0.65rem;
        --bs-gutter-y: 0.65rem;
    }

    .project-modal-right .modal-data-box {
        padding: 0.45rem 0.7rem;
    }

    .project-modal-right .modal-proj-title {
        font-size: 1.2rem;
        line-height: 1.25;
    }

    .project-modal-right .fs-5 {
        font-size: 1rem !important;
        line-height: 1.2;
    }

    .project-modal-right .bill-box {
        padding: 0.45rem 0.7rem !important;
    }

    .project-modal-right .modal-list-data {
        margin-bottom: 0.65rem !important;
    }

    .project-modal-right .modal-list-data li {
        margin-bottom: 0.25rem !important;
        padding-bottom: 0.3rem;
        font-size: 13px;
    }

    .project-modal-right .btn-gradient {
        padding-top: 0.6rem !important;
        padding-bottom: 0.6rem !important;
        flex-shrink: 0;
    }
}

@media (max-width: 991.98px) {
    .project-details-modal-dialog {
        max-width: 520px;
        max-height: calc(100dvh - 1rem);
    }

    .project-details-modal-dialog .modal-content,
    .project-details-modal-dialog .modal-body {
        max-height: calc(100dvh - 1rem);
        overflow-y: auto;
    }

    .project-modal-layout {
        max-height: none;
        height: auto;
    }
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    /* Auto-show quote on mobile since hover doesn't exist */
    .res-projects-swiper .testi-quote-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(12, 14, 27, 0.95) 0%, rgba(12, 14, 27, 0.3) 60%, rgba(12, 14, 27, 0) 100%);
        padding-top: 60px;
    }
    .res-projects-swiper .testi-info-default {
        display: none; 
    }
}
