/**
 * Candle Porto Landing – Stylesheet
 *
 * Todo o CSS escopado sob body.candle-landing-page para evitar
 * conflitos com o tema pai (Hello Elementor).
 */

/* ===== SCROLL BEHAVIOR ===== */
html {
    scroll-behavior: smooth;
}

/* ===== RESET AGRESSIVO — sobrepor Hello Elementor ===== */
body.candle-landing-page,
body.candle-landing-page *,
body.candle-landing-page *::before,
body.candle-landing-page *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.candle-landing-page {
    --blood: #700505;
    --blood-deep: #5C0A0A;
    --blood-bright: #DC143C;
    --blood-glow: #FF1744;
    --wine: #4A0012;
    --rose: #C9004B;
    --gold: #C9A84C;
    --gold-dim: #8B7335;
    --black: #080508;
    --black-warm: #120A0D;
    --black-card: #1A0E12;
    --white: #F5E6E0;
    --white-soft: #D4B5AD;
    --smoke: #9E8A85;

    font-family: 'Cormorant Garamond', Georgia, serif !important;
    background: var(--black) !important;
    background-color: var(--black) !important;
    color: var(--white) !important;
    line-height: 1.8 !important;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Override Hello Elementor base element styles */
body.candle-landing-page h1,
body.candle-landing-page h2,
body.candle-landing-page h3,
body.candle-landing-page h4,
body.candle-landing-page h5,
body.candle-landing-page h6 {
    margin: 0;
    padding: 0;
    font-weight: inherit;
    line-height: inherit;
    color: inherit;
}

body.candle-landing-page p {
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
}

body.candle-landing-page a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
}

body.candle-landing-page a:hover,
body.candle-landing-page a:active,
body.candle-landing-page a:focus {
    color: inherit;
    text-decoration: none;
}

body.candle-landing-page ul,
body.candle-landing-page ol,
body.candle-landing-page li {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    background: transparent;
}

body.candle-landing-page button,
body.candle-landing-page [type="button"],
body.candle-landing-page [type="submit"] {
    color: inherit;
    background-color: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit;
    white-space: normal;
    text-align: inherit;
    -webkit-appearance: none;
}

body.candle-landing-page button:hover,
body.candle-landing-page button:focus,
body.candle-landing-page [type="submit"]:hover,
body.candle-landing-page [type="submit"]:focus {
    color: inherit;
    background-color: transparent;
}

body.candle-landing-page input,
body.candle-landing-page select,
body.candle-landing-page textarea {
    border-radius: 0;
}

body.candle-landing-page label {
    display: inline-block;
}

body.candle-landing-page .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== SMOKE PARTICLES ===== */
body.candle-landing-page .smoke-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

body.candle-landing-page .smoke-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--blood-glow);
    border-radius: 50%;
    opacity: 0;
    animation: candleRiseSmoke 10s infinite;
    filter: blur(1px);
}

@keyframes candleRiseSmoke {
    0% { opacity: 0; transform: translateY(100vh) scale(0.5); }
    15% { opacity: 0.5; }
    85% { opacity: 0.15; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1.5); }
}

/* ===== NAVBAR ===== */
body.candle-landing-page .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all 0.4s;
    background: transparent;
}

body.candle-landing-page .navbar.scrolled {
    background: rgba(8, 5, 8, 0.95);
    backdrop-filter: blur(16px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

body.candle-landing-page .navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.candle-landing-page .logo {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 3px;
}

body.candle-landing-page .logo:hover {
    color: var(--gold);
}

body.candle-landing-page .logo span {
    color: var(--blood-bright);
}

body.candle-landing-page .nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

body.candle-landing-page .nav-links a {
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--white-soft);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

body.candle-landing-page .nav-links a:hover {
    color: var(--blood-bright);
}

body.candle-landing-page .mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

body.candle-landing-page .mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--gold);
    transition: all 0.3s;
    display: block;
}

/* ===== HERO ===== */
body.candle-landing-page .hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

body.candle-landing-page .hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(139, 0, 0, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 20%, rgba(92, 10, 10, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 60%, rgba(201, 0, 75, 0.1) 0%, transparent 40%),
        var(--black);
}

body.candle-landing-page .hero-pulse {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(220, 20, 60, 0.12) 0%, transparent 65%);
    animation: candlePulse 5s ease-in-out infinite;
}

@keyframes candlePulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.4; }
    50% { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
}

body.candle-landing-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    padding: 0 24px;
}

body.candle-landing-page .hero h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--white);
    opacity: 0;
    animation: candleFadeUp 1s 0.4s forwards;
}

body.candle-landing-page .hero-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--white-soft);
    max-width: 560px;
    margin: 0 auto 40px;
    opacity: 0;
    animation: candleFadeUp 1s 0.6s forwards;
}

