/* ==========================================================================
   Arevix Energy — shared stylesheet
   Direction: "Voltage White" — crisp, minimal, institutional.
   Ink near-black on white, single indigo-blue accent, generous whitespace.
   ========================================================================== */

:root {
  --bg: #FFFFFF;
  --surface: #F5F6F3;
  --surface-strong: #ECEEE9;
  --ink: #14140F;
  --muted: #6B7268;
  --accent: #3446C9;
  --accent-ink: #FFFFFF;
  --line: #E4E6E0;

  --font-display: 'Sora', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Manrope', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { margin: 0; }

.shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 100;
  border-radius: 0 0 4px 0;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  z-index: 40;
}
.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; flex: none; }
.brand .logo-mark { height: 72px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.05rem;
  background: var(--ink);
  color: #fff !important;
  border-radius: 2px;
  font-size: 0.76rem !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.nav-cta:hover { background: var(--accent); }

.nav-toggle { display: none; }

/* the desktop nav needs ~940px of viewport before the CTA starts wrapping
   (the EN/PT switch added ~80px in September 2026) */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: none;
    cursor: pointer;
  }
  .nav-toggle svg { width: 18px; height: 18px; }
  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 1.75rem 2rem;
  }
  .site-header.nav-open .nav-cta { margin-top: 0.4rem; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.5rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: var(--accent); }
.btn.secondary { border-color: var(--line); color: var(--ink); }
.btn.secondary:hover { border-color: var(--accent); color: var(--accent); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* ---------- eyebrow / labels ---------- */
.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

/* ---------- hero (home) ---------- */
.hero { padding: 4.5rem 0 3.5rem; }
.hero .headline {
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 1.06;
  max-width: 18em;
  margin-bottom: 1.3rem;
}
.hero .subhead {
  max-width: 42em;
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 2.1rem;
}

/* ---------- stat strip ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 2.8rem;
}
.stat { background: #fff; padding: 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.35rem; }
.stat .v {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  font-variant-numeric: tabular-nums;
}
.stat .l {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
}
.stat-row.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 700px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- generic section ---------- */
.section { padding: 4.5rem 0; }
.section.bordered-top { border-top: 1px solid var(--line); }
.section.tinted { background: var(--surface); }
.section-head { max-width: 40em; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.9rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; line-height: 1.65; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.2rem;
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

/* ---------- modular block diagram ---------- */
.blocks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.block {
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
}
.block.on { border: 1.5px solid var(--accent); color: var(--accent); background: #EEF0FB; }
.blocks-caption { font-size: 0.8rem; color: var(--muted); margin-top: 0.9rem; }

/* ---------- cards: team / partners ---------- */
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
@media (max-width: 700px) { .card-grid, .card-grid.cols-3 { grid-template-columns: 1fr; } }

.person-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.6rem;
  background: #fff;
}
.person-card .avatar,
.person-card .avatar-img {
  width: 72px; height: 72px;
  border-radius: 4px;
  margin-bottom: 1.1rem;
  display: block;
}
.person-card .avatar {
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}
.person-card .avatar-img { object-fit: cover; }
.person-card .name { font-weight: 700; font-size: 1.05rem; margin-bottom: 0.15rem; }
.person-card .role { color: var(--accent); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.7rem; }
.person-card .bio { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.stake-tag { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.03em; color: var(--accent); background: rgba(52,70,201,0.08); padding: 0.18rem 0.55rem; border-radius: 2px; margin: -0.35rem 0 0.9rem; }

/* ---------- branch cards (Consultancy / BESS Development) ---------- */
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
@media (max-width: 760px) { .branch-grid { grid-template-columns: 1fr; } }
.branch-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.branch-card .tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.branch-card h3 { font-size: 1.3rem; font-weight: 700; }
.branch-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.65; }

/* ---------- content photography ---------- */
.figure { margin: 0; }
.figure img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--line); }
.figure-caption { margin-top: 0.85rem; font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
.figure.crop img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 820px) { .figure.crop img { aspect-ratio: 16 / 10; } }

.voltex-logo-mark { height: 80px; width: auto; margin-bottom: 1.3rem; }

