/* ============================================================
   GOIB — Grande Oriente Independente do Brasil
   Design System · Azul Marinho + Dourado
   ============================================================ */

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:       #0d2137;
    --navy-mid:   #132d4a;
    --navy-light: #1a3a5c;
    --navy-pale:  #1f4570;
    --gold:       #c9a84c;
    --gold-light: #e8c97a;
    --gold-dark:  #9a7a30;
    --gold-glow:  rgba(201,168,76,0.12);
    --white:      #f2f0ea;
    --muted:      rgba(242,240,234,0.65);
    --dim:        rgba(242,240,234,0.35);
    --radius:     2px;
    --shadow:     0 4px 24px rgba(0,0,0,0.3);
    --transition: 0.25s ease;
    --max-w:      1140px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--navy);
    color: var(--white);
    line-height: 1.7;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    line-height: 1.2;
    font-weight: 700;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* ===== TYPOGRAPHY UTILITIES ===== */
.eyebrow {
    display: block;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 1rem;
}

.section-lead {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 620px;
    margin-bottom: 2.5rem;
}

.gold-bar {
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
    margin-bottom: 2rem;
}

.gold-bar.center { margin-left: auto; margin-right: auto; }

/* ===== LAYOUT ===== */
.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

section { padding: 6rem 1.5rem; }

.text-center { text-align: center; }
.text-center .gold-bar { margin-left: auto; margin-right: auto; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-gold {
    background: var(--gold);
    color: var(--navy);
}
.btn-gold:hover {
    background: var(--gold-light);
    color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201,168,76,0.3);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
}
.btn-outline:hover {
    background: var(--gold-glow);
    color: var(--gold-light);
    transform: translateY(-2px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(13,33,55,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201,168,76,0.12);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.nav-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
}

.nav-brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.nav-brand-sub {
    font-size: 0.65rem;
    color: var(--dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 0.2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    list-style: none;
}

.nav-menu a {
    display: block;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    border-radius: var(--radius);
    transition: color var(--transition), background var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.nav-cta {
    background: var(--gold) !important;
    color: var(--navy) !important;
    font-weight: 600 !important;
    padding: 0.45rem 0.95rem !important;
    margin-left: 0.25rem;
}

.nav-cta:hover {
    background: var(--gold-light) !important;
    color: var(--navy) !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 0.5rem;
    background: none;
    border: none;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition);
}

/* ===== PAGE HERO (non-home) ===== */
.page-hero {
    padding: 130px 1.5rem 70px;
    background:
        linear-gradient(180deg, rgba(13,33,55,0.9) 0%, rgba(13,33,55,0.7) 100%),
        radial-gradient(ellipse at 20% 50%, rgba(201,168,76,0.08) 0%, transparent 60%);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ===== CARDS ===== */
.card {
    background: var(--navy-mid);
    border: 1px solid rgba(201,168,76,0.1);
    border-top: 2px solid var(--gold);
    padding: 2rem 1.75rem;
    border-radius: var(--radius);
    transition: border-color var(--transition), transform var(--transition);
}

.card:hover {
    border-color: rgba(201,168,76,0.3);
    transform: translateY(-3px);
}

.card-icon {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.1rem;
    color: var(--gold-light);
    margin-bottom: 0.5rem;
}

.card p {
    font-size: 0.9rem;
    color: var(--muted);
}

/* ===== DIVIDER ===== */
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(201,168,76,0.3);
    margin: 0 auto;
    max-width: 300px;
}
.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(201,168,76,0.2);
}
.divider-symbol { font-size: 1rem; color: var(--gold); }

/* ===== STATS BAR ===== */
.stats-bar {
    background: var(--navy-light);
    border-top: 1px solid rgba(201,168,76,0.1);
    border-bottom: 1px solid rgba(201,168,76,0.1);
    padding: 3rem 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ===== FOOTER ===== */
footer {
    background: #081520;
    border-top: 1px solid rgba(201,168,76,0.1);
    padding: 4rem 1.5rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    max-width: var(--max-w);
    margin: 0 auto;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(201,168,76,0.08);
}

.footer-brand img {
    width: 60px;
    margin-bottom: 1rem;
    opacity: 0.85;
}

.footer-brand-name {
    font-family: 'Playfair Display', serif;
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-brand-sub {
    font-size: 0.75rem;
    color: var(--dim);
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
}

.footer-col h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 0.6rem; }

.footer-col ul li a {
    font-size: 0.88rem;
    color: var(--muted);
    transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-contact p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(201,168,76,0.25);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold);
}

.footer-bottom {
    max-width: var(--max-w);
    margin: 2rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--dim);
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== BLOG CARD ===== */
.blog-card {
    background: var(--navy-mid);
    border: 1px solid rgba(201,168,76,0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition), border-color var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,168,76,0.3);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--navy-light);
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--navy-light), var(--navy-pale));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.blog-card-body { padding: 1.5rem; }

.blog-card-cat {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.blog-card p {
    font-size: 0.87rem;
    color: var(--muted);
    margin-bottom: 1rem;
}

.blog-card-meta {
    font-size: 0.78rem;
    color: var(--dim);
}

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    background: var(--navy-light);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: var(--radius);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.75rem 1rem;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(242,240,234,0.2); }

.form-group textarea { resize: vertical; min-height: 120px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .nav-brand-sub { display: none; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 70px; left: 0; right: 0;
        background: var(--navy);
        border-bottom: 1px solid rgba(201,168,76,0.1);
        padding: 1rem 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    }

    .nav-menu.open { display: flex; }
    .nav-menu li { width: 100%; text-align: center; }
    .nav-menu a { padding: 0.75rem 1.5rem; font-size: 0.95rem; }
    .nav-toggle { display: flex; }
}

