/* =============================================
   BASE — Reset, tipografia e utilitários globais
   ============================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--cream-100);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    color: var(--navy-800);
    line-height: 1.25;
}

p { margin: 0; }

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol { list-style: none; }

button {
    font-family: inherit;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--gold-500);
    color: var(--white);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream-200); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold-500), var(--gold-600));
    border-radius: var(--radius-full);
}

/* ============ Layout ============ */

.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: 110px 0;
    position: relative;
    scroll-margin-top: calc(var(--header-height) + 12px);
}

/* ============ Cabeçalhos de seção ============ */

.section-head {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-head.left {
    margin-left: 0;
    text-align: left;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-600);
    background: rgba(91, 26, 46, 0.1);
    border: 1px solid rgba(91, 26, 46, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1.1rem;
}

.section-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

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

.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 1.4rem auto 0;
}

.section-head.left .section-divider { justify-content: flex-start; }

.section-divider::before,
.section-divider::after {
    content: '';
    width: 64px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold-500));
}

.section-divider::after {
    background: linear-gradient(90deg, var(--gold-500), transparent);
}

.section-divider i {
    color: var(--gold-500);
    font-size: 1.05rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-top: 1rem;
}

/* Seções escuras */
.section-dark {
    background: var(--gradient-navy);
    color: rgba(255, 255, 255, 0.85);
}

.section-dark .section-title { color: var(--white); }
.section-dark .section-subtitle { color: rgba(255, 255, 255, 0.65); }
.section-dark .section-tag {
    color: var(--gold-300);
    background: rgba(216, 167, 180, 0.08);
    border-color: rgba(216, 167, 180, 0.25);
}

/* ============ Utilitários ============ */

.text-gold { color: var(--gold-600); }
.text-muted { color: var(--gray-500); }

.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

[data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
