:root {
    --primary-color: #0c2340;   
    --secondary-color: #707070; 
    --accent-color: #8b1d1d;    
    --text-dark: #1e272e;       
    --text-light: #ffffff;      
    --bg-muted: #f5f6f8;        
    --border-color: #d2d7df;     
    --mid-color: #999999;   
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--text-light);
/* Stormy gradient: Darker at the top, lighter at the bottom */
    background: linear-gradient(
        180deg, 
        rgba(12, 35, 64, 1) 0%,   /* Top: Faint hint of Primary blue/gray */
        rgba(255, 255, 255, 0.9) 60%, /* Middle: White transition */
        rgba(245, 246, 248, 1) 100%   /* Bottom: Light muted gray */
    );
    background-attachment: fixed;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Common Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

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

.whitetext{
    text-align: center;
    color: var(--text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 12px 28px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn:hover {
    background-color: #5c1313;
}

/* Animation rule for the hero CTA button */
.btn-slide-in {
    opacity: 0; /* Starts invisible so it doesn't flash before animating */
    animation: slideInRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.8s; /* Slight delay so it moves after the initial page paint */
}

/* Keyframe definition for the clean right-to-left slide */
@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(100px); /* Starts 100px out to the right */
    }
    100% {
        opacity: 1;
        transform: translateX(0); /* Snaps perfectly to its original layout spot */
    }
}

/* ==========================================
   Controlled Grid: Forces 4 -> 2 -> 1
   ========================================== */