/* ---------- annotated Brazil map (Voltex) ---------- */
.map-figure { max-width: 320px; margin-inline: auto; }
.map-frame { background: var(--surface); padding: 1.5rem; border-radius: 4px; }
.map-wrap { position: relative; }
.map-wrap img { width: 100%; height: auto; display: block; border: none; border-radius: 0; }
.map-pin { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 0.32rem; }
.map-pin.pin-left { transform: translate(-100%, -50%); flex-direction: row-reverse; }
.map-pin .dot { width: 8px; height: 8px; min-width: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--accent); }
.map-pin .map-label { font-size: 0.66rem; font-weight: 700; color: var(--ink); background: rgba(255,255,255,0.88); padding: 0.08rem 0.32rem; border-radius: 2px; white-space: nowrap; line-height: 1.4; }

/* ---------- corporate structure org chart (Voltex) ---------- */
.org-chart { display: flex; flex-direction: column; align-items: center; margin-top: 0.4rem; }
.org-parent {
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 1.1rem 2rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(20,20,15,0.05);
}
.org-parent .org-tag { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.35rem; }
.org-parent h3 { font-size: 1.15rem; font-weight: 700; }
.org-shareholders { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.9rem; width: 100%; max-width: 960px; }
.org-shareholder {
  flex: 1 1 160px;
  max-width: 210px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  padding: 0.95rem 1rem;
  text-align: center;
  box-shadow: 0 1px 2px rgba(20,20,15,0.05);
}
.org-shareholder.highlight { border-color: var(--accent); }
.org-shareholder .org-pct { display: block; font-size: 1.05rem; font-weight: 800; color: var(--accent); margin-bottom: 0.3rem; }
.org-shareholder h3 { font-size: 0.8rem; font-weight: 700; line-height: 1.35; }
.org-note { font-size: 0.8rem; color: var(--muted); text-align: center; max-width: 46em; margin: 0.9rem 0 0; }
.org-connector { width: 2px; height: 28px; background: var(--line); }
.org-bar { height: 2px; width: 100%; max-width: 960px; background: var(--line); }
.org-children {
  display: grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap: 0.9rem;
  width: 100%;
  max-width: 960px;
  margin-top: 1.7rem;
}
.org-child {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 0.95rem 0.5rem;
  text-align: center;
}
.org-child::before {
  content: '';
  position: absolute;
  top: -1.7rem;
  left: 50%;
  width: 2px;
  height: 1.7rem;
  background: var(--line);
  transform: translateX(-50%);
}
.org-child-name { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); }
.org-child-state { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 0.25rem; }
@media (max-width: 900px) {
  .org-children { grid-template-columns: repeat(4, minmax(0,1fr)); }
  .org-child::before { display: none; }
}
@media (max-width: 560px) {
  .org-children { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* ---------- capability list (About) ---------- */
.cap-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 700px) { .cap-list { grid-template-columns: 1fr; } }
.cap-item { background: #fff; padding: 1.5rem 1.6rem; }
.cap-item h3 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.cap-item p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }

/* ---------- page header (About / Voltex / Contact) ---------- */
.page-header { padding: 3.6rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.page-header h1 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; margin-bottom: 1rem; }
.page-header p { max-width: 42em; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.2rem; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 4px; padding: 2rem; background: #fff; display: flex; flex-direction: column; gap: 1rem; }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; }
.contact-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.contact-details { margin-top: 1rem; padding-top: 2rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.6rem 2.4rem; }
.contact-details dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 0.25rem; }
.contact-details dd { margin: 0; font-weight: 600; }
.contact-details a { text-decoration: none; color: var(--ink); }
.contact-details a:hover { color: var(--accent); }

/* ---------- disclosure note ---------- */
.note {
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 1rem;
  margin-top: 2rem;
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .shell {
  padding: 2.6rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.footer-brand .logo-mark { height: 44px; width: auto; opacity: 0.85; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); font-size: 0.82rem; }
.footer-links a:hover { color: var(--ink); }
.footer-meta { font-size: 0.78rem; color: var(--muted); width: 100%; padding-top: 1.4rem; margin-top: 0.4rem; border-top: 1px solid var(--line); }

/* ---------- misc ---------- */
.link-arrow { text-decoration: none; font-weight: 600; color: var(--accent); }
.link-arrow:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ==========================================================================
   Large-format imagery — added September 2026
   Palette and type tokens above are unchanged; everything below is layout
   and image treatment only.
   ========================================================================== */

/* ---------- full-bleed photographic hero ---------- */
.hero-photo {
  position: relative;
  isolation: isolate;
  min-height: clamp(520px, 78vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
}
.hero-photo .hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-photo .hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to right, rgba(20,20,15,0.90) 0%, rgba(20,20,15,0.72) 42%, rgba(20,20,15,0.32) 78%, rgba(20,20,15,0.22) 100%),
    linear-gradient(to top, rgba(20,20,15,0.72) 0%, rgba(20,20,15,0.05) 48%);
}
.hero-photo .shell { padding-top: 6rem; padding-bottom: 3.2rem; }
.hero-photo .eyebrow { color: #fff; opacity: 0.72; }
.hero-photo .headline {
  color: #fff;
  font-weight: 700;
  font-size: clamp(2.4rem, 5.6vw, 4.1rem);
  line-height: 1.03;
  max-width: 15em;
  margin-bottom: 1.3rem;
}
.hero-photo .subhead {
  color: rgba(255,255,255,0.82);
  max-width: 40em;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.62;
  margin-bottom: 2.1rem;
}
.hero-photo .btn.primary { background: #fff; color: var(--ink); }
.hero-photo .btn.primary:hover { background: var(--accent); color: #fff; }
.hero-photo .btn.secondary { border-color: rgba(255,255,255,0.45); color: #fff; }
.hero-photo .btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }

/* stat strip sitting directly under a photographic hero */
.stat-row.under-hero { margin-top: 0; border-top: 0; }

/* ---------- full-bleed image band ---------- */
.image-band {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-strong);
}
.image-band img {
  width: 100%;
  height: clamp(300px, 46vw, 620px);
  object-fit: cover;
  display: block;
}
.image-band.short img { height: clamp(220px, 30vw, 400px); }
.image-band figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 4.5rem 0 1.7rem;
  color: rgba(255,255,255,0.94);
  font-size: 0.9rem;
  line-height: 1.5;
  background: linear-gradient(to top, rgba(20,20,15,0.82), rgba(20,20,15,0.45) 45%, rgba(20,20,15,0));
}
.image-band figcaption .inner {
  display: block;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;      /* matches .shell, so captions line up with body copy */
}

/* ---------- half-bleed media split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-media { position: relative; min-height: 100%; }
.split-media img {
  width: 100%;
  height: 100%;
  min-height: clamp(360px, 38vw, 560px);
  object-fit: cover;
  display: block;
}
.split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  padding-inline: clamp(1.75rem, 5vw, 4rem);
}
.split-body > * { max-width: 34em; }
/* align the text column's outer edge with the shell gutter */
.split:not(.reverse) .split-body { padding-right: max(1.75rem, calc((100vw - var(--max-width)) / 2)); }
.split.reverse .split-media { order: 2; }
.split.reverse .split-body  { order: 1; padding-left: max(1.75rem, calc((100vw - var(--max-width)) / 2)); }
.split-caption { font-size: 0.82rem; color: var(--muted); line-height: 1.5; margin-top: 0.85rem; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split.reverse .split-body  { order: 0; }
  .split-media img { height: clamp(300px, 58vw, 480px); min-height: 0; }
  .split-body,
  .split:not(.reverse) .split-body,
  .split.reverse .split-body { padding-inline: 1.75rem; }
}

/* ---------- tall editorial figures ---------- */
.figure.tall img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; height: auto; }
.figure.wide img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; height: auto; }
@media (max-width: 820px) { .figure.tall img { aspect-ratio: 4 / 3; } }

