/* 
 * 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 */
    --accent-color: #0054A6;
    --brand-dark: #121212;
    --brand-gray: #333333;
    --brand-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(--brand-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(--accent-color);
    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: #003d7a;
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    background-color: var(--brand-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(--accent-color);
}

.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(--accent-color);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--brand-dark);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Improved Form Section */
.form-section {
    padding: 100px 5%;
    background-color: var(--brand-light);
}

.form-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 0;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
    background: var(--white);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.form-image-column {
    position: relative;
    overflow: hidden;
}

.form-image-column img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-wrapper:hover .form-image-column img {
    transform: scale(1.05);
}

.form-container {
    padding: 60px;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transform: translateX(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.form-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.form-header {
    margin-bottom: 35px;
}

.form-header h2 {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--brand-dark);
    margin-bottom: 10px;
}

.form-header p {
    color: var(--brand-gray);
    font-size: 1rem;
}

.tiguan-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.full-width {
    grid-column: span 2;
}

.form-group label {
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--brand-dark);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select {
    padding: 18px 20px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 84, 166, 0.1);
}

.submit-btn {
    margin-top: 15px;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 22px;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #003d7a;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 84, 166, 0.3);
}

.form-privacy {
    text-align: center;
    font-size: 0.8rem;
    color: #bbb;
    margin-top: 25px;
    font-weight: 500;
}

/* Footer Section */
.main-footer {
    background-color: var(--accent-color);
    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: 2px 5%;
        height: auto;
        display: block;
    }

    .form-section {
        padding: 55px 5%;
    }

    .hero-actions {
        max-width: 100%;
    }

    .form-header h2 {
        font-size: 1.8rem;
        line-height: 27px;
    }

    .submit-btn {
        font-size: 1rem;
    }
}

@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;
    }

    .hero-actions {
        position: relative;
        bottom: auto;
        right: auto;
        left: auto;
        max-width: 100%;
        padding: 15px 0;
        z-index: 5;
        flex-direction: column;
        gap: 10px;
    }

    .form-wrapper {
        grid-template-columns: 1fr;
    }

    .form-image-column {
        height: 300px;
    }

    .form-container {
        padding: 40px 25px;
        transform: translateY(30px);
        text-align: center;
    }

    .form-container.visible {
        transform: translateY(0);
    }

    .form-header {
        text-align: center;
    }

    .tiguan-form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .hero-actions .btn {
        box-shadow: none;
    }

    .hero-actions.hidden {
        opacity: 1;
        transform: none;
        pointer-events: auto;
    }

    .main-footer {
        padding: 40px 10%;
    }

    .btn, 
    .hero-actions .btn,
    .submit-btn, 
    .cta-btn {
        padding: 14px 24px !important;
        font-size: 0.95rem !important;
    }
}

/* Impact & Conversion Section */
.impact-section {
    padding: 100px 5%;
    background-color: var(--brand-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.impact-item {
    display: flex;
    gap: 30px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.impact-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    line-height: 1;
    opacity: 0.5;
}

.impact-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.impact-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Final CTA Section */
.final-cta-section {
    padding: 80px 5%;
    background: linear-gradient(135deg, #000000 0%, #1e1e1e 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    width: 100%;
}

.cta-card {
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
}

.cta-card p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-btn {
    font-size: 1.1rem;
    padding: 20px 50px;
    border-radius: 50px;
    letter-spacing: 1px;
}

/* Responsive Adjustments for New Sections */
@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .impact-item {
        padding: 30px;
        flex-direction: column;
        gap: 15px;
    }

    .impact-number {
        font-size: 2.5rem;
    }

    .cta-card {
        padding: 40px 20px;
    }

    .cta-card h2 {
        font-size: 1.8rem;
    }

    .cta-card p {
        font-size: 1rem;
    }
}