/* ===================================================================
   PASAZC — CSS do site público.
   Identidade oficial da marca PASAZC (medidas no banner):
   amarelo #FED201, azul #01378D, branco #FFFFFF.
   Mobile-first. Container 92%.
   =================================================================== */

:root {
  /* Paleta — IDENTIDADE PASAZC */
  --ink: #0A1944;
  --ink-soft: #2E3B6B;
  --paper: #FFFFFF;
  --paper-dim: #F4F6FA;
  --paper-raised: #FFFFFF;
  --rule: #DDE2EC;
  --rule-soft: #ECEFF5;
  --navy: #01378D;
  --navy-900: #002878;
  --navy-800: #01307E;
  --navy-50: #E6EAF4;
  --gold: #FED201;
  --gold-600: #E8BE00;
  --gold-50: #FFF8D9;
  --sand: #FFF4BF;
  --muted: #5C6682;
  --success: #2F7A3A;
  --danger: #B23A3A;

  /* Raios */
  --radius-sm: 16px;
  --radius: 24px;
  --radius-lg: 40px;
  --radius-xl: 64px;

  /* Sombras executivas */
  --shadow-sm: 0 2px 8px -4px rgba(12, 19, 58, .12);
  --shadow-md: 0 12px 28px -16px rgba(12, 19, 58, .22), 0 2px 6px -2px rgba(12, 19, 58, .08);
  --shadow-lg: 0 28px 56px -24px rgba(12, 19, 58, .28), 0 4px 12px -4px rgba(12, 19, 58, .10);
  --shadow-gold: 0 20px 40px -20px rgba(254, 210, 1, .55);

  /* Tipografia — mobile-first (base = 17px) */
  --f-display: "Fraunces", "Playfair Display", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-body: 17px;
  --fs-small: 14px;
  --fs-micro: 12px;

  /* Container */
  --wrap-width: 92%;
  --wrap-max: 1440px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F3F5FB;
    --ink-soft: #C9D0E4;
    --paper: #0A1230;
    --paper-dim: #111A42;
    --paper-raised: #16214E;
    --rule: #26315F;
    --rule-soft: #1A2450;
    --navy: #4E6ED8;
    --navy-900: #335BC9;
    --navy-800: #3F62D1;
    --navy-50: #16214E;
    --gold: #FED201;
    --gold-600: #E8BE00;
    --sand: #16214E;
    --muted: #8A93B5;
    --shadow-sm: 0 2px 8px -4px rgba(0, 0, 0, .4);
    --shadow-md: 0 12px 28px -16px rgba(0, 0, 0, .5), 0 2px 6px -2px rgba(0, 0, 0, .3);
    --shadow-lg: 0 28px 56px -24px rgba(0, 0, 0, .6), 0 4px 12px -4px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --ink: #F3F5FB;
  --ink-soft: #C9D0E4;
  --paper: #0A1230;
  --paper-dim: #111A42;
  --paper-raised: #16214E;
  --rule: #26315F;
  --rule-soft: #1A2450;
  --navy: #4E6ED8;
  --navy-900: #335BC9;
  --navy-800: #3F62D1;
  --navy-50: #16214E;
  --gold: #FED201;
  --gold-600: #E8BE00;
  --sand: #16214E;
  --muted: #8A93B5;
  color-scheme: dark;
}

/* ============== RESET + BASE ============== */
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern", "liga", "calt";
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--navy-900); }

/* ============== WRAP (92% da tela) ============== */
.wrap {
  width: var(--wrap-width);
  max-width: var(--wrap-max);
  margin: 0 auto;
}

