/* ========================================================================
   1. DESIGN SYSTEM & CORE VARIABLES
   ======================================================================== */
:root {
    /* Palette: Pure Monochrome */
    --color-black: #000000;
    --color-charcoal-dark: #111111;
    --color-charcoal: #1A1A1A;
    --color-slate: #333333;
    --color-grey: #888888;
    --color-white: #FFFFFF;
    
    /* Typography */
    --font-primary: 'Montserrat', sans-serif;
    
    /* Spacing & Layout */
    --container-max: 1600px;
    --container-pad: 5vw;
    
    /* Animation & Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --trans-fast: 0.3s ease;
    --trans-slow: 0.8s var(--ease-out-expo);
}

/* ========================================================================
   2. RESET & BASE STYLES
   ======================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    background-color: var(--color-black);
    color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
    margin: 0;
}

.heading-massive {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    letter-spacing: 0.02em;
}

.heading-large {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.subtitle {
    font-weight: 500;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    letter-spacing: 0.25em;
    color: var(--color-grey);
    margin-top: 1.5rem;
    margin-bottom: 3.5rem;
}

a {
    color: var(--color-white);
    text-decoration: none;
}

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

.mt-4 {
    margin-top: 3rem;
}

/* ========================================================================
   3. COMPONENTS
   ======================================================================== */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: var(--trans-slow);
}

.icon-arrow {
    width: 20px;
    height: 20px;
    margin-left: 1rem;
    transition: transform 0.3s ease;
}

.btn:hover .icon-arrow {
    transform: translateX(5px);
}

.btn-primary {
    border: 2px solid var(--color-white);
    background: transparent;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s var(--ease-out-expo);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--color-black);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    padding-bottom: 0.5rem;
    position: relative;
    color: var(--color-white);
}

.link-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-white);
    transition: width var(--trans-slow);
}

.link-arrow:hover::after {
    width: 100%;
}

.link-arrow:hover .icon-arrow {
    transform: translateX(5px);
}

/* Navbar Placeholder */
.nav-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem var(--container-pad);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.main-nav a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    transition: color var(--trans-fast);
}

.main-nav a:hover {
    color: var(--color-grey);
}

.nav-btn {
    border: 1px solid var(--color-white);
    padding: 0.75rem 1.5rem;
}

.nav-btn:hover {
    background: var(--color-white);
    color: var(--color-black);
}

/* Responsive Nav */
@media (max-width: 900px) {
    .main-nav {
        display: none;
    }
}

/* ========================================================================
   4. SECTIONS
   ======================================================================== */

/* Section 1: Hero */
.section-hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Luxury motorhome / car context placeholder */
    background-image: url('https://images.unsplash.com/photo-1523987355523-c7b5b0dd90a7?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: 70% center;
    filter: grayscale(100%) contrast(1.1) brightness(0.7);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Heavy diagonal gradient from left to right as requested */
    background: linear-gradient(110deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.85) 35%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    left: var(--container-pad);
    width: 2px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    z-index: 3;
    overflow: hidden;
}

.scroll-line {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    animation: scrollDown 2s cubic-bezier(0.76, 0, 0.24, 1) infinite;
}

@keyframes scrollDown {
    0% { top: -100%; }
    50% { top: 0; }
    100% { top: 100%; }
}

/* Section 2: Dual Drive */
.section-dual {
    display: flex;
    position: relative;
    width: 100%;
    height: 85vh;
    min-height: 600px;
    background-color: var(--color-charcoal);
    overflow: hidden;
}

.dual-pane {
    position: absolute;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text sits at the bottom for modern aesthetic */
    padding: 6rem var(--container-pad);
}

.pane-left {
    left: 0;
    width: 55vw; /* Diagonal expands to 55vw */
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 80% 100%, 0 100%);
    background-color: var(--color-black);
}

.pane-right {
    right: 0;
    width: 60vw; /* Underlaps the left pane slightly */
    z-index: 1;
    background-color: var(--color-charcoal);
    padding-left: 15vw; /* Offset padding for the diagonal overlap */
}

/* Background Images for Dual Section */
.pane-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%) contrast(1.2);
    transition: transform 1.5s var(--ease-out-expo), filter 1s ease;
    z-index: 1;
}

