/* ============================================================================
   site.css — desenho do sítio
   --------------------------------------------------------------------------
   Independente do template anterior. As cores de marca (--brand, --accent,
   --black, --grey, --office) vêm do .env, injectadas no <head>.
   O tema (claro / escuro / auto) aplica-se à página inteira: o script
   theme-init.js escreve data-theme em <html> antes da primeira pintura.
   O mapa, o rodapé, os clientes e os cookies continuam em platform.css.
   ========================================================================== */

html {
    --font-sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
    --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
    --bg: #f3efe6;
    --bg-2: #e7e0d4;
    --ink: var(--black);
    --muted: var(--grey);
    --line: rgb(11 15 16 / .12);
    --card: #fffdf8;
    --brand-ink: #246466;
    --shadow: 0 24px 50px -32px rgb(40 32 20 / .35);
    --nav-h: 76px;
    --wrap: 1160px;
    color-scheme: light;
    background: var(--bg);
    scroll-padding-top: calc(var(--nav-h) + 12px);
}

html[data-theme="dark"] {
    --bg: var(--black);
    --bg-2: #161d1e;
    --ink: #f4f7f6;
    --muted: #a8b4b4;
    --line: rgb(244 247 246 / .14);
    --card: #141b1c;
    --brand-ink: var(--brand);
    --shadow: 0 30px 70px -36px rgb(0 0 0 / .65);
    color-scheme: dark;
}

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

html, body { margin: 0; }

body {
    font-family: var(--font-sans);
    font-weight: 400;
    font-size: 1.0625rem;
    line-height: 1.6;
    background: var(--bg);
    color: var(--ink);
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font: inherit; }
a { color: inherit; }

::selection { background: var(--brand); color: var(--black); }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.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;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 300;
    padding: .6rem 1rem;
    background: var(--brand);
    color: var(--black);
    text-decoration: none;
    border-radius: 999px;
}
.skip:focus { top: 1rem; }

.wrap {
    width: min(var(--wrap), calc(100% - 2.5rem));
    margin-inline: auto;
}

.band { padding: clamp(2.4rem, 4.5vw, 4.2rem) 0; }

.kicker {
    margin: 0 0 .8rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--brand-ink);
}

.display {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: .96;
    letter-spacing: -.03em;
}

.lede, .muted { color: var(--muted); }
.lede { margin: 1rem 0 0; max-width: 42rem; font-size: 1.125rem; }
.lede strong { font-weight: 600; color: var(--ink); }
.fine { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; }

.split-head {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 1.5rem 3rem;
    align-items: end;
    margin-bottom: clamp(2rem, 4vw, 3.2rem);
}
.split-head .lede { margin: 0; }

