/* =============================================================
   NAVBAR STANDALONE — include on pages that don't load site.css
   Design tokens are scoped to .n-bar and .n-sheet so they don't
   override page-specific accent/bg variables.
============================================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800;900&display=swap');

/* Layout-only tokens (safe for :root — no colour conflicts) */
:root {
    --nav-h:    64px;
    --maxw:     1440px;
    --gutter:   clamp(16px, 3.5vw, 44px);
    --radius-sm: 10px;
    --bfont:    'Manrope', sans-serif;
}

/* Normalize Bootstrap .container to design system width */
.container {
    max-width: var(--maxw) !important;
    padding-left: var(--gutter) !important;
    padding-right: var(--gutter) !important;
}

/* Navbar colour tokens — light mode (scoped, won't bleed into page) */
.n-bar, .n-sheet {
    --accent:          #2563eb;
    --accent-hover:    #1d4ed8;
    --a10:             rgba(37,99,235,.10);
    --bg-elevated:     rgba(255, 255, 255, 0.9);
    --bg-surface:      #ffffff;
    --bg-body:         #f8fafc;
    --bg-surface-muted:#eef4ff;
    --text-main:       #0f172a;
    --text-soft:       #475569;
    --text-muted:      #64748b;
    --whatsapp:        #25D366;
    --whatsapp-dark:   #1da851;
    --border-color:    #dbe4ee;
}

/* Navbar colour tokens — dark mode */
[data-theme="dark"] .n-bar,
[data-theme="dark"] .n-sheet {
    --accent:          #60a5fa;
    --accent-hover:    #93c5fd;
    --a10:             rgba(96,165,250,.10);
    --bg-elevated:     rgba(17, 24, 39, 0.92);
    --bg-surface:      #111827;
    --bg-body:         #0b1220;
    --bg-surface-muted:#0f1a2b;
    --text-main:       #e5eefc;
    --text-soft:       #b6c2d9;
    --text-muted:      #8a98b2;
    --whatsapp-dark:   #4ade80;
    --border-color:    #263247;
}

/* =============================================================
   NAVBAR GLOBAL — .n-bar
============================================================= */
.n-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 950;
    height: var(--nav-h);
    background: var(--bg-elevated);
    backdrop-filter: blur(22px) saturate(1.8);
    -webkit-backdrop-filter: blur(22px) saturate(1.8);
    border-bottom: 1px solid var(--border-color);
    transition: background .3s, border-color .3s;
}
.n-bar::after {
    content: '';
    position: absolute; bottom: -3px; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent, #2563eb) 0%, #60a5fa 55%, transparent 100%);
    z-index: 951;
}
.n-inner {
    max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
    height: 100%; display: flex; align-items: center; gap: 28px;
}
.n-logo { flex-shrink: 0; display: flex; align-items: center; }
.n-logo img { height: 38px; width: auto; display: block; max-width: none; }
.n-links { display: flex; align-items: center; gap: 2px; flex: 1; }
.n-links a {
    font-size: .84rem; font-weight: 700; color: var(--text-soft);
    padding: 7px 13px; border-radius: 8px; transition: .2s; text-decoration: none;
}
.n-links a:hover, .n-links a.n-active { color: var(--accent); background: var(--a10); }
.n-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.n-search {
    display: flex; align-items: center; gap: 7px;
    background: var(--bg-surface-muted); border: 1px solid var(--border-color);
    border-radius: 999px; padding: 7px 7px 7px 16px;
    width: 210px; overflow: visible;
    transition: border-color .2s, box-shadow .2s, width .3s ease;
}
.n-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--a10); width: 250px; }
.n-search input {
    flex: 1; border: 0; background: transparent; color: var(--text-main);
    min-width: 0; font-size: .86rem; font-weight: 500; outline: none;
    font-family: var(--bfont, 'Manrope', sans-serif);
}
.n-search input::placeholder { color: var(--text-muted); }
.n-search button {
    width: 34px; height: 34px; padding: 0; border-radius: 50%; border: 0;
    background: var(--accent); color: #fff; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    appearance: none; -webkit-appearance: none;
    transition: background .2s, transform .2s;
}
.n-search button:hover { background: var(--accent-hover); transform: scale(1.02); }
.n-search button svg, .n-search button i { width: 14px; height: 14px; display: block; }
.n-wpp {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--whatsapp); color: #fff; font-weight: 800;
    font-size: .82rem; padding: 9px 18px; border-radius: var(--radius-sm);
    border: 0; white-space: nowrap; transition: background .2s, transform .2s;
    text-decoration: none;
}
.n-wpp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); color: #fff; }
.n-account {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; color: var(--text-main); font-weight: 700;
    font-size: .82rem; padding: 9px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); white-space: nowrap; transition: .2s;
    text-decoration: none;
}
.n-account:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.n-subscribe {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--accent, #2563eb); color: #fff; font-weight: 800;
    font-size: .82rem; padding: 9px 18px; border-radius: var(--radius-sm, 10px);
    border: 1px solid transparent; white-space: nowrap; transition: .2s;
    text-decoration: none;
}
.n-subscribe:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.n-theme {
    width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid var(--border-color); background: transparent;
    color: var(--text-soft); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: .2s; flex-shrink: 0;
}
.n-theme:hover { border-color: var(--accent); color: var(--accent); background: var(--a10); }
.n-burger {
    display: none; width: 38px; height: 38px;
    border: 1px solid var(--border-color); background: transparent;
    border-radius: var(--radius-sm); color: var(--text-main);
    align-items: center; justify-content: center; cursor: pointer;
}
@media (max-width: 991px) {
    .n-links, .n-search, .n-right .n-wpp { display: none; }
    .n-right .n-account, .n-right .n-subscribe { display: none; }
    .n-burger { display: flex; }
    .n-right { margin-left: auto; }
}

