/* =============================================================================
   REFIN MULTINÍVEL — STYLESHEET CORPORATIVO
   Cor primária: #1c3e6b | Tipografia: Inter | Mobile-first
   ============================================================================= */

/* ─── FONTES LOCAIS (Inter) ─────────────────────────────────────────────────── */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/inter-400.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/inter-500.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/inter-600.ttf') format('truetype');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/inter-700.ttf') format('truetype');
}

/* ─── VARIÁVEIS ──────────────────────────────────────────────────────────────── */
:root {
    --rfn-primary:        #1c3e6b;
    --rfn-primary-dark:   #142d50;
    --rfn-primary-light:  #2a5298;
    --rfn-gold:           #f5b800;
    --rfn-gold-light:     #ffc933;
    --rfn-gold-dark:      #d49a00;
    --rfn-white:          #ffffff;
    --rfn-off-white:      #f4f6f9;
    --rfn-light-gray:     #e8ecf0;
    --rfn-mid-gray:       #6c7a8a;
    --rfn-dark-gray:      #2c3e50;
    --rfn-text:           #1a2332;
    --rfn-text-muted:     #5a6777;
    --rfn-border:         #d0d9e3;

    --rfn-font:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

    --rfn-shadow-sm:  0 2px 8px rgba(28,62,107,0.10);
    --rfn-shadow-md:  0 4px 20px rgba(28,62,107,0.15);
    --rfn-shadow-lg:  0 8px 40px rgba(28,62,107,0.20);

    --rfn-radius:     4px;
    --rfn-radius-lg:  8px;
    --rfn-transition: all 0.25s ease;

    --rfn-navbar-h: 64px;
}

/* ─── BASE ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden; /* previne scroll horizontal em qualquer largura */
}

body {
    font-family: var(--rfn-font);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--rfn-text);
    background: var(--rfn-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main { padding-top: var(--rfn-navbar-h); }

/* ─── NAVBAR ─────────────────────────────────────────────────────────────────── */
.rfn-navbar {
    background-color: var(--rfn-primary);
    border-bottom: 3px solid var(--rfn-gold);
    padding: 0;
    height: var(--rfn-navbar-h);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: var(--rfn-transition);
}

.rfn-navbar.scrolled {
    box-shadow: var(--rfn-shadow-lg);
}

.rfn-navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.rfn-logo-nav {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    display: block;
}

.rfn-navbar .navbar-toggler {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.35rem 0.6rem;
}

.rfn-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* menu mobile: aparece em fundo azul */
.rfn-navbar .navbar-collapse {
    background-color: var(--rfn-primary);
}

@media (max-width: 991.98px) {
    .rfn-navbar .navbar-collapse {
        padding: 0.75rem 1rem 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    .rfn-navbar .nav-item + .nav-item {
        border-top: 1px solid rgba(255,255,255,0.07);
    }
    .rfn-navbar .nav-link {
        padding: 0.65rem 0 !important;
    }
    .rfn-btn-outline-light {
        width: 100%;
        text-align: center;
        margin-top: 0.75rem;
    }
}

.rfn-navbar .nav-link {
    color: rgba(255,255,255,0.88) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.75rem !important;
    text-transform: uppercase;
    transition: var(--rfn-transition);
}

.rfn-navbar .nav-link:hover,
.rfn-navbar .nav-link.active {
    color: var(--rfn-gold) !important;
}

.rfn-btn-outline-light {
    /* Bootstrap vars */
    --bs-btn-color:               var(--rfn-white);
    --bs-btn-bg:                  transparent;
    --bs-btn-border-color:        rgba(255,255,255,0.5);
    --bs-btn-hover-color:         var(--rfn-primary);
    --bs-btn-hover-bg:            var(--rfn-gold);
    --bs-btn-hover-border-color:  var(--rfn-gold);
    --bs-btn-active-color:        var(--rfn-primary);
    --bs-btn-active-bg:           var(--rfn-gold-dark);
    --bs-btn-active-border-color: var(--rfn-gold-dark);
    /* layout */
    padding: 0.45rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--rfn-radius);
    transition: var(--rfn-transition);
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
}

/* ─── BOTÕES ──────────────────────────────────────────────────────────────────── */

/*
 * Bootstrap 5 controla hover via CSS custom properties (--bs-btn-*).
 * Definimos todas elas para cada variante — garante contraste em qualquer tela.
 */

.rfn-btn-gold {
    /* Bootstrap vars */
    --bs-btn-color:               var(--rfn-primary);
    --bs-btn-bg:                  var(--rfn-gold);
    --bs-btn-border-color:        var(--rfn-gold);
    --bs-btn-hover-color:         var(--rfn-primary);
    --bs-btn-hover-bg:            var(--rfn-gold-light);
    --bs-btn-hover-border-color:  var(--rfn-gold-light);
    --bs-btn-active-color:        var(--rfn-primary);
    --bs-btn-active-bg:           var(--rfn-gold-dark);
    --bs-btn-active-border-color: var(--rfn-gold-dark);
    --bs-btn-focus-shadow-rgb:    200, 168, 75;
    /* layout */
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--rfn-radius);
    transition: var(--rfn-transition);
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.rfn-btn-primary {
    /* Bootstrap vars */
    --bs-btn-color:               var(--rfn-white);
    --bs-btn-bg:                  var(--rfn-primary);
    --bs-btn-border-color:        var(--rfn-primary);
    --bs-btn-hover-color:         var(--rfn-white);
    --bs-btn-hover-bg:            var(--rfn-primary-dark);
    --bs-btn-hover-border-color:  var(--rfn-primary-dark);
    --bs-btn-active-color:        var(--rfn-white);
    --bs-btn-active-bg:           var(--rfn-primary-dark);
    --bs-btn-active-border-color: var(--rfn-primary-dark);
    --bs-btn-focus-shadow-rgb:    28, 62, 107;
    /* layout */
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--rfn-radius);
    transition: var(--rfn-transition);
    text-decoration: none;
    width: 100%;
    text-align: center;
}

