﻿/* 
   LP STYLE - MINHA CASA MINHA VIDA GOIÃ‚NIA 
   Premium "Light Luxury" Aesthetic
*/

:root {
    --lp-navy: #060f1e;
    --lp-navy-light: #0d1b31;
    --lp-red: #C41E3A;
    --lp-gold: #D4AF37;
    --lp-gold-light: #f1d592;
    --lp-text-red: #C41E3A;
    --lp-glass: rgba(255, 255, 255, 0.03);
    --lp-glass-border: rgba(255, 255, 255, 0.1);
    --lp-text-muted: rgba(255, 255, 255, 0.7);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    background-color: var(--lp-navy);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
.playfair {
    font-family: 'Playfair Display', serif;
}

/* --- LAYOUT --- */
.lp-section {
    padding: 100px 2rem;
    position: relative;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- HERO SECTION --- */
.lp-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--lp-navy);
}

.lp-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease;
}

.lp-header img {
    height: 50px;
    margin-bottom: 2rem;
}

.lp-title {
    font-size: clamp(2.2rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
}

.lp-highlight {
    color: var(--lp-red);
    font-weight: 700;
}

.lp-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--lp-text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* --- FORM CARD --- */
.form-card {
    background: var(--lp-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--lp-glass-border);
    border-radius: 32px;
    padding: 3.5rem;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.progress-bar-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--lp-red), var(--lp-gold));
    width: 0%;
    transition: width 0.4s ease;
    box-shadow: 0 0 15px var(--lp-red);
}

.step {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.step.active {
    display: block;
}

.step-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--lp-gold);
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700;
}

.step-question {
    font-size: clamp(1.4rem, 5vw, 2.2rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

/* --- INPUTS --- */
.lp-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    color: #fff;
    font-size: 16px;
    /* Prevent iOS zoom */
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
}

.lp-input:focus {
    border-color: var(--lp-red);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 30px rgba(192, 57, 43, 0.15);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.option-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 1.8rem;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    font-weight: 500;
    font-size: 1.1rem;
}

.option-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--lp-gold);
    transform: translateY(-4px);
}

.option-card.selected {
    background: linear-gradient(135deg, var(--lp-red), #a02e22);
    border-color: var(--lp-red);
    color: #fff;
    box-shadow: 0 15px 30px rgba(192, 57, 43, 0.3);
}

/* --- BUTTONS --- */
.nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 3.5rem;
    gap: 1.5rem;
}

.btn-next,
.btn-submit {
    flex: 2;
    background: linear-gradient(135deg, var(--lp-red), #d35400);
    color: #fff;
    border: none;
    border-radius: 16px;
    padding: 1.4rem;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-submit {
    animation: pulseGlow 2.5s infinite alternate;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(192, 57, 43, 0.4);
    filter: brightness(1.1);
}

.btn-prev {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    color: var(--lp-text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* --- MOTION & DYNAMICS --- */

/* Highlight Glow & Shimmer */
.lp-highlight {
    color: var(--lp-red);
    font-weight: 700;
    position: relative;
    display: inline-block;
}

@keyframes shimmerText {
    to {
        background-position: 200% center;
    }
}

/* Light Ray on Buttons */
.btn-submit {
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(30deg);
    transition: none;
    animation: lightRay 4s infinite cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes lightRay {
    0% {
        left: -60%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    40% {
        left: 140%;
        opacity: 0;
    }

    100% {
        left: 140%;
        opacity: 0;
    }
}

/* Dynamic Gradients Background (Removed as per user request to keep only blue) */
.lp-hero::before {
    display: none;
}

@keyframes atmosphereMove {
    0% {
        transform: translate(-5%, -5%) scale(1);
    }

    100% {
        transform: translate(5%, 5%) scale(1.1);
    }
}

/* Interactive Lifting Cards */
.form-card,
.benefit-card,
.option-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1),
        border-color 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 20px rgba(212, 175, 55, 0.1);
}

.form-card:hover {
    box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 30px rgba(192, 57, 43, 0.05);
}

/* Global Link Resets */
a,
a:hover,
a:focus,
a:active {
    text-decoration: none !important;
}

/* --- NEW SECTIONS --- */
.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
    color: var(--lp-gold);
}

.section-title p {
    color: var(--lp-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.benefit-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--lp-glass-border);
    padding: 3rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-10px);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--lp-gold);
    margin-bottom: 1.5rem;
    animation: floatIcon 3s ease-in-out infinite;
}

.benefit-card:nth-child(2) .benefit-icon {
    animation-delay: 1s;
}

.benefit-card:nth-child(3) .benefit-icon {
    animation-delay: 2s;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

/* Process Section */
.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--lp-glass);
    padding: 2.5rem;
    border-radius: 24px;
    border-left: 4px solid var(--lp-red);
}

