/* =========================================
   1. VARIABLES & GLOBAL RESET
   ========================================= */
:root {
    --primary-color: #0f172a; /* Deep Navy */
    --accent-color: #3b82f6;  /* Bright Blue */
    --accent-hover: #2563eb;
    --text-dark: #334155;
    --text-light: #f8fafc;
    --bg-light: #ffffff;
    --bg-off-white: #f1f5f9;
    --max-width: 1200px;
    --article-width: 800px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }
a { text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* =========================================
   2. UTILITY CLASSES & BUTTONS
   ========================================= */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section-title { text-align: center; margin-bottom: 60px; font-size: 2.5rem; color: var(--primary-color); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary { background-color: var(--accent-color); color: white; border: 2px solid var(--accent-color); }
.btn-primary:hover { background-color: var(--accent-hover); transform: translateY(-2px); }

.btn-outline { background-color: transparent; color: white; border: 2px solid white; margin-left: 10px; }
.btn-outline:hover { background-color: white; color: var(--primary-color); }

/* =========================================
   3. NAVIGATION (HEADER)
   ========================================= */
header { background-color: var(--primary-color); padding: 20px 0; position: sticky; top: 0; z-index: 100; }

nav { display: flex; justify-content: space-between; align-items: center; }

.logo { color: white; font-size: 1.5rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

.nav-links { display: flex; align-items: center; } 
.nav-links a { color: var(--text-light); margin-left: 20px; font-size: 0.9rem; opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

.cta-btn-nav {
    background: var(--accent-color);
    padding: 8px 16px;
    border-radius: 4px;
    color: white !important;
    font-weight: bold;
    opacity: 1 !important;
}

/* Hamburger Icon (Hidden on Desktop) */
.hamburger { display: none; cursor: pointer; }
.hamburger div { width: 25px; height: 3px; background-color: white; margin: 5px; transition: all 0.3s ease; }

/* =========================================
   4. HOMEPAGE SPECIFIC STYLES
   ========================================= */
/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
                url('images/mobile-detailing-bognor-regis-hero.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
}

.hero-content { max-width: 700px; } /* This was the missing piece! */
.hero h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; margin-bottom: 30px; opacity: 0.9; }

.location-tag {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border-left: 3px solid var(--accent-color);
}

/* Intro & Audit */
.intro { padding: 80px 0; text-align: center; background-color: white; }
.intro h2 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 20px; }
.intro p { max-width: 800px; margin: 0 auto; color: #64748b; font-size: 1.1rem; }

.audit-section { background-color: var(--bg-off-white); padding: 80px 0; }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.audit-content h2 { font-size: 2.2rem; color: var(--primary-color); }

.audit-list { margin-top: 30px; list-style: none; }
.audit-list li {
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: start;
}
.audit-icon { font-size: 1.5rem; margin-right: 15px; color: var(--accent-color); }

/* Services Section */
.services { padding: 80px 0; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.service-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    background: white;
}
.service-card:hover { transform: translateY(-5px); }
.service-img { height: 250px; width: 100%; object-fit: cover; }

.service-info { padding: 30px; background: white; border: 1px solid #e2e8f0; border-top: none; }
.service-info h3 { font-size: 1.5rem; color: var(--primary-color); margin-bottom: 15px; }

.service-features { list-style: none; margin-bottom: 20px; color: #64748b; }
.service-features li::before { content: "✓"; color: var(--accent-color); margin-right: 10px; }

/* Testimonials */
.testimonials { background-color: var(--bg-off-white); padding: 80px 0; text-align: center; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.review-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: left; border-top: 4px solid var(--accent-color); }
.stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 15px; display: block; }
.review-text { font-style: italic; color: #475569; margin-bottom: 20px; font-size: 1rem; }
.client-name { font-weight: bold; color: var(--primary-color); }
.client-car { font-size: 0.85rem; color: #94a3b8; }

/* FAQ */
.faq-section { padding: 80px 0; background-color: white; }
.faq-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; margin-top: 40px; }
.faq-item h3 { font-size: 1.2rem; color: var(--primary-color); margin-bottom: 10px; border-left: 4px solid var(--accent-color); padding-left: 15px; }
.faq-item p { color: #64748b; font-size: 1rem; margin-left: 19px; margin-bottom: 20px; }

/* About Me */
.about-section { padding: 80px 0; background-color: var(--bg-off-white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-img { width: 100%; border-radius: 10px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); transform: rotate(-2deg); border: 5px solid white; }
.about-text h2 { font-size: 2.2rem; color: var(--primary-color); margin-bottom: 20px; }
.about-text p { color: #475569; margin-bottom: 20px; font-size: 1.05rem; }
.signature { font-family: 'Segoe UI', sans-serif; font-size: 1.2rem; font-weight: bold; color: var(--accent-color); margin-top: 20px; }

/* Locations */
.locations { background-color: var(--primary-color); color: white; padding: 60px 0; text-align: center; }
.location-list { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 30px; }
.town-tag { background: rgba(255,255,255,0.1); padding: 10px 20px; border-radius: 50px; font-size: 1rem; }

/* Footer */
footer { background-color: #020617; color: #94a3b8; padding: 40px 0; text-align: center; font-size: 0.9rem; }

/* =========================================
   5. BLOG & ARTICLE SPECIFIC STYLES
   ========================================= */
.blog-header, .article-hero { padding: 80px 0; text-align: center; background-color: var(--bg-off-white); border-bottom: 1px solid #e2e8f0; }
.blog-header h1, .article-hero h1 { font-size: 2.5rem; color: var(--primary-color); margin-bottom: 10px; }
.blog-header p, .meta-text { font-size: 1.1rem; color: #64748b; }

/* Blog Grid */
.blog-section { padding: 60px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.blog-card { border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; background: white; transition: transform 0.3s, box-shadow 0.3s; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.blog-img { width: 100%; height: 220px; object-fit: cover; border-bottom: 1px solid #f1f5f9; }
.blog-content { padding: 25px; }
.blog-tag, .category-tag { background: var(--accent-color); color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: bold; text-transform: uppercase; margin-bottom: 10px; display: inline-block; }
.blog-content h2 { margin: 10px 0; font-size: 1.4rem; color: var(--primary-color); }
.read-more { color: var(--accent-color); font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; }

/* Article Content */
.container-article { max-width: var(--article-width); margin: 0 auto; padding: 0 20px; }
.featured-img-container { max-width: 400px; margin: -40px auto 40px; padding: 0 20px; }
.featured-img { width: 100%; border-radius: 10px; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.article-content { font-size: 1.1rem; color: #475569; margin-bottom: 80px; }
.article-content h2 { font-size: 1.8rem; color: var(--primary-color); margin-top: 40px; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.article-content h3 { font-size: 1.4rem; color: var(--text-dark); margin-top: 30px; margin-bottom: 10px; }

/* Table Styles */
table { width: 100%; border-collapse: collapse; margin: 30px 0; font-size: 0.95rem; }
th, td { border: 1px solid #e2e8f0; padding: 15px; text-align: left; }
th { background-color: var(--primary-color); color: white; }
tr:nth-child(even) { background-color: #f8fafc; }

/* CTA Box */
.cta-box { background-color: #ecfdf5; border: 1px solid #10b981; border-radius: 10px; padding: 40px; margin-top: 50px; text-align: center; }
.cta-box h3 { color: #065f46; font-size: 1.5rem; margin-bottom: 15px; }
.cta-box p { color: #064e3b; margin-bottom: 25px; }
.btn-whatsapp { display: inline-block; background-color: #25D366; color: white; padding: 15px 30px; border-radius: 50px; font-weight: bold; font-size: 1rem; transition: background 0.3s; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.btn-whatsapp:hover { background-color: #128C7E; transform: translateY(-2px); }

/* =========================================
   6. MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
    /* Header & Nav */
    .hero h1 { font-size: 2.2rem; }
    .hamburger { display: block; }

    .nav-links {
        display: none; /* Default Hidden */
        position: absolute;
        top: 70px; left: 0; width: 100%;
        background-color: var(--primary-color);
        flex-direction: column; 
        align-items: center;
        padding: 20px 0; 
        border-top: 1px solid #1e293b;
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }

    .nav-links.active { display: flex; } /* JavaScript Toggles This */
    .nav-links a { margin: 15px 0; display: block; margin-left: 0; }
    
    .btn-outline { display: block; width: 100%; margin: 10px 0 0 0; }

    /* Grids: Stack Columns */
    .audit-grid, .about-grid, .faq-grid, .blog-grid, .services-grid { grid-template-columns: 1fr; gap: 30px; }
    
    /* Image Fixes */
    .about-img { transform: rotate(0deg); }
    .location-list { flex-direction: column; }
    
    /* Article Table Mobile Fix */
    table, thead, tbody, th, td, tr { display: block; }
    th { display: none; }
    td { border: none; border-bottom: 1px solid #eee; position: relative; padding-left: 50%; }
    td:before { 
        position: absolute; left: 15px; width: 45%; 
        font-weight: bold; white-space: nowrap; 
        content: attr(data-label); /* CRITICAL: Reads the HTML label */
    }
}

/* --- PROCESS SECTION --- */
.process-section {
    padding: 60px 0 80px;
    background-color: white;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.process-step {
    position: relative;
    padding: 20px;
}

/* The Number Circle */
.step-number {
    background-color: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
}

.process-step h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Arrow between steps (Desktop only) */
@media (min-width: 769px) {
    .process-step:not(:last-child)::after {
        content: "→";
        position: absolute;
        right: -20px;
        top: 25px; /* Aligns with the circle */
        font-size: 1.5rem;
        color: #cbd5e1;
        font-weight: bold;
    }
}

/* --- TRADE / B2B SECTION --- */
.trade-section {
    background-color: #1e293b; /* Slightly lighter navy than header */
    color: white;
    padding: 80px 0;
    border-top: 4px solid var(--accent-color);
}

.trade-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.trade-content h2 {
    font-size: 2.2rem;
    color: white;
    margin-bottom: 20px;
}

.trade-content p {
    color: #cbd5e1; /* Light grey text */
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.trade-list {
    margin-bottom: 30px;
}

.trade-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
}

.trade-list li::before {
    content: "★";
    color: var(--accent-color);
    margin-right: 15px;
    font-size: 1.2rem;
}

.trade-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    display: inline-block;
    margin-bottom: 20px;
}

/* Mobile Fix for Trade Section */
@media (max-width: 768px) {
    .trade-grid { grid-template-columns: 1fr; }
}