/* --------------------------------------------------------------------------
   Menu
   -------------------------------------------------------------------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(var(--wrap), calc(100% - 2.5rem));
    margin-inline: auto;
}

.nav-logo { display: flex; align-items: center; text-decoration: none; }
.nav-logo img { height: 28px; width: auto; }
.logo-on-dark { display: none; }
html[data-theme="dark"] .logo-on-light { display: none; }
html[data-theme="dark"] .logo-on-dark { display: block; }

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    place-items: center;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: "";
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: .35rem 1.35rem;
}
.nav-links a {
    text-decoration: none;
    font-size: .95rem;
}
.nav-links > a { color: var(--muted); }
.nav-links > a:hover,
.nav-links > a.is-current { color: var(--ink); }
.nav-links > a.is-current { box-shadow: inset 0 -2px 0 var(--brand); }

.lang {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
}
.lang a {
    min-width: 2.1rem;
    padding: .2rem .45rem;
    border-radius: 999px;
    text-align: center;
    font-size: .72rem;
    letter-spacing: .08em;
    color: var(--muted);
    text-decoration: none;
}
.lang a[aria-current="true"] {
    background: var(--ink);
    color: var(--bg);
}

/* --------------------------------------------------------------------------
   Botões e ligações
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .85rem 1.25rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--ink);
    color: var(--bg);
    text-decoration: none;
    font-size: .95rem;
    line-height: 1;
    cursor: pointer;
}
.btn:hover { background: var(--brand); color: var(--black); }
.btn-sm { padding: .55rem .9rem; font-size: .78rem; letter-spacing: .12em; }
.btn-line {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.btn-line:hover { border-color: var(--brand); background: transparent; color: var(--ink); }

.link {
    color: var(--ink);
    text-underline-offset: .28em;
}
.link:hover { color: var(--brand-ink); }

/* --------------------------------------------------------------------------
   Abertura
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    /* A abertura ocupa exactamente a altura da janela, também com a barra do browser. */
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    /* O fundo do texto fica acima do ícone do rato (1.6rem + 42px), com folga. */
    padding: calc(var(--nav-h) + 4rem) 0 calc(var(--footer-bar-h, 52px) + 7.5rem);
    color: #f6f3ec;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -1;
}
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgb(11 15 16 / .78) 0%, rgb(11 15 16 / .28) 46%, rgb(11 15 16 / .22) 100%);
}
.hero-copy { max-width: var(--wrap); }
.hero-copy .display {
    max-width: 16ch;
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    color: #f6f3ec;
}
.hero-copy .kicker { margin-bottom: 1.2rem; color: #b7e4e6; }
.hero-reg {
    font-size: .38em;
    vertical-align: super;
    line-height: 0;
    margin-left: .04em;
}
.hero-tag {
    display: block;
    margin-top: .2em;
    font-size: .58em;
    line-height: 1.1;
}
/* As frases ficam todas na mesma célula: o bloco tem sempre a altura da mais
   longa e o texto não salta quando a frase muda (uma linha ↔ duas linhas). */
.hero-rotate { display: grid; }
.hero-rotate > span,
.hero-rotate > span[hidden] {
    grid-area: 1 / 1;
    display: block;
    visibility: hidden;
    opacity: 0;
    transition: opacity .5s ease, visibility 0s linear .5s;
}
.hero-rotate > span.is-on {
    visibility: visible;
    opacity: 1;
    transition: opacity .5s ease;
}
.scroll-mouse {
    position: absolute;
    left: 50%;
    bottom: calc(var(--footer-bar-h, 52px) + 1.6rem);
    display: inline-flex;
    color: #f6f3ec;
    text-decoration: none;
    transform: translateX(-50%);
    z-index: 1;
}
.scroll-mouse:hover { color: var(--brand); }
.mouse {
    position: relative;
    width: 26px;
    height: 42px;
    border: 2px solid currentColor;
    border-radius: 14px;
}
.mouse-wheel {
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: currentColor;
    transform: translateX(-50%);
    animation: mouse-wheel 1.4s ease-in-out infinite;
}

/* O menu fica por cima do vídeo: texto e logótipo claros. */
body:has(.hero) .site-nav {
    background: rgb(11 15 16 / .28);
    border-bottom-color: transparent;
    color: #f6f3ec;
}
body:has(.hero) .logo-on-light { display: none; }
body:has(.hero) .logo-on-dark { display: block; }
body:has(.hero) .nav-links > a { color: rgb(246 243 236 / .78); }
body:has(.hero) .nav-links > a:hover,
body:has(.hero) .nav-links > a.is-current { color: #fff; }
body:has(.hero) .lang { border-color: rgb(255 255 255 / .28); }
body:has(.hero) .lang a { color: rgb(246 243 236 / .78); }
body:has(.hero) .lang a[aria-current="true"] { background: #f6f3ec; color: #0b0f10; }
body:has(.hero) .btn-sm { background: #f6f3ec; color: #0b0f10; }
body:has(.hero) .nav-links.is-open { background: var(--bg); }
body:has(.hero) .nav-links.is-open > a { color: var(--muted); }
body:has(.hero) .nav-links.is-open > a.is-current,
body:has(.hero) .nav-links.is-open > a:hover { color: var(--ink); }

/* --------------------------------------------------------------------------
   Estúdio, história, fotografias
   -------------------------------------------------------------------------- */
.story {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(1.5rem, 4vw, 4rem);
    align-items: center;
}
.story .p { color: var(--muted); }
.story-actions { margin-top: 1.6rem; }

.photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}
.photos figure { margin: 0; }
.photos figure:first-child { margin-top: 2.6rem; }
.photos img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}
.photos figcaption {
    margin-top: .75rem;
    font-size: .95rem;
    color: var(--muted);
}
.photos figcaption strong {
    display: block;
    margin-top: .15rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 500;
}
.photos figcaption .stat-plus { color: var(--accent); }

.team {
    max-width: 46rem;
    margin-top: clamp(3rem, 6vw, 5rem);
}
.team .p { color: var(--muted); }

/* --------------------------------------------------------------------------
   Faixa de texto
   -------------------------------------------------------------------------- */
.ticker {
    overflow: hidden;
    border-block: 1px solid var(--line);
}
.ticker--gap { margin-bottom: 1rem; }
.ticker-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: ticker 46s linear infinite;
}
.ticker-track > div {
    padding: .9rem 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    white-space: nowrap;
}
.ticker-track > div::before {
    content: "·";
    margin: 0 1.4rem;
    color: var(--accent);
    font-style: normal;
}

/* --------------------------------------------------------------------------
   Mapa
   -------------------------------------------------------------------------- */
.map-copy { max-width: 40rem; margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }
.map-copy .p { color: var(--muted); }
.map-copy .display { margin-bottom: 1rem; }
.map-stage {
    width: 100%;
    background: #0b0f10;
    color: rgb(255 255 255 / .72);
    padding: 0 0 1.4rem;
}
.map-stage .world-map {
    width: 100%;
    border-radius: 0;
    aspect-ratio: 2.55 / 1;
    min-height: 320px;
    background: transparent;
}
.map-stage .world-footer {
    margin-top: 1.1rem;
    border-top-color: rgb(255 255 255 / .12);
}
.map-stage .world-stats strong { color: #fff; }

/* --------------------------------------------------------------------------
   Clientes e serviços
   -------------------------------------------------------------------------- */
.client-logo {
    background: #f6f3ee;
    border-radius: 14px;
}

.svc-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
}
.svc-card {
    background: var(--bg);
    padding: 1.5rem 1.4rem 1.6rem;
}
.svc-card h3 {
    margin: .9rem 0 .45rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 500;
    line-height: 1.15;
}
.svc-card .p { margin: 0; color: var(--muted); font-size: .98rem; }
.svc-index {
    font-size: .75rem;
    letter-spacing: .14em;
    color: var(--brand-ink);
}

.mark { color: var(--brand-ink); }
.mark svg { width: 42px; height: 42px; display: block; }
.mark svg path,
.mark svg line,
.mark svg circle,
.mark svg polyline,
.mark svg polygon {
    stroke: currentColor !important;
}

/* Serviços — separadores */
.svc-board {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}
.svc-tabs {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin: 1.4rem 0 0;
    padding: 0;
    list-style: none;
}
.svc-tabs button {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: .75rem .2rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}
.svc-tabs button[aria-selected="true"] {
    color: var(--ink);
    border-bottom-color: var(--brand);
}
.svc-tabs .num {
    font-variant-numeric: tabular-nums;
    letter-spacing: .08em;
    color: var(--brand-ink);
}
.svc-panel { margin: 0; }
.svc-panel img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 1.1rem;
}
.svc-panel h3 {
    margin: 0 0 .5rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
}
.svc-panel .p { margin: 0; color: var(--muted); }

.benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 2rem;
    padding-top: 1rem;
}
.benefits > :first-child { grid-column: 1 / -1; }
.benefits .display { max-width: 11ch; }
.benefit h3 {
    margin: .8rem 0 .35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
}
.benefit .p { margin: 0; color: var(--muted); }

/* --------------------------------------------------------------------------
   Assistência e chamada
   -------------------------------------------------------------------------- */
.assist {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, .6fr);
    gap: 2rem;
    align-items: center;
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 28px;
    background:
        linear-gradient(120deg, color-mix(in srgb, var(--brand) 18%, transparent), transparent 42%),
        var(--card);
    border: 1px solid var(--line);
}
.assist h2 {
    margin: 0 0 .6rem;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
}
.assist .lede { margin: 0; }
.assist-count {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 6vw, 5rem);
    line-height: .9;
    color: var(--ink);
    text-align: right;
}
.assist-count .stat-plus { color: var(--accent); }
.assist-label {
    margin: .4rem 0 0;
    text-align: right;
    font-size: .95rem;
    letter-spacing: .01em;
    color: var(--muted);
}

.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: .5rem;
}
.cta .p {
    margin: 0;
    max-width: 22ch;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    line-height: 1.12;
}

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.card {
    padding: 1.3rem 1.25rem 1.15rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
}
.card-wide { grid-column: 1 / -1; }
.card h3 {
    margin: .85rem 0 .35rem;
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
}
.card .p { margin: 0; color: var(--muted); }
.card-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--brand) 18%, transparent);
    color: var(--brand-ink);
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.form { margin-top: 2.4rem; }
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1rem; }
.field span { font-size: .85rem; color: var(--muted); }
.field input,
.field textarea {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.form-note { margin: 0; max-width: 46ch; color: var(--muted); font-size: .9rem; }
.form-note a { color: var(--brand-ink); }
#result { margin-top: 1rem; }
#result .success { color: var(--brand-ink); }
#result .error { color: var(--accent); }

.band-follow { padding-top: 0; }
.display-sm { font-size: clamp(2rem, 4vw, 3.2rem); }
/* Mapa dos escritórios (partials/sections/locations-map.php + js/boodbe/locations-map.js) */
.bood-mapa {
    --map-marker: #86BFBE;
    margin-top: 2.5rem;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}
.bood-mapa-canvas {
    height: 460px;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--card);
}
.bood-mapa.is-failed .bood-mapa-canvas { display: none; }
.bood-locais {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
    margin-top: 12px;
}
.bood-locais button {
    text-align: left;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    line-height: 1.45;
    transition: border-color .2s ease;
}
.bood-locais button:hover,
.bood-locais button:focus-visible,
.bood-locais button.ativo { border-color: var(--map-marker); }
.bood-locais strong { display: block; margin-bottom: 4px; color: var(--ink); }
.bood-mapa .maplibregl-popup-content {
    border-radius: 12px;
    padding: 12px 14px;
    font: 400 14px/1.45 var(--font-sans);
    color: #0b0f10;
}
.bood-mapa-dir-label {
    margin-top: .7rem;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #5a6366;
}
.bood-mapa-dir { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; }
.bood-mapa-dir a { color: #246466; }
@media (max-width: 640px) { .bood-mapa-canvas { height: 360px; } }

/* --------------------------------------------------------------------------
   Páginas interiores, presskit, legal, 404
   -------------------------------------------------------------------------- */
.page-hero { padding: calc(var(--nav-h) + 2.4rem) 0 0; }
.page-hero .display { max-width: 14ch; }
.page-still {
    margin: 2rem 0 0;
    height: clamp(150px, 26vw, 280px);
    overflow: hidden;
}
.page-still img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.swatches {
    display: grid;
    gap: .8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.swatches li {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 1rem;
    align-items: center;
}
.swatch {
    height: 64px;
    border-radius: 14px;
    background: var(--swatch);
    border: 1px solid var(--line);
}
.swatches .p { margin: 0; font-size: .95rem; color: var(--muted); }

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.2rem 0 1.2rem;
}
.filters button {
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
    border-radius: 999px;
    padding: .45rem .9rem;
    cursor: pointer;
}
.filters button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
}

