/* 
    Premium Car Rental CSS 
    Author: Sisa Car Rental
    Style: Minimalist, Premium, Glassmorphism
*/

:root {
    --bg-dark: #faebd8;
    --bg-card: #fffcf8;
    --gold: #c5964e;
    --gold-hover: #b0813c;
    --text-main: #531719;
    --text-muted: #8b5a5b;
    --border-color: rgba(83, 23, 25, 0.1);
    --glass-bg: rgba(250, 235, 216, 0.6);
    --glass-border: rgba(83, 23, 25, 0.1);
}

* {
    box-sizing: border-box;
}

body.dark-theme {
    --bg-dark: #0f1115;
    --bg-card: #181b21;
    --gold: #d4af37;
    --gold-hover: #f1c40f;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(24, 27, 33, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.gold-text {
    color: var(--gold);
}

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

/* Glassmorphism Classes */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 12px 15px;
    border-radius: 8px;
    width: 100%;
}
.glass-input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-gold {
    background: linear-gradient(135deg, #c5964e 0%, #a67c3e 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(197, 150, 78, 0.3);
}

.btn-gold:hover {
    background: linear-gradient(135deg, #d3a763 0%, #c5964e 100%);
    box-shadow: 0 6px 20px rgba(197, 150, 78, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--gold);
    color: #fff;
}

.w-100 { width: 100%; }
.text-center { text-align: center; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Header */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(250, 235, 216, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 1px;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
}

.nav-link:hover {
    color: var(--gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -5px; left: 0;
    background-color: var(--gold);
    transition: 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-btn, .lang-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
}
.lang-btn { font-size: 14px; font-weight: 500; }
.lang-btn:hover { color: var(--gold); }

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.hero-bg .bg-image {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(250,235,216,0.95) 0%, rgba(250,235,216,0.6) 50%, rgba(250,235,216,0) 100%);
}

.hero-title {
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 500px;
}

/* Booking Widget */
.booking-widget {
    padding: 30px;
    max-width: 900px;
}

.form-row {
    display: flex;
    gap: 20px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--text-muted);
}

.form-btn-col {
    flex: 0 0 200px;
}

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

.page-header {
    width: 100%;
    padding: 120px 0 60px;
    background-color: var(--bg-card);
    text-align: center;
    position: relative;
}

.dark-section {
    background-color: var(--bg-card);
}

.section-title {
    font-size: 36px;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 50px;
}

/* Car Grid */
.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.cars-layout {
    display: grid;
    grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.cars-filter-panel {
    position: sticky;
    top: 100px;
    align-self: start;
}

.cars-filter-panel .glass-panel {
    border-radius: 12px;
}

.cars-results {
    min-width: 0;
}

.cars-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.car-list-item {
    min-width: 0;
}

.car-card {
    overflow: hidden;
    transition: transform 0.3s ease;
}

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

.car-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

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

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

.car-price-badge {
    position: absolute;
    bottom: 15px; right: 15px;
    background: var(--gold);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.car-card-body {
    padding: 25px;
}

.car-title {
    font-size: 22px;
    margin-bottom: 5px;
}

.car-category {
    font-size: 14px;
    margin-bottom: 20px;
}

.car-specs {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
}

.spec-item {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
}

.spec-item i {
    color: var(--gold);
}

/* Feature List (Why Choose Us) */
.feature-list {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.feature-icon {
    width: 60px; height: 60px;
    background: rgba(197, 150, 78, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 14px;
}

.rounded-image {
    border-radius: 12px;
    width: 100%;
    height: auto;
}

.shadow-gold {
    box-shadow: -20px 20px 0px rgba(197, 150, 78, 0.2);
}

/* Footer */
.footer {
    background-color: #f5dfc4;
    padding: 80px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-title {
    font-size: 22px;
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 25px;
}

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

.social-links a {
    width: 40px; height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-main);
}

.social-links a:hover {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
}

.footer-col-title {
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-left: 5px;
}

.footer-contact-item {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-policy-links {
    display: flex;
    gap: 20px;
}

.footer-policy-links a {
    color: var(--text-muted);
    font-size: 13px;
}
.footer-policy-links a:hover {
    color: var(--gold);
}

/* Layout & Flex Utilities */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}
.col, .col-md-4, .col-md-6, .col-md-8, .col-md-12 {
    padding: 0 15px;
}
.col { flex: 1 0 0%; }
.col-md-4 { width: 33.333333%; }
.col-md-6 { width: 50%; }
.col-md-8 { width: 66.666667%; }
.col-md-12 { width: 100%; }

.align-items-center { align-items: center !important; }
.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }

/* Spacing Utilities */
.m-0 { margin: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.p-0 { padding: 0 !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* Mobile Nav Hidden initially */
.mobile-nav {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    max-width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-card);
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 999;
    transition: right 0.4s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.mobile-nav.open {
    right: 0;
}
.mobile-link {
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    transition: 0.3s;
}
.mobile-link:hover {
    color: var(--gold);
    background: rgba(197, 150, 78, 0.05);
}
.mobile-menu-toggle {
    display: none;
    z-index: 1001;
}

/* Responsive */
@media (max-width: 992px) {
    .nav { display: none; }
    .mobile-menu-toggle {
        display: block;
        background: transparent;
        border: none;
        cursor: pointer;
    }
    .mobile-menu-toggle span {
        display: block; width: 25px; height: 3px;
        background: var(--text-main);
        margin: 5px 0;
        transition: 0.4s ease;
    }
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .car-grid { grid-template-columns: repeat(2, 1fr); }
    .cars-layout {
        grid-template-columns: 1fr;
    }
    .cars-filter-panel {
        position: static;
    }
    .form-row { flex-direction: column; }
    .form-btn-col { flex: 0 0 auto; width: 100%; }
    .col, .col-md-4, .col-md-6, .col-md-8, .col-md-12 { width: 100%; margin-bottom: 20px; }
    .form-btn-col { margin-bottom: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
    .car-grid { grid-template-columns: 1fr; }
    .cars-result-grid { grid-template-columns: 1fr; }
    .section { padding: 60px 0; }
    .section-title { font-size: 28px; }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: 0.3s;
}
.whatsapp-float:hover {
    transform: scale(1.1);
}
/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 20px;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-popup.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.cookie-content p {
    margin: 0;
    font-size: 14px;
    color: var(--text-main);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
