﻿/* =====================================================
   BASE / RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background: #0f172a;
    color: #ffffff;
}

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =====================================================
   FORM ELEMENTS
===================================================== */

.form-control,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 14px;
}

textarea {
    resize: vertical;
}

.form-group {
    margin-bottom: 14px;
}

.form-subtitle {
    margin-bottom: 20px;
    color: #4b5563;
}

/* =====================================================
   FORM VALIDATION (IMPORTANT)
===================================================== */

/* ❌ Do NOT show invalid state on page load */
.form-control:invalid {
    box-shadow: none;
}

/* ✅ Only show validation AFTER submit attempt */
form.was-validated .form-control:invalid {
    border-color: #dc3545;
}

form.was-validated .form-control:valid {
    border-color: #198754;
}

.field-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    display: block;
}

.form-error {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* =====================================================
   BUTTONS
===================================================== */

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

/* =====================================================
   SMALL TEXT
===================================================== */

.privacy {
    font-size: 12px;
    margin-top: 10px;
    text-align: center;
    color: #6b7280;
}

/* =====================================================
   HERO BASE
===================================================== */

.hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    padding: 120px 0;
}

/* Text scrim for readability */
.hero-text-scrim {
    position: relative;
    padding: 40px;
    max-width: 600px;
}

    .hero-text-scrim::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to right, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.75) 60%, rgba(15, 23, 42, 0) 100% );
        border-radius: 12px;
        z-index: -1;
    }

.hero-content h1 {
    font-size: 44px;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 25px;
    color: #d1d5db;
}

/* =====================================================
   HERO VARIANTS
===================================================== */

.hero.seo-hero {
    background-image: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7");
}

.hero.office-hero {
    background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c");
}

.hero.contact-hero {
    background-image: url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4");
}

/* =====================================================
   BENEFITS
===================================================== */

.benefits {
    list-style: none;
    padding: 0;
    margin: 20px 0 30px;
}

    .benefits li {
        margin-bottom: 10px;
    }

/* =====================================================
   HIGHLIGHT BOX
===================================================== */

.highlight-box {
    background: rgba(255, 255, 255, 0.08);
    padding: 20px;
    border-radius: 8px;
}

/* =====================================================
   FORM CARD
===================================================== */

.hero-form {
    position: relative;
    background: #ffffff;
    color: #111827;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

    .hero-form h2 {
        margin-top: 0;
    }

    .hero-form.success-active {
        display: flex;
        align-items: center;
        justify-content: center;
    }


/* =====================================================
   LANDING HEADER
===================================================== */

.landing-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-header-inner {
    max-width: 1170px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-header .logo img {
    height: 42px;
    display: block;
}

.landing-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

    .landing-nav a {
        color: #e5e7eb;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
    }

        .landing-nav a:hover {
            color: #ffffff;
        }

.nav-cta {
    padding: 8px 16px;
    background: #2563eb;
    border-radius: 6px;
    color: #ffffff;
    font-weight: 600;
}

    .nav-cta:hover {
        background: #1d4ed8;
    }

/* =====================================================
   SUCCESS PANEL
===================================================== */

.lead-success {
    text-align: center;
    padding: 40px 30px;
    width: 100%;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #22c55e;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lead-success h2 {
    margin-bottom: 10px;
    font-size: 28px;
}

.lead-success p {
    margin-bottom: 25px;
    color: #4b5563;
}

.success-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 6px;
    text-decoration: none;
}

    .success-home-btn:hover {
        background: #1e40af;
    }

/* =====================================================
   UTILITIES
===================================================== */

.hidden {
    display: none !important;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        padding-top: 140px;
    }

    .hero-content h1 {
        font-size: 36px;
    }
}
