/* ==========================================================================
   NS WIND - DESIGN SYSTEM & STYLESHEET
   Clean, performant, modular CSS architecture.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & DESIGN TOKENS
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --deep: #040F38;
  --teal: #0181C1;
  --green: #0075D8;
  --green-2: #04412D;
  --paper: #f4f9fd;
  --ink: #040F38;
  --muted: #4e657a;
  --line: rgba(1, 129, 193, 0.18);
  --panel: rgba(255, 255, 255, 0.90);
  --font-head: 'Rajdhani', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --header-h: 72px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 12px;
  --shadow-card: 0 10px 26px rgba(4, 15, 56, 0.05);
  --shadow-card-hover: 0 16px 34px rgba(4, 15, 56, 0.10);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
  position: relative;
}

main {
  overflow-x: clip;
  width: 100%;
  position: relative;
}

/* Global Flex/Grid Container Protection (min-w-0 prevention) */
.impact-grid > *,
.equip-grid > *,
.solar-grid > *,
.contact-grid > *,
.geo-presence-grid > *,
.wall > * {
  min-width: 0;
}

.container {
  width: min(1140px, 100%);
  margin: 0 auto;
}

.cinema-section {
  position: relative;
  padding: clamp(3.2rem, 5.5vw, 4.75rem) clamp(1rem, 4vw, 3.5rem);
  overflow: clip;
  isolation: isolate;
}

/* --------------------------------------------------------------------------
   2. TYPOGRAPHY & COMMON ELEMENTS
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  color: var(--deep);
}

h1 {
  font-size: clamp(2.4rem, 4.5vw, 4.5rem);
  line-height: 1;
}

h2 {
  font-size: clamp(1.65rem, 2.8vw + 0.45rem, 3.15rem);
  line-height: 1.05;
}

h1 span,
h2 span,
h3 span {
  color: var(--green);
}

.lead {
  max-width: 650px;
  margin: 0.95rem 0 0;
  color: #244e56;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.65;
  font-weight: 300;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  color: var(--teal);
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
  padding: 0.65rem 1.25rem;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  font: 700 0.9rem var(--font-head);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(0, 117, 216, 0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(0, 117, 216, 0.35);
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--teal);
  color: var(--deep);
  box-shadow: none;
}

.btn.ghost:hover {
  background: rgba(1, 129, 193, 0.08);
  color: var(--teal);
}

/* Top Progress Line */
.progress-line {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--green), var(--teal));
  transform-origin: left;
  pointer-events: none;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.4s var(--ease-out-expo), transform 0.4s var(--ease-out-expo);
}

.reveal.from-left,
.reveal.from-right {
  transform: translate3d(0, 16px, 0);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* --------------------------------------------------------------------------
   3. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem clamp(1rem, 3.5vw, 3.5rem);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s;
  flex-shrink: 0;
  min-height: 44px;
  max-width: calc(100% - 60px);
  overflow: hidden;
  white-space: nowrap;
}

.brand:hover {
  opacity: 0.9;
}

.brand-img {
  height: 46px;
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  color: var(--deep);
  font: 700 0.78rem var(--font-head);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav a:hover {
  border-color: var(--green);
  color: var(--teal);
}

.nav a.nav-partner {
  background: linear-gradient(135deg, rgba(4, 65, 45, 0.15), rgba(1, 129, 193, 0.15));
  border: 1px solid var(--teal);
}

.nav a.nav-partner:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--deep);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.nav-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 39;
  background: rgba(4, 15, 56, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out-expo);
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* --------------------------------------------------------------------------
   4. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  margin-top: var(--header-h);
  min-height: clamp(620px, 88vh, 900px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 6vw, 6rem);
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(
      90deg,
      rgba(4, 15, 56, 0.88) 0%,
      rgba(4, 15, 56, 0.73) 34%,
      rgba(4, 15, 56, 0.30) 63%,
      rgba(4, 15, 56, 0.04) 100%
    ),
    url("../img/fundo.avif")
    center center / cover no-repeat;
}

.hero .container {
  position: relative;
  z-index: 1;
  width: min(1140px, 100%);
  margin-inline: auto;
}

.hero .eyebrow {
  color: #8fd3ff;
}

