/* ============================================
   HELIO SIXPENCE — CSS Principal
   Estratégia • Liderança • Legado
   Dark Luxury | Editorial Premium | Pan-African
   ============================================ */

/* Google Fonts: adicionar no <head> do HTML:
   <link href="https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,700&family=Montserrat:wght@300;400;500;600;700&display=swap" rel="stylesheet">
*/

/* Reset e base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ── Paleta Dark Luxury ── */
    --bg:             #0B0B0D;
    --bg-secondary:   #121826;
    --bg-card:        #0F1219;
    --bg-elevated:    #161C2A;

    --text:           #F2F2F2;
    --text-secondary: #A6A6A6;
    --text-muted:     #6B7280;

    --gold:           #C9A24A;
    --gold-light:     #E0B84F;
    --gold-dim:       rgba(201, 162, 74, 0.15);
    --gold-glow:      rgba(201, 162, 74, 0.08);

    --glass:          rgba(18, 24, 38, 0.65);
    --glass-border:   rgba(201, 162, 74, 0.12);
    --glass-light:    rgba(242, 242, 242, 0.04);

    --border:         rgba(242, 242, 242, 0.08);
    --border-gold:    rgba(201, 162, 74, 0.2);

    --shadow:         0 2px 12px rgba(0, 0, 0, 0.4);
    --shadow-medium:  0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-gold:    0 4px 24px rgba(201, 162, 74, 0.12);

    --radius:         12px;
    --radius-sm:      8px;
    --radius-lg:      20px;

    --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Seleção de texto ── */
::selection {
    background: var(--gold);
    color: var(--bg);
}

/* ── Scrollbar premium ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-light); }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--gold-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
    letter-spacing: -0.01em;
}

h1 { font-size: 2.8rem; margin-bottom: 1rem; }
h2 { font-size: 2.2rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }

p { margin-bottom: 1rem; color: var(--text-secondary); }

/* ── Label editorial ── */
.section-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::before {
    content: '';
    width: 28px;
    height: 1px;
    background: var(--gold);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 24px;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.logo span,
.logo .gold {
    color: var(--gold);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

.main-nav ul a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: var(--transition);
    position: relative;
}

.main-nav ul a:hover {
    color: var(--gold);
}

.main-nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.main-nav ul a:hover::after {
    width: 100%;
}

.nav-auth {
    display: flex;
    gap: 0.5rem;
}

/* ============================================
   BOTÕES
   ============================================ */
.btn {
    display: inline-block;
    padding: 0.65rem 1.4rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gold-dim);
    color: var(--gold-light);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

/* Efeito shimmer no hover */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
    background: var(--bg);
    color: var(--text);
    padding: 7rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Gradiente cinematográfico de fundo */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(201, 162, 74, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(18, 24, 38, 0.8) 0%, transparent 50%);
    animation: heroGlow 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-2%, 1%) scale(1.05); }
}

/* Grain/noise overlay */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--text);
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    margin-bottom: 1.25rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 em,
.hero h1 .gold {
    color: var(--gold);
    font-style: italic;
}

.hero p {
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   SECÇÕES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Linha decorativa dourada */
.section-title h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 0.75rem auto 0;
}

/* ============================================
   GRELHAS
   ============================================ */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* ============================================
   CARDS — Glassmorphism
   ============================================ */
.card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-dim);
    color: var(--gold);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-gold);
}

.card h3 {
    color: var(--text);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* ── Card de artigo / insight ── */
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
    box-shadow: var(--shadow-gold);
}

.article-card-image {
    height: 220px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-elevated));
    background-size: cover;
    background-position: center;
    position: relative;
}

.article-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-card), transparent);
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-meta {
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
}

.article-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.article-card h3 a {
    color: var(--text);
    transition: var(--transition);
}

.article-card h3 a:hover {
    color: var(--gold);
}

.article-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* ============================================
   CTA (Call to Action)
   ============================================ */
.cta {
    background: var(--bg-secondary);
    color: var(--text);
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* Brilho dourado subtil */
.cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--text);
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   ESTATÍSTICAS
   ============================================ */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    display: block;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    margin-top: 0.25rem;
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-box {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-medium);
}

