/* Core Variables & Settings */
:root {
    /* Brand Colors */
    --primary: #732424;          /* Deep burgundy */
    --primary-dark: #5C2020;     /* Darker burgundy */
    --primary-light: #8b2929;    /* Lighter burgundy */
    --secondary: #f59e0b;        /* Keeping amber as accent */
    --secondary-dark: #d97706;   /* Keeping darker amber */
    --success: #22c55e;          /* Keeping success green */
    --error: #ef4444;           /* Keeping error red */

    /* Neutral Colors with Burgundy Tint */
    --neutral-50: #faf8f8;      /* Lightest - barely tinted white */
    --neutral-100: #f5f1f1;     /* Very light burgundy-gray */
    --neutral-200: #e8e2e2;     /* Light burgundy-gray */
    --neutral-300: #d5cbcb;     /* Soft burgundy-gray */
    --neutral-400: #b8a4a4;     /* Medium burgundy-gray */
    --neutral-500: #8b7474;     /* Mid burgundy-gray */
    --neutral-600: #695757;     /* Darker burgundy-gray */
    --neutral-700: #554545;     /* Very dark burgundy-gray */
    --neutral-800: #3b2e2e;     /* Nearly black with burgundy tint */
    --neutral-900: #2a1f1f;     /* Darkest - almost black */

    /* Overlays & Shadows */
    --overlay-dark: rgba(15, 23, 42, 0.75);
    --overlay-light: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --spacing-1: 0.25rem;
    /* 4px */
    --spacing-2: 0.5rem;
    /* 8px */
    --spacing-3: 0.75rem;
    /* 12px */
    --spacing-4: 1rem;
    /* 16px */
    --spacing-5: 1.25rem;
    /* 20px */
    --spacing-6: 1.5rem;
    /* 24px */
    --spacing-8: 2rem;
    /* 32px */
    --spacing-10: 2.5rem;
    /* 40px */
    --spacing-12: 3rem;
    /* 48px */
    --spacing-16: 4rem;
    /* 64px */

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-opacity: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Container */
    --container-max: 1280px;
    --container-padding: clamp(1rem, 5vw, 2rem);

    /* Z-Index Layers */
    --z-header: 1000;
    --z-modal: 1100;
    --z-tooltip: 1200;
    --z-toast: 1300;
}

/* Reset & Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    line-height: 1.2;
    color: var(--neutral-900);
    font-weight: 700;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--overlay-light);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-header);
    transition: var(--transition-all);
    height: 120px;
    display: flex;
    align-items: center;
}

.header.scrolled {
    height: 90px;
    background: var(--overlay-light);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 120px; /* Add this line */
}

.logo img {
    height: 100px;
    width: auto;
    transition: var(--transition-all);
}

.header.scrolled .logo img {
    height: 80px;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    padding: var(--spacing-3) var(--spacing-6);
    background: var(--primary);
    color: white;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: var(--transition-all);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

.nav-phone:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-phone i {
    font-size: 1.25rem;
}

.phone-number {
    font-size: 1.25rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-8)) 0 var(--spacing-16);
    background-image: url('./assets/hero-lights-color.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(115, 36, 36, 0.95),    /* Using burgundy */
        rgba(92, 32, 32, 0.85));    /* Using darker burgundy */
    z-index: -1;
}

/* Remove video background related styles */
.video-background {
    display: none;
}

/* Enhance hero content visibility */
.hero-text {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-text h1 {
    color: white;
}

.hero-text p {
    color: var(--neutral-200);
}

.hero-features {
    color: var(--neutral-200);
}

/* Adjust hero responsive behavior */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: calc(64px + var(--spacing-8)) 0 var(--spacing-8);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-4);
    align-items: center;
}

.hero-text {
    color: white;
    animation: fadeInUp 0.8s ease-out;
}

