@import 'variables.css';

/* =========================================
   Header & Navbar
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);

}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-body);
    font-size: 1rem;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--bg-light) 0%, #E2E8F0 100%);
    overflow: hidden;
}

.hero-bg-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.hero-text .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--text-body);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-trust-badges {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item i {
    color: var(--accent-color);
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    animation: float 6s ease-in-out infinite;
}

.hero-card img {
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

#hero-car {
    border-radius: 0;
    max-width: 100%;
    /* Ensure it handles transparency well */
    display: block;
}

/* =========================================
   Features / Value Props
   ========================================= */
.features {
    background-color: var(--bg-white);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: var(--bg-white);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* =========================================
   How It Works
   ========================================= */
.how-it-works {
    background-color: var(--primary-color);
    color: white;
}

.how-it-works .section-header h2 {
    color: white;
}

.how-it-works .section-header p {
    color: #94A3B8;
    /* Slate 400 */
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Connecting Line */
.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: #334155;
    z-index: 0;
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    padding: 0 20px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: white;
}

.step-card p {
    color: #94A3B8;
    font-size: 0.95rem;
}

/* =========================================
   Lead Capture Modal
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    /* Initially hidden */
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--bg-white);
    width: 100%;
    max-width: 500px;
    padding: 30px;
    /* Reduced padding */
    border-radius: var(--border-radius-lg);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-2xl);
    max-height: 90vh;
    /* Limit height */
    overflow-y: auto;
    /* Enable scrolling */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
}

.form-header h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
    text-align: center;
}

.form-header p {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

/* =========================================
   Footer
   ========================================= */
footer {
    background: var(--primary-light);
    color: white;
    padding-top: 80px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: #94A3B8;
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94A3B8;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    color: #64748B;
    font-size: 0.85rem;
}

/* =========================================
   FAQ Section
   ========================================= */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-light);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.faq-item[open] {
    box-shadow: var(--shadow-md);
    background: white;
}

.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
    transition: var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\f078';
    /* FontAwesome Chevron Down */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
    color: var(--accent-color);
}

.faq-content {
    padding: 24px;
    /* Matches summary padding */
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-footer {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1rem;
    color: var(--text-body);
}

.faq-footer a {
    color: var(--accent-color);
    font-weight: 600;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .steps-container::before {
        display: none;
    }

    .steps-container {
        flex-direction: column;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 900;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 32px;
    }

    .hero-trust-badges {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}