/* Estilo automático para a página: home */

/* ==========================================================================
   Hero (vídeo de fundo)
   ========================================================================== */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 760px;
    overflow: hidden;
    background: var(--preto);

    .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        pointer-events: none;
    }

    .hero-overlay {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.3) 100%);
    }

    .hero-content {
        position: relative;
        z-index: 1;
        padding-bottom: 100px;
        text-align: center;
    }

    .hero-title {
        margin: 0 auto;
        font-size: 60px;
        font-weight: 300;
        line-height: 1.07;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--branco);
    }

    .hero-subtitle {
        margin: 28px 0 0;
        font-size: 20px;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--Color-text-brand-300);
    }

    .hero-buttons {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 28px;
        margin-top: 24px;
    }

    .hero-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        height: 60px;
        padding: 0 16px;
        border: 1px solid var(--branco);
        font-size: 20px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: 0.08em;
        color: var(--branco);
        transition: background-color 0.3s, color 0.3s;

        svg {
            width: 28px;
            height: 28px;
            flex-shrink: 0;
        }

        &:hover {
            background: var(--branco);
            color: var(--preto);
        }

        &.hero-button--solid {
            background: var(--branco);
            color: var(--preto);

            &:hover {
                background: rgba(255, 255, 255, 0.85);
            }
        }
    }

    @media (max-width: 1023px) {
        height: 60vh;
        min-height: 560px;

        .hero-title {
            font-size: 44px;
        }

        .hero-subtitle {
            font-size: 16px;
        }

        .hero-button {
            font-size: 16px;
        }
    }

    @media (max-width: 639px) {
        .hero-video {
            object-fit: none;
        }

        .hero-content {
            padding-bottom: 40px;
        }

        .hero-title {
            font-size: 30px;

            br {
                display: none;
            }
        }

        .hero-subtitle {
            margin-top: 20px;
            font-size: 14px;
        }

        .hero-buttons {
            flex-direction: column;
            gap: 14px;
        }

        .hero-button {
            width: 100%;
            max-width: 320px;
            height: 52px;
        }
    }
}

/* ==========================================================================
   Cadastro (pilares, texto, imagem e formulário)
   ========================================================================== */
.leads {
    position: relative;
    overflow: hidden;
    padding-bottom: 118px;
    background: var(--preto);

    .leads-bg {
        position: absolute;
        bottom: 0;
        left: 50%;
        width: 100%;
        min-width: 1200px;
        height: auto;
        max-width: none;
        transform: translateX(-50%);
        pointer-events: none;
        user-select: none;
    }

    .site-container {
        position: relative;
        z-index: 1;
    }

    /* Pilares */
    .leads-pillars {
        display: flex;
        justify-content: space-between;
        margin: 0;
        padding: 56px 0 20px;
        list-style: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);

        li {
            font-size: 24px;
            font-weight: 500;
            line-height: 1.2;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            color: var(--Color-text-brand-300);
        }
    }

    .leads-grid {
        display: grid;
        grid-template-columns: 1fr 588px;
        align-items: start;
        gap: 64px;
        margin-top: 106px;
    }

    /* Texto */
    .leads-label {
        margin: 0;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.2;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--branco);
    }

    .leads-title {
        margin: 18px 0 0;
        font-size: 50px;
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--branco);
    }

    .leads-text {
        margin: 28px 0 0;
        font-size: 20px;
        font-weight: 400;
        line-height: 1.3;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--branco);
    }

    /* Formulário */
    .leads-form {
        padding: 48px 40px 56px;
        border-radius: 16px;
        background: var(--branco);
        color: #555;
    }

    .leads-form-title {
        margin: 0;
        font-size: 24px;
        font-weight: 500;
        line-height: 1.2;
        text-align: center;
        color: #555;
    }

    .leads-form-fields {
        display: flex;
        flex-direction: column;
        gap: 28px;
        margin-top: 40px;
    }

    .leads-field {
        label {
            display: block;
            margin-bottom: 10px;
            font-size: 12px;
            font-weight: 500;
            line-height: 1;
            color: #555;
        }

        input {
            display: block;
            width: 100%;
            height: 56px;
            padding: 0 16px;
            border: 1px solid #9a9a9a;
            border-radius: 6px;
            background: var(--branco);
            font-size: 16px;
            color: #333;
            transition: border-color 0.3s, box-shadow 0.3s;

            &::placeholder {
                color: #777;
            }

            &:focus {
                outline: none;
                border-color: var(--Color-brand-600);
                box-shadow: 0 0 0 1px var(--Color-brand-600);
            }
        }
    }

    .leads-checkbox {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: -4px;
        font-size: 16px;
        line-height: 1.2;
        color: #555;
        cursor: pointer;

        input {
            flex-shrink: 0;
            width: 24px;
            height: 24px;
            margin: 0;
            border: 1px solid #9a9a9a;
            border-radius: 6px;
            background: var(--branco) center / 16px no-repeat;
            appearance: none;
            cursor: pointer;

            &:checked {
                border-color: var(--Color-brand-600);
                background-color: var(--Color-brand-600);
                background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'><path d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/></svg>");
            }

            &:focus-visible {
                outline: 2px solid rgba(184, 90, 58, 0.4);
                outline-offset: 2px;
            }
        }
    }

    .leads-submit {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 300px;
        height: 58px;
        margin: 0 auto;
        padding: 0 24px;
        border: none;
        background: var(--Color-brand-600);
        font-size: 16px;
        font-weight: 400;
        color: var(--branco);
        transition: background-color 0.3s;

        &:hover {
            background: var(--Color-brand-700);
        }

        &:disabled {
            opacity: 0.6;
            cursor: wait;
        }
    }

    .leads-honeypot {
        position: absolute;
        left: -9999px;
        width: 1px;
        height: 1px;
        overflow: hidden;
    }

    .leads-field.has-error input,
    .leads-checkbox.has-error input {
        border-color: #c0392b;
    }

    .leads-form-status {
        margin: -8px 0 0;
        font-size: 14px;
        line-height: 1.4;
        text-align: center;

        &:empty {
            display: none;
        }

        &.is-success {
            color: #2e7d32;
        }

        &.is-error {
            color: #c0392b;
        }
    }

    @media (max-width: 1279px) {
        .leads-grid {
            grid-template-columns: 1fr 520px;
            gap: 48px;
        }

        .leads-title {
            font-size: 42px;
        }
    }

    @media (max-width: 1023px) {
        padding-bottom: 80px;

        .leads-pillars {
            padding: 40px 0 24px;

            li {
                font-size: 18px;
            }
        }

        .leads-grid {
            grid-template-columns: 1fr;
            gap: 48px;
            margin-top: 64px;
        }

        .leads-title {
            font-size: 36px;
        }

        .leads-text {
            margin-top: 24px;
            font-size: 16px;
        }
    }

    @media (max-width: 639px) {
        .leads-pillars {
            flex-direction: column;
            align-items: center;
            gap: 12px;
            text-align: center;
        }

        .leads-label {
            font-size: 16px;
        }

        .leads-title {
            font-size: 28px;
            letter-spacing: 0.06em;

            br {
                display: none;
            }
        }

        .leads-text {
            font-size: 14px;
        }

        .leads-form {
            padding: 40px 24px;
        }
    }
}