.rfn-btn-whatsapp {
    /* Bootstrap vars */
    --bs-btn-color:               var(--rfn-white);
    --bs-btn-bg:                  #25D366;
    --bs-btn-border-color:        #25D366;
    --bs-btn-hover-color:         var(--rfn-white);
    --bs-btn-hover-bg:            #1da855;
    --bs-btn-hover-border-color:  #1da855;
    --bs-btn-active-color:        var(--rfn-white);
    --bs-btn-active-bg:           #179944;
    --bs-btn-active-border-color: #179944;
    /* layout */
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.8rem 2rem;
    border-radius: var(--rfn-radius);
    transition: var(--rfn-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Em telas maiores: largura automática e efeito de elevação */
@media (min-width: 576px) {
    .rfn-btn-gold,
    .rfn-btn-primary { width: auto; }

    .rfn-btn-gold:hover,
    .rfn-btn-gold:focus-visible {
        transform: translateY(-1px);
        box-shadow: 0 4px 16px rgba(245,184,0,0.35);
    }

    .rfn-btn-primary:hover,
    .rfn-btn-primary:focus-visible {
        transform: translateY(-1px);
        box-shadow: var(--rfn-shadow-md);
    }
}

/* ─── HERO ───────────────────────────────────────────────────────────────────── */
@keyframes rfn-gold-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,184,0,0.55); }
    60%       { box-shadow: 0 0 0 16px rgba(245,184,0,0); }
}
@keyframes rfn-primary-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(28,62,107,0.6); }
    60%       { box-shadow: 0 0 0 14px rgba(28,62,107,0); }
}
@keyframes rfn-outline-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.4); }
    60%       { box-shadow: 0 0 0 14px rgba(255,255,255,0); }
}

/* Keyframes gerados dinamicamente pelo PHP (rfn_slides_html em config.php).
   Ciclo = N×4s | stagger = 4s | fade = 1s | visível = 3s por slide.
   O @keyframes rfn-slide-kf-N é injetado inline pela função PHP. */

.rfn-hero {
    position: relative;
    background: #071524;
    overflow: hidden;
    margin-top: calc(-1 * var(--rfn-navbar-h));
    padding-top: var(--rfn-navbar-h);
}

/* Slideshow de fundo do hero */
.rfn-hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rfn-hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* animation e animation-delay definidos inline pelo PHP */
}

.rfn-btn-gold         { animation: rfn-gold-pulse    2.8s ease infinite; }
.rfn-btn-gold:hover   { animation: none; }

.rfn-btn-primary      { animation: rfn-primary-pulse 2.8s ease infinite; }
.rfn-btn-primary:hover,
.rfn-btn-primary:focus-visible { animation: none; }

.rfn-btn-outline-light         { animation: rfn-outline-pulse 2.8s ease infinite; }
.rfn-btn-outline-light:hover,
.rfn-btn-outline-light:focus-visible { animation: none; }

/* Em mobile: conteúdo começa no topo, sem centralização vertical */
@media (min-width: 768px) {
    .rfn-hero {
        min-height: 100svh;
        display: flex;
        align-items: center;
    }
}

.rfn-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(245,184,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245,184,0,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 2;
}

.rfn-hero::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 0; right: 0;
    height: 60px;
    background: var(--rfn-off-white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
    z-index: 1;
}

.rfn-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(7,21,36,0.82) 0%,
        rgba(7,21,36,0.55) 55%,
        rgba(7,21,36,0.25) 100%
    );
    z-index: 1;
    pointer-events: none;
}

.rfn-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    /* apenas padding vertical — Bootstrap .container já cuida do horizontal */
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

@media (min-width: 768px) {
    .rfn-hero-content {
        padding-top: 5rem;
        padding-bottom: 6rem;
    }
}

/* Em mobile, a row não precisa de altura mínima — evita espaço vazio */
@media (max-width: 767.98px) {
    .rfn-hero-content .min-vh-100 { min-height: 0 !important; }
}

.rfn-hero-badge {
    display: inline-block;
    background: rgba(245,184,0,0.12);
    border: 1px solid rgba(245,184,0,0.35);
    color: var(--rfn-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.875rem;
    border-radius: 2px;
    margin-bottom: 1.25rem;
}

.rfn-hero-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--rfn-white);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.125rem;
}

.rfn-hero-title-accent { color: var(--rfn-gold); }

.rfn-hero-subtitle {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    margin-bottom: 2rem;
    line-height: 1.75;
    max-width: 520px;
}

.rfn-hero-actions {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    margin-bottom: 2.5rem;
}


.rfn-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.rfn-stat { display: flex; flex-direction: column; gap: 0.15rem; }

.rfn-stat-number {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--rfn-gold);
    letter-spacing: -0.01em;
}

.rfn-stat-label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.58);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