.hero-text h1 {
    color: white;
    margin-bottom: var(--spacing-6);
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 80px;
    height: 4px;
    background: var(--secondary);
    border-radius: var(--radius-full);
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-8);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-features {
    display: flex;
    gap: var(--spacing-6);
    margin-top: var(--spacing-8);
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.feature i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Quote Form */
.quote-form {
    background: var(--overlay-light);
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(12px);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
    max-width: 480px;
    width: min(100%, 480px);
    margin: 0 auto;
    padding: var(--spacing-8);
}

.form-header {
    text-align: center;
    margin-bottom: var(--spacing-6);
}

.form-header h2 {
    color: var(--neutral-900);
    font-size: 1.75rem;
    margin-bottom: var(--spacing-2);
}

.form-header p {
    color: var(--neutral-600);
    font-size: 1rem;
}

.form-progress {
    margin-bottom: var(--spacing-6);
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4);
    position: relative;
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neutral-200);
    transform: translateY(-50%);
    z-index: 1;
}

.step {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: var(--neutral-200);
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    position: relative;
    z-index: 2;
    transition: var(--transition-all);
}

.step.active {
    background: var(--primary);
    color: white;
}

.step.complete {
    background: var(--success);
    color: white;
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.form-step.active {
    display: block;
}

.form-group {
    margin-bottom: var(--spacing-4);
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group-icon {
    position: absolute;
    left: var(--spacing-4);
    color: var(--neutral-500);
    transition: var(--transition-all);
    pointer-events: none;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: var(--spacing-4) var(--spacing-4) var(--spacing-4) calc(var(--spacing-4) * 2 + 20px);
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    transition: var(--transition-all);
    background: white;
    color: var(--neutral-900);
    appearance: none;
}

.input-group input:focus,
.input-group select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input:focus+.input-group-icon,
.input-group select:focus+.input-group-icon {
    color: var(--primary);
}

.button-group {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-6);
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: var(--spacing-4) var(--spacing-6);
    border-radius: var(--radius-full);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
    transition: var(--transition-all);
    cursor: pointer;
    border: none;
}

.btn-prev {
    background: var(--neutral-200);
    color: var(--neutral-700);
}

.btn-next,
.btn-submit {
    background: var(--primary);
    color: white;
    margin-left: auto;
}

.btn-submit {
    width: 100%;
    justify-content: center;
    background: var(--secondary);
}

.btn-prev:hover,
.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.form-footer {
    margin-top: var(--spacing-6);
    padding-top: var(--spacing-4);
    border-top: 1px solid var(--neutral-200);
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--spacing-4);
    color: var(--neutral-600);
    font-size: 0.875rem;
}

.trust-badges span {
    display: flex;
    align-items: center;
    gap: var(--spacing-2);
}

.trust-badges i {
    color: var(--success);
}

/* Service Areas Section */
.service-areas {
    background: white;
    width: 100%;
    padding: var(--spacing-16) 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: var(--spacing-2) var(--spacing-4);
    background: rgba(115, 36, 36, 0.1);  /* Using burgundy with opacity */
    color: var(--primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-4);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

.area-card {
    background: white;
    padding: var(--spacing-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
    justify-self: center;
}


.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: var(--transition-all);
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.area-card:hover::before {
    opacity: 1;
}

.area-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-4);
    transition: var(--transition-all);
}

.area-icon i {
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition-all);
}

/* Updated styles for hover effect */
.area-card:hover .area-icon {
    background: var(--primary-light, #60a5fa); /* Light blue background */
}

.area-card:hover .area-icon i {
    color: var(--secondary-light, #fcd34d); /* Soft yellow for the icon */
}

/* Responsive layout for areas grid */
@media (min-width: 768px) {
.area-card:last-child:nth-child(3n - 1) {
    grid-column: 2 / 3;
}
.area-card:last-child:nth-child(3n - 2) {
    grid-column: 2 / 3;
}

    .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
    }

    /* Center the last card when it's alone on a row */
    .areas-grid::after {
        content: "";
        grid-column: span 1;
    }
}

@media (min-width: 1200px) {
    .areas-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }

    /* Remove the pseudo-element for 3-column layout */
    .areas-grid::after {
        display: none;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    /* Center the last card when it's alone on a row in 2-column layout */
    .area-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 400px; /* Adjust this value as needed */
    }
}