/* ============== NAV — mobile-first ============== */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklab, var(--paper) 94%, transparent);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 12px;
  min-width: 0;
}
.nav-row > .btn-primary { display: none; }       /* mobile: só hambúrguer */
.brand {
  display: inline-flex; align-items: baseline;
  gap: 10px; color: var(--navy);
  min-width: 0; flex: 1 1 auto;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.brand-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(32px, 7vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.brand-tag {
  display: none;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
}
.nav-links a { color: var(--ink-soft); padding: 6px 0; position: relative; transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a:hover::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

/* Botão */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md), inset 0 -2px 0 var(--navy-900);
}
.btn-primary:hover { transform: translateY(-2px); background: var(--navy-800); box-shadow: var(--shadow-lg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 20%, transparent);
}
.btn-ghost:hover { border-color: var(--ink); background: color-mix(in oklab, var(--ink) 4%, transparent); }
.btn-gold {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: var(--shadow-gold), inset 0 -2px 0 var(--gold-600);
}
.btn-gold:hover { background: var(--gold-600); color: #fff; transform: translateY(-2px); }

/* ============== HERO — mobile-first ============== */
.hero {
  position: relative;
  padding: 48px 0 72px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--navy);
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 11vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 20px 0 28px;
  color: var(--ink);
  text-wrap: balance;
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute;
  left: -3%; right: -3%;
  bottom: 6%;
  height: 16%;
  background: var(--gold);
  z-index: -1;
  border-radius: 999px;
  opacity: .5;
}

.hero p.lead {
  font-size: clamp(17px, 2.3vw, 21px);
  color: var(--ink-soft);
  max-width: 48ch;
  margin: 0 0 32px;
  line-height: 1.55;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-cta .btn { padding: 16px 28px; font-size: 16px; }

.hero-meta {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.meta-item .k {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(34px, 7vw, 44px);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.025em;
  line-height: 1;
}
.meta-item .v {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

/* Hero decorative panel */
.hero-panel {
  position: relative;
  aspect-ratio: 0.95;
  width: 100%;
  min-width: 0;
}
.hero-frame {
  position: absolute;
  inset: 0;
  border: 3px solid var(--gold);
  border-radius: var(--radius-xl);
  transform: rotate(-3deg);
}
.hero-ground {
  position: absolute;
  inset: 20px;
  background: var(--navy);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.hero-ground svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
.hero-wordmark {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(60px, 18vw, 180px);
  letter-spacing: -0.045em;
  color: #fff;
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 0.9;
}
.hero-wordmark small {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.32em;
  margin-top: 16px;
  color: var(--gold);
}
.hero-badge {
  position: absolute;
  right: -8px;
  top: 28px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(6deg);
  box-shadow: var(--shadow-md);
}
.hero-ribbon {
  position: absolute;
  left: -8px;
  bottom: 48px;
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 14px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  max-width: 260px;
}
.hero-ribbon .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--success) 20%, transparent);
  flex: none;
}
.hero-ribbon span { font-size: 13px; color: var(--ink); font-weight: 600; line-height: 1.4; }

/* ============== STRIP ============== */
.strip {
  background: var(--ink);
  color: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  position: relative;
  line-height: 1.2;
}
.strip-track {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 56px;
  padding-left: 56px;      /* evita texto cortado no início */
  white-space: nowrap;
  animation: slide 90s linear infinite;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  width: max-content;
  will-change: transform;
}
.strip-track > span {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 56px;
}
.strip-track > span::after {
  content: "✦";
  color: var(--gold);
  font-style: normal;
  font-size: 0.7em;
}
@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .strip-track { animation: none; } }

/* ============== SECTIONS ============== */
section { padding: 80px 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(38px, 8vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  margin: 14px 0 0;
  text-wrap: balance;
}
.section-head h2 em { font-style: italic; color: var(--navy); }
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 48ch;
  line-height: 1.55;
}

/* ============== SERVIÇOS — mobile-first (1 coluna) ============== */
.svc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.svc {
  position: relative;
  background: var(--paper-raised);
  border: 1.5px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.svc:hover {
  transform: translateY(-4px);
  border-color: var(--navy);
  box-shadow: var(--shadow-lg);
}
.svc-num {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  color: var(--gold-600);
  font-size: 20px;
  letter-spacing: 0.04em;
}
.svc-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  color: var(--navy);
  background: var(--navy-50);
  border-radius: 16px;
  margin: 14px 0 18px;
  transition: background .3s;
}
.svc:hover .svc-icon { background: var(--gold-50); color: var(--navy-900); }
.svc h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  text-wrap: balance;
  color: var(--ink);
}
.svc p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 22px;
  flex: 1;
  line-height: 1.55;
}
.svc .more {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}
.svc .more::after { content: "→"; transition: transform .25s; font-size: 18px; }
.svc:hover .more::after { transform: translateX(6px); }

/* ============== QUEM ATENDEMOS ============== */
.quem { background: var(--ink); color: var(--paper); }
.quem .eyebrow { color: var(--gold); }
.quem .eyebrow::before { background: var(--gold); }
.quem .section-head h2 { color: #fff; }
.quem .section-head h2 em { color: var(--gold); }
.quem .section-head p { color: color-mix(in oklab, var(--paper) 75%, transparent); }

.segments {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.seg {
  padding: 26px 24px;
  border: 1px solid color-mix(in oklab, var(--paper) 18%, transparent);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--paper) 5%, transparent);
  transition: background .25s, border-color .25s;
}
.seg:hover {
  background: color-mix(in oklab, var(--paper) 10%, transparent);
  border-color: color-mix(in oklab, var(--gold) 60%, transparent);
}
.seg h4 {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(24px, 3vw, 28px);
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: -0.015em;
}
.seg p {
  margin: 0;
  font-size: 15px;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  line-height: 1.55;
}