@media (min-width: 480px) {
    .rfn-hero-title { font-size: 2.375rem; }
    .rfn-hero-actions {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
    .rfn-hero-stats { grid-template-columns: repeat(4, auto); }
}

@media (min-width: 768px) {
    .rfn-hero-title { font-size: 2.875rem; }
    .rfn-hero-content { padding: 5rem 0 6rem; }
}

@media (min-width: 992px) {
    .rfn-hero-title { font-size: 3.25rem; }
}

/* ─── SEÇÕES ──────────────────────────────────────────────────────────────────── */
.rfn-section { padding: 3.5rem 0; }

.rfn-section-light  { background-color: var(--rfn-off-white); }
.rfn-section-dark   { background-color: var(--rfn-primary); }
.rfn-section-primary {
    background: linear-gradient(135deg, var(--rfn-primary) 0%, var(--rfn-primary-dark) 100%);
}

@media (min-width: 768px) { .rfn-section { padding: 5rem 0; } }
@media (min-width: 992px) { .rfn-section { padding: 6rem 0; } }

.rfn-section-label {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rfn-gold);
    border-left: 3px solid var(--rfn-gold);
    padding-left: 0.625rem;
    margin-bottom: 0.875rem;
    line-height: 1;
}

.rfn-label-light { color: rgba(245,184,0,0.9); border-left-color: rgba(245,184,0,0.9); }

.rfn-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--rfn-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.rfn-title-light { color: var(--rfn-white); }
.rfn-text-primary { color: var(--rfn-primary); }

.rfn-section-text {
    font-size: 0.9375rem;
    color: var(--rfn-text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.rfn-section-subtitle {
    font-size: 1rem;
    color: var(--rfn-text-muted);
    line-height: 1.75;
    max-width: 600px;
    margin: 0 auto;
}

.rfn-subtitle-light { color: rgba(255,255,255,0.72); }

@media (min-width: 768px) {
    .rfn-section-title { font-size: 2.125rem; }
}
@media (min-width: 992px) {
    .rfn-section-title { font-size: 2.5rem; }
}

/* ─── CARDS DE VALORES (Sobre) ───────────────────────────────────────────────── */
.rfn-card-value {
    background: var(--rfn-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius-lg);
    padding: 1.375rem;
    height: 100%;
    transition: var(--rfn-transition);
    box-shadow: var(--rfn-shadow-sm);
}

@media (min-width: 992px) {
    .rfn-card-value:hover {
        box-shadow: var(--rfn-shadow-md);
        transform: translateY(-3px);
        border-color: var(--rfn-primary-light);
    }
}

.rfn-card-value-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--rfn-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.875rem;
    flex-shrink: 0;
}

.rfn-icon-blue { background: rgba(28,62,107,0.08); color: var(--rfn-primary); }
.rfn-icon-gold { background: rgba(245,184,0,0.1); color: var(--rfn-gold-dark); }

.rfn-card-value-title {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--rfn-text);
    margin-bottom: 0.375rem;
}

.rfn-card-value-text {
    font-size: 0.875rem;
    color: var(--rfn-text-muted);
    line-height: 1.65;
    margin: 0;
}

/* ─── ECOSSISTEMA ────────────────────────────────────────────────────────────── */
.rfn-eco-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--rfn-radius-lg);
    padding: 1.625rem 1.5rem;
    height: 100%;
    transition: var(--rfn-transition);
}

@media (min-width: 992px) {
    .rfn-eco-card:hover {
        background: rgba(255,255,255,0.09);
        border-color: rgba(245,184,0,0.4);
        transform: translateY(-4px);
        box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    }
    .rfn-eco-card:hover .rfn-eco-icon:not(.rfn-eco-icon-gold) {
        background: var(--rfn-gold);
        color: var(--rfn-primary);
    }
}

.rfn-eco-card-featured {
    border-color: rgba(245,184,0,0.35);
    background: rgba(245,184,0,0.04);
}

.rfn-eco-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.07);
    border-radius: var(--rfn-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1.25rem;
    transition: var(--rfn-transition);
    flex-shrink: 0;
    overflow: hidden;
}

.rfn-eco-icon svg {
    width: 56px;
    height: 56px;
    display: block;
}

.rfn-eco-icon-gold { background: rgba(245,184,0,0.12); color: var(--rfn-gold); }

.rfn-eco-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--rfn-white);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

.rfn-eco-text {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.75;
    margin-bottom: 1rem;
}

.rfn-eco-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 0.2rem 0.65rem;
    border-radius: 2px;
}

.rfn-eco-tag-gold { color: var(--rfn-gold); border-color: rgba(245,184,0,0.35); }

/* ─── PRODIGIOZ CARD ──────────────────────────────────────────────────────────── */

.rfn-eco-card-prodigioz {
    position: relative;
    border-color: rgba(0, 230, 100, 0.3);
    background: linear-gradient(135deg, rgba(0,18,10,0.9) 0%, rgba(0,40,20,0.6) 100%);
    padding: 2rem 2rem 1.75rem;
    overflow: visible;
}

.rfn-prodigioz-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #00c853, #00e676);
    color: #001a0d;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 1.2rem;
    border-radius: 2px;
    white-space: nowrap;
}

.rfn-prodigioz-inner {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
}

.rfn-prodigioz-left {
    flex: 1 1 auto;
    min-width: 0;
}

.rfn-prodigioz-right {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-self: stretch;
}

.rfn-prodigioz-logo-wrap {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.3rem;
}

.rfn-prodigioz-logo-text {
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #fff;
    text-transform: uppercase;
}

.rfn-prodigioz-z {
    color: #00e676;
    font-style: italic;
}

