/* ===== DriveNova – Premium Car Rental ===== */
:root {
    --primary: #0f172a;
    --accent: #3b82f6;
    --accent-dark: #2563eb;
    --accent-light: #60a5fa;
    --gold: #f59e0b;
    --bg: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 25px 50px rgba(15, 23, 42, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--primary);
}

.logo span { color: var(--accent); }

.nav {
    display: flex;
    gap: 36px;
}

.nav a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    transition: color 0.2s;
    position: relative;
}

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

.nav a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 26px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    color: white;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(59,130,246,0.25), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(245,158,11,0.15), transparent 40%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: clamp(2.6rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.hero h1 span {
    background: linear-gradient(90deg, #60a5fa, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #94a3b8;
    max-width: 480px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item strong {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
}

.stat-item span {
    font-size: 0.9rem;
    color: #94a3b8;
}

.hero-visual {
    position: relative;
}

.hero-car {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.hero-car img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    background: rgba(255,255,255,0.95);
    color: var(--primary);
    padding: 14px 20px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
}

.floating-badge small {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    font-weight: 500;
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    color: var(--primary);
}

.section-header p {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ===== Featured Cars ===== */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 28px;
}

.car-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.35s ease;
    border: 1px solid var(--border);
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.car-img {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f1f5f9;
}

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

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

.car-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-tag.economy { background: #10b981; }
.car-tag.suv { background: #3b82f6; }
.car-tag.luxury { background: #8b5cf6; }
.car-tag.midsize { background: #f59e0b; }

.car-body {
    padding: 22px;
}

.car-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.car-body .car-type {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.car-features {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 18px;
}

.car-price {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.car-price .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.car-price .price small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

/* ===== Why Us ===== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.why-card {
    background: white;
    padding: 32px 28px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.why-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}

.why-icon {
    width: 52px;
    height: 52px;
    background: #eff6ff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.why-card p {
    color: var(--muted);
    font-size: 0.95rem;
}

/* ===== CTA ===== */
.cta-banner {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-banner h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-banner p {
    color: #94a3b8;
    margin-bottom: 28px;
    font-size: 1.1rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary);
    color: #94a3b8;
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-brand .logo {
    color: white;
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand p {
    max-width: 280px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 0.95rem;
}

.footer a {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-car img { height: 280px; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px;
        left: 0; right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 18px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        transform: translateY(-120%);
        opacity: 0;
        transition: all 0.3s;
        pointer-events: none;
    }
    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .menu-toggle { display: flex; }
    .header-cta .btn { display: none; }
    .section { padding: 70px 0; }
}
