/* 
 * Nissan Landing Page Base Design System
 * --------------------------------------
 * Colors: Nissan Red (#C3002F), Dark Gray (#1E1E1E), Ultra White (#FFFFFF)
 * Typography: Outfit (Geometric Sans-Serif)
 */

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

:root {
    /* Color Palette */
    --nissan-red: #C3002F;
    --nissan-dark: #121212;
    --nissan-gray: #333333;
    --nissan-light: #F5F5F5;
    --white: #FFFFFF;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: 40px 5%;
    --header-height: 80px;

    /* Borders & Shadow */
    --border-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--nissan-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header Styles */
header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    /* position: fixed; */
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* .logo img {
    height: 40px;
} */

.header-cta .btn-header {
    background-color: var(--nissan-red);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-cta .btn-header:hover {
    background-color: #A00027;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    background-color: var(--nissan-dark);
    line-height: 0;
    /* Remove gap below image */
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Push actions to the bottom */
    padding: 0 5% 60px;
    background: transparent;
    /* No overlay gradient */
    z-index: 5;
}

/* Hide content if it's baked into the image */
.hero-content,
.model-info-grid {
    display: none;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.hero-content h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: -5px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-content h1 span {
    color: var(--nissan-red);
}

.hero-description {
    font-size: 1.2rem;
    margin-top: 20px;
    max-width: 500px;
    opacity: 0.9;
}

/* Hero Info Overlay (Bottom of Banner) */
.hero-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 100%;
}

.model-info-grid {
    display: flex;
    gap: 40px;
}

.info-item {
    border-left: 2px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
}

.info-item h3 {
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 5px;
}

.info-item p {
    font-size: 1.8rem;
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    bottom: 60px;
    right: 2%;
    z-index: 2000;
    width: 100%;
    max-width: 280px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-actions .btn {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-actions.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--nissan-red);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--nissan-dark);
}

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

/* Form Section */
.form-section {
    padding: var(--section-padding);
    background-color: var(--nissan-light);
    display: flex;
    justify-content: center;
}

.form-container {
    width: 100%;
    max-width: 700px;
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.form-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.form-header {
    margin-bottom: 30px;
    text-align: center;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--nissan-dark);
}

.form-header p {
    color: var(--nissan-gray);
}

.nissan-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--nissan-gray);
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--nissan-red);
}

.submit-btn {
    margin-top: 10px;
    background-color: var(--nissan-red);
    color: var(--white);
    border: none;
    padding: 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.submit-btn:hover {
    background-color: #A00027;
    transform: translateY(-3px);
}

/* Footer Section */
.main-footer {
    background-color: var(--nissan-red);
    color: var(--white);
    padding: 40px 5%;
    text-align: center;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-container p {
    font-size: 0.85rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 992px) {
    .hero {
        display: flex;
        flex-direction: column;
        background-color: var(--white);
    }

    .hero-overlay {
        position: relative;
        padding: 30px 5%;
        height: auto;
        background: #000;
        display: block;
    }

    .hero-actions {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: center;
        padding: 0 5%;
    }

    .header-cta {
        display: none;
    }

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

    .hero-content h2 {
        font-size: 1.2rem;
    }

    .info-item p {
        font-size: 1.4rem;
    }

    .form-container {
        padding: 30px 20px;
    }

    .nissan-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .hero-actions {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        max-width: 100%;
        padding: 15px 0;
        z-index: 5;
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        box-shadow: none;
    }

    .hero-actions.hidden {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .main-footer {
        padding: 40px 10%;
    }
}