.rfn-prodigioz-by {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rfn-prodigioz-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #00e676;
    margin-bottom: 0.85rem;
}

.rfn-eco-tag-new {
    color: #00e676;
    border-color: rgba(0, 230, 100, 0.35);
}

.rfn-prodigioz-pilares {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.rfn-pz-pilar {
    flex: 1;
    background: rgba(0, 230, 100, 0.06);
    border: 1px solid rgba(0, 230, 100, 0.18);
    border-radius: var(--rfn-radius);
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
}

.rfn-pz-pilar-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.rfn-pz-icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
    width: 2rem;
    text-align: center;
}

.rfn-pz-pilar strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.rfn-pz-pilar small {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* Jornada de ciclos */
.rfn-pz-jornada {
    background: rgba(0, 230, 100, 0.04);
    border: 1px solid rgba(0, 230, 100, 0.15);
    border-radius: var(--rfn-radius);
    padding: 1rem 1rem 0.85rem;
}

.rfn-pz-jornada-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.65rem;
}

.rfn-pz-ciclos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
}

.rfn-pz-ciclo {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3rem 0.5rem;
    border-radius: 2px;
    text-align: center;
}

/* Gradiente vermelho → laranja → verde conforme a jornada */
.rfn-pz-c1 { background: rgba(220, 50, 50, 0.18);  color: #ff6b6b; border: 1px solid rgba(220,50,50,0.3); }
.rfn-pz-c2 { background: rgba(230, 100, 20, 0.18); color: #ff9f43; border: 1px solid rgba(230,100,20,0.3); }
.rfn-pz-c3 { background: rgba(230, 150, 20, 0.18); color: #ffd32a; border: 1px solid rgba(230,150,20,0.3); }
.rfn-pz-c4 { background: rgba(100, 200, 50, 0.18); color: #a3d977; border: 1px solid rgba(100,200,50,0.3); }
.rfn-pz-c5 { background: rgba(0, 200, 100, 0.18);  color: #2ecc71; border: 1px solid rgba(0,200,100,0.3); }
.rfn-pz-c6 { background: rgba(0, 230, 100, 0.22);  color: #00e676; border: 1px solid rgba(0,230,100,0.4); }

@media (max-width: 991px) {
    .rfn-prodigioz-inner {
        flex-direction: column;
        gap: 1.5rem;
    }
    .rfn-prodigioz-right {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .rfn-pz-ciclos {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }
    .rfn-pz-ciclo {
        font-size: 0.62rem;
        padding: 0.25rem 0.4rem;
    }
}

/* ─── FORMAS DE GANHO ─────────────────────────────────────────────────────────── */

/* Contém o overflow das tabs dentro da seção */
#ganhos { overflow: hidden; }

/* Tabs — scroll horizontal em mobile */
.rfn-ganhos-tabs-wrap {
    position: relative;        /* containing block para as setas absolutas */
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    touch-action: pan-x;       /* impede captura do scroll vertical no touch */
    border-bottom: 2px solid var(--rfn-border);
    margin-bottom: 2.5rem;
    scrollbar-width: none;
    max-width: 100%;
    width: 100%;
}
.rfn-ganhos-tabs-wrap::-webkit-scrollbar { display: none; }

.rfn-ganhos-tabs {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    padding: 0;
    margin: 0;
    /* largura automática para caber os botões sem quebrar linha */
    width: max-content;
    min-width: 100%;
    border-bottom: none;
}

.rfn-tab-btn {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 0.75rem 1.125rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--rfn-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: var(--rfn-transition);
    white-space: nowrap;
    margin-bottom: -2px;
}

.rfn-tab-btn:hover   { color: var(--rfn-primary); }
.rfn-tab-btn.active  { color: var(--rfn-primary); border-bottom-color: var(--rfn-gold); }

.rfn-ganho-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--rfn-text);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.rfn-check-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.rfn-check-list li {
    padding: 0.45rem 0 0.45rem 1.625rem;
    position: relative;
    font-size: 0.875rem;
    color: var(--rfn-text-muted);
    border-bottom: 1px solid var(--rfn-light-gray);
}

.rfn-check-list li:last-child { border-bottom: none; }

.rfn-check-list li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: var(--rfn-gold);
    font-size: 0.6rem;
    top: 0.6rem;
}

.rfn-ganho-box {
    background: var(--rfn-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--rfn-shadow-sm);
    margin-top: 1.5rem;
}

@media (min-width: 992px) {
    .rfn-ganho-box { margin-top: 0; }
}

.rfn-ganho-box-header {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rfn-primary);
    border-bottom: 2px solid var(--rfn-gold);
    padding-bottom: 0.625rem;
    margin-bottom: 1.25rem;
}

.rfn-ganho-box-note {
    font-style: italic;
    font-size: 0.825rem;
    color: var(--rfn-text-muted);
    text-align: center;
    margin: 0.875rem 0 0;
    border-top: 1px solid var(--rfn-light-gray);
    padding-top: 0.875rem;
}

/* Timeline */
.rfn-ganho-timeline { display: flex; flex-direction: column; gap: 0.875rem; }

.rfn-timeline-item { display: flex; align-items: center; gap: 0.75rem; }

.rfn-timeline-day {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--rfn-primary);
    min-width: 46px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rfn-timeline-bar {
    height: 7px;
    background: linear-gradient(90deg, var(--rfn-primary), var(--rfn-gold));
    border-radius: 4px;
    flex: 1;
}

.rfn-timeline-val {
    font-size: 0.775rem;
    font-weight: 600;
    color: var(--rfn-text-muted);
    min-width: 58px;
    text-align: right;
}

/* Cash Day Steps */
.rfn-cashday-steps { display: flex; flex-direction: column; gap: 0.75rem; }

.rfn-cashday-step  { display: flex; align-items: flex-start; gap: 0.875rem; }

.rfn-step-num {
    min-width: 26px;
    height: 26px;
    background: var(--rfn-primary);
    color: var(--rfn-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rfn-step-text {
    font-size: 0.875rem;
    color: var(--rfn-text-muted);
    padding-top: 0.2rem;
    line-height: 1.6;
}

/* Fases Grid */
.rfn-fases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.rfn-fase-item {
    background: var(--rfn-off-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius);
    padding: 0.5rem 0.25rem;
    text-align: center;
}

.rfn-fase-destaque { background: var(--rfn-primary); border-color: var(--rfn-gold); }
.rfn-fase-destaque .rfn-fase-num,
.rfn-fase-destaque .rfn-fase-val { color: var(--rfn-white); }

.rfn-fase-num {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--rfn-primary);
    text-transform: uppercase;
}

.rfn-fase-val {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--rfn-text);
    margin-top: 0.1rem;
}

/* Plano de Carreira */
.rfn-carreira-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 340px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.rfn-carreira-list::-webkit-scrollbar { width: 4px; }
.rfn-carreira-list::-webkit-scrollbar-track { background: var(--rfn-light-gray); }
.rfn-carreira-list::-webkit-scrollbar-thumb { background: var(--rfn-primary); border-radius: 2px; }

.rfn-carreira-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    background: var(--rfn-off-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius);
    transition: var(--rfn-transition);
}

@media (min-width: 992px) {
    .rfn-carreira-item:hover { border-color: var(--rfn-primary); background: var(--rfn-white); }
}

.rfn-carreira-badge {
    min-width: 22px;
    height: 22px;
    background: var(--rfn-primary);
    color: var(--rfn-white);
    border-radius: 50%;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rfn-carreira-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.rfn-carreira-nome {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--rfn-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rfn-carreira-entrada {
    font-size: 0.7rem;
    color: var(--rfn-text-muted);
}

.rfn-carreira-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rfn-primary);
    min-width: 72px;
    text-align: right;
    flex-shrink: 0;
}

/* ─── COMO INICIAR ────────────────────────────────────────────────────────────── */
.rfn-step-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: var(--rfn-radius-lg);
    padding: 1.875rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: var(--rfn-transition);
}

@media (min-width: 992px) {
    .rfn-step-card:hover {
        background: rgba(255,255,255,0.11);
        border-color: rgba(245,184,0,0.4);
        transform: translateY(-4px);
    }
}

.rfn-step-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: rgba(245,184,0,0.2);
    line-height: 1;
    margin-bottom: 0.875rem;
    letter-spacing: -0.03em;
}

.rfn-step-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--rfn-white);
    margin-bottom: 0.625rem;
    letter-spacing: -0.01em;
}

