/* WARA PETRO — site stylesheet v2
   Tokens mirror the WARA design system (tokens.json). Dark is the primary theme. */

:root, [data-theme="dark"] {
  --bg: #0b0b0c;
  --surface: #111113;
  --surface-raised: #18181b;
  --surface-sunken: #070708;
  --card: #1c1c20;
  --line: #2a2a2f;
  --line-strong: #6a6a74;
  --ink: #f5f1e8;
  --ink-2: #cfc9bc;
  --muted: #a39d90;
  --gold: #c9a45c;
  --gold-text: #d8b56d;
  --gold-hover: #e2c27a;
  --gold-soft: #2a2215;
  --on-gold: #14110a;
  --maroon: #8e1b1b;
  --emerald: #1f6b45;
  --signal-red: #f0877b;
  --signal-green: #6fcf97;
  --focus: #e2c27a;
  --scrim: rgba(7, 7, 8, 0.72);
  --header-bg: rgba(11, 11, 12, 0.82);
  --footer-bg: #070708;
  --footer-ink: #f5f1e8;
  --footer-muted: #a39d90;
  --shadow-card: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 40px -24px rgba(0,0,0,.8);
  --shadow-pop: 0 24px 60px -20px rgba(0,0,0,.85);
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f3ec;
  --surface: #ffffff;
  --surface-raised: #fbf9f4;
  --surface-sunken: #ece7dc;
  --card: #ffffff;
  --line: #e2dccf;
  --line-strong: #8f8674;
  --ink: #15130f;
  --ink-2: #3a362e;
  --muted: #625c50;
  --gold: #c9a45c;
  --gold-text: #86621a;
  --gold-hover: #b58f45;
  --gold-soft: #f3ead6;
  --on-gold: #14110a;
  --maroon: #8e1b1b;
  --emerald: #1f6b45;
  --signal-red: #a3261b;
  --signal-green: #1d6b3f;
  --focus: #86621a;
  --scrim: rgba(11, 11, 12, 0.62);
  --header-bg: rgba(246, 243, 236, 0.86);
  --footer-bg: #111113;
  --footer-ink: #f5f1e8;
  --footer-muted: #a39d90;
  --shadow-card: 0 1px 2px rgba(21,19,15,.05), 0 16px 32px -20px rgba(21,19,15,.22);
  --shadow-pop: 0 24px 60px -24px rgba(21,19,15,.35);
  color-scheme: light;
}

:root {
  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 24px;
  --space-6: 32px; --space-7: 48px; --space-8: 64px; --space-9: 96px; --space-10: 128px;
  --radius-sm: 6px; --radius-md: 12px; --radius-lg: 20px; --radius-pill: 999px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tricolor: linear-gradient(90deg, var(--maroon) 0 33.3%, var(--gold) 33.3% 66.6%, var(--emerald) 66.6%);
}

