/**
 * Rendaforte — layout.css
 * Header C (centered, no sticky) + Footer C (2 col + mission line)
 * Hero Card + Filter Bar + Grid System
 */

/* ==========================================================================
   CONTAINER
   ========================================================================== */

.rf-container {
    width: 100%;
    max-width: var(--rf-maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rf-container-narrow {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.rf-container-wide {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER C — Centered Logo + Nav Below (not sticky, elegant/editorial)
   ========================================================================== */

.rf-header {
    background: var(--rf-surface);
    border-bottom: 1px solid var(--rf-border);
    box-shadow: 0 1px 8px rgba(11,79,108,.06);
    position: relative;
    z-index: 100;
}

.rf-header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0 0;
}

/* Logo centered */
.rf-header-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.rf-header-logo a {
    display: inline-block;
    text-decoration: none;
}

.rf-header-logo img {
    max-height: 56px;
    width: auto;
    margin: 0 auto;
}

.rf-site-name {
    font-family: var(--rf-font-head);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--rf-primary);
    letter-spacing: -.01em;
    line-height: 1.1;
    display: block;
}

.rf-site-tagline {
    font-size: .8rem;
    color: var(--rf-muted);
    letter-spacing: .06em;
    text-transform: uppercase;
    display: block;
    margin-top: .25rem;
}

/* Elegant divider between logo and nav */
.rf-header-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--rf-border), transparent);
    margin: .75rem 0 0;
}

/* Navigation below logo */
.rf-nav {
    width: 100%;
    background: var(--rf-bg);
    border-top: 1px solid var(--rf-border);
}

.rf-nav .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 0;
    flex-wrap: wrap;
}

.rf-nav .menu > li {
    position: relative;
}

.rf-nav .menu > li > a {
    display: block;
    padding: .85rem 1.1rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--rf-text);
    letter-spacing: .02em;
    transition: var(--rf-trans);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.rf-nav .menu > li > a:hover,
.rf-nav .menu > li.current-menu-item > a,
.rf-nav .menu > li.current-menu-ancestor > a {
    color: var(--rf-primary);
    border-bottom-color: var(--rf-accent);
}

/* Dropdown */
.rf-nav .menu li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: .7rem;
    color: var(--rf-muted);
}

.rf-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: 0 0 var(--rf-radius) var(--rf-radius);
    box-shadow: var(--rf-shadow-md);
    min-width: 200px;
    z-index: 200;
    list-style: none;
    padding: .5rem 0;
}

.rf-nav li.menu-item-has-children:hover .sub-menu,
.rf-nav li.menu-item-has-children:focus-within .sub-menu {
    display: block;
}

.rf-nav .sub-menu li a {
    display: block;
    padding: .6rem 1.25rem;
    font-size: .875rem;
    color: var(--rf-text);
    transition: var(--rf-trans);
}

.rf-nav .sub-menu li a:hover {
    background: var(--rf-bg);
    color: var(--rf-primary);
    padding-left: 1.5rem;
}

/* Burger button (hidden on desktop) */
.rf-burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
    color: var(--rf-text);
}

.rf-burger-icon {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 24px;
}

.rf-burger-icon span {
    display: block;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: var(--rf-trans);
}

/* ==========================================================================
   HERO CARD — panel/card style, not full-bleed
   ========================================================================== */

.rf-hero {
    padding: 3.5rem 0 3rem;
    background: var(--rf-bg);
}

.rf-hero-card {
    background: var(--rf-surface);
    border-radius: var(--rf-radius-xl);
    box-shadow: var(--rf-shadow-lg);
    padding: 3rem 3.5rem;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--rf-border);
    position: relative;
    overflow: hidden;
}

.rf-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--rf-primary), var(--rf-accent));
}

.rf-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--rf-accent-soft);
    color: var(--rf-accent);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .3rem .85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.rf-hero-title {
    font-family: var(--rf-font-head);
    font-size: clamp(1.85rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--rf-text);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.rf-hero-title em {
    font-style: italic;
    color: var(--rf-primary);
}

.rf-hero-tagline {
    font-size: 1.1rem;
    color: var(--rf-muted);
    max-width: 52ch;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.rf-hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.rf-hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rf-border);
    flex-wrap: wrap;
}

.rf-hero-stat {
    text-align: center;
}