@media (max-width: 768px) {
    section { padding: 4rem 1.25rem; }
    .page-hero { padding: 110px 1.25rem 50px; }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

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

/* ============================================================
   CRO & UX COMPONENTS (Floating Widget, Quiz, Ebook, Search, Audio)
   ============================================================ */

/* ── Floating Widget ── */
.goib-floating-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}
.goib-floating-btn {
    background: linear-gradient(135deg, #0d2137 0%, #1a3a5c 100%);
    border: 2px solid #c9a84c;
    color: #c9a84c;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}
.goib-floating-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(201,168,76,0.3);
    background: #c9a84c;
    color: #0d2137;
}
.goib-floating-card {
    position: absolute;
    bottom: 65px;
    right: 0;
    width: 310px;
    background: #0d2137;
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    display: none;
    flex-direction: column;
    gap: 14px;
    animation: fadeIn 0.25s ease-out;
}
.goib-floating-card.active { display: flex; }
.goib-floating-card-title {
    font-family: 'Playfair Display', serif;
    color: #fff;
    font-size: 1.05rem;
    margin: 0;
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding-bottom: 8px;
}
.goib-floating-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    border-radius: 8px;
    color: #f2f0ea;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
}
.goib-floating-option:hover {
    background: rgba(201,168,76,0.15);
    border-color: #c9a84c;
    color: #c9a84c;
    transform: translateX(4px);
}

/* ── Quiz Container ── */
.quiz-card {
    background: linear-gradient(145deg, #132d4a 0%, #0d2137 100%);
    border: 1px solid rgba(201,168,76,0.3);
    border-radius: 12px;
    padding: 36px 28px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.quiz-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.quiz-progress-fill {
    height: 100%;
    width: 20%;
    background: #c9a84c;
    transition: width 0.4s ease;
}
.quiz-question-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    color: #ffffff;
    margin-bottom: 20px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.quiz-opt-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 8px;
    padding: 14px 20px;
    color: #f2f0ea;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.quiz-opt-btn:hover {
    background: rgba(201,168,76,0.15);
    border-color: #c9a84c;
    color: #c9a84c;
}
.quiz-result-box {
    text-align: center;
    padding: 20px 0;
}
.quiz-result-score {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #c9a84c;
    margin-bottom: 12px;
}

/* ── Ebook Lead Magnet ── */
.ebook-lead-card {
    background: linear-gradient(135deg, #1a3a5c 0%, #0d2137 100%);
    border: 2px solid #c9a84c;
    border-radius: 12px;
    padding: 36px 30px;
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
    margin: 40px 0;
}
@media (max-width: 768px) {
    .ebook-lead-card { grid-template-columns: 1fr; text-align: center; }
}
.ebook-badge {
    display: inline-block;
    background: rgba(201,168,76,0.2);
    color: #c9a84c;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

/* ── Blog Search Input ── */
.blog-search-container {
    margin-bottom: 24px;
    position: relative;
    max-width: 600px;
}
.blog-search-input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    background: #ffffff;
    border: 2px solid #ded9ce;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #0d2137;
    outline: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.blog-search-input:focus {
    border-color: #0d2137;
    box-shadow: 0 4px 16px rgba(13,33,55,0.12);
}
.blog-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #888;
    pointer-events: none;
}

/* ── Audio Reader Player ── */
.article-audio-player {
    background: rgba(201,168,76,0.08);
    border: 1px solid rgba(201,168,76,0.3);
    border-left: 4px solid #c9a84c;
    border-radius: 8px;
    padding: 14px 20px;
    margin: 24px 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    font-family: 'Inter', sans-serif;
}
.audio-player-info {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #c9a84c;
    font-weight: 600;
}
.audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}
.audio-btn {
    background: #c9a84c;
    color: #0d2137;
    border: none;
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}
.audio-btn:hover { background: #e8c97a; transform: translateY(-1px); }
.audio-btn.secondary {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.5);
    color: #c9a84c;
}
.audio-btn.secondary:hover { background: rgba(201,168,76,0.15); }

/* ── Social Share Container ── */
.social-share-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0 30px;
    padding: 14px 18px;
    background: #f7f5f1;
    border-radius: 8px;
    border: 1px solid #e8e4dc;
}
.social-share-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #0d2137;
    margin-right: 6px;
}
.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, opacity 0.2s;
}
.social-share-btn:hover { transform: translateY(-2px); opacity: 0.9; }
.share-btn-wa { background: #25d366; }
.share-btn-fb { background: #1877f2; }
.share-btn-li { background: #0a66c2; }
.share-btn-copy { background: #0d2137; }

/* ── Related Articles Section ── */
.related-articles-section {
    background: #f7f5f1;
    border-top: 2px solid #ede9df;
    padding: 60px 24px;
    margin-top: 60px;
}
.related-articles-container {
    max-width: 1140px;
    margin: 0 auto;
}
.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 28px;
}
.related-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 16px rgba(13,33,55,0.06);
    border-left: 4px solid #c9a84c;
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(13,33,55,0.12);
}
.related-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.08rem;
    color: #0d2137;
    margin: 0 0 10px;
    line-height: 1.4;
}
.related-card-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 14px;
    flex: 1;
}
.related-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c9a84c;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}
.related-card-link:hover { color: #b8922e; gap: 8px; }


