/* ============================================
   1. VARIABLES & CONFIGURATION
   ============================================ */
:root {
    /* --- Brand Colors (Unified) --- */
    /* Primary: Blackish Blue */
    --color-primary: #1B2B5A; 
    --primary: #1B2B5A; /* Mapping old var to new */
    --primary-dark: #152347;
    
    /* Accent: Green */
    --color-accent: #2EAD4B;
    --accent: #2EAD4B; /* Mapping old var to new */
    
    /* Neutrals */
    --color-text: #2D3748;
    --color-text-light: #64748B;
    --color-bg: #FFFFFF;
    --white: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-bg-alt: #F1F5F9;
    --off-white: #F8FAFC;

    /* --- Typography --- */
    /* Using the new font stack, but Playfair preserved for Hero Headings if needed */
    --font-display: 'Georgia', 'Times New Roman', serif;
    --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-hero: 'Playfair Display', serif; 

    /* --- Shadows & Transitions --- */
    --shadow-sm: 0 2px 8px rgba(27, 43, 90, 0.06);
    --shadow-md: 0 8px 24px rgba(27, 43, 90, 0.08);
    --shadow-lg: 0 16px 48px rgba(27, 43, 90, 0.12);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Prevents horizontal scroll on mobile */
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-primary);
    font-weight: 600;
    line-height: 1.3;
}

/* ============================================
   3. LAYOUT COMPONENTS
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

section {
    position: relative;
    width: 100%;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-decorator {
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    margin: 16px auto;
    border-radius: 2px;
}

.section-description {
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin: 0 auto;
}

/* ============================================
   4. BUTTON STYLES (Consolidated)
   ============================================ */
/* ============================================
   4. BUTTON STYLES (Fixed for Dark Backgrounds)
   ============================================ */

/* 1. Base Button Reset */
.btn, 
.btn--primary, .btn-primary, 
.btn--outline, .btn-outline,
.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none !important;
    line-height: 1.2;
    box-shadow: none; /* Remove theme shadow */
}

/* 2. Primary Button (Solid Blue) */
.btn--primary,
.btn-primary {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
    border: 2px solid var(--color-primary) !important;
}

.btn--primary:hover,
.btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 3. General Outline Button (For White Backgrounds) */
/* Default state: Blue Text, Blue Border */
.btn--outline,
.btn-outline {
    background-color: transparent !important;
    color: var(--color-primary) !important;
    border: 2px solid var(--color-primary) !important;
}

.btn--outline:hover,
.btn-outline:hover {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

/* 4. HERO & CASE STUDIES Outline Button (For Dark Backgrounds) */
/* This specifically fixes the invisible button in your screenshot */
.hero .btn--outline,
.hero .btn-outline,
.case-studies-section .btn--outline,
.case-studies-section .btn-outline {
    background-color: transparent !important;
    color: #ffffff !important;       /* Force White Text */
    border: 2px solid #ffffff !important; /* Force White Border */
    margin-top: 10px; /* spacing fix for mobile */
}

/* Hover State for Dark Backgrounds: Turns White with Blue Text */
.hero .btn--outline:hover,
.hero .btn-outline:hover,
.case-studies-section .btn--outline:hover,
.case-studies-section .btn-outline:hover {
    background-color: #ffffff !important;
    color: var(--color-primary) !important; /* Text turns Blue */
    border-color: #ffffff !important;
}

/* 5. Accent Button (Green) */
.btn-accent {
    background-color: var(--color-accent) !important;
    color: #ffffff !important;
    border: none !important;
}

.btn-accent:hover {
    background-color: #259840 !important; /* Darker Green */
    transform: translateY(-2px);
}

/* ============================================
   5. HERO SLIDER SECTION (Original Design Preserved)
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 950px;
    overflow: hidden;
    background: var(--color-primary);
}

.hero__slides {
    position: relative;
    height: 100%;
    width: 100%;
}

.hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, visibility 1s ease;
}

.hero__slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero__slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(27, 43, 90, 0.9) 0%,
        rgba(27, 43, 90, 0.7) 60%,
        rgba(27, 43, 90, 0.4) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Center horizontally */
    padding: 0 24px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.hero__title {
    font-family: var(--font-hero); /* Keep the premium look */
    font-size: clamp(32px, 6vw, 64px);
    color: var(--white);
    margin-bottom: 24px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero__title span {
    position: relative;
    display: inline-block;
}

.hero__title span::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--color-accent);
}

.hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero__cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero__indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.hero__indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.hero__indicator.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    transform: scale(1.2);
}

/* ============================================
   6. TRUST CARDS SECTION
   ============================================ */
.trust-section {
    padding: 80px 0;
    background: transparent;
    margin-top: -80px; /* Pull up overlap */
    position: relative;
    z-index: 20;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.trust-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
    transition: var(--transition);
}

.trust-card:hover {
    transform: translateY(-8px);
}

.trust-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--color-bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trust-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-accent);
    fill: none;
    stroke-width: 1.5;
}

.trust-stat {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
    font-family: var(--font-display);
}

/* ============================================
   7. INTRO & COMPARISON SECTION
   ============================================ */