/* Telas muito pequenas (iPhone SE, Galaxy A12, etc.) */
@media (max-width: 480px) {
    .n-inner { gap: 10px; padding: 0 12px; }
    .n-right { gap: 6px; }
    .n-account { padding: 8px 12px; font-size: .8rem; }
    .n-theme { width: 34px; height: 34px; }
    .n-burger { width: 34px; height: 34px; }
    .n-sheet-body { padding: 10px 14px 24px; gap: 0; }
    .n-mobile-link { padding: 10px 12px; font-size: .88rem; }
    .n-sep { margin: 6px 0; }
    .n-sheet-search { padding: 9px 12px; margin-bottom: 8px; }
}

/* Mobile Sheet */
.n-sheet {
    display: none; position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    z-index: 940; background: var(--bg-surface); flex-direction: column;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.n-sheet.open { display: flex; }
.n-sheet-body { padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 2px; }
.n-sheet-search {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-body); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 12px 14px; margin-bottom: 12px;
}
.n-sheet-search input { flex: 1; border: 0; background: transparent; color: var(--text-main); font-size: .95rem; outline: none; font-family: var(--bfont, 'Manrope', sans-serif); }
.n-sheet-search button { border: 0; background: transparent; color: var(--accent); display: flex; cursor: pointer; }
.n-sep { height: 1px; background: var(--border-color); margin: 10px 0; }
.n-mobile-link {
    padding: 13px 14px; border-radius: 12px; font-weight: 700;
    font-size: .96rem; color: var(--text-main); transition: background .15s;
    display: block; text-decoration: none;
}
.n-mobile-link:hover { background: var(--a10); color: var(--accent); }
.n-sheet-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.n-theme-wide {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-color); background: transparent;
    border-radius: var(--radius-sm); padding: 9px 16px;
    color: var(--text-soft); font-weight: 700; font-size: .85rem; cursor: pointer;
}

