/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-main: #F4F7F6;
    --bg-secondary: #FFFFFF;
    --primary: #0066FF; /* Electric Blue */
    --primary-hover: #0052CC;
    --dark: #0A192F; /* Midnight Blue */
    --darker: #060F1D;
    --text-main: #2D3748;
    --text-muted: #718096;
    --border: #E2E8F0;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}
.w-100 { width: 100%; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 255, 0.3);
}

.btn-primary-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: transparent;
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--primary);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
    text-align: center;
}

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

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--dark);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    border: 2px solid var(--border);
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

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

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 5%;
    background: var(--bg-secondary);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links li a,
.navbar.scrolled .phone-link,
.navbar.scrolled .menu-toggle {
    color: var(--dark);
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.logo i {
    color: var(--primary);
}

.logo span {
    font-weight: 300;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: #fff;
    transition: var(--transition);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-link {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.phone-link:hover {
    color: var(--primary) !important;
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
}

/* ==========================================================================
   Hero Section & Search Bar
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    background: url('images/hero.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 5rem;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(10, 25, 47, 0.9) 0%, rgba(10, 25, 47, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 102, 255, 0.2);
    border: 1px solid var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 4.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    max-width: 700px;
}

.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* Search Bar */
.search-bar {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    max-width: 1000px;
}

.search-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
}

.search-item label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.search-item label i {
    color: var(--primary);
}

.search-item input {
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--bg-main);
    transition: var(--transition);
}

.search-item input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-item.button-container {
    flex: 0 0 150px;
    justify-content: flex-end;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    padding: 7rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: rgba(0, 102, 255, 0.2);
}

.icon-circle {
    width: 70px; height: 70px;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.feature-card:hover .icon-circle {
    background: var(--primary);
    color: #fff;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

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

/* ==========================================================================
   Fleet Section
   ========================================================================== */
.fleet {
    padding: 6rem 0 8rem;
    background: var(--bg-secondary);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.fleet-card {
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.fleet-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

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

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

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

.tag {
    position: absolute;
    top: 15px; left: 15px;
    background: var(--dark);
    color: #fff;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 1px;
}

.car-details {
    padding: 2rem;
}

.car-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.car-title-row h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
}

.car-title-row h3 span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

.price {
    text-align: right;
}

.price strong {
    font-size: 1.4rem;
    color: var(--primary);
}

.price span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

.car-specs span {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: calc(50% - 0.5rem);
}

.car-specs i {
    color: var(--primary);
}

/* ==========================================================================
   App Promo Section
   ========================================================================== */
.app-promo {
    padding: 6rem 0;
    background: var(--darker);
    position: relative;
    overflow: hidden;
}

.app-wrapper {
    position: relative;
    z-index: 1;
}

.app-text {
    max-width: 600px;
}

.store-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.store-btn i {
    font-size: 1.5rem;
}

.store-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: var(--dark);
    color: #fff;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-about {
    color: #A0AEC0;
    font-size: 0.95rem;
    margin: 1.5rem 0;
    max-width: 350px;
}

.socials {
    display: flex;
    gap: 1rem;
}

.socials a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--primary);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col ul li a {
    color: #A0AEC0;
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
}

.contact-list li {
    color: #A0AEC0;
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-list li i {
    color: var(--primary);
    margin-top: 0.3rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #A0AEC0;
    font-size: 0.85rem;
}

/* ==========================================================================
   Responsive & Sidebar
   ========================================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0; visibility: hidden;
    transition: var(--transition);
}

.sidebar-overlay.active {
    opacity: 1; visibility: visible;
}

@media (max-width: 992px) {
    .hero h1 { font-size: 3.5rem; }
    .search-bar { flex-direction: column; align-items: stretch; }
    .search-item.button-container { justify-content: stretch; flex: auto; margin-top: 1rem; }
    .features-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .phone-link { display: none; }
    
    .nav-links {
        position: fixed;
        top: 0; right: -280px;
        width: 280px; height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 6rem 2rem;
        gap: 2rem;
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
        transition: 0.4s ease-in-out;
        z-index: 1001;
    }
    
    .nav-links.active { right: 0; }
    .nav-links li a { color: var(--dark); font-size: 1.1rem; }
    
    .hero h1 { font-size: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
}