.form-box h1 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.form-box .btn {
    width: 100%;
    padding: 0.9rem;
    font-size: 1rem;
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.form-footer a {
    color: var(--gold);
}

/* ============================================
   ALERTAS / FLASH
   ============================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    border-left: 3px solid;
    background: var(--glass);
    backdrop-filter: blur(8px);
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(201, 162, 74, 0.08);
    color: var(--gold-light);
    border-color: var(--gold);
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
    border-color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.08);
    color: #fcd34d;
    border-color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.08);
    color: #93c5fd;
    border-color: #3b82f6;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--bg);
    color: var(--text-muted);
    padding: 4rem 0 1.5rem;
    margin-top: 0;
    border-top: 1px solid var(--border);
    position: relative;
}

/* Linha dourada decorativa no topo */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.site-footer h3,
.site-footer h4 {
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.site-footer ul {
    list-style: none;
}

.site-footer ul li {
    margin-bottom: 0.6rem;
}

.site-footer a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--gold);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: var(--gold);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   NAVBAR Bootstrap personalizada
   ============================================ */
.site-navbar {
    background: rgba(11, 11, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: var(--transition);
}

.site-navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    padding: 0.5rem 0;
}

/* Logo navbar */
.navbar-brand {
    color: var(--text) !important;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    transition: var(--transition);
}

.navbar-brand:hover {
    color: var(--gold) !important;
}

.navbar-logo {
    max-height: 40px;
    width: auto;
    object-fit: contain;
}

.brand-text {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* Itens do menu */
.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.navbar .nav-link:hover {
    color: var(--gold) !important;
    background: var(--gold-glow);
}

.navbar .nav-link.active {
    color: var(--gold) !important;
    font-weight: 600;
}

.navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background: var(--gold);
    border-radius: 1px;
}

@media (max-width: 991px) {
    .navbar .nav-link.active::after {
        display: none;
    }
    .navbar .nav-link.active {
        background: var(--gold-glow);
    }
}

/* Dropdowns */
.dropdown-menu {
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    margin-top: 0.5rem !important;
    min-width: 220px;
    box-shadow: var(--shadow-medium);
}

.dropdown-item {
    color: var(--text-secondary);
    border-radius: 5px;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: var(--gold-glow);
    color: var(--gold);
}

.dropdown-item:active,
.dropdown-item.active {
    background: var(--gold);
    color: var(--bg);
}

/* Pesquisa desktop */
.search-form {
    min-width: 220px;
}

.search-form .form-control {
    background: var(--bg);
    border-color: var(--border);
    color: var(--text);
}

.search-form .form-control::placeholder {
    color: var(--text-muted);
}

.search-form .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem var(--gold-dim);
}

.search-form .btn-outline-success {
    border-color: var(--gold);
    color: var(--gold);
}

.search-form .btn-outline-success:hover {
    background: var(--gold);
    color: var(--bg);
    border-color: var(--gold);
}

/* Avatar do utilizador */
.user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--bg);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
}

.user-dropdown .btn {
    border: 1px solid var(--border);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-weight: 500;
}

.user-dropdown .btn:hover,
.user-dropdown .btn:focus {
    background: var(--glass);
    border-color: var(--border-gold);
    color: var(--text);
}

/* Botões (override Bootstrap) */
.btn-success {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}

.btn-success:hover,
.btn-success:focus {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--bg);
}

.btn-outline-success {
    color: var(--gold);
    border-color: var(--gold);
}

.btn-outline-success:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg);
}

/* Toggler hamburger */
.navbar-toggler {
    border: 1px solid var(--border);
    padding: 0.4rem 0.6rem;
}

.navbar-toggler-icon {
    filter: invert(1);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem var(--gold-dim);
}

/* ============================================
   TESTEMUNHOS
   ============================================ */
.testimonial-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--gold-dim);
    position: absolute;
    top: 0.5rem;
    left: 1.5rem;
    line-height: 1;
}

.testimonial-card p {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 1.25rem;
    padding-top: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    font-weight: 600;
    color: var(--text);
    font-size: 0.9rem;
}

