/* --- CSS Variables & Design System --- */
:root {
    --bg-color: #050505;
    --bg-color-alt: #0d0d0d;
    --surface-color: #141414;
    --surface-hover: #1f1f1f;

    --text-main: #f5f5f5;
    --text-muted: #a3a3a3;

    /* Primary Accent: Metallic Silver / Mercedes-ish vibe */
    --accent: #E2E8F0;
    --accent-glow: rgba(226, 232, 240, 0.15);

    /* Buttons */
    --btn-bg: #E2E8F0;
    --btn-text: #050505;
    --btn-hover: #ffffff;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;

    --nav-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

ul {
    list-style: none;
}

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

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.text-sm {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.accent {
    color: var(--accent);
    font-weight: 600;
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.brand-logo img {
    display: block;
    width: auto;
    height: 42px;
    max-width: 180px;
    object-fit: contain;
}

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

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.8);
    position: relative;
}

.nav-link:hover {
    color: #fff;
}

.nav-link:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-link:not(.btn-primary):hover::after {
    width: 100%;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    color: var(--accent);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--btn-text);
}

/* --- Mobile Menu --- */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: #fff;
    transition: var(--transition-normal);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--bg-color-alt);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: var(--transition-slow);
}

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

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Abstract dark metallic gradient if we don't have an image */
    background: radial-gradient(circle at 70% 30%, #1a1e24 0%, var(--bg-color) 60%);
    z-index: 0;
    transform: scale(1.05);
    /* allow room for zoom animation */
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.15);
    }
}

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

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 5%;
    margin-top: 50px;
}

.hero-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--accent);
    margin-bottom: 2rem;
    display: inline-block;
    border-bottom: 1px solid rgba(226, 232, 240, 0.3);
    padding-bottom: 0.5rem;
}

.hero-title {
    font-size: clamp(1.1rem, 5.4vw, 4.8rem);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    white-space: nowrap;
}

.hero-title span {
    font-weight: 700;
    display: block;
    background: linear-gradient(90deg, #ffffff, #888888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    font-weight: 300;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* --- Buttons --- */
.btn-main,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0;
    /* Boxy premium look */
    cursor: pointer;
    transition: var(--transition-normal);
}

.btn-main {
    background-color: var(--btn-bg);
    color: var(--btn-text);
    border: 1px solid var(--btn-bg);
}

.btn-main:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 24px;
    height: 36px;
    border: 1px solid #fff;
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 2px;
    height: 6px;
    background: #fff;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        top: 6px;
        opacity: 1;
    }

    100% {
        top: 18px;
        opacity: 0;
    }
}

/* --- Brands Section --- */
.brands-section {
    padding: 8rem 0;
    background-color: var(--bg-color);
    position: relative;
}

.margin-top-neg {
    margin-top: -5rem;
    position: relative;
    z-index: 10;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* 6 Brands Grid */
.brands-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 2rem;
}

.brand-card {
    position: relative;
    overflow: hidden;
    background-color: var(--surface-color);
    border-radius: var(--radius-sm);
    aspect-ratio: 1/1;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-slow);
}

.brand-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease, filter 0.8s ease;
    opacity: 1;
    overflow: hidden;
}