.hero h1 {
  max-width: 720px;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.99;
  text-wrap: balance;
}

.hero h1 span {
  color: #45b5f4;
}

.hero .lead {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  align-items: center;
}

.hero .btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* --------------------------------------------------------------------------
   5. OPERATIONAL IMPACT
   -------------------------------------------------------------------------- */
.impact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.big-statement {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw + 0.4rem, 3.25rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--deep);
}

.big-statement span {
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.metric {
  background: none;
  border: 0;
  border-top: 2px solid var(--teal);
  border-radius: 0;
  padding: 0.8rem 0 0;
  box-shadow: none;
  text-align: left;
}

.metric strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 2.2vw, 2.1rem);
  line-height: 1;
  color: var(--teal);
}

.metric span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Parallax Band */
.band {
  min-height: clamp(240px, 44dvh, 420px);
  display: flex;
  align-items: flex-end;
  padding: 2.5rem clamp(1rem, 4vw, 3.5rem);
  background: linear-gradient(0deg, rgba(4, 15, 56, 0.62), transparent 60%),
    url("../img/faixa-parque-eolico.webp?v=20261021c") center/cover fixed;
}

.band h2 {
  color: #fff;
}

.band h2 span {
  color: #8fd3ff;
}

/* --------------------------------------------------------------------------
   6. UNIFIED CARD COMPONENT SYSTEM
   Harmonious card styling across all sections without duplicate variables.
   -------------------------------------------------------------------------- */
.equip-card,
.solar-card,
.contact-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s var(--ease-out-expo), border-color 0.25s ease, box-shadow 0.25s ease;
}

.equip-card:hover,
.solar-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-card-hover);
}

/* Platforms & Wind Equipment Grids */
.platform-group {
  margin-top: 2.4rem;
}

.platform-group + .platform-group {
  margin-top: 3rem;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.platform-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-bottom: 1.25rem;
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0, 117, 216, 0.12), rgba(1, 129, 193, 0.12));
  border: 1px solid rgba(1, 129, 193, 0.3);
  color: var(--deep);
  font: 700 0.82rem var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-sub {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 600px;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.equip-grid.equip-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Equipment Card */
.equip-card {
  padding: 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
}

.equip-app {
  align-self: flex-end;
  font: 700 0.68rem/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(1, 129, 193, 0.08);
  border: 1px solid rgba(1, 129, 193, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.equip-img-box {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.equip-img-box img {
  width: 100%;
  max-width: 200px;
  height: 130px;
  object-fit: contain;
  filter: drop-shadow(0 14px 12px rgba(4, 15, 56, 0.18));
  transition: transform 0.3s var(--ease-out-expo), filter 0.3s ease;
}

.equip-card:hover .equip-img-box img {
  transform: scale(1.05);
  filter: drop-shadow(0 18px 16px rgba(4, 15, 56, 0.26));
}

.equip-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.equip-title {
  font: 800 1.15rem/1.2 var(--font-head);
  text-transform: uppercase;
  color: var(--green);
  letter-spacing: 0.02em;
}

.equip-func {
  margin-top: 0.45rem;
  font: 400 0.85rem/1.5 var(--font-body);
  color: var(--muted);
  max-width: 320px;
}

/* Solar Inverter Cards */
.solar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
  align-items: stretch;
}

.solar-card {
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 3px solid var(--green);
}

.solar-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.solar-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 117, 216, 0.09);
  border: 1px solid rgba(0, 117, 216, 0.2);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.solar-icon svg {
  width: 20px;
  height: 20px;
}

.solar-tag {
  font: 700 0.68rem/1 var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(1, 129, 193, 0.08);
  border: 1px solid rgba(1, 129, 193, 0.2);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.solar-title {
  font: 800 1.25rem/1.15 var(--font-head);
  text-transform: uppercase;
  color: var(--deep);
  letter-spacing: 0.01em;
}

.solar-desc {
  margin-top: 0.45rem;
  font: 400 0.86rem/1.52 var(--font-body);
  color: var(--muted);
}

.solar-brands-bar {
  margin-top: 1.15rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(1, 129, 193, 0.06);
  border: 1px solid rgba(1, 129, 193, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-size: 0.82rem;
  color: var(--deep);
}

.solar-brands-bar strong {
  font-family: var(--font-head);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   7. LABORATORY & PROCESS (TIMELINE FIX)
   -------------------------------------------------------------------------- */
.lab-process-intro {
  max-width: 850px;
  margin-bottom: 2.5rem;
}

.lab-process-intro .lead {
  max-width: 700px;
  margin-top: 1rem;
}

/* Lab Photo Gallery */
.lab-gallery {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
  padding-bottom: 2rem;
}

.lab-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--deep);
  isolation: isolate;
}

.lab-gallery-item:first-child {
  height: clamp(260px, 32vw, 400px);
}

.lab-gallery-item:last-child {
  height: clamp(220px, 26vw, 320px);
}

.lab-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.lab-gallery-item:hover img {
  transform: scale(1.03);
}

.lab-gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 2.2rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(4, 15, 56, 0.92) 0%, rgba(4, 15, 56, 0.6) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.lab-gallery-caption strong {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}

.lab-gallery-caption span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.82);
}

/* Process Heading */
.lab-process-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}