@media (max-width: 767px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }

    .area-card {
        max-width: 400px; /* Adjust this value as needed */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Testimonials Section */
.testimonials {
    background: var(--neutral-50);
    padding: var(--spacing-16) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

.testimonial-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
    }

    /* Center the last card when it's alone on a row */
    .testimonials-grid::after {
        content: "";
        grid-column: span 1;
    }
}

@media (min-width: 1200px) {
    .testimonials-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }

    /* Remove the pseudo-element for 3-column layout */
    .testimonials-grid::after {
        display: none;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    /* Center the last card when it's alone on a row in 2-column layout */
    .testimonial-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

@media (max-width: 1199px) and (min-width: 820px) {
    .testimonial-card {
        max-width: 500px;
    }
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

blockquote {
    font-style: italic;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.testimonial-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-info p {
    font-size: 0.9rem;
    color: #666;
}

.rating {
    color: #ffc107;
}

/* Project Gallery */
.project-gallery {
    background: white;
    padding: var(--spacing-16) 0;
}

.gallery-grid {
    display: grid;
    gap: var(--spacing-4); /* Reduced gap */
    padding: var(--spacing-4);
    width: 100%;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
    width: 100%;
    max-width: 100%; /* Changed from 400px to 100% */
    justify-self: stretch; /* Added to fill the space */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-all);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-6);
    opacity: 0;
    transition: var(--transition-all);
}

.gallery-overlay h3 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-2);
    font-weight: 600;
}

.gallery-overlay p {
    color: var(--secondary-light, #ffd700);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-3);
}

.gallery-overlay a {
    color: var(--primary-light, #60a5fa);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-all);
}

.gallery-overlay a:hover {
    color: white;
    text-decoration: underline;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

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

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Increased minimum width */
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr); /* Changed to 1fr for equal sizing */
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr); /* Changed to 1fr for equal sizing */
    }

    .gallery-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        max-width: 100%; /* Changed from 400px to 100% */
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        max-width: 100%; /* Changed from 400px to 100% */
    }
}

/* CTA Section */
.cta-section {
    background: linear-gradient(to right, var(--primary), var(--primary-dark));
    padding: var(--spacing-16) 0;
    color: white;
}

.cta-banner {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-8);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(10px);
}

.cta-content h2 {
    color: white;
    margin-bottom: var(--spacing-4);
    font-size: 2.5rem;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-6);
    opacity: 0.9;
}

.cta-features {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-4);
    margin: var(--spacing-8) 0;
    list-style-type: none;
}

.cta-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    font-size: 1.1rem;
}

.cta-features i {
    color: var(--secondary);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-2);
    background: var(--secondary);
    color: var(--neutral-900);
    padding: var(--spacing-4) var(--spacing-8);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition-all);
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--secondary-dark);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: var(--spacing-6);
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-features {
        gap: var(--spacing-3);
    }

    .cta-features li {
        font-size: 1rem;
    }

    .cta-button {
        padding: var(--spacing-3) var(--spacing-6);
        font-size: 1rem;
    }
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: white;
    padding-top: var(--spacing-16);
}

.footer-main {
    padding-bottom: var(--spacing-12);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--spacing-12);
    padding: 0;
}

.footer-brand {
    max-width: 380px;
}

.footer-brand img {
    height: 100px;
    width: auto;
    margin-bottom: var(--spacing-6);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: var(--neutral-300);
    margin-bottom: var(--spacing-6);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    color: var(--neutral-300);
    transition: var(--transition-all);
    text-decoration: none;
}

