/* --- Brand Colors & Variables --- */
:root {
    --racing-green: #004225;     /* British Racing Green */
    --faded-green: #4b7a63;      /* Faded Green for Hover */
    --union-jack-red: #C8102E;   /* Official Flag Red */
    --faded-red: #e57381;        /* Faded Red for Hover */
    --union-jack-blue: #012169;  /* Official British Flag Blue */
    --text-color: #2d3436;
    --light-gray: #f4f4f4;
    --white: #ffffff;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* --- Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

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

/* --- Global Hover Transition for all Links --- */
a {
    transition: all 0.3s ease;
}

/* --- Header & Navigation --- */
.header {
    background: var(--white);
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--racing-green);
    font-weight: 600;
    transition: color 0.3s ease;
}

/* Turns standard links Red on hover */
.nav-links a:hover {
    color: var(--union-jack-red);
}

/* Forces phone number to Red by default */
.nav-phone {
    color: var(--union-jack-red) !important;
    font-weight: 700 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Turns phone number Green on hover */
.nav-phone:hover {
    color: var(--racing-green) !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.line {
    width: 25px;
    height: 3px;
    background: var(--racing-green);
    margin: 5px;
}

#why-mitchells, #about, #services, #testimonials, #contact {
    scroll-margin-top: 100px;
}


/* Fix for Anchor Links Jumping under the Fixed Header */
#about, #services, #testimonials, #contact {
    scroll-margin-top: 100px; 
}

/* Specific targeting for the "Send it to us" link */
.estimate-callout .contact-link {
    color: var(--racing-green) !important;
    text-decoration: underline;
    font-weight: 700;
    transition: all 0.3s ease;
}

.estimate-callout .contact-link:hover {
    color: var(--union-jack-red) !important;
    text-decoration: none;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(rgba(0, 66, 37, 0.2), rgba(0, 66, 37, 0.2)), url('images/hero-building.jpg');
    background-size: cover;
}

.hero {
    padding: 10rem 0 3rem; 
    background-color: var(--light-gray);
    width: 100%;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-title {
    font-size: 2.8rem; 
    color: var(--racing-green);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #444;
}

.hero-subtitle b {
    color: var(--racing-green); 
}

.hero-address {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-address i {
    color: var(--union-jack-red);
}

.hero-image img {
    width: 100%;
    max-width: 1100px;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: 0.3s ease;
}

.btn-primary {
    background: var(--union-jack-red);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: var(--racing-green); /* Flip to green on hover */
    transform: translateY(-2px); /* Subtle lift */
}

/* --- Message Boxes --- */
.features {
    padding: 3rem 0;
}

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

.feature-card {
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--box-shadow);
}

.bg-blue { background-color: var(--union-jack-blue); color: white; }
.bg-white { background-color: var(--white); color: var(--text-color); border: 2px solid var(--light-gray); }
.bg-red { background-color: var(--union-jack-red); color: white; }


/* --- Tightened Global Row Sections --- */
.row-section {
    padding: 1.5rem 0; /* Reduced from 3rem */
    width: 100%;
    background: var(--white);
}

.row-section .container {
    display: flex;
    align-items: flex-start;
    gap: 3rem; /* Reduced from 5rem to keep images and text connected */
}

.row-content, .row-image { flex: 1; }

/* Specific adjustment for the contact area to give it breathing room */
.contact-row {
    padding-top: 5rem; 
}

.row-image img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.section-title {
    font-size: 2.5rem;
    color: var(--racing-green);
    margin-bottom: 1.5rem;
    line-height: 1.2; /* Ensures clean alignment with the top of the form */
}


/* --- Photo Grids --- */
.photo-grid {
    padding: 1.5rem 0;
}

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

.grid-wrapper img {
    width: 100%;
    height: 300px; 
    object-fit: cover;
    border-radius: var(--border-radius);
}

.photo-grid + .photo-grid {
    padding-top: 0;
}

/* --- Testimonials --- */
.testimonials {
    padding: 3rem 0;
    background-color: var(--light-gray);
    text-align: center;
}

.testimonial-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    min-height: 200px; 
}

.testimonial-slide {
    position: absolute;
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: var(--white);
    padding: 2.5rem; 
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    pointer-events: none;
}

.testimonial-slide.active {
    opacity: 1;
    position: relative;
    pointer-events: auto;
}

/* --- Tighten Testimonials Section --- */
.testimonials {
    padding-top: 2rem !important;    /* Reduces space above the title */
    padding-bottom: 2rem !important; /* Reduces space below the white box */
}

.testimonial-slider {
    margin-top: 1rem !important;    /* Brings the white box closer to the "What Our Customers Say" title */
    margin-bottom: 0 !important;
}

.section-title {
    margin-bottom: 0.5rem; /* Reduces the gap between the title and the slider */
}


/* --- Contact & Map --- */
.contact-row {
    padding-top: 1.5rem;
}

.contact-details p {
    margin-bottom: 1.5rem;
}

.contact-details i {
    color: var(--union-jack-red);
    margin-right: 10px;
}

.contact-link {
    color: var(--racing-green);
    text-decoration: underline; /* Standard "Look like a link" */
    font-weight: 700;
}

.contact-link:hover {
    color: var(--union-jack-red);
    text-decoration: none; /* Removes underline on hover for a "clean" feel */
}

