/* Grupo Fantome · estètica editorial: nit, línia daurada, serif gran, angles rectes */
:root {
  color-scheme: dark;
  --bg: #0d0e12;
  --bg-2: #12141b;
  --surface: #161922;
  --ink: #efe8d8;
  --muted: #a49d8c;
  --line: #2b2a27;
  --red: #dec08a;            /* acció principal: or */
  --red-2: #f0d7a6;
  --red-soft: #2a2416;
  --green: #4c6fb3;          /* modalitat B: blau nit clar */
  --green-2: #3a5a99;
  --green-soft: #182238;
  --gold: #c9a35a;
  --gold-ink: #dec08a;
  --gold-light: #dec08a;
  --gold-soft: #2a2416;
  --ok: #8fc29a; --warn: #e3b55b; --warn-soft: #2b2414; --err: #f08a80; --err-soft: #2e1714;
  --focus: #9cc0ff;
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --font-title: 'Instrument Serif', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, sans-serif;
  --font-label: 'Syne', 'Instrument Sans', sans-serif;
}
body { background: var(--bg); }
h1, h2, h3, h4, .brand-ed { font-weight: 400; letter-spacing: -.005em; color: #f6efe0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
a { color: var(--gold-light); }
a:hover { color: #fff; }
.eyebrow { color: var(--gold); letter-spacing: .28em; font-weight: 600; font-size: .72rem; }
.eyebrow::before { content: "✦  "; }

/* capçalera */
.site-header { background: rgba(13, 14, 18, .92); border-bottom: 1px solid var(--line); }
.brand-mark rect { fill: transparent; stroke: var(--gold); stroke-width: 1.5; }
.brand-city { color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; }
.logo-ph { border-color: #4a463d; color: var(--muted); border-radius: 0; }
.lang { border-color: var(--line); background: transparent; border-radius: 0; }
.lang button { border-radius: 0; color: var(--muted); }
.lang button[aria-pressed="true"] { background: transparent; color: var(--gold-light); box-shadow: inset 0 -2px 0 var(--gold-light); }
.mainnav a { border-radius: 0; color: var(--ink); letter-spacing: .04em; }
.mainnav a:hover { background: transparent; color: var(--gold-light); }
.mainnav a[aria-current="page"] { background: transparent; color: var(--gold-light); box-shadow: inset 0 -1px 0 var(--gold-light); font-weight: 500; }
.demo-banner { background: #000; color: #b5ad9b; }

/* portada: pantalla completa, titular enorme, il·lustració a sang */
.hero { background: #041e50; padding: 0; min-height: min(88vh, 860px); display: flex; align-items: stretch; border-bottom: 1px solid var(--gold); }
.hero .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 0; align-items: stretch; width: 100%; }
.hero .hero-in > div:first-child { padding: clamp(40px, 7vw, 110px) clamp(16px, 4vw, 56px) clamp(32px, 5vw, 64px) 0; display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.6rem); line-height: .98; color: #f6efe0; margin-bottom: .3em; }
.hero h1 em { color: var(--gold-light); font-style: italic; font-weight: 400; display: block; }
.hero .lead { color: #cdc5b3; max-width: 34ch; }
.hero .eyebrow { color: var(--gold-light); }
.hero-art { aspect-ratio: auto; border-radius: 0; box-shadow: none; background: #041e50; min-height: 420px; border-left: 1px solid rgba(222, 192, 138, .35); }
.hero-art img { object-position: center top; }
.counters { border-top: 1px solid rgba(222, 192, 138, .35); padding-top: 20px; margin-top: 32px; }
.counter b { font-family: var(--font-title); font-weight: 400; color: var(--gold-light); font-size: 2.6rem; }
.counter span, .hero .small, .hero .muted { color: #b9b19f; }
@media (max-width: 860px) {
  .hero .hero-in { grid-template-columns: 1fr; }
  .hero-art { margin: 0 !important; }
  .hero .hero-in > div:first-child { padding: 32px 0; }
  .hero-art { max-width: none; aspect-ratio: 4 / 3; order: -1; border-left: 0; border-bottom: 1px solid rgba(222, 192, 138, .35); width: 100%; }
}

/* botons: rectes; principal en or */
.btn { border-radius: 0; letter-spacing: .06em; text-transform: uppercase; font-size: .82rem; font-weight: 600; }
.btn-primary { background: var(--gold-light); color: #0d0e12; }
.btn-primary:hover { background: #f0d7a6; color: #0d0e12; }
.btn-ghost, .btn-soft { background: transparent; color: var(--ink); border-color: #4a463d; }
.btn-ghost:hover, .btn-soft:hover { background: transparent; color: var(--gold-light); border-color: var(--gold-light); }
.btn-green { background: var(--green); color: #fff; }

/* seccions i targetes */
.section--tint { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card { background: var(--surface); border-color: var(--line); border-radius: 0; }
.mod-card .mod-letter { color: var(--gold-light); font-weight: 400; }
.prize b, .t-date, .kpi .k-value, .channel .big { font-weight: 400; color: var(--gold-light); }
.timeline li { border-color: var(--line); }

/* formularis i elements amb blanc fix */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="url"], input[type="number"], select, textarea { background: #0f1117; color: var(--ink); border-color: #3a3832; border-radius: 0; }
.icon-btn { background: transparent; border-radius: 0; }
.pin { border-color: #0d0e12; }
.toast { background: var(--gold-light); color: #0d0e12; }

/* mapa fosc */
.leaflet-container { background: #0d0e12; }
.leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(1.05) sepia(.25) hue-rotate(185deg); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--surface); color: var(--ink); border-radius: 0; }

/* panell i peu */
.admin-bar { background: #000; border-bottom: 1px solid var(--gold); }
.site-footer { background: #000; border-top: 1px solid var(--gold); }
.foot-title { color: var(--gold-light); }
table th { color: var(--gold-light); }

/* tipografia de disseny */
h1, h2, h3, .brand-ed, .counter b, .prize b, .t-date, .kpi .k-value, .mod-card .mod-letter, .channel .big { font-family: var(--font-title); font-weight: 400; }
h1 { letter-spacing: -.02em; }
h2 { letter-spacing: -.015em; }
h3 { font-size: 1.45rem; }
.hero h1 { font-size: clamp(3.4rem, 8.4vw, 7.6rem); line-height: .92; }
.eyebrow, .btn, .brand-city, .mainnav a, .lang button, th, .demo-pill, label, .small.muted b { font-family: var(--font-label); }
.mainnav a { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.btn { letter-spacing: .14em; font-weight: 700; }
.brand-ed { font-size: 1.25rem; }

/* elements que usaven --ink com a fons (ara és clar) */
.otp-demo { background: #000; border: 1px solid var(--gold); color: var(--ink); border-radius: 0; }
.otp-demo p { color: #cfc6b2; }
.stepper li { border-radius: 0; font-family: var(--font-label); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; }
.stepper li[aria-current="step"] { background: var(--gold-light); color: #0d0e12; }
.stepper li.done { background: var(--green-soft); color: #c7d6f5; }
.skip, .skip:focus { background: var(--gold-light); color: #0d0e12; }
.notice { border-radius: 0; }
.notice-info { background: #1d1a12; border-color: #5c4d2c; }
.notice-ok { background: #13201a; border-color: #2f5a44; color: #a9dcb8; }
.notice-err { border-color: #6b2c27; }
.notice-warn { border-color: #6b5420; color: #f0d08c; }
.steps li { border-radius: 0; }
.steps li::before { border-radius: 0; background: transparent; border: 1px solid var(--gold); color: var(--gold-light); font-family: var(--font-title); font-weight: 400; font-size: 1.2rem; }