body.candle-landing-page .hero-cta {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blood), var(--blood-deep)) !important;
    border: 1px solid var(--blood-bright) !important;
    padding: 18px 52px;
    text-decoration: none;
    transition: all 0.4s;
    opacity: 0;
    animation: candleFadeUp 1s 0.8s forwards;
    position: relative;
    overflow: hidden;
}

body.candle-landing-page .hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
}

body.candle-landing-page .hero-cta:hover::before {
    transform: translateX(100%);
}

body.candle-landing-page .hero-cta:hover {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blood), var(--blood-deep)) !important;
    box-shadow: 0 0 50px rgba(220, 20, 60, 0.4);
    transform: translateY(-2px);
}

@keyframes candleFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== STATS ===== */
body.candle-landing-page .stats {
    background: linear-gradient(90deg, var(--blood-deep), var(--black-warm), var(--blood-deep));
    border-top: 1px solid rgba(201, 0, 75, 0.2);
    border-bottom: 1px solid rgba(201, 0, 75, 0.2);
    padding: 40px 0;
    position: relative;
    z-index: 2;
}

body.candle-landing-page .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

body.candle-landing-page .stat-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blood-bright);
}

body.candle-landing-page .stat-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--smoke);
    margin-top: 4px;
}

/* ===== SECTION COMMON ===== */
body.candle-landing-page .section-label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 12px;
    display: block;
}

body.candle-landing-page .section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.3;
    margin-bottom: 20px;
}

body.candle-landing-page .section-title .blood {
    color: var(--blood-bright);
}

body.candle-landing-page .section-title .gold {
    color: var(--gold);
}

body.candle-landing-page .divider {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blood-bright), transparent);
    margin: 0 auto;
}

/* ===== STORY LETTER ===== */
body.candle-landing-page .letter-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--black), var(--black-warm), var(--black));
    position: relative;
    z-index: 2;
}

body.candle-landing-page .letter-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

body.candle-landing-page .letter-header {
    text-align: center;
    margin-bottom: 48px;
}

body.candle-landing-page .letter-box {
    background: rgba(26, 14, 18, 0.5);
    border: 1px solid rgba(139, 0, 0, 0.15);
    padding: 56px 44px;
    position: relative;
}

body.candle-landing-page .letter-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blood-bright), var(--rose), var(--blood-bright), transparent);
}

body.candle-landing-page .letter-greeting {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 28px;
}

body.candle-landing-page .letter-box p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--white-soft);
    margin-bottom: 18px;
    line-height: 1.9;
}

body.candle-landing-page .letter-box p strong {
    color: var(--white);
    font-weight: 500;
}

body.candle-landing-page .letter-box p em {
    color: var(--gold);
}

body.candle-landing-page .letter-highlight {
    border-left: 3px solid var(--blood-bright);
    border-right: 3px solid var(--blood-bright);
    padding: 24px;
    margin: 28px 0;
    text-align: center;
    background: rgba(139, 0, 0, 0.06);
}

body.candle-landing-page .letter-highlight p {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem !important;
    font-style: italic;
    color: var(--white) !important;
}

body.candle-landing-page .letter-sign {
    margin-top: 40px;
    font-style: italic;
    color: var(--gold);
}

body.candle-landing-page .letter-sign strong {
    font-family: 'Cinzel', serif;
    font-style: normal;
    display: block;
    font-size: 1.1rem;
    color: var(--white);
    margin-top: 4px;
}

/* ===== CTA FORM ===== */
body.candle-landing-page .cta-section {
    padding: 100px 0;
    text-align: center;
    position: relative;
    z-index: 2;
    background: radial-gradient(ellipse at center, rgba(139, 0, 0, 0.12) 0%, transparent 55%);
}

body.candle-landing-page .cta-sub {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--white-soft);
    max-width: 520px;
    margin: 0 auto 40px;
}

body.candle-landing-page .cta-form {
    max-width: 440px;
    margin: 0 auto;
}

body.candle-landing-page .cta-note {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    color: var(--smoke);
    margin-top: 14px;
    opacity: 0.6;
}

/* ===== FLUENT FORMS – field groups (checkboxes/radios/labels) ===== */
body.candle-landing-page .fluentform .ff-el-group {
    margin-bottom: 20px;
    text-align: left;
}

body.candle-landing-page .fluentform .ff-el-input--label label,
body.candle-landing-page .fluentform .ff-el-group > label {
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.8rem !important;
    font-weight: 500 !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white-soft) !important;
    margin-bottom: 12px;
    display: block;
}

body.candle-landing-page .fluentform .ff-el-form-check {
    margin-bottom: 10px;
}