.form-container {
    background: var(--light-gray);
    padding: 10px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.map-section {
    width: 100%;
    line-height: 0; 
    background: #eee;
}

/* --- Footer --- */
.footer {
    background-color: var(--racing-green);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
}

.footer h3, .footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

/* Base styles for all links in the footer columns */
.footer-links a, .footer-admin a {
    display: block;
    color: #acc1b6; 
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease; /* Smooths out the hover movement */
}

/* Hover effect for standard links */
.footer-links a:hover, .footer-admin a:hover {
    color: white;
    padding-left: 5px; /* Subtle movement on hover */
}

/* 1. The Contact Link (Needs to be a block for the gap) */
.footer-admin .footer-bold-link {
    color: white !important;
    font-weight: 700;
    text-decoration: none;
    display: block !important; 
    margin-bottom: 2.5rem !important; 
    transition: all 0.3s ease;
}

/* 2. The Phone Link (Needs to stay 'inline' to sit next to the icon) */
.footer-dial-link {
    color: white !important;
    font-weight: 700;
    text-decoration: none;
    display: inline !important; /* This brings it back up next to the icon */
    transition: all 0.3s ease;
}

/* 3. Hover effect for both */
.footer-bold-link:hover, .footer-dial-link:hover {
    color: white !important;
    text-decoration: underline !important;
    opacity: 0.8;
}

/* Clean White hover for bold links (Removes the 'Pink' faded-red) */
.footer-bold-link:hover, .footer-dial-link:hover {
    color: white !important;
    text-decoration: underline !important;
    opacity: 0.8; /* Subtle visual feedback */
}

.footer-phone, .footer-email {
    margin-top: 15px;
    font-weight: 700;
    font-size: 1.1rem;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 0.9rem;
    color: #acc1b6;
}


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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--racing-green);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--union-red);
    margin-bottom: 1.5rem;
    display: block;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--racing-green);
}

.service-list {
    margin-top: 1rem;
    padding-left: 1.2rem;
    color: #555;
    font-size: 0.95rem;
}

.service-list li {
    margin-bottom: 0.5rem;
}

/* Mobile fix for the Dealer Box */
@media (max-width: 768px) {
    .dealer-alt-box .row-container {
        flex-direction: column;
    }
}

/* --- Dealer Comparison Section --- */
.dealer-comparison {
    padding: 5rem 0;
    background-color: var(--white);
}

.comparison-card {
    background: var(--light-gray);
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem;
    border-radius: var(--border-radius);
    border-left: 8px solid var(--union-red);
    box-shadow: var(--box-shadow);
}

.comparison-content {
    flex: 2;
}

.large-headline {
    font-size: 3rem; /* Extra large for impact */
    color: var(--racing-green);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-weight: 700;
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #444;
}

.estimate-callout {
    background: var(--white);
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    border: 1px dashed var(--union-red);
    color: var(--union-red);
    font-size: 1.1rem;
}

.comparison-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--racing-green);
    font-size: 1.1rem;
}

.feature-item i {
    color: var(--union-red);
    font-size: 1.2rem;
}

/* Mobile Fix */
@media (max-width: 992px) {
    .comparison-card {
        flex-direction: column;
        padding: 2.5rem;
        text-align: center;
    }
    .large-headline {
        font-size: 2.2rem;
    }
    .feature-item {
        justify-content: center;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hamburger { 
        display: block; 
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: auto;
        padding: 40px 0;
        transition: 0.4s ease;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        gap: 2rem;
    }

    .nav-links.active { 
        right: 0; 
    }

    /* Stack columns and center align for mobile */
    .hero .container, 
    .row-section .container, 
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
        align-items: center; /* Overrides flex-start so content centers on mobile */
    }

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

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

    /* Keep images and forms at a good width on mobile */
    .hero-image, .row-image { 
        order: 2; 
        width: 100%;
    }

    .hero-content, .row-content { 
        order: 1; 
    }

    .hero-image img, .row-image img { 
        max-width: 100%; 
        margin: 0 auto; 
    }

    .features .container { 
        grid-template-columns: 1fr; 
    }

    /* Ensure the form container doesn't get too squeezed */
    .form-container {
        width: 100%;
        padding: 10px;
    }
}

.estimate-callout a {
    color: inherit;
    text-decoration: underline;
}

.estimate-callout a:hover {
    color: var(--racing-green);
}

/* --- Testimonial Source Links --- */
.review-link {
    color: var(--union-jack-red);
    text-decoration: none;
    transition: color 0.3s ease;
}

.review-link:hover {
    color: var(--racing-green);
    text-decoration: underline;
}

/* Hide all slides by default */
.testimonial-slide {
    display: none;
    opacity: 0;
}

/* Only show the one with the active class */
.testimonial-slide.active {
    display: block;
    opacity: 1;
    transition: opacity 0.8s ease-in-out;
}

/* --- Specific Spacing for Why Mitchell's --- */
.dealer-comparison {
    padding: 0.5rem 0 !important; /* Removes almost all vertical padding from the outer section */
}

.dealer-comparison .comparison-card {
    margin: 0 auto; /* Removes the top and bottom margins from the card itself */
    padding: 30px;  /* Keeps internal breathing room for the text */
}

/* Reduces space between the headline and the list/link below it */
.large-headline {
    margin-bottom: 0.5rem; 
}

#about {
    padding-top: 0.5rem;
}

/* The Modal (background) */
#privacyModal {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 9999; /* Sit on top of everything */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content Box */
.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%; 
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}