/* =========================================
   Variables & Reset
   ========================================= */
:root {
    --primary: #3498db;
    --primary-dark: #2980b9;
    --primary-light: #e1f0fa;
    --white: #ffffff;
    --dark: #1a252f;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8fbfd;
    --whatsapp: #25D366;
    --whatsapp-dark: #1da851;
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --card-border: rgba(0,0,0,0.03);
    --icon-bg: #f1f3f5;
}

@media (prefers-color-scheme: dark) {
    :root {
        --primary: #4ab3f4;
        --primary-dark: #3498db;
        --primary-light: #1f364d;
        --white: #121212; 
        --dark: #f8fbfd; 
        --text-dark: #e0e0e0;
        --text-light: #a0a0a0;
        --bg-light: #0a0a0a;
        --nav-bg: rgba(18, 18, 18, 0.95);
        --card-bg: #1e1e1e;
        --card-border: rgba(255,255,255,0.05);
        --icon-bg: #2c2c2c;
        --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.5);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 80px 0;
}

/* =========================================
   Typography & Utilities
   ========================================= */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-outline:hover {
    background-color: #fff;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: #fff;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

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

/* =========================================
   Navigation & Logo
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-frame {
    /* Removed the hard border and black background */
    /* Using a soft drop shadow directly on the transparent image instead */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-img {
    height: 100px;
    width: auto;
    /* Make the white logo dark for light theme */
    filter: invert(1) opacity(0.8) drop-shadow(0px 2px 4px rgba(0,0,0,0.2));
    transition: var(--transition);
}

@media (prefers-color-scheme: dark) {
    .nav-logo-img {
        /* Restore white color in dark mode */
        filter: invert(0) opacity(1) drop-shadow(0px 0px 8px rgba(255,255,255,0.1));
    }
}

.logo-text {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-dark);
    line-height: 1.1;
    display: flex;
    flex-direction: column;
}

.logo-text small {
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 1px;
    color: var(--primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu {
    display: flex;
    gap: 40px;
    margin-right: 8vw;
}

.nav-links {
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--text-dark);
    transition: var(--transition);
    position: relative;
}

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

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

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

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-dark);
    border-radius: 3px;
}

/* Hidden on desktop, shown on mobile */
.nav-close-li {
    display: none;
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    overflow: hidden;
}

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

.hero-bg-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-bg-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* =========================================
   Fleet Section (Car Cards)
   ========================================= */
.fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

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

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

.car-image {
    position: relative;
    height: 220px;
    background-color: #fff;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.car-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: rgba(255,255,255,0.9);
    color: #1a252f;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.car-badge.premium {
    background: linear-gradient(135deg, #f1c40f, #f39c12);
    color: #fff;
}

.car-year {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.car-info {
    padding: 25px;
}

.car-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--card-border);
}

.spec {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.spec i {
    color: var(--primary);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* =========================================
   Sonax Section
   ========================================= */
.sonax-section {
    background: linear-gradient(135deg, #1a252f, #2c3e50);
    color: #fff;
    text-align: center;
}

@media (prefers-color-scheme: dark) {
    .sonax-section {
        background: linear-gradient(135deg, #0f171e, #1a252f);
    }
}

.sonax-container {
    max-width: 800px;
}

.sonax-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.sonax-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.social-links-large {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition);
    color: #fff;
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* =========================================
   About Section
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.about-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.about-text .lead {
    font-size: 1.15rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.why-us-wrapper h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.why-us-wrapper h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.why-us-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.why-us-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.icon-box {
    background: var(--primary-light);
    color: var(--primary);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

@media (prefers-color-scheme: dark) {
    .icon-box {
        background: rgba(74, 179, 244, 0.1);
        color: var(--primary);
    }
}

.text-box h4 {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.text-box p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background-color: #1a252f;
    color: #fff;
    padding-top: 60px;
}

@media (prefers-color-scheme: dark) {
    footer {
        background-color: #0f171e;
    }
}

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

.footer-logo {
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0px 0px 5px rgba(255,255,255,0.2));
}

.footer-brand p {
    opacity: 0.9;
    font-size: 1.05rem;
    line-height: 1.6;
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-top: 15px;
}

.footer-brand p strong {
    color: var(--primary);
    font-size: 1.15rem;
}

.footer-brand-title {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
}

.footer-brand-title small {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 1px;
}



.footer-contact h3,
.footer-address h3,
.footer-social h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-contact h3::after,
.footer-address h3::after,
.footer-social h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-contact p {
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-address p {
    margin-bottom: 10px;
    opacity: 0.8;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-address i {
    margin-top: 6px;
}

.footer-contact i,
.footer-address i {
    color: var(--primary);
}

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

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

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

.footer-bottom {
    background-color: rgba(0,0,0,0.3);
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .why-us-wrapper {
        order: -1;
        margin-bottom: 20px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 576px) {
    .why-us-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: block;
    }

    /* Hamburger to X animation */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: var(--card-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
        padding: 30px 30px 40px;
        gap: 0;
        margin-right: 0;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 998;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Close button inside menu */
    .nav-close-li {
        display: flex !important;
        justify-content: flex-end;
        border-bottom: none !important;
        margin-bottom: 15px;
    }

    .nav-close-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 2px solid var(--card-border);
        color: var(--text-dark);
        font-size: 1.8rem;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.2s ease;
        line-height: 1;
    }

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

    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--card-border);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    .nav-links {
        font-size: 1.3rem;
        display: block;
        padding: 20px 12px;
        transition: all 0.2s ease;
        border-radius: 8px;
        font-weight: 500;
    }

    .nav-links:hover {
        background: var(--primary-light);
        padding-left: 20px;
    }

    .nav-links::after {
        display: none;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .nav-logo-img {
        height: 60px;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .logo-text small {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .fleet-grid {
        grid-template-columns: 1fr;
    }
    
    .car-info {
        padding: 20px;
    }
    
    .car-specs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================
   Floating Contact Buttons (Global)
   ========================================= */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.fab {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    text-decoration: none;
}

.fab-whatsapp {
    background: #25D366;
}

.fab-whatsapp:hover {
    background: #1da851;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.fab-phone {
    background: var(--primary);
    color: #fff;
}

.fab-phone:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Phone Modal */
.phone-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.phone-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.phone-modal {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 28px;
    width: 90%;
    max-width: 340px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.phone-modal-overlay.active .phone-modal {
    transform: translateY(0);
}

.phone-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.phone-modal-header h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
}

.phone-modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-light);
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.phone-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
    background: var(--bg-light);
    margin-bottom: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.05rem;
}

.phone-option:last-child {
    margin-bottom: 0;
}

.phone-option:hover {
    background: var(--primary-light);
    transform: translateX(4px);
}

.phone-option i {
    color: var(--primary);
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

@media (max-width: 768px) {
    .floating-buttons {
        bottom: 16px;
        right: 16px;
    }

    .fab {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}
