/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700&display=swap');

/* Last Updated: By Antigravity (Sold Badges & Inventory Update) */

:root {
    /* Color Palette - Dark Premium */
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-color-hover: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #FF3B3B;
    /* Tech Red */
    --accent-hover: #ff6b6b;
    --border-color: #333333;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.3);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title span {
    font-weight: 700;
    color: #fff;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-fast);
}

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

.logo img {
    height: auto;
    width: 200px;
    object-fit: contain;
    display: block;
    margin-right: 40px;
    transition: all var(--transition-fast);
}

.nav-list {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
    color: var(--text-secondary);
    position: relative;
    transition: color var(--transition-fast);
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: all 0.3s ease-in-out;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    background-image: url('./assets/hero-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    padding-top: 130px;
    position: relative;
    padding-bottom: 50px;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Hero Grid Layout */
.hero-grid {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 50px;
}

.hero-brand {
    flex: 0 0 auto;
}

.hero-brand img {
    width: 350px;
    height: auto;
}

.hero-text {
    flex: 1;
    text-align: left;
    max-width: 700px;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: -2.5px;
    color: #fff;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero h1 span {
    display: block;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 550px;
    letter-spacing: 0.5px;
    text-wrap: balance;
}

/* Section Common */
.section {
    padding: 100px 0;
}

/* Alternative Section Background */
.section-alt {
    background-color: var(--surface-color);
}

/* About Section Styles */
.about-section-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: left;
}

.about-text-col {
    width: 60%;
}

.about-image-col {
    width: 35%;
    text-align: center;
}

/* Base style for square images */
.facade-image {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 20px;
    margin: 0 auto;
    display: block;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.6);
    border: 2px solid #FF0000;
    transition: transform 0.5s ease;
}

.facade-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 0, 0, 0.9);
}

/* Import Section Grid Structure */
.import-grid {
    display: grid;
    grid-template-columns: 50% 45%;
    gap: 5%;
    align-items: center;
    width: 100%;
}

.import-image {
    width: 100%;
}

.import-image img,
.import-image .facade-image {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.5);
    border: none;
}

.import-text {
    text-align: left;
}

.import-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-secondary);
}

/* Carousel/Scroll Wrapper */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-color);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4px;
}

.nav-btn:hover {
    background: var(--accent-color);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
    left: -20px;
}

.nav-btn.next {
    right: -20px;
}

@media (max-width: 1240px) {
    .nav-btn.prev {
        left: 10px;
    }

    .nav-btn.next {
        right: 10px;
    }
}

.horizontal-scroll-container {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.scroll-item {
    flex: 0 0 320px;
    scroll-snap-align: center;
}

.car-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    position: relative;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(255, 59, 59, 0.4);
    border-color: var(--accent-color);
}

.btn-webmotors {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--accent-color);
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.4);
}

.btn-webmotors:hover {
    background-color: #d63031;
    box-shadow: 0 0 40px rgba(255, 59, 59, 0.8);
    transform: translateY(-2px);
}

.car-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

/* --- SOLD BADGE & EFFECTS --- */
.badge-vendido {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff0000;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 3px;
    z-index: 5;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.7);
    letter-spacing: 1px;
}

/* Apply this class to images of sold cars */
.sold-effect {
    filter: grayscale(0.2) brightness(0.8);
}

.car-info {
    padding: 25px 25px 35px 25px;
}

.car-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.car-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.car-price {
    font-size: 1.25rem;
    color: var(--accent-color);
    font-weight: 700;
}

.consulting-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.consulting-card {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px 20px;
    text-align: center;
    border-radius: 4px;
    transition: var(--transition-fast);
}

.consulting-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.consulting-card .icon-box {
    margin-bottom: 25px;
    color: var(--accent-color);
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.consulting-card h3 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.consulting-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.testimonials-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.testimonials-grid::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 320px;
    scroll-snap-align: center;
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 4px;
    position: relative;
}

.testimonial-card .stars {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.testimonial-card p {
    font-size: 1rem;
    color: #ccc;
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.instagram-feed-img {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.instagram-feed-img:hover {
    transform: scale(1.02);
}

.footer {
    background-color: #050505;
    padding: 80px 0 30px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-col h3 {
    color: var(--text-primary);
    margin-bottom: 25px;
    font-size: 1.2rem;
    letter-spacing: 1px;
}

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

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

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

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.online-tag {
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: #fff;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid var(--bg-color);
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
    fill: white;
}

/* --- Responsive Media Queries --- */

/* Tablet & Mobile Breakpoint for Import Section */
@media (max-width: 991px) {
    .consulting-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .import-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .import-image img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 40px 20px;
    }

    .header {
        padding: 10px 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .nav-list {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.3s;
        padding-top: 100px;
        z-index: 999;
        gap: 30px;
    }

    .nav-list.active {
        left: 0;
    }

    .about-section-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text-col,
    .about-image-col {
        width: 100%;
    }

    .about-image-col {
        margin-top: 30px;
        order: -1;
    }

    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        margin-top: 20px;
    }

    .hero-brand img {
        width: 250px;
        margin: 0 auto;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .scroll-item {
        flex: 0 0 85vw;
    }

    .consulting-grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 15px;
        row-gap: 20px;
    }

    .consulting-card {
        padding: 30px 15px;
    }

    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
}