/* escopo: apenas dentro do card do "Como Iniciar" (fundo escuro) */
.rfn-step-card .rfn-step-text {
    color: rgba(255,255,255,0.68);
    margin: 0;
}

/* ─── DEPOIMENTOS ─────────────────────────────────────────────────────────────── */
.rfn-testimonial {
    background: var(--rfn-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius-lg);
    padding: 1.625rem;
    height: 100%;
    box-shadow: var(--rfn-shadow-sm);
    transition: var(--rfn-transition);
    position: relative;
}

@media (min-width: 992px) {
    .rfn-testimonial:hover {
        box-shadow: var(--rfn-shadow-md);
        transform: translateY(-3px);
        border-color: var(--rfn-primary-light);
    }
}

.rfn-testimonial::before {
    content: '\201C';
    position: absolute;
    top: 0.75rem;
    right: 1.25rem;
    font-size: 4.5rem;
    color: rgba(28,62,107,0.05);
    line-height: 1;
    pointer-events: none;
}

.rfn-testimonial-stars {
    color: var(--rfn-gold);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.875rem;
}

.rfn-testimonial-text {
    font-size: 0.9rem;
    color: var(--rfn-text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-style: italic;
    border: 0;
    padding: 0;
}

.rfn-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-top: 1px solid var(--rfn-light-gray);
    padding-top: 1rem;
}

.rfn-testimonial-avatar {
    width: 40px;
    height: 40px;
    background: var(--rfn-primary);
    color: var(--rfn-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.rfn-testimonial-name {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--rfn-text);
}

.rfn-testimonial-role {
    font-size: 0.75rem;
    color: var(--rfn-text-muted);
    margin-top: 0.05rem;
}

/* ─── FUNDADOR ────────────────────────────────────────────────────────────────── */
.rfn-founder-photo-wrap {
    position: relative;
    display: inline-block;
}

.rfn-founder-photo-wrap::before {
    content: '';
    position: absolute;
    inset: -10px -10px 10px 10px;
    border: 2px solid var(--rfn-gold);
    border-radius: 6px;
    opacity: 0.35;
    pointer-events: none;
}

.rfn-founder-photo {
    width: 100%;
    max-width: 420px;
    height: auto;
    display: block;
    border-radius: 6px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}

/* ── Cabeçalho do Fundador ─────────────────────────────────────────── */
.rfn-founder-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.25rem;
}