.grid-3 {
    display: grid;
    /* Desktop: 4 columns across */
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* Tablet/Desktop Narrow: Force exactly 2 columns */
/* This triggers when the screen is narrow enough that 4 columns are too cramped */
@media (max-width: 1100px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: Force exactly 1 column */
@media (max-width: 600px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Navigation Architecture */
header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 5px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;      /* Vertically centers everything inside */
    gap: 15px;                /* Adds a clean space between the logo image and text */
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 1px;
}

.logoimg {
    height: 80px;
    border: 2px solid var(--accent-color); /* Combines width, style, and color */
    padding: 2px; /* Optional: adds a crisp gap between the logo art and the border */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

nav a:hover {
    color: var(--accent-color);
}

/* Custom Menu Toggle (House Shape Silhouette) */
.menu-toggle {
    display: none; /* Hidden on desktop viewports */
    width: 44px;
    height: 44px;
    position: relative;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}

.roof-bar {
    position: absolute;
    height: 4px;
    background-color: var(--text-light); /* Changed to white to match your header text theme */
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.bar-chimney { 
    width: 4px; 
    height: 10px; 
    transform: translate(-10px, -15px); 
} 
.bar-left-slope { 
    width: 24px; 
    transform: translate(-9px, -8px) rotate(-38deg); 
} 
.bar-right-slope { 
    width: 24px; 
    transform: translate(9px, -8px) rotate(38deg); 
} 
.bar-horizontal-1 { 
    width: 38px; 
    transform: translateY(6px); 
} 
.bar-horizontal-2 { 
    width: 38px; 
    transform: translateY(16px); 
}

/* Open State Transforms to an 'X' */
.menu-toggle.is-active .bar-chimney { 
    opacity: 0; 
    transform: translate(-10px, -25px) scale(0); 
}
.menu-toggle.is-active .bar-left-slope { 
    width: 34px; 
    transform: rotate(45deg); 
}
.menu-toggle.is-active .bar-right-slope { 
    width: 34px; 
    transform: rotate(-45deg); 
}
.menu-toggle.is-active .bar-horizontal-1,
.menu-toggle.is-active .bar-horizontal-2 { 
    opacity: 0; 
    transform: scaleX(0); 
}

/* Components & Inner Sections */

/* Fix for the Main Content Form Section layout *//* Update this block in cnc-styles_2.css */
.split-layout {
    display: flex;
    gap: 40px;
    align-items: stretch; /* This forces columns to match the tallest element (the form) */
}

.info-column {
    flex: 1;
    display: flex; /* Necessary to allow children to stretch */
    flex-direction: column; /* Keeps content vertical */
}

.form-column {
    flex: 1;
}

/* Ensure the video banner stretches to fill the available height in the info-column */
.emergency-banner.video-banner {
    flex-grow: 1; /* Allows the banner to expand to fill remaining vertical space */
}

.hero {
    /* Adjusted overlay opacity from 0.8 down to 0.4 for higher background transparency */
    background: linear-gradient(rgba(12, 35, 64, 0.4), rgba(12, 35, 64, 0.45)), 
                url('images/roof golden hour.png') no-repeat center center;
    background-size: cover;
    color: var(--text-light);
    padding: 120px 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 25px;
    color: var(--bg-muted);
}

.hero-tagline {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 20px auto 30px auto;
}

.emergency-banner {
    background-color: var(--bg-muted);
    border-left: 5px solid var(--accent-color);
    padding: 20px;
    text-align: center;
}

.emergency-banner.video-banner {
    position: relative;
    background-color: #000000;
    padding: 0;
    overflow: hidden;
    border-radius: 8px;
    flex-grow: 1;
}

.banner-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    
    /* Change the 0.75 and 0.85 values below to lower numbers for more transparency */
    background: linear-gradient(rgba(12, 35, 64, 0.4), rgba(12, 35, 64, 0.5));
    
    color: var(--text-light);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.banner-content h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

/* Forms */
.form-container {
    background: var(--border-color);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    max-width: 600px;
    margin: 0 auto;
    border: 3px solid var(--border-color);
}

.form-column .form-container {
    max-width: 100%; 
    width: 100%;
}

.elevated-form {
    box-shadow: 0 15px 35px rgba(12, 35, 64, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 40px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Cards & Grid Items */
.card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--primary-color);
}

#why-choose-us .card {
    border-left: 5px solid var(--accent-color);
    border-top: 1px solid var(--border-color);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#why-choose-us .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(12, 35, 64, 0.12);
}

.service-card {
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(12, 35, 64, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Container for the cards */
.cards-grid {
    display: flex;
    flex-wrap: wrap; /* Allows items to drop to the next row */
    gap: 20px; /* Space between cards */
    justify-content: center; /* Centers items if a row isn't full */
}

/* Base style for all 5 cards: stretch evenly across one row */
.cards-grid .card {
    /* 
       Calc explanation: 100% width, minus total gap space (4 gaps * 20px = 80px),
       divided by 5 cards. This ensures they fit perfectly in one row.
    */
    flex: 1 1 calc((100% - 80px) / 5); 
    min-width: 200px; /* Prevents cards from getting TOO thin before wrapping */
    box-sizing: border-box; /* Ensures padding doesn't affect width calcs */
}



/* 
   Breakpoint 1 (Tablet/Small Desktop): 
   When the screen is too small for 5, wrap to 2 on top, 3 on bottom.
*/
@media (max-width: 1100px) { /* Adjust this value based on your content */
    .cards-grid .card {
        /* Force the first two cards to take up roughly half the width (2 across) */
        flex: 1 1 calc((100% - 20px) / 2); 
    }

    /* Target the last 3 cards (3rd, 4th, and 5th) */
    .cards-grid .card:nth-child(n+3) {
        /* 
           Force these 3 to wrap by taking up roughly 1/3 width.
           Because the container has justify-content: center, these 3
           will automatically stretch evenly across the second row.
        */
        flex: 1 1 calc((100% - 40px) / 3);
    }
}

/* Breakpoint 2 (Phone): Stack everything vertically */
@media (max-width: 700px) {
    .cards-grid .card {
        flex: 1 1 100%; /* Full width */
    }
    
    /* Reset the specific targeting from the previous breakpoint */
    .cards-grid .card:nth-child(n+3) {
        flex: 1 1 100%;
    }
}

/* Ensure icons remain constrained as previously requested */
.card-icon {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto;
}

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

.service-icon-container {
    width: 130px;
    height: 130px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-link {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-light);
    padding: 10px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
    width: 100%;
    max-width: 160px;
    transition: background 0.2s ease;
}

.service-link:hover {
    background-color: #5c1313;
}


/* Keep the section background-free or apply to the wrapper */
.about-section {
    background: url('images/family-left-cropped.png') no-repeat left center / cover;
    padding: 80px 20px; /* Vertical padding */
    width: 100%;
}

/* Ensure mobile remains full width */
@media (max-width: 768px) {
    .about-content {
        max-width: 100%;
        padding: 20px;
    }
}
    
/* This is the key: Limit the width of the content container */
.about-content {
    background: rgba(255, 255, 255, 0); /* Clear, readable background */
    max-width: 800px;
    margin: 0 auto; /* This centers the container on the page */
    padding: 40px;
    border-radius: 8px;
    text-align: center; /* This centers the text inside */
}

/* Testimonial Section */
.testimonial-section {
    padding: 40px 20px;
    text-align: center;
    position: relative;
    /* Ensure the background image is dark enough to start with, 
       or use a darker overlay color */
    background: url('images/neighbors.png') no-repeat left center / cover;
}

.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* Use pure black for maximum contrast, or keep your navy */
    /* 0.5 is a better "middle ground" if 0.3 is too light for your white text */
    background-color: rgba(0, 0, 0, 0.5); 
    
    z-index: 1;
}

/* Ensure text sits on top of the overlay */
.testimonial-section h2, 
.testimonial-section h4, 
.testimonial-section .slideshow-container {
    position: relative;
    z-index: 2;
}

.slideshow-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin: 20px 0;
}

.slideshow-track {
    display: flex;
    gap: 20px;
    animation: scroll 60s ease-in-out infinite;
}

/* Pause animation when user hovers to allow reading */
.slideshow-track:hover {
    animation-play-state: paused;
}


.testimonial-card {
    /* Changed from 33.33% to 22% to fit 4 cards per row */
    flex: 0 0 calc(22% - 14px); 
    background: #ffffff;
    padding: 15px; /* Reduced padding for a tighter look */
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

/* Subtle hover effect to show interaction */
.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #b30000; /* Subtle red outline on hover matching brand */
}

/* Update your card titles to use your brand accent */
.card-title {
    color: var(--accent-color); 
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
}

.card-statement {
    font-size: 0.85rem; /* Reduced font size for readability at scale */
    line-height: 1.4;
    margin-bottom: 10px;
    /* Optional: Limit text length so cards stay uniform */
    display: -webkit-box;
    -webkit-line-clamp: 6; 
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-author {
    font-size: 0.8rem;
    font-weight: bold;
    color: #333;
}

.partners-section {
    padding: 60px 20px;
    background-color: #ffffff;
    text-align: center;
}

.logo-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.partner-logo {
    max-width: 200px;
    height: auto;
    filter: grayscale(100%);
    opacity: 0; 
    /* Start small and centered */
    transform: scale(0.2); 
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.partner-logo.animate-in {
    opacity: 1;
    transform: scale(1);
}

/* Hover effect to highlight partners */
.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Responsive adjustment for mobile */
@media (max-width: 600px) {
    .logo-grid {
        gap: 20px;
    }
    .partner-logo {
        max-width: 120px;
    }
}


/* Animation: Adjust the 60s value to control speed */
@keyframes scroll {
    0%, 20% { transform: translateX(0); }        /* Paused at start */
    25%, 45% { transform: translateX(-33.33%); } /* Jump to next set */
    50%, 70% { transform: translateX(-66.66%); } /* Jump to next set */
    75%, 95% { transform: translateX(-100%); }   /* Jump to end */
    100% { transform: translateX(0); }           /* Reset */
}

/* Mobile: Ensure it only shows one card at a time */
@media (max-width: 768px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

.cta-banner {
    background-color: var(--primary-color);
    color: var(--text-light);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

/* Footer Section */
footer {
    background-color: #071424; 
    color: #a0aec0;
    padding: 40px 0;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    color: var(--text-light);
    margin-bottom: 15px;
    text-transform: uppercase;
    font-size: 1rem;
}

.footer-bottom {
    border-top: 1px solid #102a43;
    padding-top: 20px;
    text-align: center;
}

/* Media Query Breakthrough Controls */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex; /* House displays exclusively on mobile */
    }

    .nav-menu {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: var(--primary-color);
        padding: 20px;
        border-bottom: 3px solid var(--accent-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }

    .nav-menu.show {
        display: block;
    }

    nav ul {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }
}

/* Target the specific Contact Us link inside your navigation bar */
nav a[href="#contact"] {
    animation: pulseContactColor 5s ease-in-out infinite;
}

/* Keyframe definition to cleanly fade text color back and forth */
@keyframes pulseContactColor {
    0% {
        color: var(--text-light); /* Starts at pure white */
    }
    50% {
        color: var(--accent-color); /* Fades perfectly to brand crimson red at the midpoint */
    }
    100% {
        color: var(--text-light); /* Fades seamlessly back to white */
    }
}

/* ==========================================
   Full-Width Core Values Grid Layout
   ========================================== */

/* Defines the section background and layout structure */
.core-values-grid {
    /* Set the background of the entire section to the border color */
    background-color: var(--border-color); 
    padding: 60px 0; /* Add padding here if it feels too cramped */
}

/* Force container to 100% width, overriding standard centered constraints */
.full-width-container {
    max-width: 100% !important;
    width: 100%;
    padding: 0 10px;
}

/* ==========================================
   Full-Width Core Values Grid (3 Columns)
   ========================================== */

.values-wrapper {
    display: grid;
    /* Desktop: Exactly 3 columns across */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px; 
    margin-top: 40px;
}

/* Base item structure (no previous card styles inherited) */
.value-item {
    background-color: white; /* Cards stay white to contrast against the new background */
    border: 2px solid transparent; /* Start with transparent border to avoid layout shift */
    border-radius: 8px;
    padding: 25px 20px;
    transition: all 0.3s ease; /* Smooth transition for color and border */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Red border hover effect */
.value-item:hover {
    border-color: var(--accent-color); /* Changes to your brand red on hover */
    background-color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Update the base state to be solid primary color */
.value-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color); /* Now solid instead of faded */
    margin-bottom: 20px;
    line-height: 1;
    transition: color 0.3s ease; /* Smooths the color transition */
}

/* On hover, keep the number colored based on your preference, or make it red */
.value-item:hover .value-number {
    color: var(--accent-color); /* Changes to red on hover */
    transform: scale(1.05);
}

/* Align text content below the number */
.value-text-content {
    flex-grow: 1;
}

.value-text-content h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-color);
}

.value-text-content p {
    font-size: 0.95rem;
    color: var(--secondary-color);
    line-height: 1.6;
}

/* ==========================================
   Mobile Responsive Rules Overrides
   ========================================== */

/* Triggers the switch from full-width to vertical stack */
@media (max-width: 600px) {
    .values-wrapper {
        grid-template-columns: 1fr; /* Exactly 1 vertical column */
        gap: 10px;
    }
}

/* ==========================================
   Mid-Page CTA Banner with Background
   ========================================== */

.cta-banner {
    position: relative;
    /* Sets the roof damage image as the background */
    background: linear-gradient(rgba(12, 35, 64, 0.50), rgba(12, 35, 64, 0.50)), 
                url('images/roof-damage.png') no-repeat center center;
    background-size: cover; /* Ensures the image fills the short space */
    color: var(--text-light);
    text-align: center;
    padding: 80px 20px; /* Adjust padding to make the section look good */
}

/* Ensure the text container sits above the dark overlay */
.cta-banner .container {
    position: relative;
    z-index: 2;
}

.cta-banner h2 {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Animation for sliding in from the left */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-450px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Update your CSS animation */
.cta-banner .btn {
    opacity: 0; /* Hidden by default */
    transform: translateX(-550px);
    transition: all 2s ease-out; /* Smooth transition */
}

/* This class will be added by JavaScript */
.cta-banner .btn.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Base card styling: updated to support the overlay */
.card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 30px; /* Adjusted padding for better visual balance */
    border-radius: 8px; /* Optional: adds a modern rounded corner */
    color: var(--text-dark); /* Ensure text color contrasts with the light overlay */
}

/* Background Assignments with 20% White Overlay 
   rgba(255, 255, 255, 0.2) = White at 20% opacity
*/
.card-1 { 
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                      url('images/roof-repairsbg.png'); 
}
.card-2 { 
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                      url('images/guttersbg.png'); 
}
.card-3 { 
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                      url('images/stormbg.png'); 
}
.card-4 { 
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                      url('images/inspectionsbg.png'); 
}
.card-5 { 
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)), 
                      url('images/siding-repairsbg.png'); 
}

/* Maintain previous Flexbox responsive grid logic */
.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.cards-grid .card {
    flex: 1 1 calc((100% - 80px) / 5);
    min-width: 200px;
}

@media (max-width: 1100px) {
    .cards-grid .card { flex: 1 1 calc((100% - 20px) / 2); }
    .cards-grid .card:nth-child(n+3) { flex: 1 1 calc((100% - 40px) / 3); }
}

@media (max-width: 700px) {
    .cards-grid .card { flex: 1 1 100%; }
}

.card-icon {
    height: 100px;
    width: auto;
    display: block;
    margin: 0 auto 15px auto;
}

.storm-hero {
    position: relative;
    width: 100%;
    height: 60vh; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.storm-types 	{
	text-align: center;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    background: rgba(0, 0, 0, 0.7); /* Adds readability to text over video */
    padding: 2rem;
    max-width: 800px;border: 2px solid var(--accent-color);
}

.card-icon {
    max-width: 100px; /* Adjust size to fit your design */
    height: auto;
    margin-bottom: 1rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}


.three-step-guide {
    padding: 3rem 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 2rem;
}

.step-card {
    border: 2px solid var(--accent-color);
    padding: 2rem;
    border-radius: 8px;
    background: #f9f9f9; /* Optional: adds subtle background contrast */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.damage-check-section .card {
    background-color: var(--border-color);
}


.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 2rem;
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.contact-form button {
    margin-top: 1.5rem;
    width: 100%;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}
/* Storm Map Legend */
.map-container {
	background-color: var(--mid-color);
	
}

/* Center the legend items within the container */
.map-legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 15px;
    font-weight: bold;
}

/* Ensure the map image sits nicely */
.map-container img {
    margin: 0 auto;
}

.tinyimg {
	width: 45px;
}


.insurance-callout {
    background-color: var(--bg-muted); /* A light gray background to pop against white */
}

.callout-box {
    border: 2px solid var(--accent-color); /* The red accent border */
    border-radius: 12px;
    padding: 40px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* Subtle shadow for depth */
    max-width: 800px;
    margin: 0 auto;
}

.callout-box h3 {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.callout-box hr {
    margin: 20px auto;
    width: 60px;
    border: 0;
    border-top: 2px solid var(--primary-color);
}

.callout-box p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.callout-box .btn {
    margin-top: 15px;
}
