/* ==========================================================================
   V3 IMÓVEIS — LP CAPTAÇÃO SANCHES
   ========================================================================== */

:root {
    --bg-primary: #08102C;
    --bg-secondary: #0A1438;
    --accent-gold: #C29E63;
    --accent-gold-hover: #DBC092;
    --text-light: #F8F9FA;
    --text-muted: #A6B0C3;
    --border-color: rgba(194, 158, 99, 0.28);
    --error-color: #F0868C;
    --success-color: #7BC47F;

    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: var(--accent-gold); }

/* ─── HERO ─── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    padding: clamp(2rem, 5vw, 5rem) clamp(1.25rem, 5vw, 5rem);
    overflow: hidden;
}

.hero__bg,
.hero__bg img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(8, 16, 44, 0.55) 0%, rgba(8, 16, 44, 0.78) 55%, rgba(8, 16, 44, 0.94) 100%),
        radial-gradient(120% 80% at 20% 30%, rgba(8, 16, 44, 0.35), transparent 70%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero__logo {
    margin-bottom: 1.75rem;
    height: auto;
    width: clamp(280px, 42vw, 440px);
    filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.35));
}

h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(2.6rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.hero__lead {
    margin: 1.5rem 0 1.75rem;
    max-width: 46ch;
    color: #D4DAE6;
}

.perks { list-style: none; display: grid; gap: 0.85rem; }

.perks li { display: flex; align-items: center; gap: 0.75rem; font-size: 0.96rem; }

.perks svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--accent-gold);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ─── COUNTDOWN ─── */
.countdown { margin-top: 2rem; }
.countdown__label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.countdown__grid { display: flex; gap: 1.25rem; margin-top: 0.6rem; }
.countdown__grid div { text-align: center; }
.countdown__grid strong {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    display: block;
    color: var(--text-light);
}
.countdown__grid small { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 0.1em; }

/* ─── CARD / FORM ─── */
.card {
    background: rgba(10, 20, 56, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
}

.card h2 {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1.55rem;
    line-height: 1.2;
}

.card__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0.5rem 0 1.5rem; }

.card label {
    display: block;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.card input[type="text"],
.card input[type="tel"],
.card input[type="email"] {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.85rem 1rem;
    font: inherit;
    color: var(--text-light);
    background: rgba(8, 16, 44, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card input::placeholder { color: rgba(166, 176, 195, 0.55); }

.card input:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 3px rgba(194, 158, 99, 0.18);
}

.card input[aria-invalid="true"] { border-color: var(--error-color); }

.consent {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
    margin-bottom: 1.4rem;
}

.consent input { margin-top: 0.15rem; accent-color: var(--accent-gold); flex-shrink: 0; }

.consent.is-invalid { color: var(--error-color); }
.consent.is-invalid input { outline: 2px solid var(--error-color); outline-offset: 2px; }
.consent.is-invalid a { color: var(--error-color); }

#empresa { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

#submit-btn {
    width: 100%;
    padding: 0.95rem 1.5rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--bg-primary);
    background: var(--accent-gold);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: background 0.2s ease, transform 0.1s ease;
}

#submit-btn:hover { background: var(--accent-gold-hover); }
#submit-btn:active { transform: translateY(1px); }
#submit-btn:disabled { opacity: 0.7; cursor: progress; }

.btn__spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(8, 16, 44, 0.35);
    border-top-color: var(--bg-primary);
    border-radius: 50%;
    display: none;
    animation: spin 0.7s linear infinite;
}

#submit-btn.is-loading .btn__spinner { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error {
    margin-top: 0.9rem;
    font-size: 0.82rem;
    color: var(--error-color);
    text-align: center;
}

/* ─── SUCCESS ─── */
.card__success { text-align: center; padding: 1rem 0; }

.card__success svg {
    width: 54px;
    height: 54px;
    fill: none;
    stroke: var(--success-color);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 1rem;
}

.card__success h2 { margin-bottom: 0.6rem; }
.card__success p { font-size: 0.92rem; color: var(--text-muted); }

/* ─── FOOTER ─── */
.foot {
    background: var(--bg-secondary);
    text-align: center;
    padding: 2.5rem 1.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.foot img { opacity: 0.7; margin-bottom: 0.9rem; height: auto; }
.foot__fine { margin-top: 0.5rem; opacity: 0.7; max-width: 52ch; margin-inline: auto; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
    .hero { min-height: 0; padding-top: 3.5rem; padding-bottom: 3.5rem; }
    .hero__inner { grid-template-columns: 1fr; gap: 2.5rem; }

    /* tudo empilha e centraliza */
    .hero__copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
    .hero__logo { margin-inline: auto; width: min(78vw, 360px); }

    h1 { font-size: clamp(1.9rem, 8.5vw, 2.6rem); }

    .hero__lead { margin-inline: auto; max-width: 40ch; }

    .perks { justify-items: center; }
    .perks li { max-width: 22rem; }

    .countdown__grid { justify-content: center; }

    .card { text-align: center; }
    .card label { text-align: left; }
    .card .consent { text-align: left; }
}

@media (max-width: 400px) {
    .card { padding: 1.4rem 1.15rem; }
    .card h2 { font-size: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    html { scroll-behavior: auto; }
}