.rfn-founder-badge {
    background: var(--rfn-gold);
    color: var(--rfn-primary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.3rem 0.75rem;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    align-self: center;
}

.rfn-founder-location {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
}

.rfn-founder-quote {
    font-size: 1.0625rem;
    font-style: italic;
    font-weight: 400;
    color: rgba(255,255,255,0.88);
    border-left: 3px solid var(--rfn-gold);
    padding-left: 1.375rem;
    margin-bottom: 1.375rem;
    line-height: 1.75;
}

.rfn-founder-text {
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    margin-bottom: 0.875rem;
}

.rfn-founder-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.rfn-pillar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.82);
}

.rfn-pillar-icon { color: var(--rfn-gold); font-size: 0.55rem; flex-shrink: 0; }

/* ─── CONTATO ─────────────────────────────────────────────────────────────────── */
.rfn-form-label {
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--rfn-text);
    margin-bottom: 0.375rem;
    display: block;
}

.rfn-form-input {
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius);
    padding: 0.7rem 1rem;
    font-family: var(--rfn-font);
    font-size: 0.9375rem;
    color: var(--rfn-text);
    background: var(--rfn-white);
    transition: var(--rfn-transition);
    width: 100%;
    -webkit-appearance: none;
}

.rfn-form-input:focus {
    border-color: var(--rfn-primary);
    box-shadow: 0 0 0 3px rgba(28,62,107,0.1);
    outline: none;
}

.rfn-contact-info {
    background: var(--rfn-white);
    border: 1px solid var(--rfn-border);
    border-radius: var(--rfn-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--rfn-shadow-sm);
}

.rfn-contact-info-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rfn-text);
    letter-spacing: -0.01em;
    padding-bottom: 0.875rem;
    border-bottom: 2px solid var(--rfn-gold);
    margin-bottom: 1.375rem;
}

.rfn-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1.125rem;
}

.rfn-contact-item-icon {
    width: 34px;
    height: 34px;
    background: rgba(28,62,107,0.07);
    color: var(--rfn-primary);
    border-radius: var(--rfn-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.rfn-contact-item-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--rfn-text-muted);
    margin-bottom: 0.15rem;
}

.rfn-contact-item-value {
    font-size: 0.875rem;
    color: var(--rfn-text);
    text-decoration: none;
    line-height: 1.55;
}

.rfn-contact-item-value:hover { color: var(--rfn-primary); text-decoration: underline; }

/* ─── SCROLL REVEAL ──────────────────────────────────────────────────────────── */
.rfn-reveal {
    opacity: 0;
    transform: translateY(52px);
    transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}
.rfn-reveal.rfn-visible {
    opacity: 1;
    transform: none;
}

/* ─── SEÇÕES DE EVENTO (full-width slideshow) ────────────────────────────────── */
.rfn-evento-section {
    position: relative;
    overflow: hidden;
    height: 75vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    background-color: #0d0f14; /* fallback escuro — nunca mostra branco */
}

.rfn-ev-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.rfn-ev-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* animation e animation-delay definidos inline pelo PHP */
}

.rfn-ev-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(7,21,36,0.90) 0%,
        rgba(7,21,36,0.40) 45%,
        rgba(7,21,36,0.10) 100%
    );
}

.rfn-ev-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 1.5rem 3.5rem;
}

@media (min-width: 768px) {
    .rfn-ev-content { padding: 4rem 5vw 4.5rem; }
}

.rfn-ev-tag {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rfn-gold);
    border: 1px solid rgba(245,184,0,0.5);
    padding: 0.25rem 0.75rem;
    border-radius: 2px;
    margin-bottom: 0.75rem;
    background: rgba(245,184,0,0.08);
}

.rfn-ev-title {
    font-size: clamp(1.75rem, 5vw, 3.25rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
    max-width: 700px;
}

.rfn-ev-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.72);
    max-width: 520px;
    margin: 0;
    line-height: 1.6;
}

/* ─── POLAROIDS — MOMENTOS QUE MARCARAM NOSSA HISTÓRIA ──────────────────────── */
.rfn-momentos {
    position: relative;
    background: linear-gradient(135deg, #eeeaff 0%, #fff8ec 100%);
    overflow: hidden;
    padding: 5rem 0 5.5rem;
}

.rfn-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}

.rfn-blob-coral {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(245,184,0,0.55), rgba(255,120,50,0.4));
    top: -120px; left: -120px;
}

.rfn-blob-purple {
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(160,132,250,0.55), rgba(196,181,253,0.4));
    bottom: -100px; right: -100px;
}

.rfn-momentos-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rfn-gold-dark);
    border-bottom: 2px solid var(--rfn-gold);
    padding-bottom: 0.3rem;
    margin-bottom: 0.75rem;
}