.process-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    line-height: 1;
    color: var(--lp-gold);
    opacity: 0.5;
}

.process-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--lp-glass);
    border-radius: 16px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    padding: 0 2rem 1.5rem;
    color: var(--lp-text-muted);
    display: none;
}

/* --- FOOTER --- */
.lp-footer {
    text-align: center;
    padding: 4rem 2rem;
    background: #040a14;
    border-top: 1px solid var(--lp-glass-border);
}

.footer-cta {
    margin-bottom: 3rem;
}

.btn-secondary-cta {
    display: inline-block;
    background: transparent;
    border: 2px solid var(--lp-gold);
    color: var(--lp-gold);
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
}

.btn-secondary-cta:hover {
    background: var(--lp-gold);
    color: var(--lp-navy);
}

/* --- PARTNERS SECTION --- */
.lp-partners {
    padding: 80px 2rem;
    background: #060f1e;
}

.lp-partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.5rem;
    align-items: center;
    justify-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.lp-partner-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    width: 100%;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lp-partner-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.lp-partner-item img {
    max-width: 100%;
    max-height: 45px;
    filter: brightness(1.2) opacity(0.85);
    transition: var(--transition);
    object-fit: contain;
}

.lp-partner-item:hover img {
    filter: brightness(1) opacity(1);
}

.lp-partner-name {
    font-size: 0.7rem;
    color: var(--lp-text-muted);
    margin-top: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* --- ANIMATIONS --- */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Motion Refinement */
.lp-hero {
    background: var(--lp-navy);
    /* Pure Navy as requested */
    overflow: hidden;
}

@keyframes floatIcon {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 15px rgba(192, 57, 43, 0.4);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 35px rgba(192, 57, 43, 0.8);
        transform: scale(1.02);
    }

    100% {
        box-shadow: 0 0 15px rgba(192, 57, 43, 0.4);
        transform: scale(1);
    }
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--lp-navy);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 32px;
}

.loader-icon-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.house-key-icon {
    font-size: 2.5rem;
    color: var(--lp-gold);
    z-index: 2;
    animation: unlockFloat 2s ease-in-out infinite alternate;
}

.loader-ring {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--lp-red);
    border-bottom-color: var(--lp-gold);
    animation: spinLoader 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.loading-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    text-align: center;
    background: linear-gradient(90deg, #fff, var(--lp-gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseText 2s infinite;
}

.loading-subtitle {
    font-size: 1.1rem;
    color: var(--lp-text-muted);
    text-align: center;
    max-width: 80%;
}

@keyframes unlockFloat {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-10px) rotate(15deg);
    }
}

@keyframes spinLoader {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(180deg) scale(1.1);
    }

    100% {
        transform: rotate(360deg) scale(1);
    }
}

@keyframes pulseText {
    0% {
        opacity: 0.7;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.7;
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .lp-section {
        padding: 50px 1.25rem;
    }

    .lp-hero {
        padding-top: 2rem;
        justify-content: flex-start;
    }

    .form-card {
        padding: 2.2rem 1.2rem;
        border-radius: 24px;
    }

    .process-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .step-question {
        margin-bottom: 1.5rem;
    }

    .btn-next,
    .btn-submit {
        padding: 1.2rem;
        font-size: 1rem;
    }

    .nav-buttons {
        flex-direction: column-reverse;
        /* Put 'Anterior' below on mobile if needed, or keep same */
        gap: 1rem;
    }

    .nav-buttons>* {
        width: 100%;
    }

    /* iOS Safari fixes */
    .lp-hero {
        background-attachment: scroll;
        /* Fix for iOS jumping background */
    }
}

@media (max-width: 480px) {
    .lp-title {
        text-align: left;
        /* Better for mobile lists */
        font-size: 2rem;
    }

    .lp-subtitle {
        text-align: left;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

.options-grid.error-grid .option-card {
    border-color: rgba(192, 57, 43, 0.5);
    box-shadow: 0 0 15px rgba(192, 57, 43, 0.1);
}