.testimonial-role {
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   EXPERTISE / TAGS
   ============================================ */
.tag {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background: var(--gold-dim);
    color: var(--gold);
    border: 1px solid var(--border-gold);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.tag:hover {
    background: var(--gold);
    color: var(--bg);
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }
.animate-in:nth-child(5) { animation-delay: 0.4s; }

/* ============================================
   DIVIDERS & DECORAÇÕES
   ============================================ */
.divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    margin: 1.5rem auto;
}

.divider-left {
    margin-left: 0;
}

/* Separador dourado fino */
hr {
    border: none;
    height: 1px;
    background: var(--border);
    margin: 2rem 0;
}

/* ============================================
   RESPONSIVO
   ============================================ */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

    .hero {
        padding: 4rem 0 3.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .main-nav ul {
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .section {
        padding: 3rem 0;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .form-box {
        margin: 2rem 1rem;
        padding: 1.75rem;
    }

    .footer-grid {
        gap: 1.5rem;
    }
}

/* ============================================
   MOBILE NAVBAR
   ============================================ */
@media (max-width: 991px) {
    .site-navbar {
        padding: 0.6rem 0;
    }

    .navbar-brand {
        font-size: 1.15rem;
    }

    .navbar-collapse {
        padding-top: 1rem;
        margin-top: 0.5rem;
        border-top: 1px solid var(--border);
    }

    .navbar .nav-link {
        padding: 0.7rem 0.75rem !important;
        border-radius: var(--radius-sm);
    }

    .navbar .nav-link i {
        width: 22px;
        text-align: center;
        color: var(--text-muted);
    }

    .navbar-nav {
        margin-bottom: 0.75rem !important;
    }

    .dropdown-menu {
        border: none;
        background: var(--bg-card);
        margin: 0.25rem 0 0.5rem 1.5rem !important;
        padding: 0.25rem;
        box-shadow: none;
    }

    .user-dropdown {
        width: 100%;
    }
}

/* ============================================
   UTILITÁRIOS ADICIONAIS
   ============================================ */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.bg-dark { background: var(--bg); }
.bg-elevated { background: var(--bg-elevated); }
.border-gold { border-color: var(--border-gold); }
.font-serif { font-family: 'Playfair Display', serif; }
.font-sans { font-family: 'Montserrat', sans-serif; }
.tracking-wide { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }

/* ============================================
   HOMEPAGE — STYLES (ADAPTADO PARA CONSULTORIA)
   ============================================ */

/* Variáveis de cor */
:root {
    --azul-primario: #0A3C63;
    --azul-secundario: #1a527f;
    --cinza-texto: #333333;
    --cinza-claro-fundo: #f8f9fa;
    --cinza-borda: #e0e0e0;
    --verde-destaque: #28a745;
    --amarelo-destaque: #ffc107;
}

/* HERO */
.hp-hero {
    position: relative;
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    color: white;
    padding: 6rem 0 7rem;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255,255,255,0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255,255,255,0.12) 0%, transparent 50%);
    pointer-events: none;
}

.hp-hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hp-hero p.lead {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

.hp-hero .btn {
    padding: 0.85rem 2rem;
    font-weight: 600;
    border-radius: 50px;
}

.hp-hero .btn-warning {
    background: var(--amarelo-destaque);
    border: none;
    color: var(--azul-primario);
}

.hp-hero .btn-warning:hover {
    background: #ffda6a;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.hp-hero .btn-outline-light:hover {
    background: white;
    color: var(--azul-primario);
}

.hp-hero-search {
    max-width: 700px;
    margin: 0 auto;
}

.hp-hero-search .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.95rem 1.8rem;
    font-size: 1.1rem;
    border: none;
}

.hp-hero-search .btn {
    border-radius: 0 50px 50px 0 !important;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
}

/* SECTION TITLES */
.hp-section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.hp-section-title .eyebrow {
    color: var(--azul-primario);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.hp-section-title h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--cinza-texto);
}

.hp-section-title p {
    color: #6a747c;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* FEATURE CARDS */
.hp-feature-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 2rem;
    height: 100%;
    border: 1px solid var(--cinza-borda);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.hp-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(10, 60, 99, 0.15);
    border-color: var(--azul-primario);
}