body.candle-landing-page .fluentform .ff-el-form-check label,
body.candle-landing-page .fluentform .ff-el-form-check-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    font-family: 'Cormorant Garamond', Georgia, serif !important;
    font-size: 1.05rem !important;
    color: var(--white-soft) !important;
    cursor: pointer;
    transition: color 0.3s;
    line-height: 1.4;
}

body.candle-landing-page .fluentform .ff-el-form-check label:hover,
body.candle-landing-page .fluentform .ff-el-form-check-label:hover {
    color: var(--white) !important;
}

body.candle-landing-page .fluentform .ff-el-form-check input[type="checkbox"],
body.candle-landing-page .fluentform .ff-el-form-check input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: var(--blood-bright);
    cursor: pointer;
    flex-shrink: 0;
    margin: 0;
}

/* ===== FOOTER ===== */
body.candle-landing-page .footer {
    padding: 48px 0 24px;
    border-top: 1px solid rgba(139, 0, 0, 0.15);
    position: relative;
    z-index: 2;
    text-align: center;
}

body.candle-landing-page .footer-brand {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: var(--gold);
    letter-spacing: 3px;
    margin-bottom: 16px;
}

body.candle-landing-page .footer-brand span {
    color: var(--blood-bright);
}

body.candle-landing-page .footer p {
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    color: var(--smoke);
    opacity: 0.5;
}

/* ===== REVEAL ANIMATIONS ===== */
body.candle-landing-page .reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.candle-landing-page .reveal.active {
    opacity: 1;
    transform: translateY(0);
}

body.candle-landing-page .reveal-d1 { transition-delay: 0.1s; }
body.candle-landing-page .reveal-d2 { transition-delay: 0.2s; }
body.candle-landing-page .reveal-d3 { transition-delay: 0.3s; }

/* ===== FLUENT FORMS OVERRIDES ===== */
body.candle-landing-page .fluentform {
    text-align: left;
}

body.candle-landing-page .fluentform .ff-el-input--label label {
    font-family: 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--white-soft);
}

body.candle-landing-page .fluentform .ff-el-form-control {
    width: 100%;
    padding: 15px 18px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    color: var(--white) !important;
    background: rgba(26, 14, 18, 0.7) !important;
    border: 1px solid rgba(139, 0, 0, 0.3) !important;
    border-radius: 0 !important;
    outline: none;
    transition: border-color 0.3s;
    -webkit-appearance: none;
}

body.candle-landing-page .fluentform .ff-el-form-control::placeholder {
    color: rgba(158, 138, 133, 0.6);
}

body.candle-landing-page .fluentform .ff-el-form-control:focus {
    border-color: var(--blood-bright) !important;
    box-shadow: none !important;
}

body.candle-landing-page .fluentform select.ff-el-form-control option {
    background: var(--black-warm);
    color: var(--white);
}

/* Fluent Forms checkboxes/radios */
body.candle-landing-page .fluentform .ff-el-form-check label {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1rem;
    color: var(--white-soft);
}

body.candle-landing-page .fluentform .ff-el-form-check input[type="checkbox"],
body.candle-landing-page .fluentform .ff-el-form-check input[type="radio"] {
    accent-color: var(--blood-bright);
}

/* Fluent Forms submit button */
body.candle-landing-page .fluentform .ff-btn-submit {
    width: 100%;
    padding: 17px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blood), var(--blood-deep)) !important;
    border: 1px solid var(--blood-bright) !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.4s;
}

body.candle-landing-page .fluentform .ff-btn-submit:hover,
body.candle-landing-page .fluentform .ff-btn-submit:focus {
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blood), var(--blood-deep)) !important;
    box-shadow: 0 0 40px rgba(220, 20, 60, 0.35);
    transform: translateY(-2px);
}

/* Fluent Forms messages */
body.candle-landing-page .fluentform .ff-message-success {
    background: rgba(46, 125, 50, 0.15) !important;
    border-color: #4CAF50 !important;
    color: var(--white) !important;
    font-family: 'Raleway', sans-serif;
}

body.candle-landing-page .fluentform .ff-errors-in-stack {
    font-family: 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--blood-bright);
}

/* ===== WORDPRESS ADMIN BAR ===== */
body.candle-landing-page.admin-bar .navbar {
    top: 32px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    body.candle-landing-page .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(8, 5, 8, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 14px;
        border-bottom: 1px solid rgba(139, 0, 0, 0.2);
    }

    body.candle-landing-page .nav-links.open {
        display: flex;
    }

    body.candle-landing-page .mobile-toggle {
        display: flex;
    }

    body.candle-landing-page .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    body.candle-landing-page .letter-box {
        padding: 36px 22px;
    }

    body.candle-landing-page.admin-bar .navbar {
        top: 46px;
    }
}

@media (max-width: 480px) {
    body.candle-landing-page .stat-num {
        font-size: 1.8rem;
    }
}