.rfn-momentos-title {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    color: var(--rfn-primary);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.rfn-momentos-sub {
    color: var(--rfn-mid-gray);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.rfn-polaroid-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 991.98px) {
    .rfn-polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 480px) {
    .rfn-polaroid-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

.rfn-polaroid {
    background: #fff;
    padding: 8px 8px 44px;
    box-shadow: 0 6px 28px rgba(0,0,0,0.18), 0 2px 6px rgba(0,0,0,0.1);
    transform: rotate(var(--rot, -2deg));
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.rfn-polaroid:nth-child(2) { --rot: 1.8deg; }
.rfn-polaroid:nth-child(3) { --rot: -1.2deg; }
.rfn-polaroid:nth-child(4) { --rot: 2.5deg; }

.rfn-polaroid:hover {
    transform: rotate(0deg) scale(1.05) translateY(-4px);
    box-shadow: 0 18px 50px rgba(0,0,0,0.25);
    z-index: 2;
}

.rfn-polaroid-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

.rfn-polaroid-caption {
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    color: #444;
    margin-top: 10px;
    letter-spacing: 0.01em;
}

/* ─── FOOTER ──────────────────────────────────────────────────────────────────── */
.rfn-footer {
    background: var(--rfn-primary-dark);
    border-top: 3px solid var(--rfn-gold);
    padding: 3rem 0 1.75rem;
}

@media (min-width: 768px) { .rfn-footer { padding: 4rem 0 2rem; } }

.rfn-logo-footer {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.rfn-footer-desc {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.75;
    margin: 0;
}

.rfn-footer-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rfn-gold);
    padding-bottom: 0.625rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 0.875rem;
}

.rfn-footer-links { list-style: none; padding: 0; margin: 0; }

.rfn-footer-links li { border-bottom: 1px solid rgba(255,255,255,0.04); }
.rfn-footer-links li:last-child { border-bottom: none; }

.rfn-footer-links a {
    display: block;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    padding: 0.4rem 0;
    transition: var(--rfn-transition);
}

.rfn-footer-links a:hover { color: var(--rfn-gold); padding-left: 0.35rem; }

.rfn-footer-contact { list-style: none; padding: 0; margin: 0; }

.rfn-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
    line-height: 1.55;
}

.rfn-footer-contact a { color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--rfn-transition); }
.rfn-footer-contact a:hover { color: var(--rfn-gold); }

.rfn-contact-icon { color: var(--rfn-gold); flex-shrink: 0; margin-top: 0.05rem; }

.rfn-social { display: flex; gap: 0.625rem; flex-wrap: wrap; }

.rfn-social-link {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.65);
    border-radius: var(--rfn-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--rfn-transition);
    border: 1px solid rgba(255,255,255,0.1);
}

.rfn-social-link:hover { background: var(--rfn-gold); color: var(--rfn-primary); border-color: var(--rfn-gold); }

.rfn-footer-divider { border-color: rgba(255,255,255,0.08); margin: 2rem 0 1.5rem; }

.rfn-footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

/* ─── WHATSAPP FLUTUANTE ──────────────────────────────────────────────────────── */
.rfn-whatsapp-float {
    position: fixed;
    bottom: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    width: 52px;
    height: 52px;
    background: #25D366;
    color: var(--rfn-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4);
    transition: var(--rfn-transition);
    text-decoration: none;
}

.rfn-whatsapp-float:hover {
    background: #1da855;
    color: var(--rfn-white);
    transform: scale(1.08);
}

@media (min-width: 768px) {
    .rfn-whatsapp-float { bottom: 2rem; right: 2rem; width: 56px; height: 56px; }
}

/* ─── ANIMAÇÃO ENTRADA (legado — unificado via rfn-reveal) ───────────────────── */
.rfn-animate { /* compatibilidade — usa o mesmo sistema rfn-reveal */ }

/* =============================================================================
   SEÇÃO LIVRO — PODER MULTIPLICADOR
   ============================================================================= */
.rfn-livro-section {
    position: relative;
    overflow: hidden;
    padding: 110px 0 100px;
    background: #07060a;
    background-image:
        radial-gradient(ellipse 80% 80% at 10% 50%, rgba(168, 110, 18, 0.22) 0%, transparent 65%),
        radial-gradient(ellipse 60% 100% at 90% 50%, rgba(28, 62, 107, 0.28) 0%, transparent 65%);
}

/* partículas de brilho decorativas */
.rfn-livro-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 1px at 20% 30%, rgba(200,168,75,0.35) 0%, transparent 100%),
        radial-gradient(circle 1px at 75% 20%, rgba(200,168,75,0.25) 0%, transparent 100%),
        radial-gradient(circle 2px at 55% 70%, rgba(200,168,75,0.2) 0%, transparent 100%),
        radial-gradient(circle 1px at 10% 80%, rgba(200,168,75,0.3) 0%, transparent 100%),
        radial-gradient(circle 1px at 90% 65%, rgba(200,168,75,0.2) 0%, transparent 100%);
    pointer-events: none;
}

/* linha dourada sutil no topo */
.rfn-livro-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--rfn-gold) 40%, var(--rfn-gold) 60%, transparent 100%);
    opacity: 0.5;
}

/* — coluna do livro — */
.rfn-livro-book-col {
    padding-bottom: 3rem;
}

.rfn-livro-book {
    display: inline-block;
    perspective: 900px;
    cursor: default;
}

.rfn-livro-img {
    display: block;
    max-width: 420px;
    width: 100%;
    border-radius: 6px;
    transform: rotateY(-18deg) rotateX(4deg) scale(1);
    box-shadow:
        10px 14px 30px rgba(0,0,0,0.7),
        25px 30px 70px rgba(0,0,0,0.55),
        -4px -4px 24px rgba(200,168,75,0.12),
        inset 0 0 0 1px rgba(255,255,255,0.06);
    transition: transform 0.55s cubic-bezier(0.22,1,0.36,1),
                box-shadow 0.55s cubic-bezier(0.22,1,0.36,1);
}

.rfn-livro-book:hover .rfn-livro-img {
    transform: rotateY(-6deg) rotateX(2deg) scale(1.04);
    box-shadow:
        14px 20px 40px rgba(0,0,0,0.75),
        35px 40px 90px rgba(0,0,0,0.5),
        -6px -6px 32px rgba(200,168,75,0.22);
}

