/* ═══════════════════════════════════════════════
   MM Publicidade — Shared Stylesheet
   ═══════════════════════════════════════════════ */

/* ── TOKENS ─────────────────────────────────── */
:root {
    --ink: #141B2D;
    --ink-raised: #1A2035;
    --ink-card: #232E47;
    --ink-border: #2E3D5C;
    --brand: #E69F74;
    --brand-dim: #C07D52;
    --brand-light: #F2C4A0;
    --brand-ghost: rgba(230,159,116,.10);
    --brand-glow: rgba(230,159,116,.22);
    --surface: #F0F2F5;
    --surface-raised: #FFFFFF;
    --surface-border: rgba(20,27,45,.08);
    --text-primary: #141B2D;
    --text-secondary: #4A5C7A;
    --text-muted: #8FA3C8;
    --text-on-dark: #F4F6FB;
    --text-on-dark-dim: rgba(244,246,251,.65);
    --success: #4ECDC4;
    --error: #FF6B6B;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'DM Mono', monospace;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 16px;
    --r-xl: 20px;
}

/* ── RESET ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-body);
    background: var(--surface);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); }

/* ── HEADER ─────────────────────────────────── */
header {
    background: var(--surface-raised);
    padding: 1.2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 var(--surface-border), 0 4px 16px rgba(20,27,45,.04);
    transition: all .4s ease;
}
header.scrolled {
    padding: .65rem 10%;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--surface-border), 0 8px 24px rgba(20,27,45,.08);
}
.logo-img { height: 45px; transition: .4s ease; display: block; }
header.scrolled .logo-img { height: 36px; }
.logo-img:hover { transform: scale(1.04); }

/* ── NAV ─────────────────────────────────────── */
nav ul { display: flex; list-style: none; gap: 28px; align-items: center; }
nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: color .25s;
    position: relative;
}
nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand);
    transition: width .25s;
}
nav a:hover::after, nav a.active::after { width: 100%; }
nav a:hover, nav a.active { color: var(--brand); }

.btn-cta {
    background: var(--brand) !important;
    color: var(--ink) !important;
    padding: 10px 22px;
    border-radius: var(--r-sm);
    font-weight: 700 !important;
}
.btn-cta::after { display: none !important; }
.btn-cta:hover { background: var(--brand-light) !important; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--ink);
    cursor: pointer;
    transition: .3s;
}

/* ── FADE IN ─────────────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .75s ease-out, transform .75s ease-out;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }

/* ── FOOTER ─────────────────────────────────── */
footer { background: var(--ink); color: var(--text-on-dark); padding: 64px 10% 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 48px; }
.footer-col h4 {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--brand);
    margin-bottom: 20px;
}
.footer-col p { margin-bottom: 10px; line-height: 1.8; font-size: .93rem; color: var(--text-on-dark-dim); }
.footer-col p i { color: var(--brand); margin-right: 8px; }
.footer-link {
    color: var(--text-on-dark-dim);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    font-size: .93rem;
    transition: color .25s;
}
.footer-link:hover { color: var(--brand); }
.social-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-on-dark-dim);
    margin-bottom: 12px;
    font-size: .93rem;
    transition: color .25s;
}
.social-item:hover { color: var(--brand); }
.social-item i { margin-right: 12px; color: var(--brand); font-size: 1.1rem; width: 20px; text-align: center; }
.footer-bottom {
    text-align: center;
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.08);
    font-size: .8rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
}

/* ── SHARED BUTTONS ─────────────────────────── */
.btn-primary {
    display: inline-block;
    background: var(--ink);
    color: white !important;
    padding: 15px 32px;
    text-decoration: none;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-family: var(--font-display);
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    transition: .3s;
}
.btn-primary:hover {
    background: var(--brand);
    color: var(--ink) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 24px var(--brand-glow);
}

/* ── SECTION TITLE ───────────────────────────── */
.section-title { text-align: center; margin-bottom: 60px; }
.section-title h2 { font-size: 2rem; font-weight: 800; color: var(--text-primary); }
.section-title div { width: 50px; height: 4px; background: var(--brand); margin: 10px auto; }

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 900px) {
    header { padding: 1rem 5%; }
    .mobile-menu-btn { display: block; }
    nav {
        position: fixed;
        top: 69px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 69px);
        background: rgba(255,255,255,.98);
        backdrop-filter: blur(12px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: left .4s;
        z-index: 999;
    }
    nav.active { left: 0; }
    nav ul { flex-direction: column; gap: 28px; text-align: center; }
    nav a { font-size: 1.1rem; }
    .btn-cta { padding: 14px 28px; font-size: 1.1rem; }
    footer { padding: 48px 5% 20px; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; gap: 28px; }
    .social-item { justify-content: center; }
}

/* ── MODAL OVERLAY (shared base) ─────────────── */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(20,27,45,.82);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
body.modal-open { overflow: hidden; }