/* ---------- branch cards with imagery ---------- */
.branch-card.with-media { padding: 0; overflow: hidden; }
.branch-card.with-media .card-media { margin: 0; }
.branch-card.with-media .card-media img {
  width: 100%;
  height: auto;              /* beats the HTML height attribute */
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
}
.branch-card.with-media .card-body {
  padding: 1.8rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

/* ---------- large team portraits ---------- */
.person-card.portrait { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.person-card.portrait .portrait-img {
  width: 100%;
  height: auto;              /* beats the HTML height attribute */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
  margin: 0;
  border-radius: 0;
  background: var(--surface-strong);
}
.person-card.portrait .portrait-initials {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  margin: 0;
  border-radius: 0;
}
.person-card.portrait .card-body { padding: 1.5rem 1.6rem 1.8rem; }
.person-card.portrait .name { margin-bottom: 0.15rem; }

/* ---------- dark closing section with the flexibility band ---------- */
.cta-dark {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6.5rem) 0 0;
}
.cta-dark h2, .cta-dark .eyebrow { color: #fff; }
.cta-dark .eyebrow { opacity: 0.66; }
.cta-dark p { color: rgba(255,255,255,0.76); }
.cta-dark .btn.primary { background: #fff; color: var(--ink); }
.cta-dark .btn.primary:hover { background: var(--accent); color: #fff; }
.cta-dark .btn.secondary { border-color: rgba(255,255,255,0.4); color: #fff; }
.cta-dark .btn.secondary:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
.cta-band {
  display: block;
  width: 100%;
  height: auto;              /* scales uniformly — no stretch */
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

/* ---------- annotated sites map (inline SVG) ---------- */
.map-section .sites-map { width: 100%; height: auto; display: block; }
.map-section .map-compact { display: none; }
.map-state-list { display: none; }
.map-wide {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 1.75rem;
}
.map-holder { padding: clamp(0.5rem, 2vw, 1.4rem) 0 0; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2.2rem;
  margin-top: 1.4rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.map-legend .key { display: inline-flex; align-items: center; gap: 0.5rem; }
.map-legend .key .swatch {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--accent);
}

/* ---------- page headers that carry an image ---------- */
.page-header.with-media { border-bottom: 0; padding-bottom: 2.2rem; }

/* the annotated map's leader labels stop being legible on a phone: swap in a
   compact map keyed by state code, with the full names listed underneath */
@media (max-width: 780px) {
  .map-section .map-full { display: none; }
  .map-section .map-compact { display: block; max-width: 440px; margin: 0 auto; }
  .map-state-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 1.6rem;
  }
  .map-state-list .row {
    background: #fff;
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
  }
  .map-state-list .uf {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--accent);
    min-width: 2.1em;
  }
  .map-state-list .nm { font-weight: 600; font-size: 0.92rem; }
  .map-state-list .mw { margin-left: auto; font-size: 0.8rem; color: var(--muted); white-space: nowrap; }
  .map-state-list .grp {
    background: var(--surface-strong);
    padding: 0.5rem 1rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .map-legend { font-size: 0.78rem; gap: 0.5rem 1.2rem; }
}

/* ---------- partner links ---------- */
.plink {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(20, 20, 15, 0.28);
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
.plink:hover { color: var(--accent); text-decoration-color: var(--accent); }
.plink:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* inside the accent-coloured role line, hover the other way so it still reads as a change */
.person-card .role .plink { text-decoration-color: rgba(52, 70, 201, 0.35); }
.person-card .role .plink:hover { color: var(--ink); text-decoration-color: var(--ink); }

/* ---------- language switch (EN / pt-BR) ---------- */
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.nav-lang a { font-size: inherit; letter-spacing: inherit; font-weight: inherit; }
.nav-lang .is-current { color: var(--ink); }
.nav-lang .sep { color: var(--line); }
.footer-lang a { font-weight: 600; }

/* ---------- partner logo row (Voltex corporate structure) ---------- */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: clamp(2.2rem, 6vw, 4rem);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line);
}
.partner-logo { display: inline-flex; align-items: center; flex: none; }
.partner-logo:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 2px; }
/* flex: none matters here - without it the row can squeeze a logo horizontally
   while its height stays fixed, which silently distorts the mark. */
.partner-logo img {
  flex: none;
  width: auto;
  opacity: 0.82;
  transition: opacity 0.18s ease;
}
.partner-logo:hover img,
.partner-logo:focus-visible img { opacity: 1; }
/* heights are set per logo so the marks carry similar visual weight rather than
   the same pixel height - a wide horizontal lockup reads much larger than a
   compact stacked one at equal height. */
.partner-logo.prumo img    { height: 36px; }
.partner-logo.cal img      { height: 42px; }
.partner-logo.agmendes img { height: 56px; }
@media (max-width: 600px) {
  .partner-logos { gap: 1.8rem 2.4rem; }
  .partner-logo.prumo img    { height: 30px; }
  .partner-logo.cal img      { height: 35px; }
  .partner-logo.agmendes img { height: 46px; }
}