@font-face { font-family: "Instrument Serif"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Instrument Serif"; font-style: italic; font-weight: 400; font-display: swap; src: url("/assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.65 var(--font-sans); font-feature-settings: "lnum", "tnum" 0;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold); color: var(--on-gold); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--on-gold); padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1.3 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin: 0 0 var(--space-4); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--tricolor); flex: none; }
.display { font-family: var(--font-display); font-size: clamp(46px, 6.2vw, 92px); line-height: .96; letter-spacing: -.02em; }
.h1 { font-family: var(--font-display); font-size: clamp(42px, 5.4vw, 76px); line-height: 1; letter-spacing: -.015em; }
.h2 { font-family: var(--font-display); font-size: clamp(34px, 4vw, 56px); line-height: 1.04; letter-spacing: -.01em; }
.h3 { font: 700 20px/1.3 var(--font-sans); letter-spacing: -.01em; }
.h4 { font: 700 16px/1.35 var(--font-sans); }
.display em, .h1 em, .h2 em { font-style: italic; color: var(--gold-text); }
.lede { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.small { font-size: 14px; }
.prose p { color: var(--ink-2); font-size: 17px; line-height: 1.75; max-width: 68ch; }

/* ---------- buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 22px; border-radius: var(--radius-pill); border: 1px solid transparent; font: 700 14.5px/1 var(--font-sans); letter-spacing: .01em; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--on-gold); }
.btn-primary:hover { background: var(--gold-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-text); }
.btn-on-photo { background: rgba(255,255,255,.08); color: #f5f1e8; border-color: rgba(245,241,232,.45); backdrop-filter: blur(6px); }
.btn-on-photo:hover { border-color: #e2c27a; color: #e2c27a; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 13.5px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 15.5px; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--gold-text); border-bottom: 1px solid transparent; }
.link-arrow:hover { border-color: currentColor; }

/* ---------- topbar ---------- */
.topbar { background: var(--surface-sunken); border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-msg { display: flex; gap: 14px; align-items: center; }
.topbar-msg .sep { opacity: .5; }
.topbar-tools { display: flex; gap: 6px; align-items: center; margin-left: auto; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 2px; }
.lang a { padding: 6px 10px; border-radius: var(--radius-pill); color: var(--muted); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--on-gold); font-weight: 600; }
.theme-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-btn:hover { color: var(--gold-text); border-color: var(--gold); }
.theme-btn svg { width: 16px; height: 16px; }
.theme-btn .i-sun { display: none; }
[data-theme="dark"] .theme-btn .i-sun { display: block; }
[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--tricolor); opacity: .9; }
.header-row { display: flex; align-items: center; gap: var(--space-5); min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-word { display: grid; line-height: 1; }
.brand-word b { font: 400 30px/0.9 var(--font-display); letter-spacing: .12em; color: var(--gold-text); }
.brand-word small { font: 500 9.5px/1.2 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14.5px; color: var(--ink); background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-link:hover, .nav-item:focus-within > .nav-link, .nav-link[aria-current="page"] { color: var(--gold-text); }
.nav-link[aria-current="page"] { background: var(--gold-soft); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.nav-item:hover .chev, .nav-item:focus-within .chev { transform: rotate(180deg); }
.mega { position: absolute; z-index: 5; top: calc(100% + 10px); left: 50%; translate: -50% 0; min-width: 560px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-pop); padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-item:hover .mega, .nav-item:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-md); }
.mega a:hover { background: var(--card); }
.mega a b { font-weight: 700; font-size: 15px; color: var(--ink); }
.mega a span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.mega a:hover b { color: var(--gold-text); }
.header-cta { margin-left: 8px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.burger svg { width: 20px; height: 20px; }

@media (max-width: 1080px) {
  .burger { display: inline-grid; }
  .header-cta { display: none; }
  .nav { position: absolute; top: calc(100% + 2px); left: 0; right: 0; height: calc(100dvh - 78px); z-index: 59; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--gutter) 32px; background: var(--bg); overflow-y: auto; margin: 0; }
  .nav.open { display: flex; }
  .nav-link { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; font-size: 18px; border-bottom: 1px solid var(--line); }
  .nav-link[aria-current="page"] { background: none; }
  .mega { position: static; translate: none; min-width: 0; opacity: 1; visibility: visible; transform: none; display: none; grid-template-columns: 1fr; box-shadow: none; border: 0; background: none; padding: 4px 0 12px; }
  .nav-item.open .mega { display: grid; }
  .nav-item:hover .chev { transform: none; }
  .nav-item.open .chev { transform: rotate(180deg); }
  .mega a { padding: 10px 4px; }
  .nav .nav-mobile-cta { display: flex; margin-top: 20px; }
  .topbar-msg { display: none; }
}
.nav-mobile-cta { display: none; }
@media (max-width: 520px) {
  .brand-word small { display: none; }
  .brand img { width: 40px; height: 40px; }
  .brand-word b { font-size: 26px; }
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #f5f1e8; min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; background: #0b0b0c; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,7,8,.55) 0%, rgba(7,7,8,.35) 35%, rgba(7,7,8,.92) 100%), linear-gradient(90deg, rgba(7,7,8,.85) 0%, rgba(7,7,8,.2) 70%); }
.hero-inner { width: 100%; padding-top: var(--space-10); padding-bottom: var(--space-8); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: var(--space-8); align-items: end; }
.hero .eyebrow { color: #e2c27a; }
.hero .display { color: #f5f1e8; }
.hero .display em { color: #e2c27a; }
.hero .lede { color: #ddd6c7; margin: var(--space-5) 0 var(--space-6); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-emblem { justify-self: end; width: min(300px, 100%); filter: drop-shadow(0 30px 50px rgba(0,0,0,.6)); }
.hero-strip { position: relative; border-top: 1px solid rgba(245,241,232,.18); background: rgba(7,7,8,.55); backdrop-filter: blur(10px); }
.hero-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.hero-stat { padding: 22px 24px 22px 0; }
.hero-stat + .hero-stat { padding-left: 24px; border-left: 1px solid rgba(245,241,232,.14); }
.hero-stat b { display: block; font: 400 44px/1 var(--font-display); color: #e2c27a; }
.hero-stat span { display: block; margin-top: 8px; font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: #c9c2b3; }
.hero-wrap { display: flex; flex-direction: column; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding-top: var(--space-9); }
  .hero-emblem { display: none; }
  .hero-strip .container { grid-template-columns: 1fr 1fr; }
  .hero-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-stat:nth-child(n+3) { border-top: 1px solid rgba(245,241,232,.14); }
}

/* ---------- page hero (inner pages) ---------- */
.page-hero { position: relative; isolation: isolate; color: #f5f1e8; background: #0b0b0c; overflow: hidden; }
.page-hero .hero-media img { opacity: .55; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,8,.94) 0%, rgba(7,7,8,.72) 55%, rgba(7,7,8,.4) 100%); }
.page-hero .container { padding-top: var(--space-9); padding-bottom: var(--space-8); }
.page-hero .h1 { color: #f5f1e8; max-width: 18ch; }
.page-hero .h1 em { color: #e2c27a; }
.page-hero .lede { color: #ddd6c7; margin-top: var(--space-5); }
.page-hero .eyebrow { color: #e2c27a; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font: 500 12px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: #bdb5a5; margin-bottom: var(--space-6); }
.crumbs a:hover { color: #e2c27a; }
.crumbs span[aria-hidden] { opacity: .5; }
.page-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-6); }
.chip-photo { padding: 8px 14px; border: 1px solid rgba(245,241,232,.3); border-radius: var(--radius-pill); font: 500 12px/1 var(--font-mono); letter-spacing: .06em; color: #e8e2d4; }

/* ---------- sections ---------- */
.section { padding: var(--space-9) 0; }
.section-tight { padding: var(--space-8) 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: var(--space-7); align-items: end; margin-bottom: var(--space-7); }
.section-head .lede { margin: 0; }
.section-head.stack { grid-template-columns: 1fr; gap: var(--space-4); max-width: 820px; }
@media (max-width: 900px) { .section-head { grid-template-columns: 1fr; gap: var(--space-4); } .section { padding: var(--space-8) 0; } }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-8); align-items: start; }
.split.center { align-items: center; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid-2, .grid-3, .grid-4, .split { grid-template-columns: 1fr; gap: var(--space-5); } }

/* ---------- cards ---------- */
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-card); transition: border-color .2s var(--ease), transform .2s var(--ease); }
a.card:hover, .card.is-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; }
.card .num { font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--gold-text); margin-bottom: var(--space-5); display: block; }
.card .foot { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 12.5px/1.4 var(--font-mono); color: var(--ink-2); }
.icon-tile { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--gold-soft); color: var(--gold-text); display: grid; place-items: center; margin-bottom: var(--space-5); }
.icon-tile svg { width: 24px; height: 24px; }

/* bento divisions */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 240px; gap: var(--space-4); }
.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--card); padding: var(--space-6); display: flex; flex-direction: column; justify-content: flex-end; color: var(--ink); transition: border-color .2s var(--ease); }
.tile:hover { border-color: var(--gold); }
.tile.photo { color: #f5f1e8; border-color: transparent; }
.tile.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile.photo:hover img { transform: scale(1.04); }
.tile.photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,7,8,.05) 20%, rgba(7,7,8,.88) 100%); }
.tile .tag { font: 500 11px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); margin-bottom: 10px; }
.tile.photo .tag { color: #e2c27a; }
.tile .t { font: 400 32px/1.05 var(--font-display); }
.tile p { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); max-width: 44ch; }
.tile.photo p { color: #ddd6c7; }
.tile .go { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .75; transition: all .2s var(--ease); }
.tile:hover .go { opacity: 1; background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .row-2 { grid-row: span 2; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 220px; } .span-2, .span-3, .span-4 { grid-column: span 2; } .bento .span-2.half { grid-column: span 1; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; } .span-2, .span-3, .span-4, .bento .span-2.half { grid-column: span 1; } .row-2 { grid-row: span 1; } }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.stat { padding: var(--space-6); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font: 400 52px/1 var(--font-display); color: var(--gold-text); }
.stat span { display: block; margin-top: 10px; font: 500 11.5px/1.45 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 800px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---------- badges & chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); font: 600 10.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--ink-2); }
.badge-gold { border-color: var(--gold); color: var(--gold-text); background: var(--gold-soft); }
.badge-controlled { border-color: var(--signal-red); color: var(--signal-red); }
.badge-controlled::before { content: "!"; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--signal-red); color: var(--bg); font-size: 10px; }
.badge-ok { border-color: var(--signal-green); color: var(--signal-green); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: transparent; color: var(--ink-2); font: 600 13.5px/1 var(--font-sans); cursor: pointer; }
.chip:hover { border-color: var(--gold); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust .container { display: flex; align-items: center; gap: var(--space-6); min-height: 76px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.trust-label { font: 500 11.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-items { display: flex; flex-wrap: wrap; gap: 10px 28px; font: 700 15px/1 var(--font-sans); letter-spacing: .04em; color: var(--ink-2); }

/* ---------- spec table (catalogue) ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: var(--space-5); }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search input { width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--card); color: var(--ink); font: 500 15px var(--font-sans); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.search svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--muted); }
.spec { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.1fr) auto; gap: var(--space-5); padding: 22px var(--space-6); align-items: center; border-top: 1px solid var(--line); }
.spec-row:first-child { border-top: 0; }
.spec-head { background: var(--surface-raised); padding-top: 14px; padding-bottom: 14px; font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.spec-name { font: 700 17px/1.35 var(--font-sans); color: var(--ink); }
.spec-name .badge { margin-top: 8px; }
.spec-val { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; }
.spec-qty { font: 500 13px/1.5 var(--font-mono); color: var(--ink); }
.spec-foot { padding: 16px var(--space-6); border-top: 1px solid var(--line); background: var(--surface-raised); font: 500 12.5px/1.5 var(--font-mono); color: var(--ink-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spec-row[hidden] { display: none; }
.spec-empty { padding: 28px var(--space-6); color: var(--muted); }
@media (max-width: 860px) {
  .spec-row { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .spec-head { display: none; }
  .spec-row .btn { justify-self: start; margin-top: 8px; }
  .spec-qty::before { content: attr(data-label) " · "; color: var(--muted); }
}

/* ---------- steps / chain ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: s; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card); }
.step { padding: var(--space-6); position: relative; }
.step + .step { border-left: 1px solid var(--line); }
.step .n { font: 400 56px/1 var(--font-display); color: var(--gold-text); }
.step .h3 { margin: var(--space-5) 0 10px; }
.step p { color: var(--ink-2); font-size: 15px; margin: 0; }
.step .bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--line); }
.step .bar i { display: block; height: 100%; background: var(--gold); }
@media (max-width: 1000px) { .steps { grid-template-columns: 1fr 1fr; } .step:nth-child(3) { border-left: 0; } .step:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .steps { grid-template-columns: 1fr; } .step + .step { border-left: 0; border-top: 1px solid var(--line); } }

.proc { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.proc-row { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-6); border-top: 1px solid var(--line); }
.proc-row:first-child { border-top: 0; }
.proc-name { font: 400 38px/1 var(--font-display); color: var(--ink); }
.proc-desc { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 0; margin: 0; padding: 0; list-style: none; }
.chain li { display: inline-flex; align-items: center; }
.chain li + li::before { content: ""; width: 18px; height: 1px; background: var(--gold); margin: 0 6px; }
.chain span { padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); font: 500 12.5px/1 var(--font-mono); color: var(--ink); white-space: nowrap; }
.chain li:first-child span { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
@media (max-width: 860px) { .proc-row { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- terms (definition rows) ---------- */
.terms { border-top: 1px solid var(--line); margin: 0; }
.term { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-6); padding: var(--space-5) 0; border-bottom: 1px solid var(--line); }
.term dt { font: 600 12px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); padding-top: 3px; }
.term dd { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
@media (max-width: 760px) { .term { grid-template-columns: 1fr; gap: 8px; } }

/* ---------- details / FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 700 18px/1.4 var(--font-sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 28px/0.8 var(--font-display); color: var(--gold-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 22px; max-width: 72ch; }

/* ---------- map ---------- */
.map-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.map-card svg { display: block; width: 100%; height: auto; }
.map-dots circle { fill: var(--line-strong); }
.map-route { fill: none; stroke: var(--gold); stroke-width: 1.4; stroke-dasharray: 4 5; opacity: .85; }
.map-pin { fill: var(--gold); }
.map-pin-ring { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .5; }
.map-origin { fill: var(--signal-green); }
.map-hq { fill: var(--signal-red); }
.map-label { font: 600 11px var(--font-mono); letter-spacing: .06em; fill: var(--ink); }
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; padding: 16px var(--space-5); border-top: 1px solid var(--line); font: 500 12px/1 var(--font-mono); color: var(--ink-2); }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: -1px; }
.list-rows { border-top: 1px solid var(--line); }
.list-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.list-row b { font: 400 26px/1.1 var(--font-display); }
.list-row span { font: 500 12.5px/1.4 var(--font-mono); color: var(--muted); text-align: right; }

