/* --- 1. Variables (New Red Color Scheme) --- */
:root {
    --primary-color: #951F20;      /* CLIENT RED */
    --primary-dark: #701516;       /* Darker Red for Hover */
    --text-dark: #333333;          /* Dark Grey for Text */
    --text-light: #666666;         /* Light Grey for paragraphs */
    --bg-light: #f4f6f8;           /* Light Blue-Grey Background */
    --white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 25px rgba(149, 31, 32, 0.15); /* Red tinted shadow */
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif; }

body { background-color: var(--white); color: var(--text-dark); line-height: 1.6; display: flex; flex-direction: column; min-height: 100vh; }

/* --- 2. Typography & Layout --- */
h1, h2, h3 { color: var(--text-dark); margin-bottom: 15px; font-weight: 700; }
.container { max-width: 1200px; margin: 0 auto; padding: 50px 20px; }
.text-center { text-align: center; }
.section-title { font-size: 2.2rem; margin-bottom: 10px; color: var(--primary-color); }
.section-subtitle { color: var(--text-light); margin-bottom: 40px; font-size: 1.1rem; }

/* --- 3. Header & Navigation --- */
header { background: var(--white); border-bottom: 3px solid var(--primary-color); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1000; }
nav { display: flex; justify-content: space-between; align-items: center; padding: 15px 5%; max-width: 1200px; margin: 0 auto; }

.logo { font-size: 1.6rem; font-weight: 800; color: var(--primary-color); text-decoration: none; letter-spacing: -0.5px; }
.logo span { color: var(--text-dark); }

.nav-links { list-style: none; display: flex; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 600; transition: 0.3s; font-size: 15px; }
.nav-links a:hover { color: var(--primary-color); }

.cta-btn { background: var(--primary-color); color: var(--white) !important; padding: 10px 25px; border-radius: 50px; font-weight: bold; box-shadow: 0 4px 10px rgba(149, 31, 32, 0.3); transition: all 0.3s; }
.cta-btn:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* --- 4. Mobile Menu --- */
.burger { display: none; cursor: pointer; font-size: 1.5rem; color: var(--text-dark); }

/* --- 5. Hero Section (Enhanced) --- */
.hero-split {
    /* Updated Image URL */
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://www.hwh-insurance.co.uk/wp-content/uploads/2018/02/motor-trade.jpg');
    background-size: cover; background-position: center; background-repeat: no-repeat;
    padding: 80px 5%;
    display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 50px;
}