.hp-feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--azul-primario), var(--azul-secundario));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.hp-feature-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--cinza-texto);
}

.hp-feature-card p {
    color: #6a747c;
    margin: 0;
    line-height: 1.7;
}

/* DESTAQUE */
.hp-featured {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    border: 1px solid var(--cinza-borda);
}

.hp-featured-img {
    aspect-ratio: 16/9;
    background: var(--cinza-claro-fundo);
    overflow: hidden;
}

.hp-featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.hp-featured:hover .hp-featured-img img {
    transform: scale(1.03);
}

.hp-featured-body {
    padding: 2.25rem;
}

.hp-featured-cat {
    display: inline-block;
    background: rgba(10, 60, 99, 0.1);
    color: var(--azul-primario);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.hp-featured h3 {
    font-size: clamp(1.5rem, 2.8vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.85rem;
}

.hp-featured h3 a {
    color: var(--cinza-texto);
    text-decoration: none;
}

.hp-featured h3 a:hover {
    color: var(--azul-primario);
}

.hp-featured p {
    color: #5a6c75;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.hp-featured-meta {
    display: flex;
    gap: 1.5rem;
    color: #8a979e;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

/* GRID DE ARTIGOS */
.hp-article-card {
    background: white;
    border: 1px solid var(--cinza-borda);
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.28s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.hp-article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(10, 60, 99, 0.1);
}

.hp-article-img {
    aspect-ratio: 16/9;
    background: var(--cinza-claro-fundo);
    overflow: hidden;
    position: relative;
}

.hp-article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.hp-article-card:hover .hp-article-img img {
    transform: scale(1.05);
}

.hp-article-img-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c5d0da;
    font-size: 2.8rem;
}

.hp-article-cat-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.95);
    color: var(--azul-primario);
    padding: 0.3rem 0.8rem;
    border-radius: 18px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

.hp-article-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hp-article-title {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.hp-article-title a {
    color: var(--cinza-texto);
    text-decoration: none;
}

.hp-article-card:hover .hp-article-title a {
    color: var(--azul-primario);
}

.hp-article-meta {
    color: #8a979e;
    font-size: 0.85rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--cinza-claro-fundo);
    margin-top: auto;
}

/* CATEGORIAS */
.hp-cat-card {
    background: white;
    border: 1px solid var(--cinza-borda);
    border-radius: 14px;
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    transition: all 0.28s ease;
    height: 100%;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.hp-cat-card:hover {
    border-color: var(--azul-primario);
    transform: translateY(-4px);
    box-shadow: 0 8px 22px rgba(10, 60, 99, 0.1);
}

.hp-cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    background: rgba(10, 60, 99, 0.08);
    color: var(--azul-primario);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.25rem;
    transition: all 0.28s ease;
}

.hp-cat-card:hover .hp-cat-icon {
    background: var(--azul-primario);
    color: white;
}

.hp-cat-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--cinza-texto);
    margin-bottom: 0.5rem;
}

.hp-cat-card p {
    color: #6a747c;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.hp-cat-count {
    display: inline-block;
    margin-top: 0.6rem;
    color: var(--azul-primario);
    font-size: 0.82rem;
    font-weight: 600;
}

/* MAIS LIDOS */
.hp-popular-item {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    padding: 1.2rem;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid var(--cinza-borda);
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.hp-popular-item:hover {
    border-color: var(--azul-primario);
    background: var(--cinza-claro-fundo);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 60, 99, 0.08);
}

.hp-popular-rank {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--azul-primario);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
}

.hp-popular-info {
    flex: 1;
    min-width: 0;
}