.lab-process-heading h3 {
  font-size: clamp(1.6rem, 2.5vw, 2.3rem);
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--deep);
}

.lab-process-heading p {
  max-width: 360px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Timeline (Desktop Layout) */
.lab-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.2rem;
}

.lab-timeline-item {
  position: relative;
  padding: 1.2rem 0 1.5rem 0;
  border-top: 2px solid var(--line);
}

.lab-timeline-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: -2.1rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--teal);
  color: var(--teal);
  font: 700 0.95rem/1 var(--font-head);
}

.lab-timeline-item h4 {
  font: 700 1.15rem/1.15 var(--font-head);
  color: var(--deep);
  text-transform: uppercase;
}

.lab-timeline-item p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.lab-timeline-item .lab-delivery {
  margin-top: 0.85rem;
  color: var(--deep);
  font-size: 0.82rem;
}

.lab-delivery strong {
  color: var(--teal);
}

/* Lab Process Footer */
.lab-process-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.lab-process-footer p {
  max-width: 480px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.lab-process-footer p strong {
  color: var(--deep);
  display: block;
  font-size: 0.96rem;
  margin-bottom: 0.2rem;
}

/* --------------------------------------------------------------------------
   8. REGIONAL COVERAGE & LATAM INTERACTIVE MAP
   -------------------------------------------------------------------------- */
.geo-presence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0;
  margin-top: 2rem;
  align-items: stretch;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 253, 0.95));
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(4, 15, 56, 0.07);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.geo-map-card {
  background: transparent;
  border: 0;
  border-right: 1px solid rgba(1, 129, 193, 0.14);
  padding: 1.35rem 1.35rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.geo-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(1, 129, 193, 0.12);
}

.geo-map-title {
  font: 700 0.78rem var(--font-head);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--deep);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.geo-map-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0, 117, 216, 0.15);
}

.geo-map-badge {
  font: 700 0.7rem var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(1, 129, 193, 0.08);
  border: 1px solid rgba(1, 129, 193, 0.2);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
}

.geo-map-stage {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0;
}

.latam-map-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  max-height: 460px;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(4, 15, 56, 0.06));
}

/* Map Country & State Styles */
.map-country-neutral {
  fill: #e9f1f7;
  stroke: rgba(4, 15, 56, 0.12);
  stroke-width: 0.9;
  transition: opacity 0.25s ease;
}

