:root {
    --primary: #FF0000;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #ffffff;
    --gray: #888888;
    --glass: rgba(255, 255, 255, 0.05);
    --border: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark);
    color: var(--light);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.text-red {
    color: var(--primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: block;
    /* Changed from inline-block */
    text-align: center;
    /* Center the text */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    /* Center start point */
    transform: translateX(-50%);
    /* Center exact middle */
    width: 60px;
    height: 4px;
    background: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--light);
}

.btn-primary:hover {
    background: #cc0000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--light);
}

.btn-outline:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

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

.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--darker);
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid var(--border);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

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

.nav-cta {
    background: var(--primary);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
}

.nav-cta:hover {
    background: #cc0000;
    color: white !important;
}

.nav-logo {
    height: 60px;
    /* Reduced from 80px */
    width: auto;
    /* Removed white box styling */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));

    /* Anti-squash fix */
    display: block;
    max-width: none;
    object-fit: contain;
    aspect-ratio: 479 / 366;
    /* Match SVG dimensions */
}

/* Prevent flexbox from squishing the logo container */
.logo {
    flex-shrink: 0;
}


/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    /* Tighter line height */
    margin-bottom: 1.5rem;
    font-weight: 900;
    /* Extra bold */
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.9);
    /* Stronger shadow */
}

.hero h1 .text-red {
    text-shadow: 0 0 40px rgba(220, 0, 0, 0.8);
    /* Intense red glow */
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin: 3rem 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center icon and text */
    text-align: center;
}

.stat-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.stat-item h3 {
    font-size: 2rem;
    /* Adjusted for balance */
    color: var(--light);
    /* White numbers look cleaner */
    margin-bottom: 0.2rem;
}

.stat-item p {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* Form Section */
.quote-form-container {
    background: rgba(20, 20, 20, 0.75);
    /* Lighter, more premium dark */
    padding: 2.5rem;
    border-radius: 16px;
    /* Smooth corners */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    /* Heavy blur for depth */
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 450px;
    margin-left: auto;
}



.form-group {
    margin-bottom: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.15);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 600;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 40px;
}

select.form-control option {
    background-color: var(--darker);
    color: var(--light);
}

.loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-bottom-color: transparent;
    border-radius: 50%;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.form-message {
    margin-top: 1rem;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid #00ff00;
    color: #00ff00;
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem;
    transition: var(--transition);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--gray);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.3s ease;
}

.gallery-item.fade-out {
    opacity: 0;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1000px;
    max-height: 80vh;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 2002;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    border-radius: 50%;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 50px;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
}

/* Lightbox Navigation */
.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
    z-index: 2001;
    background-color: rgba(0, 0, 0, 0.4);
}

.lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.lightbox-prev {
    left: 0;
    border-radius: 0 3px 3px 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary);
}


/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 5rem 0 2rem;
    background: #0a0a0a;
    /* Slightly darker than body */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* Equal width for true centering */
    gap: 4rem;
    margin-bottom: 4rem;
    text-align: center;
    /* Center text in all columns */
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack on mobile */
        gap: 2rem;
    }
}

.footer-info,
.footer-contact,
.footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center flex children */
}

.footer-info p {
    color: var(--gray);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 300px;
    /* Prevent text from spreading too wide */
    margin-left: auto;
    /* Center block */
    margin-right: auto;
}

.footer-contact h4,
.footer-social h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.contact-item {
    display: flex;
    align-items: center;
    /* Center icon relative to text line height */
    justify-content: center;
    /* Center the icon+text group */
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--gray);
    font-size: 1rem;
    width: 100%;
    /* Ensure it spans to allow centering */
}

.contact-item svg {
    color: var(--primary);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item a {
    transition: all 0.3s ease;
}

.contact-item:hover svg {
    filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.8));
    transform: scale(1.1);
}

.contact-item:hover a {
    color: #ff3333;
    /* Brighter red on hover */
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.6);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    /* Center social icons */
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    color: var(--light);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.9rem;
}

/* Hero Layout (Desktop Default) */
.hero-layout {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.hero-form-wrapper {
    flex: 0 0 450px;
    /* Fixed width on desktop */
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        height: auto;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }

    .hero-layout {
        flex-direction: column;
        /* Stack vertically */
    }

    .hero-content {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }

    .stat-item {
        align-items: center;
        /* Center icons on mobile */
    }

    .hero-form-wrapper {
        flex: 1;
        width: 100%;
        max-width: 500px;
        /* Limit width on tablets */
    }

    .quote-form-container {
        margin: 0 auto;
        /* Center the form */
    }

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

@media (max-width: 768px) {

    /* Show Nav Links (but only the CTA) */
    .nav-links {
        display: flex;
        /* Restore visibility */
        gap: 10px;
    }

    /* Hide 'Services' text link on mobile to make room */
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    /* Make the Top Call Button prominent */
    .nav-cta {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    /* Hide the BIG Hero button on mobile (redundant) */
    .hero-content .btn {
        display: none;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

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

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

    .review-card {
        min-width: 260px;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Autocomplete Styles */
.pac-container {
    background-color: var(--darker);
    border: 1px solid var(--border);
    font-family: 'Inter', sans-serif;
    color: var(--light);
    box-shadow: var(--shadow);
    margin-top: 5px;
    border-radius: 4px;
}

.pac-item {
    border-top: 1px solid var(--border);
    padding: 10px;
    cursor: pointer;
    color: var(--gray);
}

.pac-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.pac-item-query {
    color: var(--light);
    font-weight: 600;
}

.pac-matched {
    color: var(--primary);
}

.pac-logo::after {
    display: none;
    /* Hide Google logo if allowed/desired for cleaner look, strictly check ToS */
}

/* Reviews CSS from reviews.css (Appended) */
.reviews-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: var(--darker);
}

.reviews-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 20px 5px;
    /* Add veritcal padding to show shadows */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.reviews-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.review-card {
    min-width: 300px;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

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

.stars {
    color: #FFB400;
    /* Google Star Color */
    letter-spacing: 2px;
}

.date {
    font-size: 0.8rem;
    color: var(--gray);
}

.review-text {
    font-size: 0.95rem;
    color: #ddd;
    line-height: 1.5;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.reviewer-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-info .name {
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.reviewer-info .source {
    font-size: 0.75rem;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}