/* faixa badge dourada abaixo do livro */
.rfn-livro-badge {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.35rem 1.1rem;
    border: 1px solid rgba(200,168,75,0.45);
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--rfn-gold);
    opacity: 0.8;
}

/* — coluna de texto — */
.rfn-livro-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--rfn-gold);
    margin-bottom: 1.1rem;
    font-family: 'Courier New', monospace;
}

.rfn-livro-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 1.5rem;
}

.rfn-livro-title em {
    font-style: italic;
    color: var(--rfn-gold);
}

.rfn-livro-quote {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255,255,255,0.72);
    border-left: 2px solid var(--rfn-gold);
    padding-left: 1.25rem;
    margin-bottom: 1.75rem;
}

.rfn-livro-divider {
    width: 48px;
    height: 1px;
    background: linear-gradient(90deg, var(--rfn-gold), transparent);
    margin-bottom: 1.5rem;
}

.rfn-livro-body {
    font-size: 1rem;
    line-height: 1.9;
    color: rgba(255,255,255,0.58);
    margin-bottom: 0.5rem;
}

.rfn-livro-body strong {
    color: rgba(255,255,255,0.88);
    font-weight: 600;
}

.rfn-livro-autor {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.28);
    margin-bottom: 2.25rem;
}

.rfn-btn-livro {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.9rem;
    border: 1px solid rgba(200,168,75,0.6);
    color: var(--rfn-gold);
    text-decoration: none;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    background: transparent;
}

.rfn-btn-livro::after {
    content: '→';
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.rfn-btn-livro:hover {
    background: var(--rfn-gold);
    color: #07060a;
    border-color: var(--rfn-gold);
}

.rfn-btn-livro:hover::after {
    transform: translateX(4px);
}

/* livro-subtitle — subtítulo do livro */
.rfn-livro-subtitle {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(200,168,75,0.55);
    margin-bottom: 0.5rem;
    font-family: Georgia, serif;
}

@media (min-width: 992px) {
    .rfn-livro-book-col {
        padding-bottom: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .rfn-livro-section { padding: 80px 0; }
    .rfn-livro-title { font-size: 2.2rem; }
    .rfn-livro-img { max-width: 220px; transform: rotateY(-10deg) rotateX(2deg); }
}

/* =============================================================================
   CARDS DE DEPOIMENTO EM VÍDEO
   ============================================================================= */
.rfn-text-gold { color: var(--rfn-gold); }

.rfn-vid-card {
    background: #111318;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rfn-vid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
}

.rfn-vid-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
    overflow: hidden;
}

.rfn-vid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* botão play */
.rfn-vid-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    border: none;
    cursor: pointer;
    transition: background 0.25s ease, opacity 0.3s ease;
    padding: 0;
}

.rfn-vid-play:hover {
    background: rgba(0,0,0,0.2);
}

.rfn-vid-play span,
.rfn-vid-play svg {
    width: 64px;
    height: 64px;
    background: var(--rfn-gold);
    color: #07060a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: transform 0.25s ease, background 0.25s ease;
}

.rfn-vid-play:hover svg {
    transform: scale(1.1);
    background: #e0bc5a;
}

.rfn-vid-play.rfn-vid-hidden {
    opacity: 0;
    pointer-events: none;
}

/* info abaixo do vídeo */
.rfn-vid-info {
    padding: 1.1rem 1.25rem 1.25rem;
}

.rfn-vid-stars {
    color: var(--rfn-gold);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.rfn-vid-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.25rem;
}

.rfn-vid-location {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
}

/* =============================================================================
   LIGHTBOX DE VÍDEO
   ============================================================================= */
.rfn-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rfn-lightbox[hidden] { display: none; }

.rfn-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
    cursor: pointer;
    animation: rfn-lb-fade-in 0.25s ease;
}

.rfn-lightbox-box {
    position: relative;
    width: min(880px, 94vw);
    animation: rfn-lb-scale-in 0.28s cubic-bezier(0.22,1,0.36,1);
}

.rfn-lightbox-video {
    width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    background: #000;
}

.rfn-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    transition: color 0.2s ease;
}

.rfn-lightbox-close:hover { color: #fff; }

@keyframes rfn-lb-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes rfn-lb-scale-in {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

.rfn-vid-quote {
    font-size: 0.82rem;
    font-style: italic;
    color: rgba(255,255,255,0.55);
    line-height: 1.55;
    margin-top: 0.6rem;
    margin-bottom: 0;
    border-left: 2px solid var(--rfn-gold);
    padding-left: 0.75rem;
}

/* =============================================================================
   MULTI PRÊMIOS — badges de origem
   ============================================================================= */
.rfn-multipr-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rfn-badge-entry,
.rfn-badge-book {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.rfn-badge-entry {
    background: rgba(28, 62, 107, 0.1);
    border: 1px solid var(--rfn-primary);
    color: var(--rfn-primary);
}

.rfn-badge-book {
    background: rgba(200, 168, 75, 0.1);
    border: 1px solid var(--rfn-gold);
    color: #8a6e1a;
}

.rfn-badge-book em {
    font-style: italic;
}

.rfn-badge-book-thumb {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
}

.rfn-ganho-origin {
    font-size: 0.95rem;
    line-height: 1.75;
    color: #444;
    background: linear-gradient(135deg, rgba(200,168,75,0.06), rgba(28,62,107,0.04));
    border-left: 3px solid var(--rfn-gold);
    padding: 0.85rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1rem;
}

.rfn-ganho-origin strong {
    color: var(--rfn-primary);
}
