/*
Theme Name: Car Rental Pro
Theme URI: https://example.com/car-rental
Author: Car Rental Team
Author URI: https://example.com
Description: A professional WordPress theme for car rental services with carousel, categories, and WhatsApp booking integration.
Version: 2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: car-rental
*/

/* ========================================
   MODERN DESIGN - INSPIRED BY LUXURY BRANDS
   ======================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette - Elegant & Modern */
    --primary-dark: #1a1a1a;
    --primary-black: #000000;
    --accent-gold: #d4af37;
    --accent-gold-light: #f0d78c;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --bg-white: #ffffff;
    --bg-light: #f8f8f8;
    --bg-dark: #0a0a0a;
    --border-light: #e5e5e5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-white);
    font-size: 16px;
    font-weight: 400;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }

p {
    font-family: var(--font-body);
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    color: var(--bg-white);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

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

.site-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bg-white);
    text-decoration: none;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
}

.site-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-gold);
}

.site-title:hover {
    color: var(--accent-gold);
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.85rem;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent-gold);
}

/* ========================================
   HERO SECTION
   ======================================== */

.hero {
    position: relative;
    background: linear-gradient(135deg, rgba(0,0,0,0.8), rgba(0,0,0,0.5)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%231a1a1a" width="1200" height="600"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--bg-white);
    padding: 8rem 0;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(0,0,0,0.5) 100%);
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1.5rem;
    color: var(--bg-white);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 2.5rem;
    color: rgba(255,255,255,0.9);
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
[class$="-section"] {
    background: #e2e0e0 !important; /* your background */
}
[class$="-page"] {
    background: #e2e0e0 !important; /* your background */
}
[class$="single-car"] {
    background: #e2e0e0 !important; /* your background */
}
.hero {
    background-image: url("https://classgauto.com/wp-content/uploads/2025/11/8f04615f4092e1eab91c20e50fcb05ba.png") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}





/* ========================================
   FEATURED SECTION
   ======================================== */

.featured-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-subtitle {
    font-size: 0.9rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.section-description {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ========================================
   CAR CAROUSEL
   ======================================== */

.car-carousel {
    margin: var(--spacing-lg) 0;
    position: relative;
    overflow: hidden;
}

.carousel-container {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    min-width: 100%;
    padding: 0 15px;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Car Cards - Premium Design */
.car-card {
    background: var(--bg-white);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-light);
    position: relative;
}

.car-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-gold) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.car-card:hover::before {
    opacity: 0.05;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border-color: var(--accent-gold);
}

.car-image {
    width: 100%;
    height: 240px;
    object-fit: contain !important;
    transition: transform 0.6s ease;
    background: var(--bg-light);
}

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

.car-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.car-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.car-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-top: 1.5rem;
    font-family: var(--font-heading);
}

.car-price-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.carousel-btn {
    background: var(--primary-black);
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    transform: scale(1.1);
}

/* ========================================
   CATEGORIES SECTION
   ======================================== */

.categories-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--bg-white);
    color: var(--text-primary);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: block;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent-gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}

.category-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.category-card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* ========================================
   CAR ARCHIVE PAGE
   ======================================== */

.cars-archive {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.archive-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-light);
}

.archive-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

/* ========================================
   SINGLE CAR PAGE
   ======================================== */

.single-car {
    padding: 0;
    margin: 0;
    background: var(--bg-white);
}

.car-detail {
    background: var(--bg-white);
    overflow: hidden;
    max-width: 100%;
    margin: 0;
    padding: 10px !important;
}

.car-detail-image {
  width: 100%;
  /*aspect-ratio: 16 / 9;*/
  object-fit: contain !important;
  border-radius: 10px;
}



.car-detail-content {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.car-detail-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-weight: 700;
}

.car-categories {
    margin-bottom: 2rem;
}

.car-detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    padding: 3rem;
    background: var(--bg-light);
    border-left: 4px solid var(--accent-gold);
}

.spec-detail {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.spec-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.3rem;
    color: var(--text-primary);
    font-weight: 500;
}

.car-description {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin: 3rem 0;
    max-width: 900px;
}

/* ========================================
   BOOKING SECTION
   ======================================== */

.booking-section {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-dark) 100%);
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.1), transparent);
    transform: skewX(-20deg);
}

.booking-section h2 {
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.booking-section p {
    color: rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

.whatsapp-btn {
    background: #25D366;
    color: var(--bg-white);
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background: #20ba5a;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 26px;
    height: 26px;
}

/* ========================================
   ABOUT PAGE
   ======================================== */

.about-page {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.about-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

.about-content h2 {
    color: var(--text-primary);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-content ul {
    list-style: none;
    margin: 2rem 0;
}

.about-content ul li {
    padding: 1rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.about-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: bold;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact-page {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.contact-content {
    background: var(--bg-white);
    padding: 4rem;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.contact-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1.5rem;
}

.contact-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent-gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-light);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

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

.submit-btn {
    background: var(--primary-black);
    color: var(--bg-white);
    padding: 1.2rem 3rem;
    border: 2px solid var(--primary-black);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    align-self: flex-start;
}

.submit-btn:hover {
    background: var(--accent-gold);
    color: var(--primary-black);
    border-color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

footer {
    background: var(--primary-black);
    color: var(--bg-white);
    padding: 3rem 0 2rem;
    text-align: center;
    margin-top: 0;
    border-top: 3px solid var(--accent-gold);
}

footer p {
    margin: 0.8rem 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

footer a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--accent-gold-light);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .car-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 2rem;
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .car-detail-specs {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        display: none;
    }

    header .container {
        flex-direction: column;
        gap: 1.5rem;
    }

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

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

    .car-detail-specs {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        padding: 2rem;
    }

    .booking-section {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-lg: 2rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .car-info {
        padding: 1.5rem;
    }

    .car-detail-content {
        padding: 2rem 1.5rem;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.text-center { text-align: center; }
.text-gold { color: var(--accent-gold); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