/* ============== SOBRE ============== */
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
.sobre-lead {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 0 0 28px;
  text-wrap: balance;
}
.sobre-lead em { font-style: italic; color: var(--navy); }
.sobre-grid p { color: var(--ink-soft); font-size: 17px; line-height: 1.65; }

.mvv { display: grid; gap: 18px; }
.mvv-card {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.mvv-card .tag {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 800;
  display: block;
  margin-bottom: 10px;
}
.mvv-card h5 {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.015em;
}
.mvv-card p { margin: 0; font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; }

.values {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.pill {
  display: inline-flex;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper-raised);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ============== CONTACTOS ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
.contact-info { display: grid; gap: 0; align-content: start; }
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.contact-row .label {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.contact-row .val {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.6vw, 26px);
  color: var(--ink);
  letter-spacing: -0.015em;
  font-weight: 500;
}
.contact-row .val small {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-size: 14px;
  color: var(--ink-soft);
  margin-top: 4px;
  letter-spacing: 0;
  font-weight: 400;
}

.form {
  background: var(--paper-raised);
  border: 1px solid var(--rule-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
}
.form h3 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: var(--ink);
}
.form h3 em { font-style: italic; color: var(--navy); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 14px 16px;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--navy) 15%, transparent);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form .btn-gold { width: 100%; justify-content: center; margin-top: 8px; padding: 16px; font-size: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.honeypot { position: absolute; left: -9999px; height: 0; width: 0; overflow: hidden; }

.flash {
  padding: 16px 20px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1.5px solid;
}
.flash-success { background: color-mix(in oklab, var(--success) 10%, transparent); border-color: var(--success); color: var(--success); }
.flash-danger  { background: color-mix(in oklab, var(--danger) 10%, transparent);  border-color: var(--danger);  color: var(--danger); }
.flash-warning { background: color-mix(in oklab, var(--gold) 20%, transparent);    border-color: var(--gold-600); color: var(--gold-600); }

/* ============== SERVIÇO DETALHE ============== */
.svc-detail { padding: 56px 0 80px; }
.svc-detail .back {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--muted); font-size: 14px; font-weight: 700;
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.svc-detail .back::before { content: "←"; }
.svc-detail .back:hover { color: var(--navy); }
.svc-detail h1 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(44px, 8vw, 84px);
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 12px 0 24px;
  text-wrap: balance;
}
.svc-detail .lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--ink-soft);
  max-width: 60ch;
  margin: 0 0 48px;
  line-height: 1.55;
}
.svc-detail .body { max-width: 70ch; font-size: 17px; color: var(--ink); line-height: 1.75; }
.svc-detail .body ul { padding-left: 24px; margin: 24px 0; }
.svc-detail .body li { margin-bottom: 12px; color: var(--ink-soft); }
.svc-detail .body h3 { font-family: var(--f-display); font-style: italic; color: var(--navy); margin-top: 36px; font-size: 26px; }
.svc-detail .cta-box {
  margin-top: 64px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
}
.svc-detail .cta-box h3 { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 32px); margin: 0; color: #fff; }