.rf-hero-stat-number {
    display: block;
    font-family: var(--rf-font-head);
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--rf-primary);
    line-height: 1;
}

.rf-hero-stat-label {
    font-size: .8rem;
    color: var(--rf-muted);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-top: .25rem;
    display: block;
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

.rf-section {
    padding: 4rem 0;
}

.rf-section-alt {
    background: var(--rf-surface);
}

.rf-section-dark {
    background: var(--rf-primary);
    color: #fff;
}

.rf-section-dark h2,
.rf-section-dark h3,
.rf-section-dark p {
    color: inherit;
}

.rf-section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.rf-section-header .rf-section-title {
    margin-bottom: .5rem;
}

.rf-section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--rf-accent);
    margin-bottom: .4rem;
}

/* ==========================================================================
   FILTER BAR — Archive de plataformas
   ========================================================================== */

.rf-filter-bar {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius-lg);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--rf-shadow);
}

.rf-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.rf-filter-label {
    font-size: .8rem;
    font-weight: 700;
    color: var(--rf-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.rf-filter-select {
    appearance: none;
    background: var(--rf-bg);
    border: 1px solid var(--rf-border);
    border-radius: var(--rf-radius);
    padding: .55rem 2rem .55rem .85rem;
    font-family: var(--rf-font-body);
    font-size: .875rem;
    color: var(--rf-text);
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%234D7080' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .6rem center;
    background-size: 8px;
    transition: var(--rf-trans);
}

.rf-filter-select:hover,
.rf-filter-select:focus {
    border-color: var(--rf-primary);
    outline: none;
}

.rf-filter-reset {
    margin-left: auto;
    font-size: .825rem;
    color: var(--rf-muted);
    text-decoration: underline;
    cursor: pointer;
    border: none;
    background: none;
    transition: var(--rf-trans);
}

.rf-filter-reset:hover {
    color: var(--rf-danger);
}

.rf-filter-count {
    font-size: .825rem;
    color: var(--rf-muted);
    white-space: nowrap;
}

/* Sort chips */
.rf-sort-chips {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.rf-sort-chip {
    padding: .35rem .85rem;
    border-radius: 999px;
    font-size: .825rem;
    font-weight: 600;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-muted);
    cursor: pointer;
    transition: var(--rf-trans);
}

.rf-sort-chip.is-active,
.rf-sort-chip:hover {
    background: var(--rf-primary);
    color: #fff;
    border-color: var(--rf-primary);
}

/* ==========================================================================
   GRIDS
   ========================================================================== */

.rf-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.rf-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.rf-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.rf-grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Platform list (horizontal cards stacked) */
.rf-platform-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Trust bar */
.rf-trust-bar {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.rf-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: .75rem;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}

.rf-trust-icon {
    width: 56px;
    height: 56px;
    background: var(--rf-accent-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--rf-accent);
    flex-shrink: 0;
}

.rf-trust-title {
    font-weight: 700;
    font-size: .925rem;
    color: var(--rf-text);
}

.rf-trust-desc {
    font-size: .825rem;
    color: var(--rf-muted);
    line-height: 1.5;
}

/* How it works */
.rf-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    counter-reset: step;
}

.rf-step {
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.rf-step::before {
    counter-increment: step;
    content: counter(step);
    display: block;
    width: 48px;
    height: 48px;
    background: var(--rf-primary);
    color: #fff;
    font-family: var(--rf-font-head);
    font-size: 1.25rem;
    font-weight: 700;
    border-radius: 50%;
    margin: 0 auto 1rem;
    line-height: 48px;
}

.rf-step-title {
    font-family: var(--rf-font-head);
    font-size: 1.1rem;
    margin-bottom: .5rem;
}

/* ==========================================================================
   PAGE LAYOUT — Content + Sidebar
   ========================================================================== */

.rf-content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    align-items: start;
}

.rf-main-content {
    min-width: 0;
}

.rf-sidebar {
    position: sticky;
    top: 2rem;
}

/* Full width layout */
.rf-content-full {
    max-width: 780px;
    margin: 0 auto;
}

/* ==========================================================================
   FOOTER F3 — Editorial / Reviews-Led (3 colunas)
   ========================================================================== */

.rf-footer {
    background: var(--rf-primary);
    color: rgba(255,255,255,.85);
    margin-top: auto;
}

.rf-footer-main {
    padding: 3.5rem 0 2.5rem;
}

/* Grelha F3: editorial | opinioes | navegacao */
.rf-footer-f3-grid {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 1fr;
    gap: 2.5rem;
}

/* Bloco editorial */
.rf-footer-editorial-title {
    font-family: var(--rf-font-head);
    font-size: 1.05rem;
    color: #fff;
    margin: .75rem 0 .6rem;
    padding-bottom: .4rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.rf-footer-editorial-blurb {
    color: rgba(255,255,255,.7);
    font-size: .875rem;
    line-height: 1.65;
    max-width: 44ch;
}

/* Lista de opinioes recentes */
.rf-footer-reviews-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}

.rf-footer-review-item {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.rf-footer-review-item a {
    color: rgba(255,255,255,.8);
    font-size: .9rem;
    transition: var(--rf-trans);
}

.rf-footer-review-item a:hover {
    color: #fff;
}

.rf-footer-review-date {
    font-size: .75rem;
    color: rgba(255,255,255,.4);
}

/* Nota de aviso de risco compacta */
.rf-footer-disclaimer {
    background: rgba(0,0,0,.12);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: .9rem 0;
}

.rf-footer-disclaimer-text {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    margin: 0;
    line-height: 1.55;
}

.rf-footer-col h4 {
    font-family: var(--rf-font-head);
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255,255,255,.15);
}

.rf-footer-col p {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    line-height: 1.7;
    max-width: 40ch;
}

/* Footer logo */
.rf-footer-logo {
    margin-bottom: 1rem;
}

.rf-footer-logo .rf-site-name {
    color: #fff;
    font-size: 1.35rem;
}

.rf-footer-logo .rf-site-tagline {
    color: rgba(255,255,255,.5);
}

/* Footer nav */
.rf-footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.rf-footer-nav a {
    color: rgba(255,255,255,.7);
    font-size: .9rem;
    transition: var(--rf-trans);
}

.rf-footer-nav a:hover {
    color: #fff;
    padding-left: .25rem;
}

/* Mission line */
.rf-footer-mission {
    background: rgba(0,0,0,.15);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 1.25rem 0;
    text-align: center;
}

.rf-footer-mission-text {
    font-family: var(--rf-font-head);
    font-style: italic;
    font-size: 1rem;
    color: rgba(255,255,255,.8);
    margin: 0;
}

/* Footer bottom bar */
.rf-footer-bottom {
    background: rgba(0,0,0,.2);
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 1rem 0;
}

.rf-footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.rf-footer-copyright {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
    margin: 0;
}

.rf-footer-legal {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.rf-footer-legal a {
    font-size: .8rem;
    color: rgba(255,255,255,.5);
}

.rf-footer-legal a:hover {
    color: rgba(255,255,255,.85);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */

.rf-breadcrumb {
    padding: .85rem 0;
    border-bottom: 1px solid var(--rf-border);
    background: var(--rf-bg);
}

.rf-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: .825rem;
    color: var(--rf-muted);
}

.rf-breadcrumb li + li::before {
    content: '›';
    color: var(--rf-border);
    margin-right: .35rem;
}

.rf-breadcrumb a {
    color: var(--rf-muted);
}

.rf-breadcrumb a:hover {
    color: var(--rf-primary);
}

.rf-breadcrumb [aria-current="page"] {
    color: var(--rf-text);
    font-weight: 600;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.rf-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .35rem;
    margin-top: 3rem;
}

.rf-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--rf-radius);
    font-size: .875rem;
    font-weight: 600;
    border: 1px solid var(--rf-border);
    color: var(--rf-text);
    background: var(--rf-surface);
    transition: var(--rf-trans);
}

.rf-pagination .page-numbers:hover,
.rf-pagination .page-numbers.current {
    background: var(--rf-primary);
    color: #fff;
    border-color: var(--rf-primary);
}

.rf-pagination .dots {
    color: var(--rf-muted);
    width: auto;
    border: none;
    background: none;
}

/* ==========================================================================
   ARCHIVE PAGE HEADER
   ========================================================================== */

.rf-archive-header {
    background: linear-gradient(135deg, var(--rf-primary) 0%, var(--rf-secondary) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.rf-archive-title {
    font-family: var(--rf-font-head);
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: .5rem;
}

.rf-archive-desc {
    color: rgba(255,255,255,.8);
    max-width: 52ch;
    margin: 0 auto;
    font-size: 1.05rem;
}