.kit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.kit-card {
    display: block;
    padding: 1rem;
    border-radius: 18px;
    text-decoration: none;
    background-color: #d5cfc4;
    background-image:
        linear-gradient(45deg, #c9c2b6 25%, transparent 25%),
        linear-gradient(-45deg, #c9c2b6 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #c9c2b6 75%),
        linear-gradient(-45deg, transparent 75%, #c9c2b6 75%);
    background-size: 18px 18px;
    background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.kit-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
}
.kit-card span {
    display: block;
    margin-top: .7rem;
    color: #1a1a1a;
    font-size: .75rem;
    letter-spacing: .12em;
}

.lightbox {
    width: min(920px, calc(100vw - 2rem));
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--bg);
    color: var(--ink);
}
.lightbox::backdrop { background: rgb(0 0 0 / .72); }
.lightbox img { width: 100%; max-height: 74vh; object-fit: contain; background: #d5cfc4; border-radius: 12px; }
.lightbox button {
    margin-bottom: .6rem;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 2.5rem;
    align-items: start;
}
.legal-nav {
    position: sticky;
    top: calc(var(--nav-h) + 1.2rem);
}
.legal-nav ul { list-style: none; margin: 1rem 0 0; padding: 0; }
.legal-nav li { margin: .35rem 0; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a[aria-current="page"],
.legal-nav a:hover { color: var(--ink); }

.miss {
    padding: calc(var(--nav-h) + 4rem) 0 5rem;
}
.miss-num {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(6rem, 18vw, 11rem);
    line-height: .8;
    color: var(--brand);
}

/* --------------------------------------------------------------------------
   Estreito
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
    .svc-grid,
    .benefits,
    .cards { grid-template-columns: 1fr 1fr; }
    .benefits { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .nav-toggle { display: grid; }
    .nav-links {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: var(--nav-h);
        flex-direction: column;
        align-items: flex-start;
        gap: .9rem;
        padding: 1rem 1.25rem 1.3rem;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
    }
    .nav-links.is-open { display: flex; }
    .story,
    .svc-board,
    .assist,
    .split-head,
    .legal-layout,
    .form-grid,
    .kit-grid { grid-template-columns: 1fr; }
    .photos figure:first-child { margin-top: 0; }
    .assist-count,
    .assist-label { text-align: left; }
    .legal-nav { position: static; }
    .svc-grid,
    .cards { grid-template-columns: 1fr; }
    .card:last-child,
    .card-wide { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
    .mouse-wheel { animation: none; }
}

@keyframes ticker {
    to { transform: translateX(-50%); }
}
@keyframes mouse-wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    70%, 100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* --------------------------------------------------------------------------
   Parágrafos
   Os parágrafos são <div class="p"> e não <p>, para que o Safari não abra
   a página no Modo de Leitura. :where() mantém a especificidade a zero,
   como a de um <p>, para que .kicker, .lede, etc. continuem a mandar.
   -------------------------------------------------------------------------- */
:where(.p) { margin-block: 1em; }

/* --------------------------------------------------------------------------
   Links para boodbe.io (js/boodbe/modules/brand-links.js)
   O texto fica igual ao que o rodeia; ao passar o rato aparece "Visite".
   -------------------------------------------------------------------------- */
.brand-link {
    position: relative;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.brand-link::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translate(-50%, 4px);
    padding: .3rem .6rem;
    border-radius: 6px;
    background: #0b0f10;
    color: #f6f3ec;
    font: 500 .75rem/1.2 "Outfit", system-ui, sans-serif;
    letter-spacing: .02em;
    text-transform: none;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 20;
}
[data-theme="dark"] .brand-link::after { background: #f6f3ec; color: #0b0f10; }
.brand-link:hover::after,
.brand-link:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* Abertura: o texto só aparece com a letra certa (theme-init.js tira .fonts-wait). */
.hero-copy .kicker,
.hero-copy .display { transition: opacity .35s ease; }
.fonts-wait .hero-copy .kicker,
.fonts-wait .hero-copy .display { opacity: 0; }

/* --------------------------------------------------------------------------
   Títulos pequenos das secções ("SOBRE O", "PRESENÇA GLOBAL", …)
   Mesmo desenho do boodbe.io — letra mono, traço e número "01 —", na cor
   #86BFBE. A numeração é automática, pela ordem em que aparecem em cada
   página; o "Olá e bem-vindo" da abertura não conta.
   -------------------------------------------------------------------------- */
main { counter-reset: kicker; }
main .kicker:not(.hero-copy .kicker) {
    counter-increment: kicker;
    display: inline-flex;
    align-items: center;
    gap: .55em;
    color: #86BFBE;
    font-family: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}
/* No tema claro o #86BFBE lê-se mal: o boodbe.io usa o mesmo tom, mais escuro. */
[data-theme="light"] main .kicker:not(.hero-copy .kicker) { color: #4e8e92; }
main .kicker:not(.hero-copy .kicker)::before {
    content: counter(kicker, decimal-leading-zero) " —";
    padding-left: 36px;
    background: linear-gradient(currentColor, currentColor) left center / 28px 1px no-repeat;
    white-space: nowrap;
}

/* Rodapé: "© 2009–2026 [ícone] bood.be® (boodbe.io®) — Todos os direitos
   reservados." numa só linha. A regra global img { display: block } partia-a
   em três; o ícone volta a ser parte do texto. */
.copyright .copyright-icon { display: inline-block; }
@media (min-width: 720px) {
    .copyright { white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   Parcerias (partials/sections/partners.php) — o desenho do boodbe.io
   -------------------------------------------------------------------------- */
.partners .display { margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.partner-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.partner-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    min-height: 200px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    color: var(--ink);
    text-decoration: none;
    transition: border-color .3s ease, transform .5s cubic-bezier(.2, .8, .2, 1);
}
.partner-card:hover,
.partner-card:focus-visible { border-color: var(--accent); transform: translateY(-4px); }
.partner-wordmark { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.02em; }
.partner-logo {
    display: block;
    max-height: 42px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    max-width: calc(100% - 32px);   /* afastado do ícone de link externo */
}
.partner-logo--dark { display: none; }
[data-theme="dark"] .partner-logo--light { display: none; }
[data-theme="dark"] .partner-logo--dark { display: block; }
[data-theme="dark"] .partner-logo--invert-dark { filter: invert(1) hue-rotate(180deg); }
.partner-card .p { margin: 0; font-size: .95rem; color: var(--muted); }
.partner-ext { position: absolute; top: 26px; right: 26px; opacity: .4; transition: opacity .3s ease, transform .3s ease, color .3s ease; }
.partner-card:hover .partner-ext { opacity: 1; color: var(--accent); transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { .partner-card, .partner-ext { transition: none; } }