/* ============== FOOTER ============== */
.foot {
  background: var(--navy-900);
  color: color-mix(in oklab, #fff 85%, transparent);
  padding: 64px 0 32px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in oklab, #fff 15%, transparent);
}
.foot .brand { color: #fff; }
.foot .brand-mark { font-size: 48px; color: #fff; }
.foot .brand-tag { color: var(--gold); margin-top: 10px; display: block; font-size: 12px; letter-spacing: 0.2em; }
.foot-bio {
  margin-top: 20px;
  font-size: 15px;
  color: color-mix(in oklab, #fff 70%, transparent);
  max-width: 36ch;
  line-height: 1.6;
}
.foot h6 {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 800;
  margin: 4px 0 18px;
}
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot ul a, .foot ul li { color: color-mix(in oklab, #fff 80%, transparent); font-size: 15px; }
.foot ul a:hover { color: #fff; }
.foot-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  font-size: 13px;
  color: color-mix(in oklab, #fff 60%, transparent);
}
.foot-socials { display: flex; gap: 12px; }
.foot-socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, #fff 25%, transparent);
  border-radius: 50%;
  color: #fff;
  transition: background .25s, border-color .25s, transform .2s;
}
.foot-socials a:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); transform: translateY(-2px); }

/* ======================================================
   RESPONSIVE — subir a partir de mobile
   ====================================================== */

/* ≥ 640px : tablet pequeno */
@media (min-width: 640px) {
  :root { --wrap-width: 92%; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .segments { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 16px; }
  .brand-tag { display: inline; }
  section { padding: 96px 0; }
}

/* ≥ 820px : tablet / laptop */
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .nav-row > .btn-primary { display: inline-flex; }
  .hero { padding: 80px 0 112px; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; gap: 72px; }
  .section-head { grid-template-columns: 1.4fr 1fr; gap: 56px; }
  .sobre-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .contact-row { flex-direction: row; gap: 20px; }
  .contact-row .label { width: 130px; flex: none; padding-top: 4px; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .segments { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 36px; }
}

/* ≥ 1100px : desktop */
@media (min-width: 1100px) {
  :root { --wrap-width: 90%; }
  .svc-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .segments { grid-template-columns: repeat(4, 1fr); }
  .hero-meta { gap: 32px; }

  /* cantos assimétricos originais só a partir de 4 colunas */
  .svc:nth-child(4n+1) { border-top-left-radius: var(--radius-xl); }
  .svc:nth-child(4n+2) { border-top-right-radius: 14px; border-bottom-left-radius: var(--radius-xl); }
  .svc:nth-child(4n+3) { border-top-right-radius: var(--radius-xl); }
  .svc:nth-child(4n)   { border-bottom-right-radius: var(--radius-xl); }
}

/* ≥ 1400px : desktop grande */
@media (min-width: 1400px) {
  :root { --wrap-width: 88%; --wrap-max: 1520px; }
}

/* ============== ACESSIBILIDADE + ONE-PAGE EXTRAS ============== */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Scroll offset para âncoras não ficarem debaixo da nav sticky */
section[id] { scroll-margin-top: 90px; }

/* Skip link para screen readers / teclado */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

/* Focus visible em TUDO que é interactivo */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* Mobile menu toggle */
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--paper-raised);
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s;
}
.menu-toggle:hover { border-color: var(--navy); }

[hidden] { display: none !important; }
.mobile-menu {
  background: var(--paper-raised);
  border-top: 1px solid var(--rule-soft);
  padding: 16px;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-md);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a {
  padding: 14px 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 12px;
  transition: background .18s;
}
.mobile-menu a:hover { background: var(--paper-dim); }
.mobile-menu .btn { justify-content: center; margin-top: 8px; }
body.menu-open { overflow: hidden; }

/* ============== PORTEFÓLIO ============== */
.portefolio { background: var(--paper-dim); }
.port-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.port-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform .3s ease, box-shadow .3s ease;
}
.port-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.port-item::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.port-pattern { position: absolute; inset: 0; opacity: .35; }
.port-pattern svg { width: 100%; height: 100%; }

/* Variantes de cor */
.port-v1 { background: linear-gradient(140deg, #1E2F8F 0%, #141F5F 100%); color: var(--gold); }
.port-v2 { background: linear-gradient(160deg, #3B2A14 0%, #6B4817 100%); color: #FBE7B4; }
.port-v3 { background: linear-gradient(160deg, #C8970E 0%, #E8B423 100%); color: #141F5F; }
.port-v3::before { background: linear-gradient(180deg, transparent 0%, transparent 40%, rgba(20,31,95,.5) 100%); }
.port-v4 { background: linear-gradient(160deg, #1F3A2B 0%, #325E46 100%); color: #D4F0DF; }
.port-v5 { background: linear-gradient(160deg, #4A1E3A 0%, #7A3A5E 100%); color: #F0CFE1; }
.port-v6 { background: linear-gradient(160deg, #2A3360 0%, #5F6687 100%); color: #FBF7EE; }

.port-tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  z-index: 2;
  color: #fff;
}
.port-v3 .port-tag { background: rgba(20,31,95,.35); }

.port-inner { position: relative; z-index: 2; }
.port-inner h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.015em;
  color: #fff;
  text-wrap: balance;
}
.port-v3 .port-inner h3 { color: #141F5F; }
.port-inner p { margin: 0; font-size: 14px; opacity: .9; font-weight: 500; }

.port-note {
  margin-top: 32px;
  color: var(--muted);
  font-size: 14px;
  font-style: italic;
}

/* ============== BACK TO TOP ============== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 48px; height: 48px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s, background .2s;
  z-index: 30;
}
.back-to-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--navy-800); transform: translateY(-2px); }

/* ============== SOBRE SECTION TITLE ============== */
.sobre { background: var(--paper); }
.mvv-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--navy);
  letter-spacing: -0.015em;
}

/* ============== CONTACTOS SECTION BG ============== */
.contactos { background: var(--paper); }

/* ============== RESPONSIVE EXTRAS ============== */
@media (min-width: 640px) {
  .port-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .port-item { min-height: 280px; padding: 28px; }
}

@media (min-width: 820px) {
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
}

@media (min-width: 1100px) {
  .port-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, minmax(260px, 1fr));
    gap: 20px;
  }
  .port-item:nth-child(1) {
    grid-row: span 2;
    min-height: 540px;
  }
  .port-item:nth-child(1) .port-inner h3 { font-size: 32px; }
}

/* ============== HERO COM BANNER DA MARCA ============== */
.hero {
  position: relative;
  background-image:
    linear-gradient(135deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,.85) 55%, rgba(255,255,255,.65) 100%),
    url('/assets/img/banner.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    background-image:
      linear-gradient(135deg, rgba(10,18,48,.86) 0%, rgba(10,18,48,.92) 55%, rgba(10,18,48,.80) 100%),
      url('/assets/img/banner.jpg');
  }
}
:root[data-theme="dark"] .hero {
  background-image:
    linear-gradient(135deg, rgba(10,18,48,.86) 0%, rgba(10,18,48,.92) 55%, rgba(10,18,48,.80) 100%),
    url('/assets/img/banner.jpg');
}

/* No hero com banner, o painel decorativo fica com borda mais marcada */
.hero-frame { border-width: 4px; }
.hero-ground { box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.1); }

/* ============== FLASH SUCESSO ORÇAMENTO ============== */
.orc-success {
  background: linear-gradient(135deg, var(--success) 0%, #1F5A2A 100%);
  color: #fff;
  padding: 24px 0;
  animation: slideDown .4s ease-out;
}
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.orc-success-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 24px 28px;
  backdrop-filter: blur(8px);
}
.orc-success-icon {
  flex: none;
  width: 56px; height: 56px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
}
.orc-success-content { flex: 1; min-width: 0; }
.orc-success-title {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 28px);
  color: #fff;
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}
.orc-success-ref {
  font-size: 15px;
  color: rgba(255,255,255,.95);
  margin-bottom: 10px;
  font-weight: 500;
}
.orc-success-ref strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 18px;
  background: var(--gold);
  color: var(--navy-900);
  padding: 4px 12px;
  border-radius: 8px;
  letter-spacing: 0.04em;
  font-weight: 800;
  margin-left: 6px;
  display: inline-block;
}
.orc-success-content p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 14.5px;
  line-height: 1.5;
}
.orc-success-close {
  flex: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  opacity: .7;
  transition: opacity .2s;
}
.orc-success-close:hover { opacity: 1; }

/* ============== BOTÃO WHATSAPP FLUTUANTE ============== */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 84px; /* acima do back-to-top */
  background: #25D366;
  color: #fff;
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .6), 0 6px 14px -6px rgba(0,0,0,.2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  z-index: 30;
  transition: transform .2s, box-shadow .25s, background .2s;
  animation: waPulse 2.8s ease-in-out infinite;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: #1EBE5A;
  box-shadow: 0 16px 36px -12px rgba(37, 211, 102, .7), 0 8px 18px -6px rgba(0,0,0,.25);
  animation: none;
}
.wa-float span { line-height: 1; }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .6), 0 6px 14px -6px rgba(0,0,0,.2); }
  50% { box-shadow: 0 10px 28px -10px rgba(37, 211, 102, .6), 0 6px 14px -6px rgba(0,0,0,.2), 0 0 0 10px rgba(37, 211, 102, 0); }
}
@media (prefers-reduced-motion: reduce) { .wa-float { animation: none; } }