.hp-popular-title {
    font-weight: 600;
    color: var(--cinza-texto);
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hp-popular-meta {
    color: #8a979e;
    font-size: 0.82rem;
}

/* ESTATÍSTICAS */
.hp-stats {
    background: linear-gradient(135deg, var(--cinza-claro-fundo) 0%, #e0e6eb 100%);
    padding: 5rem 0;
}

.hp-stat-item {
    text-align: center;
}

.hp-stat-number {
    font-size: clamp(2.2rem, 4.5vw, 3.5rem);
    font-weight: 800;
    color: var(--azul-primario);
    line-height: 1.1;
    margin-bottom: 0.75rem;
    display: block;
}

.hp-stat-label {
    color: #5a6c75;
    font-weight: 500;
    font-size: 1.05rem;
}

/* PORQUÊ NÓS */
.hp-why-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid var(--cinza-borda);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
}

.hp-why-card:hover {
    border-color: var(--azul-primario);
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(10, 60, 99, 0.12);
}

.hp-why-emoji {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    display: block;
}

.hp-why-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--cinza-texto);
}

.hp-why-card p {
    color: #6a747c;
    margin: 0;
    line-height: 1.65;
}

/* FAQ */
.hp-faq-item {
    background: white;
    border: 1px solid var(--cinza-borda) !important;
    border-radius: 12px !important;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.hp-faq-item .accordion-button {
    font-weight: 600;
    padding: 1.4rem 1.7rem;
    color: var(--cinza-texto);
    background: white;
    box-shadow: none !important;
    font-size: 1.05rem;
}

.hp-faq-item .accordion-button:not(.collapsed) {
    background: var(--cinza-claro-fundo);
    color: var(--azul-primario);
}

.hp-faq-item .accordion-button:focus {
    border: none;
    box-shadow: none;
}

.hp-faq-item .accordion-body {
    padding: 0 1.7rem 1.5rem;
    color: #5a6c75;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* CTA FINAL */
.hp-cta-final {
    background: linear-gradient(135deg, var(--azul-primario) 0%, var(--azul-secundario) 100%);
    color: white;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hp-cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 30% 50%, rgba(255,255,255,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hp-cta-final h2 {
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.hp-cta-final p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

/* NEWSLETTER */
.hp-newsletter {
    background: white;
    border: 1px solid var(--cinza-borda);
    border-radius: 18px;
    padding: 3.5rem 2.5rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.hp-newsletter-icon {
    width: 75px;
    height: 75px;
    background: rgba(10, 60, 99, 0.1);
    color: var(--azul-primario);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 1.5rem;
}

.hp-newsletter h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: var(--cinza-texto);
}

.hp-newsletter p {
    color: #6a747c;
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.05rem;
}

.hp-newsletter-form {
    max-width: 550px;
    margin: 0 auto;
}

.hp-newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    padding: 0.95rem 1.8rem;
    border-right: none;
    font-size: 1.05rem;
}

.hp-newsletter-form .btn {
    border-radius: 0 50px 50px 0 !important;
    padding-left: 1.8rem;
    padding-right: 1.8rem;
    font-weight: 600;
    background-color: var(--verde-destaque);
    border-color: var(--verde-destaque);
}

.hp-newsletter-form .btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    .hp-hero { padding: 4rem 0 5rem; }
    .hp-hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
    .hp-hero p.lead { font-size: 1.1rem; }
    .hp-section-title h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hp-featured-body { padding: 1.5rem; }
    .hp-featured h3 { font-size: 1.4rem; }
    .hp-article-body { padding: 1rem; }
    .hp-article-title { font-size: 1rem; }
    .hp-newsletter { padding: 2.5rem 1.5rem; }
    .hp-newsletter h2 { font-size: 1.4rem; }
    .hp-cta-final { padding: 4rem 0; }
    .hp-cta-final h2 { font-size: 2rem; }
    .hp-cta-final p { font-size: 1rem; }
}

@media (max-width: 576px) {
    .hp-hero-search .input-group { flex-wrap: wrap; }
    .hp-hero-search .form-control,
    .hp-hero-search .btn {
        border-radius: 50px !important;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .hp-hero-search .btn { margin-bottom: 0; }

    .hp-newsletter-form .input-group { flex-wrap: wrap; }
    .hp-newsletter-form .form-control,
    .hp-newsletter-form .btn {
        border-radius: 50px !important;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .hp-newsletter-form .btn { margin-bottom: 0; }

    .hp-stat-number { font-size: clamp(1.8rem, 8vw, 2.5rem); }
    .hp-stat-label { font-size: 0.85rem; }
}