.custom-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Placeholder gradients for images */
.bg-1 {
    background: radial-gradient(circle at top right, #2a2a2a, #0d0d0d);
}

.bg-2 {
    background: radial-gradient(circle at bottom left, #1e293b, #050505);
}

.bg-3 {
    background: radial-gradient(circle at center, #27272a, #09090b);
}

.bg-4 {
    background: radial-gradient(circle at top left, #262626, #000000);
}

.bg-5 {
    background: radial-gradient(circle at bottom right, #1f2937, #0f172a);
}

.bg-6 {
    background: radial-gradient(circle at top, #2d3748, #1a202c);
}

.bg-7 {
    background: radial-gradient(circle at bottom left, #3a3a3a, #090909);
}

.bg-8 {
    background: radial-gradient(circle at top right, #27303b, #070707);
}

.bg-9 {
    background: radial-gradient(circle at top right, #27303b, #070707);
}

.brand-card:hover .card-image {
    transform: scale(1.08);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 25%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    transition: var(--transition-normal);
}

.brand-logo-placeholder {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.custom-logo {
    width: var(--logo-width, auto);
    height: var(--logo-height, 35px);
    max-width: var(--logo-max-width, 140px);
    object-fit: contain;
    margin-right: var(--logo-margin-right, 0px);
    margin-bottom: var(--logo-margin-bottom, 0px);
    transform: translate(var(--logo-offset-x, 0px), var(--logo-offset-y, 0px)) scale(var(--logo-scale, 1));
    transform-origin: left center;
    display: block;
}

.card-content h3 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.card-content p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    transition-delay: 0.05s;
    line-height: 1.5;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-normal);
    transition-delay: 0.1s;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
}

.card-link-secondary {
    padding: 0.5rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font: inherit;
}

.card-link-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.45);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.brand-card:hover .card-content h3,
.brand-card:hover .card-content p,
.brand-card:hover .card-link {
    opacity: 1;
    transform: translateY(0);
}

.card-link:hover .arrow-icon {
    transform: translateX(5px);
}

.location-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-normal);
    z-index: 2000;
}

.location-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.location-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.location-modal-dialog {
    position: relative;
    width: min(100%, 620px);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #101010 0%, #080808 100%);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.location-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.location-modal-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.location-modal-dialog h3 {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.location-modal-list {
    display: grid;
    gap: 1rem;
}

.location-option {
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
}

.location-option h4 {
    font-size: 1rem;
    margin-bottom: 0.4rem;
}

.location-option p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.location-option a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--accent);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-option a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    background-color: var(--bg-color-alt);
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.cta-section p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro {
    text-align: center;
    display: inline-block;
    width: auto;
    white-space: nowrap;
    margin-left: auto;
    margin-right: auto;
}

.about-copy {
    max-width: 920px;
    text-align: justify;
    text-wrap: pretty;
    hyphens: auto;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-color);
    padding: 5rem 0 0 0;
}

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

.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    color: var(--text-muted);
    font-size: 0.75rem;
}

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

.legal-links {
    display: flex;
    gap: 1.5rem;
}

/* --- Initial State for Animations --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 1s ease forwards;
}

.fade-up-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.6s;
    transition-delay: 0.3s;
}

@keyframes fadeUpAnim {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media (max-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Hide on mobile */
    }

    .mobile-menu-btn {
        display: flex;
    }

    .brand-logo img {
        height: 34px;
        max-width: 145px;
    }

    .hero {
        min-height: 100svh;
        height: auto;
        padding: calc(var(--nav-height) + 2rem) 0 4rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .hero-subtitle {
        letter-spacing: 0.22em;
        margin-bottom: 1.25rem;
    }

    .hero-title {
        font-size: clamp(1.1rem, 7.6vw, 3.2rem);
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .scroll-indicator {
        display: none;
    }

    .brands-section {
        padding: 5rem 0;
    }

    .margin-top-neg {
        margin-top: 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .brands-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .brand-card {
        min-height: 420px;
        aspect-ratio: auto;
    }

    .brand-card .card-image,
    .brand-card .card-content h3,
    .brand-card .card-content p,
    .brand-card .card-link {
        opacity: 1;
        transform: translateY(0);
    }

    .card-content {
        padding: 1.25rem;
        justify-content: flex-end;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.8) 42%, transparent 72%);
    }

    .brand-logo-placeholder {
        top: 0.85rem;
        left: 0.85rem;
    }

    .card-content h3 {
        font-size: 1.25rem;
        margin-bottom: 0.9rem;
    }

    .card-actions {
        gap: 0.65rem;
    }

    .card-link {
        font-size: 0.76rem;
        letter-spacing: 0.08em;
    }

    .card-link-secondary {
        padding: 0.55rem 0.8rem;
    }

    .location-modal-dialog {
        padding: 1.5rem;
        width: min(100%, 100%);
        max-height: calc(100vh - 2rem);
    }

    .location-modal-dialog h3 {
        font-size: 1.6rem;
    }

    .location-option {
        padding: 1rem;
    }

    .location-option a {
        width: 100%;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .about-intro {
        white-space: normal;
    }

    .footer {
        padding-top: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .flex-between {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 1.5rem);
    }

    .hero-title {
        font-size: clamp(1.1rem, 7vw, 1.7rem);
    }

    .hero-subtitle {
        font-size: 0.72rem;
    }

    .btn-main {
        width: 100%;
        padding: 0.95rem 1.25rem;
    }

    .brand-card {
        min-height: 380px;
    }

    .card-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .card-link,
    .card-link-secondary {
        width: 100%;
        justify-content: center;
    }

    .location-modal {
        padding: 0.75rem;
    }

    .location-modal-dialog {
        padding: 1.1rem;
    }

    .location-modal-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 36px;
        height: 36px;
    }

    .footer-bottom {
        padding: 1.5rem 0;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