/* Em mobile só mostra ícone */
@media (max-width: 640px) {
  .wa-float {
    padding: 14px;
    right: 16px;
    bottom: 74px;
  }
  .wa-float span { display: none; }
  .back-to-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* Mobile: orc-success compacto */
@media (max-width: 640px) {
  .orc-success-card { flex-direction: column; padding: 20px; gap: 14px; }
  .orc-success-icon { width: 48px; height: 48px; }
  .orc-success-ref strong { margin-left: 0; margin-top: 6px; display: inline-block; }
  .orc-success-close { position: absolute; top: 16px; right: 16px; }
  .orc-success-card { position: relative; }
}

/* ============== MODAL DE RESPOSTA DO FORMULÁRIO ============== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}
body.modal-open { overflow: hidden; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--ink) 65%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fadeIn .25s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-card {
  position: relative;
  background: var(--paper-raised);
  border-radius: var(--radius-lg);
  padding: 44px 36px 36px;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  animation: modalPop .35s cubic-bezier(.2,.9,.3,1.1);
  border: 1px solid var(--rule-soft);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal[data-kind="success"] .modal-card { border-top: 4px solid var(--success); }
.modal[data-kind="error"]   .modal-card { border-top: 4px solid var(--danger); }

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--muted);
  border-radius: 50%;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.modal-close:hover { background: var(--paper-dim); color: var(--ink); }

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.modal[data-kind="success"] .modal-icon {
  background: color-mix(in oklab, var(--success) 15%, transparent);
  color: var(--success);
}
.modal[data-kind="error"] .modal-icon {
  background: color-mix(in oklab, var(--danger) 15%, transparent);
  color: var(--danger);
}

.modal-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  margin: 0 0 16px;
  color: var(--ink);
  text-wrap: balance;
}

.modal-ref {
  background: var(--gold-50);
  border: 2px dashed var(--gold-600);
  border-radius: 14px;
  padding: 16px;
  margin: 0 0 20px;
}
.modal-ref-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 6px;
}
.modal-ref strong {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--navy-900);
  font-weight: 800;
  letter-spacing: 0.05em;
  display: block;
}

.modal-message {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-actions .btn { padding: 12px 22px; }

@media (max-width: 480px) {
  .modal-card { padding: 36px 24px 28px; border-radius: var(--radius); }
  .modal-icon { width: 64px; height: 64px; }
  .modal-actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .modal-backdrop, .modal-card { animation: none; }
}

/* ============== REVISÃO MOBILE-FIRST (viewports pequenos) ============== */

/* Strip: isolar do fluxo e evitar overflow horizontal do body */
.strip { contain: layout paint; }

/* 360 e menor: ajustes finos */
@media (max-width: 400px) {
  :root { --wrap-width: 94%; }

  .brand-mark { font-size: 28px; }

  /* Hero mais compacto */
  .hero { padding: 36px 0 56px; }
  .hero h1 { font-size: clamp(38px, 11vw, 48px); margin: 16px 0 22px; }
  .hero p.lead { font-size: 15.5px; margin-bottom: 26px; }
  .hero-meta { gap: 16px; margin-top: 36px; padding-top: 22px; }
  .hero-meta .meta-item { min-width: 0; }
  .meta-item .k { font-size: 30px; }
  .meta-item .v { font-size: 10.5px; letter-spacing: 0.1em; }

  /* CTAs stackados */
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 14px 20px; font-size: 15px; width: 100%; justify-content: center; }

  /* Seções: menos padding vertical */
  section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: clamp(32px, 9vw, 40px); }

  /* Cards: padding menor */
  .svc { padding: 22px 20px; min-height: 0; }
  .svc h3 { font-size: 20px; }

  /* Portefólio */
  .port-item { min-height: 200px; padding: 20px; }
  .port-tag { top: 14px; left: 14px; padding: 6px 12px; font-size: 10.5px; }

  /* Sobre */
  .sobre-lead { font-size: 22px; }
  .mvv-card { padding: 22px 20px; }

  /* Contactos */
  .form { padding: 24px 20px; }
  .contact-row .val { font-size: 19px; }

  /* Painel do hero mais pequeno */
  .hero-panel { max-width: 340px; margin: 16px auto 0; }
  .hero-badge { padding: 8px 14px; font-size: 10.5px; right: 0; top: 16px; }
  .hero-ribbon { padding: 10px 14px; left: 0; bottom: 36px; max-width: 220px; }
  .hero-ribbon span { font-size: 12px; }

  /* Rodapé mais compacto */
  .foot { padding: 48px 0 24px; }
  .foot .brand-mark { font-size: 36px; }
  .foot-grid { gap: 28px; padding-bottom: 36px; }
  .foot-legal { font-size: 12px; }

  /* Strip mais discreta em viewport pequeno */
  .strip { padding: 16px 0; }
  .strip-track { font-size: 20px; gap: 40px; padding-left: 40px; }
  .strip-track > span { gap: 40px; }

  /* Pills da sobre mais pequenas */
  .pill { padding: 8px 14px; font-size: 12.5px; }

  /* Values smaller gap */
  .values { gap: 6px; }
}