/* ---------- media ---------- */
.figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-sunken); }
.figure img { width: 100%; height: 100%; object-fit: cover; }
.figure figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(7,7,8,.72); color: #f5f1e8; font: 500 11.5px/1 var(--font-mono); letter-spacing: .06em; }
.ratio-43 { aspect-ratio: 4 / 3; } .ratio-169 { aspect-ratio: 16 / 9; } .ratio-45 { aspect-ratio: 4 / 5; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: var(--space-8); color: #f5f1e8; background: #0b0b0c; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: var(--space-6); align-items: center; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .5; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,7,8,.95), rgba(7,7,8,.55)); }
.cta-band::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--tricolor); }
.cta-band .h2 { color: #f5f1e8; }
.cta-band .h2 em { color: #e2c27a; }
.cta-band p { color: #ddd6c7; margin: 14px 0 0; max-width: 56ch; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: var(--space-6); } }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); box-shadow: var(--shadow-card); }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font: 600 11.5px/1.3 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.field label .req { color: var(--gold-text); }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); font: 500 15.5px/1.4 var(--font-sans); transition: border-color .2s, box-shadow .2s; }
.textarea { min-height: 130px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.hint { font-size: 13px; color: var(--muted); }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
.form-msg { font-size: 14.5px; color: var(--ink-2); min-height: 1.4em; }
.form-msg.ok { color: var(--signal-green); } .form-msg.err { color: var(--signal-red); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.seg { display: inline-flex; padding: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-raised); gap: 4px; }
.seg label { position: relative; font: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-block; padding: 10px 16px; border-radius: var(--radius-pill); font: 600 14px/1 var(--font-sans); color: var(--ink-2); cursor: pointer; }
.seg input:checked + span { background: var(--gold); color: var(--on-gold); }
.seg input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 700px) { .form { grid-template-columns: 1fr; padding: var(--space-5); } }

.contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.contact-item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: center; }
.contact-item .icon-tile { width: 44px; height: 44px; margin: 0; }
.contact-item small { display: block; font: 600 11px/1.3 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-item b { font-weight: 700; font-size: 16px; }

/* ---------- glossary ---------- */
.gloss { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.gloss-item { padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--card); }
.gloss-item dt { font: 400 30px/1 var(--font-display); color: var(--gold-text); }
.gloss-item dd { margin: 10px 0 0; color: var(--ink-2); font-size: 14.5px; }
.gloss-item[hidden] { display: none; }
@media (max-width: 900px) { .gloss { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gloss { grid-template-columns: 1fr; } }

/* ---------- notice ---------- */
.notice { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: var(--space-5); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); font-size: 14.5px; color: var(--ink-2); }
.notice b { color: var(--ink); }
.notice .icon-tile { margin: 0; width: 40px; height: 40px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.check-list li::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft) no-repeat center / 12px; border: 1px solid var(--gold); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.5 5 9l5-6' fill='none' stroke='%23c9a45c' stroke-width='1.8'/%3E%3C/svg%3E"); }

/* ---------- footer ---------- */
.footer { background: var(--footer-bg); color: var(--footer-muted); padding: var(--space-9) 0 var(--space-6); position: relative; }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--tricolor); }
.footer-top { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--space-7); padding-bottom: var(--space-7); border-bottom: 1px solid #2a2a2f; }
.footer .brand-word b { color: #d8b56d; }
.footer .brand-word small { color: #a39d90; }
.footer p { font-size: 14.5px; color: #cfc9bc; max-width: 38ch; margin-top: var(--space-5); }
.footer h4 { font: 600 11.5px/1.3 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: #d8b56d; margin: 0 0 var(--space-4); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: #cfc9bc; font-size: 14.5px; }
.footer a:hover { color: #e2c27a; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: var(--space-5); font: 500 11.5px/1.6 var(--font-mono); letter-spacing: .06em; color: #a39d90; }
.footer-credits { margin-top: 12px; font: 400 11px/1.7 var(--font-mono); color: #8f897d; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- reveal ---------- */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: var(--space-9) var(--gutter); }
.nf .display { font-size: clamp(96px, 18vw, 220px); color: var(--gold-text); }

/* Sugestão de idioma */
.lang-suggest{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:560px;margin:0 auto;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--surface,var(--bg,#fff));color:var(--ink);border:1px solid var(--line-strong);box-shadow:0 8px 30px rgba(0,0,0,.35)}
.lang-suggest span{flex:1 1 200px;font-size:14px}
.lang-suggest .btn{--h:40px;padding:0 16px;font-size:13px}.lang-suggest button.btn{background:transparent;color:var(--ink);border-color:var(--line-strong)}