/* ==========================================================================
   Pop-up de sucesso do formulário
   ========================================================================== */
.lead-modal {
    width: calc(100% - 32px);
    max-width: 520px;
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--branco);
    overflow: visible;

    &::backdrop {
        background: rgba(0, 0, 0, 0.75);
        backdrop-filter: blur(4px);
    }

    &[open] {
        animation: lead-modal-in 0.45s cubic-bezier(0.16, 1, 0.3, 1);

        &::backdrop {
            animation: lead-modal-fade 0.3s ease-out;
        }
    }

    .lead-modal-box {
        position: relative;
        padding: 56px 48px 48px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-top: 3px solid var(--Color-text-brand-300);
        background: #0b0b0b;
        text-align: center;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    }

    .lead-modal-close {
        position: absolute;
        top: 16px;
        right: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: none;
        background: transparent;
        color: rgba(255, 255, 255, 0.6);
        transition: color 0.3s;

        svg {
            width: 22px;
            height: 22px;
        }

        &:hover {
            color: var(--branco);
        }
    }

    .lead-modal-logo {
        display: block;
        width: 120px;
        height: auto;
        margin: 0 auto;
    }

    .lead-modal-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        margin: 36px auto 0;
        border: 1px solid var(--Color-text-brand-300);
        border-radius: 50%;
        color: var(--Color-text-brand-300);

        svg {
            width: 34px;
            height: 34px;
        }
    }

    .lead-modal-title {
        margin: 28px 0 0;
        font-size: 36px;
        font-weight: 300;
        line-height: 1.1;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--branco);
    }

    .lead-modal-text {
        max-width: 360px;
        margin: 20px auto 0;
        font-size: 16px;
        line-height: 1.5;
        color: rgba(255, 255, 255, 0.75);
    }

    .lead-modal-date {
        margin: 24px 0 0;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--Color-text-brand-300);
    }

    .lead-modal-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 240px;
        height: 54px;
        margin-top: 32px;
        border: none;
        background: var(--Color-brand-600);
        font-size: 16px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--branco);
        transition: background-color 0.3s;

        &:hover {
            background: var(--Color-brand-700);
        }
    }

    @media (max-width: 639px) {
        .lead-modal-box {
            padding: 48px 24px 32px;
        }

        .lead-modal-title {
            font-size: 28px;
        }
    }
}

@keyframes lead-modal-in {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes lead-modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