/* Left Text Box */
.hero-text-box {
    flex: 1; min-width: 300px; max-width: 600px;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(5px); /* Modern blur effect */
    padding: 40px; border-radius: 10px; border-left: 6px solid var(--primary-color); color: var(--white);
}
.hero-text-box h1 { color: var(--white); font-size: 2.5rem; margin-bottom: 15px; font-weight: 800; line-height: 1.2; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.hero-text-box h1 span { color: #ffcccb; } /* Light Red for emphasis */
.hero-text-box h2 { font-size: 1.4rem; margin-bottom: 25px; color: #f0f0f0; font-weight: 600; }
.hero-text-box ul { list-style: none; margin-top: 20px; }
.hero-text-box ul li { margin-bottom: 12px; font-size: 1.1rem; display: flex; align-items: flex-start; }
.hero-text-box ul li i { margin-right: 12px; color: var(--primary-color); background: white; border-radius: 50%; padding: 2px; font-size: 14px; margin-top: 4px; }

/* --- RIGHT FORM BOX (Premium UI/UX) --- */
.hero-form-box {
    flex: 1; min-width: 320px; max-width: 450px;
    background: var(--white);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-radius: 12px; overflow: hidden; transform: translateY(0); transition: transform 0.3s;
}
.hero-form-box:hover { transform: translateY(-5px); }

.form-header {
    background: var(--primary-color); /* The #951F20 Red */
    background: linear-gradient(135deg, var(--primary-color) 0%, #701516 100%); /* Gradient Red */
    color: var(--white); padding: 20px; text-align: center;
    font-size: 1.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}

.form-body { padding: 25px; }

/* Form Inputs Styling */
.form-row { display: flex; gap: 15px; margin-bottom: 15px; }
.form-col { flex: 1; }
.form-col-small { flex: 0 0 85px; }

.hero-form-box input, 
.hero-form-box select {
    width: 100%; padding: 12px;
    border: 2px solid #eee; border-radius: 6px;
    font-size: 0.95rem; background: #f9f9f9; color: #333; transition: all 0.3s ease;
}

/* UI/UX Focus Effects */
.hero-form-box input:focus,
.hero-form-box select:focus {
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(149, 31, 32, 0.15); /* Red Glow */
    outline: none;
}

/* Submit Button */
.hero-submit-btn {
    width: 100%;
    background-color: #333; /* Dark button for contrast against Red theme */
    color: var(--white); border: none; padding: 16px;
    font-size: 1.2rem; font-weight: 800; cursor: pointer;
    margin-top: 15px; border-radius: 6px; transition: 0.3s;
    text-transform: uppercase; box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.hero-submit-btn:hover { background-color: var(--primary-color); transform: scale(1.02); }

/* --- 6. Services Grid (Better Look) --- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.card {
    background: var(--white); padding: 40px 30px; border-radius: 10px;
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow-sm); transition: all 0.4s ease;
    text-align: center; position: relative; overflow: hidden;
}
.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-bottom-color: var(--primary-color);
}
.card h3 { color: var(--text-dark); margin: 20px 0 10px; font-size: 1.4rem; }
.card p { color: var(--text-light); font-size: 0.95rem; }
.card-icon {
    width: 70px; height: 70px; background: rgba(149, 31, 32, 0.1);
    color: var(--primary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto; font-size: 1.8rem; transition: 0.3s;
}
.card:hover .card-icon { background: var(--primary-color); color: white; }

/* --- 7. About Us Section (New 50/50 Layout) --- */
.about-wrapper { display: flex; flex-wrap: wrap; gap: 50px; align-items: center; }
.about-text { flex: 1; min-width: 300px; }
.about-image { flex: 1; min-width: 300px; position: relative; }
.about-image img { width: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.about-image::before {
    content: ''; position: absolute; top: -20px; left: -20px;
    width: 100px; height: 100px; background: var(--primary-color);
    z-index: -1; border-radius: 10px; opacity: 0.2;
}
/* --- ANIMATIONS --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-up { animation: fadeInUp 1s ease-out forwards; }
.animate-left { animation: slideInLeft 1s ease-out forwards; }
.animate-right { animation: slideInRight 1s ease-out forwards; }

/* About Hero Specific */
.about-hero {
    background: #f8f9fa; /* Light Grey Background */
    background-image: radial-gradient(#e0e0e0 1px, transparent 1px);
    background-size: 20px 20px; /* Subtle Dot Pattern */
    padding: 100px 20px;
    text-align: center;
    border-bottom: 4px solid var(--primary-color);
}

.about-hero h1 {
    color: var(--primary-color); /* YOUR RED COLOR */
    font-size: 3.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
}

.about-hero p {
    color: #666;
    font-size: 1.2rem;
    margin-top: 10px;
}

/* --- 8. Footer --- */
footer { background: #222; color: var(--white); padding: 60px 20px 30px; margin-top: auto; }
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; }
.footer-col h4 { color: var(--white); border-bottom: 3px solid var(--primary-color); display: inline-block; padding-bottom: 10px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #aaa; text-decoration: none; transition: 0.3s; }
.footer-col a:hover { color: var(--primary-color); padding-left: 5px; }
.copyright { text-align: center; margin-top: 50px; padding-top: 20px; border-top: 1px solid #444; font-size: 0.85rem; color: #888; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
        flex-direction: column; text-align: center; padding: 20px 0; box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .burger { display: block; }
    
    .hero-split { padding: 40px 15px; flex-direction: column; align-items: center; }
    .hero-text-box, .hero-form-box { width: 100%; max-width: 100%; }
    
    .form-row { flex-wrap: wrap; gap: 10px; }
    .form-col, .form-col-small { flex: 1 1 100%; width: 100%; }
    
    /* Keep DOB in line on mobile */
    .dob-row { flex-wrap: nowrap; }
    .dob-row .form-col { flex: 1; }

    .about-wrapper { flex-direction: column; }
    .section-title { font-size: 1.8rem; }
    
    /* Contact page mobile responsiveness */
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
}


/* --- 3D FORM STYLES (Premium UI) --- */
.hero-form-3d {
    flex: 1;
    min-width: 320px;
    max-width: 450px;
    background: #ffffff;
    border-radius: 15px;
    padding: 0; /* Header handles padding */
    box-shadow: 
        0 15px 35px rgba(0,0,0,0.2), /* Deep shadow */
        0 5px 15px rgba(0,0,0,0.1);  /* Soft shadow */
    border: 1px solid rgba(255,255,255,0.5);
    transform: perspective(1000px) rotateX(0deg);
    transition: transform 0.3s ease;
    overflow: hidden; /* Header radius fix */
    margin: 0;
}

.hero-form-3d:hover {
    transform: translateY(-5px); /* Lift effect */
    box-shadow: 
        0 25px 50px rgba(149, 31, 32, 0.25), /* Red tinted glow */
        0 10px 20px rgba(0,0,0,0.1);
}

.form-3d-header {
    background: linear-gradient(135deg, #951F20 0%, #5a0e0f 100%); /* Deep Red Gradient */
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    position: relative;
    z-index: 2;
}

.form-3d-body {
    padding: 30px 25px;
    background: #fdfdfd;
}

/* 3D Inputs (Inner Shadow Look) */
.input-3d {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #f4f6f8;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.05), inset -2px -2px 5px rgba(255,255,255,0.8);
    transition: all 0.3s;
    font-size: 0.95rem;
    margin-bottom: 0; /* Handled by row gap */
}

.input-3d:focus {
    background: #fff;
    border-color: #951F20;
    box-shadow: 0 0 0 3px rgba(149, 31, 32, 0.15); /* Red Glow */
    outline: none;
}

/* 3D Button (Pressable Look) */
.btn-3d {
    width: 100%;
    background: linear-gradient(to bottom, #951F20, #7a1617);
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 15px;
    border: none;
    border-radius: 8px;
    border-bottom: 4px solid #500e0e; /* Dark bottom for depth */
    cursor: pointer;
    transition: all 0.1s;
    text-transform: uppercase;
    margin-top: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.btn-3d:active {
    transform: translateY(3px); /* Button presses down */
    border-bottom: 1px solid #500e0e; /* Shadow disappears */
}

/* Ensure layout matches previous hero */
.hero-split {
    align-items: center; /* Center vertically */
}

/* --- DROPDOWN MENU STYLES --- */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 3px solid var(--primary-color); /* The Red Line */
    list-style: none;
    padding: 0;
    z-index: 9999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 15px;
    color: var(--text-dark);
    font-size: 0.95rem;
    border-bottom: 1px solid #eee;
}

.dropdown-menu li a:hover {
    background-color: var(--bg-light);
    color: var(--primary-color);
    padding-left: 20px; /* Slight movement effect */
}

/* Show Dropdown on Hover (Desktop) */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* --- TOP BAR (Phone Strip) --- */
.top-bar {
    background-color: #222;
    color: white;
    padding: 8px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
.top-bar i { margin-right: 5px; color: var(--primary-color); }
.top-bar span { margin-left: 20px; }

/* --- MOBILE ADJUSTMENTS FOR DROPDOWN --- */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static; /* Stack vertically on mobile */
        display: none; /* Hidden by default */
        width: 100%;
        box-shadow: none;
        background-color: #f9f9f9;
        border-top: none;
    }
    
    /* Mobile par click karne par dikhana chahiye (Simple hover fix) */
    .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li a {
        padding-left: 30px; /* Indent sub-menu items */
        font-size: 0.9rem;
    }
    
    .top-bar { justify-content: center; }
}

/* --- CONTACT FORM STYLES --- */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-dark);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(149, 31, 32, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(149, 31, 32, 0.3);
}

.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(149, 31, 32, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}