/* ── SITE FOOTER (shared partial) ───────────────────────────── */
.site-footer {
    background: #f1f5f9;
    border-top: 1px solid #e2e8f0;
    color: #64748b; padding: 80px 0 0;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
}
.footer-inner {
    max-width: 1440px; margin: 0 auto;
    padding: 0 clamp(16px,3.5vw,44px);
    display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 48px;
}
.footer-brand img { height: 32px; margin-bottom: 18px; filter: none; opacity: 1; }
.footer-brand p { font-size: .87rem; line-height: 1.72; color: #64748b; max-width: 28ch; }
.footer-col h5 {
    color: #0f172a; font-size: .72rem; font-weight: 900;
    text-transform: uppercase; letter-spacing: .1em; margin-bottom: 18px;
}
.footer-col a { display: block; color: #64748b; font-size: .86rem; margin-bottom: 11px; transition: color .2s; text-decoration: none; }
.footer-col a:hover { color: #0f172a; }
.footer-bottom {
    max-width: 1440px; margin: 44px auto 0;
    padding: 20px clamp(16px,3.5vw,44px);
    border-top: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 12px; font-size: .79rem; color: #94a3b8;
}
.futura-link { color: #475569; text-decoration: none; font-weight: 700; transition: color .2s; }
.futura-link:hover { color: #0f172a; }
[data-theme="dark"] .site-footer { background: linear-gradient(175deg, #0c1524 0%, #070d1a 100%); border-top-color: transparent; }
[data-theme="dark"] .footer-brand img { filter: brightness(0) invert(1); opacity: .85; }
[data-theme="dark"] .footer-brand p { color: #6c7fa0; }
[data-theme="dark"] .footer-col h5 { color: #fff; }
[data-theme="dark"] .footer-col a { color: #6c7fa0; }
[data-theme="dark"] .footer-col a:hover { color: #fff; }
[data-theme="dark"] .footer-bottom { border-top-color: rgba(255,255,255,.06); color: rgba(255,255,255,.26); }
[data-theme="dark"] .futura-link { color: rgba(255,255,255,.45); }
[data-theme="dark"] .futura-link:hover { color: #fff; }
@media (max-width: 991px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px)  { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ── FOOTER (ft-* system) ───────────────────────────────────── */
.ft {
    background: #f0f4f8;
    color: #475569;
    font-family: var(--bfont, 'Manrope', sans-serif);
    position: relative; overflow: hidden;
}

.ft-accent-line {
    height: 3px;
    background: linear-gradient(90deg, #2563eb 0%, #60a5fa 50%, transparent 100%);
}

.ft::before {
    content: '';
    position: absolute; top: -180px; right: -180px;
    width: 500px; height: 500px; border-radius: 50%;
    background: radial-gradient(ellipse, rgba(37,99,235,.05) 0%, transparent 70%);
    pointer-events: none;
}

.ft-wrap {
    max-width: var(--maxw, 1440px); margin: 0 auto;
    padding: 64px var(--gutter, clamp(16px,3.5vw,44px)) 56px;
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr;
    gap: 40px;
}

.ft-logo-link { display: inline-block; margin-bottom: 14px; }
.ft-logo { height: 34px; display: block; }
.ft-logo-dark  { display: none; }
.ft-logo-light { display: block; }

.ft-region {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    background: rgba(37,99,235,.07); border: 1px solid rgba(37,99,235,.14);
    color: #2563eb; font-size: .68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}

.ft-tagline {
    font-size: .86rem; line-height: 1.75; color: #64748b;
    max-width: 30ch; margin-bottom: 22px;
}

.ft-social { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-social-btn {
    width: 36px; height: 36px; border-radius: 10px;
    background: #fff; border: 1px solid #e2e8f0;
    color: #64748b; display: flex; align-items: center; justify-content: center;
    transition: all .18s; flex-shrink: 0;
}
.ft-social-btn:hover {
    background: #2563eb; border-color: #2563eb; color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 16px rgba(37,99,235,.22);
}
.ft-social-btn--wa:hover { background: #25d366; border-color: #25d366; }

.ft-col-title {
    font-size: .68rem; font-weight: 900; text-transform: uppercase;
    letter-spacing: .12em; color: #0f172a; margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.ft-col-title::after {
    content: ''; flex: 1; height: 1px; background: #e2e8f0;
}

.ft-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.ft-links a {
    display: inline-flex; align-items: center; gap: 8px;
    color: #64748b; font-size: .84rem; font-weight: 500;
    text-decoration: none; padding: 5px 0;
    transition: color .18s, transform .18s;
}
.ft-links a svg { flex-shrink: 0; opacity: .5; transition: opacity .18s; }
.ft-links a:hover { color: #2563eb; transform: translateX(3px); }
.ft-links a:hover svg { opacity: 1; }

.ft-bottom {
    border-top: 1px solid #e2e8f0;
    background: rgba(0,0,0,.025);
}
.ft-bottom-inner {
    max-width: var(--maxw, 1440px); margin: 0 auto;
    padding: 16px var(--gutter, clamp(16px,3.5vw,44px));
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.ft-copy { font-size: .77rem; color: #94a3b8; }
.ft-bottom-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    background: #fff; border: 1px solid #e2e8f0;
    font-size: .68rem; font-weight: 700; color: #64748b;
}
.ft-dev { font-size: .77rem; color: #94a3b8; }
.ft-dev-link {
    color: #475569; text-decoration: none; font-weight: 800;
    transition: color .18s;
}
.ft-dev-link:hover { color: #2563eb; }

[data-theme="dark"] .ft {
    background: linear-gradient(175deg, #0c1524 0%, #070d1a 100%);
    color: #6c7fa0;
}
[data-theme="dark"] .ft::before {
    background: radial-gradient(ellipse, rgba(37,99,235,.08) 0%, transparent 70%);
}
[data-theme="dark"] .ft-logo-light { display: none; }
[data-theme="dark"] .ft-logo-dark  { display: block; }
[data-theme="dark"] .ft-region {
    background: rgba(96,165,250,.08); border-color: rgba(96,165,250,.18); color: #60a5fa;
}
[data-theme="dark"] .ft-tagline { color: #5a6e8a; }
[data-theme="dark"] .ft-social-btn {
    background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.09); color: #6c7fa0;
}
[data-theme="dark"] .ft-social-btn:hover { background: #2563eb; border-color: #2563eb; color: #fff; }
[data-theme="dark"] .ft-col-title { color: #e5eefc; }
[data-theme="dark"] .ft-col-title::after { background: rgba(255,255,255,.07); }
[data-theme="dark"] .ft-links a { color: #5a6e8a; }
[data-theme="dark"] .ft-links a:hover { color: #60a5fa; }
[data-theme="dark"] .ft-bottom { border-top-color: rgba(255,255,255,.06); background: rgba(0,0,0,.15); }
[data-theme="dark"] .ft-copy { color: rgba(255,255,255,.22); }
[data-theme="dark"] .ft-badge { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.3); }
[data-theme="dark"] .ft-dev { color: rgba(255,255,255,.22); }
[data-theme="dark"] .ft-dev-link { color: rgba(255,255,255,.4); }
[data-theme="dark"] .ft-dev-link:hover { color: #60a5fa; }

@media (max-width: 1200px) {
    .ft-wrap { grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
    .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
    .ft-wrap { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 40px var(--gutter, 16px) 36px; }
    .ft-brand { grid-column: 1 / -1; }
    .ft-bottom-inner { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 400px) {
    .ft-wrap { grid-template-columns: 1fr; }
}