.intro-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.comparison-card {
    padding: 40px;
    border-radius: 16px;
    background: var(--white);
}

.comparison-card.problems {
    background: #FEF2F2;
    border: 1px solid #FECACA;
}

.comparison-card.solutions {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
}

.comparison-card h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.comparison-card.problems h3 { color: #991B1B; }
.comparison-card.solutions h3 { color: #166534; }

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.comparison-list li span {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.comparison-card.problems li span { background: #FEE2E2; color: #DC2626; }
.comparison-card.solutions li span { background: #DCFCE7; color: #16A34A; }

/* ============================================
   8. ABOUT SECTION
   ============================================ */
.about-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--color-accent);
}

.about-decorator {
    width: 50px;
    height: 3px;
    background: var(--color-accent);
    margin-bottom: 24px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #E2E8F0;
}

.about-stat h4 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.about-stat p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* ============================================
   9. VEHICLE & BLOG GRIDS (Shared)
   ============================================ */
.vehicles-section, .blog-section {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.vehicles-grid, .blog-grid, .reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.vehicle-card, .blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.vehicle-card:hover, .blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image, .blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.vehicle-image img, .blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.vehicle-card:hover img, .blog-card:hover img {
    transform: scale(1.05);
}

.vehicle-capacity {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--color-primary);
    color: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vehicle-content, .blog-content {
    padding: 28px;
}

.vehicle-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.vehicle-feature {
    background: var(--color-bg-alt);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    color: var(--color-text);
}

.blog-meta {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.blog-link {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ============================================
   10. CASE STUDIES SECTION (Fixed for Mobile)
   ============================================ */
.case-studies-section {
    padding: 100px 0;
    background: var(--color-primary);
    color: var(--white);
}

.case-studies-section .section-title, 
.case-studies-section .section-description {
    color: var(--white);
}

.case-studies-section .section-description {
    opacity: 0.8;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.case-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    transition: var(--transition);
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-4px);
}

.case-card-label {
    display: inline-block;
    background: var(--color-accent);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.case-card h3 {
    color: var(--white);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.case-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.case-result {
    display: flex;
    justify-content: space-between; /* Better spacing */
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.case-result-item {
    text-align: center;
    flex: 1; /* Distribute space evenly */
}

.case-result-item strong {
    display: block;
    color: var(--color-accent);
    font-size: 1.5rem;
    font-weight: 700;
}

.case-result-item span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
}

/* ============================================
   11. REVIEWS & FAQ
   ============================================ */
.reviews-section, .faq-section {
    padding: 100px 0;
    background: var(--color-bg);
}

.review-card {
    background: var(--color-bg-light);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
}

.review-stars svg {
    width: 18px;
    height: 18px;
    fill: #F59E0B;
}

.review-card blockquote {
    font-size: 1rem;
    font-style: italic;
    margin: 20px 0;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* FAQ */
/* ============================================
   FAQ SECTION (Fixed Hover Issues)
   ============================================ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #E2E8F0;
}

/* The Button Header */
.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    
    /* OVERRIDE THEME DEFAULTS */
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary) !important;
    transition: color 0.3s ease;
}

/* Hover State - Turn text Green, Keep Background Transparent */
.faq-question:hover,
.faq-question:focus,
.faq-question:active {
    background: transparent !important;
    background-color: transparent !important;
    color: var(--color-accent) !important;
    box-shadow: none !important;
}

.faq-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--color-bg-alt);
    color: var(--color-primary); /* Default icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0; /* Prevents icon from squishing on mobile */
}

/* Active State (When open) */
.faq-item.active .faq-icon {
    background: var(--color-accent);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-item.active .faq-question {
    color: var(--color-accent) !important;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer-content {
    padding-bottom: 24px;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* ============================================
   12. ANIMATIONS
   ============================================ */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   13. RESPONSIVE DESIGN
   ============================================ */

/* Laptop / Tablet */
@media (max-width: 1024px) {
    .trust-grid, .vehicles-grid, .blog-grid, .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid {
        gap: 40px;
    }
}

/* Tablet Portrait */
@media (max-width: 768px) {
    .hero {
        height: 80vh; /* Slightly smaller hero on mobile */
    }

    .trust-section {
        margin-top: 0;
        padding-top: 60px;
    }

    /* Collapse all grids to 1 column */
    .trust-grid,
    .comparison-grid,
    .about-grid,
    .case-studies-grid,
    .vehicles-grid,
    .reviews-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1; /* Image on top */
        min-height: 300px;
    }

    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    /* Hero Adjustments */
    .hero__title {
        font-size: 2.25rem;
    }
    
    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .hero__cta .btn {
        width: 100%;
    }

    /* Case Study Overflow Fix */
    .case-card {
        padding: 24px; /* Reduce padding */
    }

    .case-result {
        flex-wrap: wrap; /* Allow items to wrap */
        justify-content: flex-start;
        gap: 16px;
    }

    .case-result-item {
        flex: 1 1 40%; /* Each item takes roughly half width, wrapping if needed */
        text-align: left;
    }

    /* About Stats Fix */
    .about-stats {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* General Padding */
    .container {
        padding: 0 20px;
    }
}