/* ===== Fix do navegador em telemóveis muito pequenos ===== */
/* Garantir que elementos fixados não sobrepõem conteúdo */
@media (max-width: 400px) {
  .back-to-top { width: 40px; height: 40px; right: 12px; bottom: 12px; }
  .wa-float { right: 12px; bottom: 60px; padding: 12px; }
  .wa-float svg { width: 24px; height: 24px; }
}

/* Nav: aumentar botão hambúrguer para touch confortável */
.menu-toggle { width: 44px; height: 44px; flex: none; }

/* Secções com âncora: scroll-margin maior em mobile (nav sticky é mais alta) */
@media (max-width: 820px) {
  section[id] { scroll-margin-top: 72px; }
}


/* ============== LOGO (substituindo o wordmark CSS) ============== */
.brand-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
@media (max-width: 400px) {
  .brand-logo { height: 36px; }
}
@media (min-width: 820px) {
  .brand-logo { height: 52px; }
}

.brand-logo-foot {
  height: 56px;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(30deg);
  /* fallback simples: usar o logo colorido mesmo */
  filter: none;
}
.brand-foot { display: inline-block; margin-bottom: 14px; }

/* ============== SOBRE EYEBROW GRANDE ============== */
#sobre .eyebrow {
  font-size: 30px;
  letter-spacing: 0.08em;
  gap: 16px;
  color: var(--navy);
}
#sobre .eyebrow::before { width: 48px; height: 3px; }
@media (max-width: 640px) {
  #sobre .eyebrow { font-size: 22px; gap: 12px; }
  #sobre .eyebrow::before { width: 36px; height: 2px; }
}