.footer-contact a:hover {
    color: white;
    transform: translateX(4px);
}

.footer-contact i {
    color: var(--primary-light);
    font-size: 1.125rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: var(--spacing-6);
    font-size: 1.125rem;
    font-weight: 600;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3);
}

.footer-column a {
    color: var(--neutral-400);
    transition: var(--transition-all);
    font-size: 0.9375rem;
    text-decoration: none;
}

.footer-column a:hover {
    color: white;
    transform: translateX(4px);
}

.social-links {
    display: flex;
    gap: var(--spacing-4);
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-all);
    color: white;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-800);
    padding: var(--spacing-6) 0;
}

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

.footer-bottom p {
    color: var(--neutral-500);
    font-size: 0.875rem;
}

.footer-legal {
    display: flex;
    gap: var(--spacing-6);
}

.footer-legal a {
    color: var(--neutral-500);
    font-size: 0.875rem;
    transition: var(--transition-all);
}

.footer-legal a:hover {
    color: white;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-8);
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
    }

    .footer-contact {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .footer {
        padding-top: var(--spacing-12);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-8);
    }

    .footer-column {
        align-items: center;
    }

    .footer-column ul {
        align-items: center;
    }

    .footer-contact {
        align-items: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom .container {
        flex-direction: column;
        gap: var(--spacing-4);
        text-align: center;
    }

    .footer-legal {
        justify-content: center;
    }
}

/* Mobile Call Button */
.mobile-call-btn {
    display: none;
    position: fixed;
    bottom: var(--spacing-6);
    right: var(--spacing-6);
    width: 56px;
    height: 56px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-full);
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: var(--z-header);
    transition: var(--transition-all);
    text-decoration: none;
    overflow: hidden;
}

.mobile-call-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease-out, height 0.3s ease-out;
}

.mobile-call-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.mobile-call-btn:hover::before {
    width: 120%;
    height: 120%;
}

.mobile-call-btn:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-call-btn i {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.mobile-call-btn:hover i {
    transform: scale(1.1);
}

.mobile-call-btn:active i {
    transform: scale(0.95);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-8);
    }

    .hero-text h1::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-features {
        justify-content: center;
    }

    .quote-form {
        margin: 0 auto;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 1rem;
    }

    .header {
        height: 90px;
    }

    .header.scrolled {
        height: 70px;
    }

    .logo img {
        height: 70px;
    }

    .header.scrolled .logo img {
        height: 60px;
    }

    .nav-phone {
        padding: var(--spacing-2) var(--spacing-4);
        text-decoration: none;
    }

    .phone-number {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: calc(64px + var(--spacing-8)) 0 var(--spacing-8);
    }

    .mobile-call-btn {
        display: flex;
    }

    .areas-grid,
    .testimonials-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .cta-features {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links a:hover {
        transform: none;
    }

    .social-links {
        justify-content: center;
    }
}

/* Print Styles */
@media print {

    .video-background,
    .nav-phone,
    .mobile-call-btn {
        display: none;
    }
}

/* Remove preloader styles */
.preloader {
    display: none;
}

/* Enhanced Why Choose Us Section */
.why-choose-us {
    background: linear-gradient(to bottom, var(--neutral-50), white);
    padding: var(--spacing-16) 0;
    position: relative;
    overflow: hidden;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%232563eb" opacity="0.1"/></svg>') repeat;
    opacity: 0.5;
    z-index: 0;
}

.why-choose-us .container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

.feature-card {
    background: white;
    padding: var(--spacing-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-all);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
}

.feature-card.animated {
    animation: fadeInUp 0.6s ease-out forwards;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: rgba(115, 36, 36, 0.1);  /* Using burgundy with opacity */
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-6);
    transition: var(--transition-all);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
}

.feature-card:hover .feature-icon i {
    color: white;
    transform: scale(1.1);
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition-all);
}