.bg-oficina {
    /* Mechanic/Engine placeholder */
    background-image: url('https://images.unsplash.com/photo-1486262715619-670810a07129?q=80&w=2071&auto=format&fit=crop');
}

.bg-autocaravanas {
    /* RV / Solar placeholder */
    background-image: url('https://images.unsplash.com/photo-1521639893963-3561a0b59b10?q=80&w=2070&auto=format&fit=crop');
}

/* Hover Effects on Dual Panes */
.dual-pane:hover .pane-bg {
    transform: scale(1.05);
    filter: grayscale(100%) brightness(0.6) contrast(1.1);
}

.pane-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.pane-content {
    position: relative;
    z-index: 3;
    max-width: 500px;
}

.pane-content .heading-large {
    margin-bottom: 2rem;
}

/* Section 3: Tech Grid */
.section-grid {
    background-color: var(--color-black);
    padding: 10rem 0;
}

.grid-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    border-top: 1px solid var(--color-slate);
    border-bottom: 1px solid var(--color-slate);
}

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 2rem;
    border-right: 1px solid var(--color-slate);
    transition: background-color var(--trans-fast);
    cursor: default;
}

.grid-item:last-child {
    border-right: none;
}

.grid-item:hover {
    background-color: var(--color-charcoal-dark);
}

.grid-icon {
    width: 48px;
    height: 48px;
    color: var(--color-grey);
    margin-bottom: 2.5rem;
    transition: color var(--trans-fast), transform var(--trans-slow);
}

.grid-item:hover .grid-icon {
    color: var(--color-white);
    transform: translateY(-5px);
}

.grid-title {
    font-size: 1rem;
    letter-spacing: 0.15em;
    color: var(--color-white);
}

/* Section 4: Lifestyle / Banner */
.section-banner {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Motorhome in nature placeholder */
    background-image: url('https://images.unsplash.com/photo-1513689408453-ec84620f4b30?q=80&w=2040&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax if supported */
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
    z-index: 1;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 2;
}

.banner-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Section 5: Footer */
.site-footer {
    background-color: var(--color-charcoal-dark);
    padding: 8rem 0 4rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 5rem;
}

.footer-link {
    font-family: var(--font-primary);
    font-weight: 900;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--color-grey);
    transition: color var(--trans-fast);
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-divider {
    width: 1px;
    height: 15px;
    background-color: var(--color-slate);
}

.footer-info {
    max-width: 600px;
}

.brand-text {
    font-weight: 900;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    color: var(--color-white);
}

.contact-details {
    color: var(--color-grey);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    line-height: 2;
    margin-bottom: 3rem;
}

.contact-details p {
    display: inline-block;
    margin: 0 0.5rem;
}

.copyright {
    color: var(--color-slate);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    margin-top: 2rem;
}

/* ========================================================================
   5. RESPONSIVE DESIGN
   ======================================================================== */
@media (max-width: 1024px) {
    .grid-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-item {
        border-bottom: 1px solid var(--color-slate);
    }
    .grid-item:nth-child(2), .grid-item:nth-child(4) {
        border-right: none;
    }
    .grid-item:nth-child(3), .grid-item:nth-child(4) {
        border-bottom: none;
    }
    
    .pane-left { width: 60vw; clip-path: polygon(0 0, 100% 0, 75% 100%, 0 100%); }
    .pane-right { width: 60vw; padding-left: 10vw; }
}

@media (max-width: 768px) {
    .section-dual {
        flex-direction: column;
        height: auto;
    }
    .dual-pane {
        position: relative;
        width: 100%;
        height: 60vh;
        min-height: 500px;
        padding: 4rem var(--container-pad);
    }
    .pane-left {
        clip-path: none;
        /* horizontal diagonal split */
        clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
        z-index: 2;
    }
    .pane-right {
        clip-path: none;
        margin-top: -15%;
        padding-top: 25%;
        padding-left: var(--container-pad);
        z-index: 1;
    }
    
    .grid-wrapper {
        grid-template-columns: 1fr;
    }
    .grid-item {
        border-right: none;
        border-bottom: 1px solid var(--color-slate);
    }
    .grid-item:last-child {
        border-bottom: none;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-divider {
        display: none;
    }

    .contact-details p {
        display: block;
        margin: 0.25rem 0;
    }
}
