@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Global Styles & Variables */
:root {
    --bmw-blue: #D39B48;
    --bmw-black: #000000;
    --bmw-white: #ffffff;
    --bmw-light-gray: #f4f4f4;
    --bmw-dark-gray: #262626;
    --text-main: #333333;
    --font-sans: 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-main);
    background-color: var(--bmw-white);
    overflow-x: hidden;
}

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

/* Floating WhatsApp button (global) */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.06);
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
}

.whatsapp-float:focus-visible {
    outline: 3px solid rgba(211, 155, 72, 0.85);
    outline-offset: 4px;
}

ul {
    list-style: none;
}

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

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

/* Header */
header {
    background: transparent;
    border-bottom: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, border-bottom 0.3s ease;
}

header.scrolled {
    background: var(--bmw-white);
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

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

.logo-container a {
    display: block;
    height: 45px;
    overflow: visible;
}

.logo-main {
    height: 45px;
    transform: scale(3);
    transform-origin: left top;
}

.partner-logo {
    height: 35px;
    border-left: 1px solid rgba(0,0,0,0.2);
    padding-left: 15px;
}

header.scrolled .partner-logo {
    border-left: 1px solid #ccc;
}

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

.header-social {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--bmw-blue);
    color: #fff;
    border-radius: 999px;
}

.social-icon:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    gap: 25px;
}

.desktop-nav a {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--bmw-white);
    letter-spacing: 1px;
}

header.scrolled .desktop-nav a {
    color: var(--bmw-black);
}

.desktop-nav a:hover {
    color: var(--bmw-blue);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    color: var(--bmw-white);
}

header.scrolled .nav-toggle {
    color: var(--bmw-black);
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    position: relative;
}

.nav-toggle span::before, .nav-toggle span::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: currentColor;
    left: 0;
}

.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

.video-modal.active {
    display: flex;
}

.video-container {
    width: 90%;
    max-width: 1000px;
    aspect-ratio: 16/9;
    position: relative;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* Testimonials Carousel */
.testimonials-container {
    position: relative;
    padding: 0 50px;
}

.testimonials-wrapper {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.testimonials-wrapper::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

@media (max-width: 992px) {
    .testimonial-card {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 600px) {
    .testimonial-card {
        flex: 0 0 100%;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--bmw-blue);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
    background: var(--bmw-black);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(211, 155, 72, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.testimonial-card:hover .play-overlay {
    background: rgba(211, 155, 72, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--bmw-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-title span {
    background: var(--bmw-blue);
    padding: 0 10px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0) translateX(-50%);}
    40% {transform: translateY(-10px) translateX(-50%);}
    60% {transform: translateY(-5px) translateX(-50%);}
}

/* Intro Section */
.intro {
    padding: 80px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.intro-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro-desc {
    font-size: 14px;
    color: #666;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 20px;
    padding-bottom: 80px;
}

.bento-item {
    position: relative;
    background: var(--bmw-black);
    color: var(--bmw-white);
    overflow: hidden;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 100%, 0 100%);
}

.bento-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: 0.5s;
}

.bento-item:hover img {
    transform: scale(1.05);
    opacity: 0.5;
}

.bento-large {
    grid-column: span 3;
}

.bento-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
}

.bento-label {
    background: var(--bmw-blue);
    display: inline-block;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%);
}

.bento-title {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
}

/* Vouchers Section */
.vouchers {
    background: var(--bmw-light-gray);
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 80px;
}

.vouchers-content {
    padding: 60px;
}

.vouchers-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.vouchers-content ul {
    margin-bottom: 30px;
}

.vouchers-content li {
    margin-bottom: 10px;
    font-size: 14px;
    position: relative;
    padding-left: 20px;
}

.vouchers-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bmw-blue);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--bmw-blue);
    color: var(--bmw-blue);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn:hover {
    background: var(--bmw-blue);
    color: var(--bmw-white);
}

.vouchers-image {
    background-size: cover;
    background-position: center;
}

/* Tour Sections (Romania, Andalusia, etc) */
.tour-banner {
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--bmw-white);
    margin-bottom: 40px;
}

.tour-banner-content {
    max-width: 600px;
    padding: 40px;
}

.tour-banner-content h4 {
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.tour-banner-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.btn-white {
    border: 1px solid var(--bmw-white);
    color: var(--bmw-white);
}

.btn-white:hover {
    background: var(--bmw-white);
    color: var(--bmw-black);
}

/* Enduro Park Section */
.enduro-park-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 80px;
}

.enduro-park-info {
    background: var(--bmw-light-gray);
    padding: 60px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 95% 100%, 0 100%);
}

/* Footer */
footer {
    background: #f9f9f9;
    padding: 60px 0 20px;
    border-top: 1px solid #eee;
}

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

.footer-col h5 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
    font-size: 13px;
}

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

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

.footer-bottom {
    text-align: center;
    font-size: 11px;
    color: #999;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Mobile Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bmw-black);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.menu-overlay.active {
    transform: translateX(0);
}

.menu-overlay ul {
    list-style: none;
    text-align: center;
}

.menu-overlay ul li {
    margin: 20px 0;
}

.menu-overlay ul li a {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s;
}

.menu-overlay ul li a:hover {
    color: var(--bmw-blue);
}

.close-menu {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
    .intro, .vouchers, .enduro-park-section, .footer-grid {
        grid-template-columns: 1fr !important;
    }
    .grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .features-grid {
        grid-template-columns: 1fr !important;
    }
    .bento-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
    }
    .bento-large {
        grid-column: span 1;
    }
    .hero-title {
        font-size: 2.5rem;
    }
}