.feature-card h3 {
    margin-bottom: var(--spacing-4);
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--neutral-600);
    margin-bottom: var(--spacing-6);
    font-size: 1.125rem;
    line-height: 1.6;
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-3);
    color: var(--neutral-700);
    margin-bottom: var(--spacing-3);
    font-size: 1rem;
}

.feature-list li i {
    color: var(--success);
    font-size: 1rem;
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-6);
    }
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: var(--spacing-6);
    }
}

/* Section Spacing Adjustments */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-12);
    padding: 0 var(--spacing-4);
}

/* Grid Adjustments */
.hero-content {
    gap: var(--spacing-8);
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-4);
}

.areas-grid,
.features-grid,
.testimonials-grid,
.gallery-grid {
    display: grid;
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

/* Responsive Grid Adjustments */
@media (min-width: 768px) {

    .areas-grid,
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    }

    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    }
}

/* Section Padding Adjustments */
.service-areas,
.why-choose-us,
.testimonials,
.project-gallery,
.cta-section {
    padding: var(--spacing-16) 0;
}

/* Form Adjustments */
.quote-form {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: var(--spacing-8);
}

/* Footer Adjustments */
.footer-grid {
    display: grid;
    gap: var(--spacing-8);
    padding: var(--spacing-4);
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    :root {
        --container-padding: var(--spacing-4);
    }

    .section-header {
        margin-bottom: var(--spacing-8);
    }

    .hero {
        padding-top: calc(64px + var(--spacing-8));
    }

    .quote-form {
        padding: var(--spacing-6);
    }
}

@media (max-width: 1200px) {
    .area-card {
        flex-basis: calc(50% - var(--spacing-6));
        max-width: 400px; /* Adjust this value as needed */
    }
    .areas-grid::after {
        flex-basis: calc(50% - var(--spacing-6));
    }
}

@media (max-width: 767px) {
    .area-card,
    .areas-grid::after {
        flex-basis: 100%;
    }
}

@media (min-width: 1200px) {
    .areas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .areas-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    .area-card:last-child:nth-child(odd) {
        grid-column: 1 / 3;
    }
}

@media (max-width: 767px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
}

/* Existing styles */
.features-grid {
    display: grid;
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

/* New styles for responsive layout */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
    }

    /* Center the last card when it's alone on a row */
    .features-grid::after {
        content: "";
        grid-column: span 1;
    }
}

@media (min-width: 1200px) {
    .features-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }

    /* Remove the pseudo-element for 3-column layout */
    .features-grid::after {
        display: none;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    /* Center the last card when it's alone on a row in 2-column layout */
    .feature-card:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 400px; /* Adjust this value as needed */
    }
}

@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        max-width: 400px; /* Adjust this value as needed */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Existing styles */
.gallery-grid {
    display: grid;
    gap: var(--spacing-6);
    padding: var(--spacing-4);
    width: 100%;
}

/* New styles for responsive layout */
@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        justify-content: center;
    }

    /* Center the last card when it's alone on a row */
    .gallery-grid::after {
        content: "";
        grid-column: span 1;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(280px, 1fr));
    }

    /* Remove the pseudo-element for 3-column layout */
    .gallery-grid::after {
        display: none;
    }
}

@media (max-width: 1199px) and (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
    }

    /* Center the last card when it's alone on a row in 2-column layout */
    .gallery-item:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        justify-self: center;
        max-width: 400px; /* Adjust this value as needed */
    }
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        max-width: 400px; /* Adjust this value as needed */
        margin-left: auto;
        margin-right: auto;
    }
}

/* Adjust the gallery item styles if needed */
.gallery-item {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16/9;
}

.rating {
    min-width: 110px;
}


@media (max-width: 480px) {
    .hero-features {
        flex-direction: column;  /* Stack features vertically on very narrow screens */
        align-items: center;
    }

    .feature {
        width: 100%;
        justify-content: center;
    }
}