.map-country-active {
  fill: url(#latamActiveGrad);
  stroke: var(--teal);
  stroke-width: 1.5;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.map-country-active:hover,
.map-country-active.is-highlighted {
  fill: var(--deep);
  stroke: #8fd3ff;
  stroke-width: 1.8;
}

.map-state-neutral {
  fill: #dcebf7;
  stroke: rgba(1, 129, 193, 0.28);
  stroke-width: 0.85;
  transition: fill 0.2s ease;
}

.map-state-active {
  fill: url(#brActiveGrad);
  stroke: #ffffff;
  stroke-width: 1.15;
  cursor: pointer;
  transition: fill 0.2s ease, stroke 0.2s ease, stroke-width 0.2s ease;
}

.map-state-active:hover,
.map-state-active.is-highlighted {
  fill: var(--deep);
  stroke: #8fd3ff;
  stroke-width: 1.6;
}

.map-grid-lines,
.map-latam-routes,
.pin-pulse,
.pin-pulse-latam {
  pointer-events: none;
}

.map-pin {
  cursor: pointer;
}

.map-pin-core {
  transition: transform 0.2s ease, fill 0.2s ease, stroke 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.map-pin.is-highlighted .map-pin-core {
  transform: scale(1.25);
  fill: #ffffff;
  stroke: #38bdf8;
  stroke-width: 2.4px;
}

.map-pin-label {
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  fill: var(--deep);
  paint-order: stroke;
  stroke: #ffffff;
  stroke-width: 3px;
  stroke-linecap: round;
  stroke-linejoin: round;
  letter-spacing: 0.04em;
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.map-pin.is-highlighted .map-pin-label {
  fill: #040F38;
  stroke: #8fd3ff;
  stroke-width: 3.5px;
}

.pin-pulse,
.pin-pulse-latam {
  transform-box: fill-box;
  transform-origin: center;
  animation: mapPinPulse 2.4s infinite ease-out;
}

.pin-pulse-latam {
  animation-delay: 0.8s;
}

@keyframes mapPinPulse {
  0% {
    transform: scale(0.65);
    opacity: 0.9;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.geo-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  justify-content: center;
  padding-top: 0.75rem;
  margin-top: 0.4rem;
  border-top: 1px solid rgba(1, 129, 193, 0.12);
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 3px;
  display: inline-block;
}

.legend-swatch.br-active {
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.legend-swatch.latam-active {
  background: rgba(1, 129, 193, 0.28);
  border: 1.5px solid var(--teal);
}

.legend-swatch.pin-site {
  border-radius: 50%;
  background: var(--teal);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1.5px var(--teal);
}

/* Geo Active Bar */
.geo-active-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.45rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(4, 15, 56, 0.04);
  border: 1px solid rgba(1, 129, 193, 0.2);
}

.geo-active-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--teal));
  color: #ffffff;
  font: 800 0.95rem/1 var(--font-head);
  letter-spacing: 0.05em;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(0, 117, 216, 0.22);
}

.geo-active-body {
  min-width: 0;
  flex: 1;
}

.geo-active-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.geo-active-title {
  font: 800 0.98rem/1.15 var(--font-head);
  text-transform: uppercase;
  color: var(--deep);
  letter-spacing: 0.02em;
}

.geo-active-tag {
  font: 700 0.66rem/1 var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: rgba(1, 129, 193, 0.1);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
}

.geo-active-desc {
  margin-top: 0.18rem;
  font-size: 0.78rem;
  line-height: 1.38;
  color: var(--muted);
}

/* Info Panel & Badges */
.geo-info-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.6);
}

.geo-block-card {
  padding: 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.geo-block-card.latam-block {
  border-top: 1px solid rgba(1, 129, 193, 0.14);
  background: rgba(244, 249, 253, 0.5);
}

.geo-block-top {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.geo-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(0, 117, 216, 0.09);
  border: 1px solid rgba(0, 117, 216, 0.2);
  color: var(--green);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.geo-block-card.latam-block .geo-icon-box {
  background: rgba(1, 129, 193, 0.1);
  border-color: rgba(1, 129, 193, 0.24);
  color: var(--teal);
}

.geo-icon-box svg {
  width: 20px;
  height: 20px;
}

.geo-block-tag {
  font: 700 0.72rem var(--font-head);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 0.15rem;
}

.geo-block-title {
  font: 800 1.35rem/1.1 var(--font-head);
  text-transform: uppercase;
  color: var(--deep);
}

.geo-block-desc {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.state-badges-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  list-style: none;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  background: #f4f9fd;
  border: 1px solid rgba(1, 129, 193, 0.22);
  font-size: 0.82rem;
  color: var(--deep);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.state-badge strong {
  font-family: var(--font-head);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: 0.04em;
  background: rgba(0, 117, 216, 0.1);
  padding: 0.08rem 0.38rem;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.state-badge:hover,
.state-badge.is-highlighted {
  background: var(--deep);
  border-color: var(--deep);
  color: #ffffff;
  transform: translateY(-2px);
}

.state-badge:hover strong,
.state-badge.is-highlighted strong {
  background: var(--green);
  color: #ffffff;
}

.latam-list {
  margin-top: 1rem;
  display: grid;
  gap: 0.65rem;
  list-style: none;
}

.latam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border-radius: 8px;
  background: #f4f9fd;
  border: 1px solid rgba(1, 129, 193, 0.2);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.latam-item:hover,
.latam-item.is-highlighted {
  background: rgba(1, 129, 193, 0.09);
  border-color: var(--teal);
  transform: translateX(4px);
}

.latam-country {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.latam-code {
  font: 800 0.78rem var(--font-head);
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--teal);
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.latam-name {
  font: 800 1.05rem var(--font-head);
  text-transform: uppercase;
  color: var(--deep);
}

.latam-detail {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  text-align: right;
}

/* --------------------------------------------------------------------------
   9. CLIENT & MANUFACTURER WALL
   -------------------------------------------------------------------------- */
.wall-group {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 0 clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: 1.4rem;
}

.reveal + .wall-group {
  margin-top: 2rem;
}

.wall-label {
  padding-top: 0.2rem;
  font: 600 0.92rem/1.35 var(--font-body);
  color: var(--muted);
}

.wall {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.wall-ops {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.wall-mfr {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wall > * {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 1.1rem 0.8rem;
  background: #fff;
}

.wall-ops > * {
  min-height: 116px;
}

.wall img {
  width: auto;
  height: auto;
  max-width: min(100%, 150px);
  max-height: 38px;
  object-fit: contain;
}

.wall-ops img {
  max-width: min(100%, 175px);
  max-height: 54px;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.contact-card {
  padding: 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card h3 {
  font-family: var(--font-head);
  font-size: 1.28rem;
  text-transform: uppercase;
  color: var(--deep);
  font-weight: 700;
}

.contact-card p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.contact-card a:not(.btn) {
  color: var(--deep);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.contact-card a:not(.btn):hover {
  color: var(--teal);
}

/* --------------------------------------------------------------------------
   11. FOOTER & FLOATING WHATSAPP
   -------------------------------------------------------------------------- */
.site-footer {
  padding: 2.2rem clamp(1rem, 4vw, 3.5rem);
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.footer-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.footer-links a {
  color: var(--deep);
  font: 700 0.8rem var(--font-head);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--teal);
}

.footer-links a.footer-partner {
  color: var(--teal);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Floating WhatsApp FAB */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #25D366;
  color: #ffffff;
  text-decoration: none;
  font: 700 0.85rem var(--font-head);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s var(--ease-out-expo), box-shadow 0.2s ease;
}

.floating-wa:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.45);
}

.floating-wa svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS
   Clean, consolidated media queries without conflicting rules.
   ========================================================================== */

/* Telas Ultra-Wide (>= 1280px) */
@media (min-width: 1280px) {
  .equip-grid {
    gap: 1.5rem;
  }

  .brand-img {
    height: 50px;
  }
}

/* Tablets e Laptops Médios (<= 1024px) */
@media (max-width: 1024px) {
  .impact-grid,
  .geo-presence-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .equip-grid,
  .equip-grid.equip-grid-4,
  .solar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }

  .band {
    background-attachment: scroll;
  }

  .geo-map-card {
    border-right: 0;
    border-bottom: 1px solid rgba(1, 129, 193, 0.14);
    padding: 1rem 1rem 0.85rem;
  }

  .latam-map-svg {
    max-height: 320px;
  }

  .geo-info-panel {
    padding: 1rem;
    gap: 0.75rem;
    background: rgba(244, 249, 253, 0.75);
  }

  .geo-block-card,
  .geo-block-card.latam-block {
    padding: 0.5rem 0;
    background: transparent;
  }

  .geo-block-card.latam-block {
    border-top: 1px solid rgba(1, 129, 193, 0.14);
    padding-top: 0.9rem;
  }

  .wall-group {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.6rem;
  }
}

/* Tablet & Mobile Timeline Layout (<= 900px) */
@media (max-width: 900px) {
  .lab-gallery {
    grid-template-columns: 1fr 1fr;
  }

  .lab-process-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  /* Linha do Tempo Vertical Conectada (elimina desalinhamentos no mobile) */
  .lab-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 2rem;
    position: relative;
    padding-left: 0.5rem;
  }

  .lab-timeline-item {
    position: relative;
    border-top: none;
    border-left: 2px solid var(--line);
    padding: 0 0 2rem 1.85rem;
    margin: 0;
  }

  .lab-timeline-item:last-child {
    padding-bottom: 0.5rem;
    border-left-color: transparent;
  }

  .lab-timeline-number {
    position: absolute;
    left: -19px;
    top: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    background: var(--paper);
    box-shadow: 0 0 0 4px var(--paper);
  }

  .lab-timeline-item h4 {
    margin-top: 0.2rem;
    font-size: 1.15rem;
  }

  .lab-timeline-item p {
    margin-top: 0.4rem;
    font-size: 0.88rem;
  }

  .lab-timeline-item .lab-delivery {
    margin-top: 0.6rem;
    font-size: 0.82rem;
  }
}

/* Celulares & Dispositivos Móveis (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-h: 68px;
  }

  .site-header {
    height: var(--header-h);
    padding: 0 1rem;
    background: #ffffff;
  }

  .brand-img {
    height: 42px;
    max-width: calc(100vw - 88px);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 44;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 1rem;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(4, 15, 56, 0.14);
    transform: translate3d(0, -12px, 0);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s var(--ease-out-expo), opacity 0.28s var(--ease-out-expo);
  }

  .nav.is-open {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    min-height: 44px;
    height: 44px;
    justify-content: space-between;
    padding: 0 1rem;
    font-size: 0.85rem;
    border-radius: 10px;
  }

  .hero {
    min-height: clamp(540px, 85vh, 680px);
    align-items: flex-end;
    padding: 3rem 1.25rem 3.5rem;
    background:
      linear-gradient(
        0deg,
        rgba(4, 15, 56, 0.94) 0%,
        rgba(4, 15, 56, 0.78) 42%,
        rgba(4, 15, 56, 0.12) 100%
      ),
      url("../img/fundo.avif")
      center center / cover no-repeat;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3.4rem);
  }

  .hero .lead {
    font-size: 0.96rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cinema-section {
    padding: 2.6rem 1rem;
  }

  .lead {
    max-width: 100%;
  }

  .lab-gallery {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-bottom: 0;
  }

  .lab-gallery-item:first-child {
    height: 250px;
  }

  .lab-gallery-item:last-child {
    height: 210px;
    width: 100%;
    margin: 0;
  }

  .lab-process-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }

  .lab-process-footer .btn {
    width: 100%;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  /* Oculta os blocos de Presença Nacional e Operação Internacional no mobile */
  .geo-info-panel {
    display: none !important;
  }

  .geo-map-card {
    border-bottom: 0;
  }

  .footer-logo {
    height: 40px;
  }

  .floating-wa {
    bottom: 16px;
    right: 16px;
    padding: 0.55rem 1rem;
    font-size: 0.8rem;
  }
}

/* Mobile Compacto (<= 640px) — Cards Unificados e Legíveis */
@media (max-width: 640px) {
  /* Todos os cards em coluna única com layout vertical uniforme */
  .equip-grid,
  .equip-grid.equip-grid-4,
  .solar-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .equip-card {
    padding: 1.25rem 1rem;
    text-align: center;
    align-items: center;
  }

  .equip-app {
    align-self: center;
    margin-bottom: 0.6rem;
  }

  .equip-img-box {
    height: 120px;
    margin-bottom: 0.75rem;
  }

  .equip-img-box img {
    height: 110px;
    max-width: 180px;
  }

  .equip-body {
    align-items: center;
  }

  .equip-title {
    text-align: center;
    font-size: 1.15rem;
  }

  .equip-func {
    max-width: 100%;
    font-size: 0.84rem;
    line-height: 1.5;
    margin-top: 0.35rem;
    text-align: center;
  }

  .solar-card {
    padding: 1.25rem 1rem;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .state-badge {
    min-height: 36px;
    padding: 0.3rem 0.58rem;
    font-size: 0.76rem;
    border-radius: 7px;
  }

  .state-badge strong {
    font-size: 0.78rem;
    padding: 0.06rem 0.32rem;
  }

  .wall-ops,
  .wall-mfr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wall-ops > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}
