/* =========================================================
   1. GLOBAL RESET & VARIABLES
   ========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Adds smooth scrolling for anchor links */
}

:root {
    --primary: #d4af37; /* Gold accent */
    --dark: #1a1a1a;
    --light: #f9f9f9;
    --gray: #e0e0e0;
}

body {
    background-color: var(--light);
    color: var(--dark);
}

.hidden { 
    display: none !important; 
}


/* =========================================================
   2. NAVIGATION BAR
   ========================================================= */
header {
    background-color: var(--dark);
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    color: white;
}

.logo { 
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    max-height: 45px; 
    width: auto;
}

.nav-links { 
    list-style: none; 
    display: flex; 
    gap: 2rem; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.3s; 
}

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


/* =========================================================
   3. HERO SECTION & BOOKING WIDGET (HOME PAGE)
   ========================================================= */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0 20px;
}

.hero h1 { 
    font-size: 3.5rem; 
    margin-bottom: 1rem; 
}

.hero p { 
    font-size: 1.2rem; 
    margin-bottom: 2.5rem; 
}

.booking-widget {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 1000px;
    margin: 0 auto;
}

#booking-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
    text-align: left;
}

.input-group label {
    color: var(--dark);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.input-group input, 
.input-group select {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
    height: 47px;
}

.btn-primary:hover { 
    background-color: #bfa030; 
}

.btn-secondary {
    background: var(--dark);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-secondary:hover { 
    background: var(--primary); 
    color: var(--dark); 
}


/* =========================================================
   4. FLEET SECTION (HOME PAGE)
   ========================================================= */
.fleet-section { 
    padding: 5rem 5%; 
    text-align: center; 
}

.fleet-section h2 { 
    font-size: 2.5rem; 
    margin-bottom: 3rem; 
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s;
    text-align: left;
}

.car-card:hover { 
    transform: translateY(-10px); 
}

.car-image {
    height: 200px;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; 
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    transition: transform 0.4s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.08); 
}

.car-details { 
    padding: 20px; 
}

.car-type { 
    color: #666; 
    font-size: 0.9rem; 
    margin: 8px 0 15px; 
    font-weight: 600; 
}

.car-desc {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.price-book {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--gray);
    padding-top: 15px;
}

.price { 
    font-size: 1.4rem; 
    font-weight: bold; 
    color: var(--dark); 
}

.price span { 
    font-size: 0.9rem; 
    color: #666; 
    font-weight: normal; 
}


/* =========================================================
   5. ABOUT US PAGE
   ========================================================= */
.about-hero {
    height: 50vh;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?auto=format&fit=crop&w=1920&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
}

.about-content {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.values-section {
    background-color: white;
    padding: 5rem 5%;
    text-align: center;
}

.values-section h2 {
    font-size: 2.5rem;
    color: var(--dark);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.value-card {
    padding: 2.5rem 2rem;
    border-radius: 12px;
    background: var(--light);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

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

.value-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.value-card h3 {
    margin-bottom: 1rem;
    color: var(--dark);
    font-size: 1.3rem;
}

.value-card p {
    color: #666;
    line-height: 1.6;
}


/* =========================================================
   6. CONTACT PAGE
   ========================================================= */
.contact-page-section {
    padding: 5rem 5%; 
    background-color: var(--light);
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-info-box h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.contact-info-box p {
    color: #555;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    font-size: 1.05rem;
}

.contact-details {
    list-style: none;
}

.contact-details li {
    margin-bottom: 1.8rem;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: #555;
    font-size: 1.05rem;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.5rem;
    width: 30px;
    margin-top: 3px;
}

.contact-form-box {
    display: flex;
    flex-direction: column;
}

.contact-form-box .input-group {
    margin-bottom: 15px;
    width: 100%;
}

.contact-form-box textarea {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
    resize: vertical;
    width: 100%;
    font-family: inherit;
}

.contact-form-box textarea:focus,
.contact-form-box input:focus,
.contact-form-box select:focus {
    outline: none;
    border-color: var(--primary);
}


/* =========================================================
   7. LEGAL PAGES (Terms & Conditions, Privacy Policy)
   ========================================================= */
.legal-section {
    padding: 5rem 5%; 
    background-color: var(--light);
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem 4rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.legal-container h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.legal-container .last-updated {
    color: #888;
    margin-bottom: 2.5rem;
    font-style: italic;
    font-size: 0.9rem;
}

.legal-container h2 {
    font-size: 1.4rem;
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray);
    padding-bottom: 0.5rem;
}

.legal-container p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.legal-container ul {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-container li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}


/* =========================================================
   8. FOOTER
   ========================================================= */
.main-footer {
    background-color: var(--dark);
    color: #cccccc;
    padding: 4rem 5% 2rem;
    margin-top: 5rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h5 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-logo img {
    max-height: 50px;
    margin-bottom: 1.2rem;
}

.footer-col p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 15px;
    list-style: none;
}

.social-links a {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s, transform 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--dark);
    transform: translateY(-3px);
}

.footer-links, 
.contact-info {
    list-style: none;
}

.footer-links li, 
.contact-info li {
    margin-bottom: 15px;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.footer-links a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-links i, 
.contact-info i {
    color: var(--primary);
    margin-top: 3px;
}

.contact-info span {
    line-height: 1.5;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}

.payment-methods {
    display: flex;
    gap: 15px;
    align-items: center;
    background: white;
    padding: 8px 15px;
    border-radius: 6px;
}


/* =========================================================
   9. BOOKING MODAL POPUP
   ========================================================= */
.modal-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: #666;
}

.close-modal:hover { 
    color: var(--dark); 
}

.modal-content h2 { 
    margin-bottom: 5px; 
    color: var(--dark); 
}

.modal-subtitle { 
    color: var(--primary); 
    font-weight: bold; 
    margin-bottom: 25px; 
    font-size: 1.1rem; 
}

.modal-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
}

.modal-input-group label { 
    font-size: 0.9rem; 
    font-weight: 600; 
    margin-bottom: 5px; 
}

.modal-input-group input {
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 6px;
    font-size: 1rem;
}

.modal-submit { 
    width: 100%; 
    margin-top: 10px; 
}


/* =========================================================
   10. MOBILE RESPONSIVENESS (MEDIA QUERIES)
   ========================================================= */

/* Tablets and smaller desktop screens */
@media (max-width: 850px) {
    /* About Us Page Grid */
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    /* Contact Page Grid */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 2rem;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    /* Hero Text */
    .hero h1 { 
        font-size: 2.5rem; 
    }
    
    .hero p { 
        font-size: 1rem; 
    }
    
    /* Booking Form Layout */
    .input-group {
        min-width: 100%; /* Stacks form inputs on mobile */
    }
    
    .btn-primary {
        width: 100%;
    }

    /* Legal Pages */
    .legal-container {
        padding: 2rem 1.5rem;
    }
    
    .legal-container h1 {
        font-size: 2rem;
    }
}