/* ============== PORTEFÓLIO COM GALERIA ============== */
.port-item { position: relative; overflow: hidden; cursor: default; }
.port-clickable { cursor: pointer; }
.port-clickable:hover { transform: translateY(-6px); }
.port-clickable:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.port-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform .5s ease;
}
.port-clickable:hover .port-cover { transform: scale(1.05); }
.port-item:has(.port-cover)::before {
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.4) 55%, rgba(0,0,0,.8) 100%);
}

.port-count {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(8px);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
}
.port-count::before {
  content: "";
  width: 14px; height: 14px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 7h4l2-2h6l2 2h4v12H3V7zm9 10a4 4 0 100-8 4 4 0 000 8z' fill='black'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 7h4l2-2h6l2 2h4v12H3V7zm9 10a4 4 0 100-8 4 4 0 000 8z' fill='black'/></svg>") no-repeat center / contain;
}

/* ============== LIGHTBOX GALERIA ============== */
.gallery {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.gallery-backdrop {
  position: absolute; inset: 0;
  background: rgba(10, 18, 48, .96);
  backdrop-filter: blur(10px);
}
.gallery-close {
  position: absolute;
  top: 14px; right: 18px;
  width: 48px; height: 48px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  z-index: 3;
  transition: background .2s;
}
.gallery-close:hover { background: rgba(255,255,255,.2); }

.gallery-stage {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 0;
}
.gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: calc(100% - 140px);
  max-height: 100%;
}
.gallery-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
  background: #000;
}
.gallery-caption {
  color: rgba(255,255,255,.75);
  font-size: 14px;
  margin-top: 12px;
  text-align: center;
  max-width: 60ch;
}
.gallery-nav {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s, transform .2s;
  flex: none;
}
.gallery-nav:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); transform: scale(1.08); }

.gallery-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px 0;
  color: rgba(255,255,255,.85);
  font-size: 14px;
  font-weight: 600;
}
.gallery-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 18px;
  color: var(--gold);
}
.gallery-counter {
  font-family: ui-monospace, monospace;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 640px) {
  .gallery { padding: 12px; }
  .gallery-figure { max-width: 100%; }
  .gallery-stage { gap: 0; }
  .gallery-nav {
    position: absolute;
    top: 50%;
    width: 44px; height: 44px;
    font-size: 24px;
    transform: translateY(-50%);
    z-index: 3;
  }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-img { max-height: calc(100vh - 180px); }
  .gallery-footer { padding: 12px 8px 0; }
  .gallery-title { font-size: 15px; }
}

/* ============== HERO RADIANTE (v9) ============== */
/* Fundo com gradientes radiais do amarelo-sol da marca + banner como textura */
.hero {
  position: relative;
  background:
    /* Glow amarelo no canto superior direito */
    radial-gradient(ellipse 80% 70% at 85% 10%, rgba(254, 210, 1, 0.55) 0%, rgba(254, 210, 1, 0) 60%),
    /* Glow amarelo mais quente no canto inferior esquerdo */
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(254, 210, 1, 0.35) 0%, rgba(254, 210, 1, 0) 55%),
    /* Toque azul no meio para profundidade */
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(1, 55, 141, 0.06) 0%, rgba(1, 55, 141, 0) 70%),
    /* Banner geométrico atrás, muito atenuado */
    linear-gradient(135deg, rgba(255,255,255,.90) 0%, rgba(255,255,255,.75) 50%, rgba(255,255,255,.90) 100%),
    url('/assets/img/banner.jpg') center/cover no-repeat,
    /* Base branca */
    #FFFFFF;
}

/* Dark mode: glow mais contido, mantém azul profundo */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero {
    background:
      radial-gradient(ellipse 80% 70% at 85% 10%, rgba(254, 210, 1, 0.25) 0%, rgba(254, 210, 1, 0) 60%),
      radial-gradient(ellipse 60% 50% at 10% 90%, rgba(254, 210, 1, 0.18) 0%, rgba(254, 210, 1, 0) 55%),
      linear-gradient(135deg, rgba(10,18,48,.90) 0%, rgba(10,18,48,.95) 50%, rgba(10,18,48,.85) 100%),
      url('/assets/img/banner.jpg') center/cover no-repeat,
      #0A1230;
  }
}
:root[data-theme="dark"] .hero {
  background:
    radial-gradient(ellipse 80% 70% at 85% 10%, rgba(254, 210, 1, 0.25) 0%, rgba(254, 210, 1, 0) 60%),
    radial-gradient(ellipse 60% 50% at 10% 90%, rgba(254, 210, 1, 0.18) 0%, rgba(254, 210, 1, 0) 55%),
    linear-gradient(135deg, rgba(10,18,48,.90) 0%, rgba(10,18,48,.95) 50%, rgba(10,18,48,.85) 100%),
    url('/assets/img/banner.jpg') center/cover no-repeat,
    #0A1230;
}

/* Halo dourado atrás do painel do hero */
.hero-glow {
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(circle at 50% 50%, rgba(254, 210, 1, 0.45) 0%, rgba(254, 210, 1, 0.15) 35%, rgba(254, 210, 1, 0) 70%);
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
  animation: heroPulse 6s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) { .hero-glow { animation: none; } }

/* Painel passa a ser branco com o logo real */
.hero-ground {
  position: absolute;
  inset: 20px;
  background: #FFFFFF;
  border: 1px solid rgba(1, 55, 141, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 18px;
  padding: 10% 8%;
  box-shadow:
    0 30px 70px -20px rgba(1, 55, 141, 0.25),
    0 10px 30px -10px rgba(254, 210, 1, 0.35),
    inset 0 0 0 1px rgba(255,255,255,.8);
  z-index: 1;
}

/* Logo real no painel */
.hero-logo {
  max-width: 100%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
.hero-tagline {
  font-family: var(--f-body);
  font-weight: 700;
  font-size: clamp(11px, 1.1vw, 14px);
  letter-spacing: 0.32em;
  color: var(--navy);
  text-transform: uppercase;
  text-align: center;
}

/* Moldura dourada continua a envolver o painel */
.hero-frame {
  position: absolute;
  inset: 0;
  border: 4px solid var(--gold);
  border-radius: var(--radius-xl);
  transform: rotate(-3deg);
  z-index: 0;
  box-shadow: 0 0 40px -5px rgba(254, 210, 1, 0.5);
}

/* O conteúdo do hero fica por cima do glow */
.hero .wrap { position: relative; z-index: 2; }

@media (max-width: 400px) {
  .hero-ground { padding: 12% 8%; gap: 12px; }
  .hero-logo { max-height: 68%; }
  .hero-tagline { letter-spacing: 0.24em; font-size: 10.5px; }
}

/* Badge e ribbon por cima do painel branco */
.hero-badge, .hero-ribbon { z-index: 3; }
.hero-badge { box-shadow: 0 10px 28px -10px rgba(254, 210, 1, .6), 0 4px 12px -4px rgba(0,0,0,.2); }
.hero-ribbon { box-shadow: 0 20px 40px -20px rgba(1, 55, 141, .4), 0 4px 12px -4px rgba(0,0,0,.15); }
