/* ================= BASE / VARS / CONTAINER (PADRÃO) ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --site-max: clamp(1100px, 90vw, 1760px);
  --site-pad: clamp(20px, 3.5vw, 64px);
  --header-h: 96px; /* ajuste se seu header tiver outra altura */

  --orange: #ff6200;
  --blue-900: #092842;
  --blue-800: #0b2f57;

  --ink: #0f172a;
  --muted: #0f172a99;

  --blue-section-bg: radial-gradient(
      1200px 800px at 10% 10%,
      #0e3147 0%,
      var(--blue-900) 45%,
      #061622 100%
    ),
    linear-gradient(180deg, #0b2a3d, var(--blue-900));

  --stroke: rgba(255, 255, 255, 0.08);
}

html,
body {
  height: 100%;
}
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  color: var(--ink);
  padding-top: var(--header-h);
}
.container {
  max-width: var(--site-max);
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--site-pad);
}

.capsLock {
  text-transform: uppercase;
}

/* =========================== HEADER / NAV (PADRÃO) ============================ */
/* =========================== HEADER / NAV (PADRÃO) =================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  background: #fff;
  box-shadow: 0 3px 10px #464646;
  z-index: 1000;
}
/* A barra navega no mesmo trilho do conteúdo */
.nav-bar {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;

  width: min(100%, var(--site-max));
  padding-inline: var(--site-pad);
  margin-inline: auto;
}

/* ===== LOGO COMO IMAGEM ===== */
.logo img {
  height: 130px; /* tamanho desktop */
  width: auto;
  display: block;
  margin-left: -20px;
}

.nav-list {
  display: flex;
  align-items: center;
}
.nav-list > ul {
  display: flex;
  list-style: none;
}
.nav-item {
  margin: 0 20px;
  position: relative;
}
.nav-link {
  color: #051c2f;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
}
/* Hover do header igual ao hover dos links de serviço */
.nav-link:hover {
  color: var(--orange);
}
.login-button button {
  border: 0;
  padding: 10px 15px;
  border-radius: 5px;
  background: var(--orange);
}
.login-button button a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

/* Dropdown */
.dropdown-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.9rem;
  color: currentColor;
}
.nav-item.dropdown:hover > .dropdown-toggle,
.nav-item.dropdown:focus-within > .dropdown-toggle {
  color: var(--orange);
}
.nav-item.dropdown::after {
  content: "";
  position: absolute;
  left: -8px;
  right: -8px;
  top: 100%;
  height: 12px;
}
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  display: none;
  z-index: 1100;
  list-style: none;
}
.nav-item.dropdown:hover > .dropdown-menu,
.nav-item.dropdown:focus-within > .dropdown-menu {
  display: block;
}
.dropdown-link {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #000;
  font-size: 0.98rem;
  white-space: nowrap;
}
.dropdown-link:hover {
  background: #f7f7f7;
  color: var(--orange);
}

/* Mobile menu */
.mobile-menu-icon {
  display: none;
}
.mobile-menu {
  display: none;
}

@media (max-width: 811px) {
  /* === LOGO RESPONSIVA NO CELULAR === */
  .logo img {
    height: 130px; /* tamanho desktop */
    width: auto;
    display: block;
    margin-left: -20px;
  }

  .primeiro-link-menu {
    margin-top: 7px;
  }

  .nav-item,
  .login-button {
    display: none;
  }
  .mobile-menu-icon {
    display: block;
  }
  .mobile-menu-icon button {
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .mobile-menu {
    background: #fff;
    color: #000;
    display: none;
  }
  .mobile-menu ul {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding-bottom: 1rem;
    list-style: none;
  }
  .mobile-menu .nav-item {
    display: block;
    padding-top: 1.2rem;
  }
  .mobile-menu .dropdown {
    padding-top: 1.2rem;
  }
  .mobile-menu .login-button {
    display: block;
    padding: 1rem 2rem;
  }
  .mobile-menu .login-button button {
    width: 100%;
  }
  .mobile-menu .dropdown-menu {
    position: static;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    display: none;
  }
  .mobile-menu .dropdown.open > .dropdown-menu {
    display: block;
  }
  .mobile-menu.open {
    display: block;
  }
}

/* =========================================================================================================
   CONTROLE DE IMAGENS – MAPEAMENTO POR PÁGINA
========================================================================================================= */

/* Iluminação Pública */
.hero--iluminacao {
  background-image: url("assets/img/Iluminação Pública/Seção 2 - Serviços/Servições.jpg");
}
.prefooter--iluminacao {
  background-image: url("assets/img/Iluminação Pública/Seção 5 - Imagem/opção 1.jpg");
}

/* Engenharia Civil */
.hero--engenharia {
  background-image: url("assets/img/Engenharia Civil/Seção 1 - capa/capanova.svg");
}
.prefooter--engenharia {
  background-image: url("assets/img/Engenharia Civil/Seção 5 - Foto/secaocinco.svg");
}

/* Painel Solar */
.hero--solar {
  background-image: url("assets/img/Energia Solar/Seção 1 - capa/Capa.JPG");
}
.prefooter--solar {
  background-image: url("assets/img/Energia Solar/Seção 1 - capa/rodapepainel.JPG");
}

/* ================= HERO ================= */
/* NÃO USAR shorthand background aqui para não apagar o background-image das variantes acima */
.hero-section {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 20px;
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 10px;
}

.hero-content p {
  font-size: clamp(1rem, 2.4vw, 1.2rem);
}
/* ================= CARROSSEL (SEÇÃO AZUL PADRÃO) ================= */
/* ================= CARROSSEL (SEÇÃO AZUL PADRÃO) ================= */
/* Altura CONSISTENTE em TODAS as páginas:
   - Seção: ~100svh
   - Card/Carrossel: ~70svh (clamp para segurança) */

.sec-obras {
  --ink: #eaf4ff;
  --ink-dim: #cfe2f3;
  --ink-soft: #b7c6d5;
  --card-radius: 20px;

  /* controla a altura do carrossel (constante em todas as páginas) */
  --carousel-h: clamp(460px, 70svh, 860px);
  /* altura da imagem no mobile quando a coluna vira uma abaixo da outra */
  --mobile-img-h: clamp(240px, 42svh, 520px);

  /* fundo restaurado (usa var com fallback) */
  background: var(
    --blue-section-bg,
    linear-gradient(180deg, #071a27 0%, #0a2231 100%)
  );
  color: var(--ink, #eaf4ff);

  padding-block: clamp(20px, 4vh, 48px);
  overflow-x: clip;

  /* ocupa a viewport inteira, usando svh para evitar "jump" em mobile */
  min-height: 100svh;
}

.sec-obras .container {
  width: min(100%, var(--site-max));
  margin-inline: auto;
  padding-inline: var(--site-pad);
}

/* Header da seção */
.obras-head {
  margin-bottom: clamp(10px, 2vh, 18px);
}
.obras-eyebrow {
  display: inline-block;
  color: #fff;
  opacity: 0.95;
  font: 300 0.9rem/1 Inter, system-ui, Arial, sans-serif;
  padding-bottom: 6px;
  letter-spacing: 0.06em;
  text-transform: none;
  background: linear-gradient(90deg, var(--orange) 0 60px, transparent 60px)
    bottom/100% 2px no-repeat;
}
.obras-title {
  margin: 10px 0 0;
  color: #fff;
  font: 600 clamp(22px, 5.2vw, 46px) / 1.05 Inter, system-ui, Arial, sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Utilitário de acessibilidade */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Carrossel */
.obras-carousel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
}

.obras-card {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: clamp(12px, 2.2vw, 20px);
  background: linear-gradient(180deg, #0b2a3d 0%, #0a2231 100%);
  border: 1px solid var(--stroke);
  border-radius: var(--card-radius);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35),
    0 1px 0 rgba(255, 255, 255, 0.04) inset;
  padding: clamp(12px, 1.6vw, 16px);

  /* ALTURA FIXA DO CARROSSEL (desktop/tablet) */
  height: var(--carousel-h);
  min-height: var(--carousel-h);
  max-height: var(--carousel-h);

  /* Faz as colunas terem a mesma altura */
  align-items: stretch;
}

/* ------- COLUNA DA IMAGEM: preencher 100% da altura ------- */
.obras-viewport {
  position: relative;
  width: 100%;
  border-radius: calc(var(--card-radius) - 6px);
  overflow: hidden;
  background: #071a27;

  display: grid;
  align-content: stretch;
  height: 100%;
}

.obras-track {
  display: flex;
  height: 100%;
  transition: transform 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0;
}

.obras-slide {
  flex: 0 0 calc(100% + 2px);
  margin-right: -2px;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.obras-figure {
  width: 100%;
  height: 100%;
  display: block;
}
.obras-figure img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: translateZ(0);
  backface-visibility: hidden;
  clip-path: inset(0 -1px -1px -1px);
}

.obras-info-toggle {
  position: absolute;
  bottom: 22px;
  right: 22px;
  z-index: 4;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 12px 24px;
  background: rgba(7, 26, 39, 0.75);
  color: #fff;
  font: 600 0.95rem/1 Inter, system-ui, Arial, sans-serif;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  text-transform: uppercase;
  display: none;
}
.obras-info-toggle:hover,
.obras-info-toggle:focus-visible {
  background: color-mix(in srgb, var(--orange) 28%, rgba(7, 26, 39, 0.6));
  border-color: color-mix(in srgb, var(--orange) 70%, transparent);
  transform: translateY(-1px);
  outline: none;
}

/* ------- COLUNA DO TEXTO (agora verdadeiramente responsiva em altura) ------- */
.obras-side {
  border: 1px solid var(--stroke);
  border-radius: calc(var(--card-radius) - 8px);
  box-shadow: inset 0 2px 0 color-mix(in srgb, var(--orange) 30%, transparent),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);

  display: grid;
  grid-template-rows: auto auto 1fr; /* head | desc | KPIs */
  gap: 8px;

  align-self: stretch;
  height: 100%;
  min-height: 0; /* ← permite encolher com a altura do card */
  overflow: hidden; /* evita “vazar” quando apertado */
  position: relative;
}
/* Itens do grid podem encolher e não forçam altura */
.obras-side > * {
  padding: 20px;
  min-height: 0;
}

/* Cabeçalho da lateral */
.obras-side-title {
  margin: 0;
  color: #fff;
  font: 800 clamp(18px, 2.4vw, 26px) / 1.2 Inter, system-ui, Arial, sans-serif;
}
.obras-location {
  margin: clamp(8px, 1vh, 14px) 0 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-dim);
  font-weight: 600;
  text-transform: capitalize;
}
.obras-location svg {
  color: var(--orange);
  width: 18px;
  height: 18px;
}

/* Parágrafo (encolhe de forma elegante) */
.obras-text {
  margin: 0;
  margin-top: 6px;
  color: var(--ink-dim);
  font-size: clamp(14px, 1.4vw, 16px);
  line-height: 1.55;
  min-height: 0;
}
.obras-text .hl {
  color: #fff;
  font-weight: 800;
}

/* KPIs responsivos (auto-fit) */
.obras-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  align-content: start; /* não empurra para baixo quando o espaço aperta */
  justify-content: stretch;
  padding-top: 8px;
  min-height: 0; /* ← permite encolher junto com o card */
}
.metric {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.01)
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  text-align: center;

  /* Espaçamento que se adapta à altura da viewport */
  padding-block: clamp(14px, 2.4vh, 28px);
  padding-inline: clamp(12px, 2vw, 20px);

  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 0;
}
.metric__value {
  font: 900 clamp(26px, 4.6vw, 44px) / 1 Inter, system-ui, Arial, sans-serif;
  color: var(--orange);
  min-height: 1em;
  letter-spacing: 0.3px;
}
.metric__label {
  font: 700 clamp(12px, 1.6vw, 16px) / 1.25 Inter, system-ui, Arial, sans-serif;
  color: #fff;
  opacity: 0.98;
}

/* Setas */
.obras-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 34, 49, 0.6);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s,
    border-color 0.2s;
  backdrop-filter: blur(3px);
  z-index: 5;
}
.obras-arrow.prev {
  left: -46px;
}
.obras-arrow.next {
  right: -46px;
}
.obras-arrow:hover {
  background: color-mix(in srgb, var(--orange) 28%, transparent);
  border-color: color-mix(in srgb, var(--orange) 50%, transparent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  transform: translateY(-50%) scale(1.05);
}

/* Dots + Hint */
.obras-dots {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.obras-dots button {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: var(--ink-soft);
  opacity: 0.45;
  cursor: pointer;
  transition: opacity 0.18s, transform 0.12s, background 0.2s, box-shadow 0.2s;
}
.obras-dots button:hover {
  transform: scale(1.1);
  opacity: 0.85;
}
.obras-dots button.is-active {
  background: var(--orange);
  opacity: 1;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 16%, transparent);
}
.obras-hint {
  display: none;
  font-size: 14px;
  color: var(--ink-dim);
  opacity: 0.9;
  user-select: none;
  align-items: center;
  gap: 6px;
}
.obras-hint .chev {
  color: var(--orange);
  letter-spacing: 1px;
}

/* ===================== Responsivo (largura) ===================== */
@media (max-width: 1200px) {
  .obras-arrow.prev {
    left: -38px;
  }
  .obras-arrow.next {
    right: -38px;
  }
}
@media (max-width: 1100px) {
  .obras-card {
    grid-template-columns: 1fr 360px;
  }
}
@media (max-width: 980px) {
  .obras-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    height: auto;
    min-height: unset;
    max-height: none;
  }
  .obras-viewport {
    height: auto;
    min-height: var(--mobile-img-h);
  }
  .obras-slide {
    flex-basis: 100%;
    margin-right: 0;
    height: var(--mobile-img-h);
  }
  .obras-figure,
  .obras-figure img {
    height: 100%;
    clip-path: inset(0);
  }
  .obras-side {
    min-height: auto;
    height: auto;
    overflow: visible;
  }
  .obras-metrics {
    grid-template-columns: 1fr;
  }
  .obras-arrow {
    display: none;
  }
  .obras-hint {
    display: inline-flex;
  }
}

@media (max-width: 820px) {
  .sec-obras {
    padding-block: clamp(4px, 1.4vh, 12px);
  }
  .obras-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1.6vh, 18px);
    border: none;
    border-radius: 0;
    box-shadow: none;
    height: min(100vh, 100svh);
    min-height: min(100vh, 100svh);
    max-height: none;
    background: transparent;
    overflow: hidden;
  }
  .obras-viewport {
    height: min(92vh, 92svh);
    width: 100%;
    border-radius: 32px;
  }
  .obras-track,
  .obras-slide,
  .obras-figure,
  .obras-figure img {
    height: 100%;
  }
  .obras-info-toggle {
    display: inline-flex;
    bottom: clamp(20px, 4vw, 36px);
    right: clamp(20px, 4vw, 36px);
    top: auto;
  }
  .obras-side {
    position: absolute;
    left: clamp(12px, 4vw, 28px);
    right: clamp(12px, 4vw, 28px);
    bottom: clamp(12px, 4vw, 32px);
    border: none;
    border-radius: 28px;
    background: rgba(2, 7, 15, 0.88);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.55);
    transform: translateY(calc(100% + 24px));
    transition: transform 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    pointer-events: none;
    max-height: 75%;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    z-index: 6;
  }
  .obras-side.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .obras-side > * {
    padding: clamp(18px, 5vw, 28px);
  }
  .obras-metrics {
    grid-template-columns: 1fr;
  }
  .obras-viewport::before,
  .obras-viewport::after {
    content: "";
    position: absolute;
    width: clamp(60px, 22vw, 110px);
    height: clamp(60px, 22vw, 110px);
    border: 4px solid var(--orange);
    pointer-events: none;
    z-index: 4;
  }
  .obras-viewport::before {
    top: clamp(-12px, -2.5vw, -6px);
    left: clamp(-12px, -2.5vw, -6px);
    border-bottom: none;
    border-right: none;
    border-radius: 28px 0 0 0;
  }
  .obras-viewport::after {
    bottom: clamp(-12px, -2.5vw, -6px);
    right: clamp(-12px, -2.5vw, -6px);
    border-top: none;
    border-left: none;
    border-radius: 0 0 28px 0;
  }
}
.obras-info-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 7;
}
.obras-side.is-open .obras-info-close {
  display: inline-flex;
}
.obras-info-close:hover,
.obras-info-close:focus-visible {
  background: color-mix(in srgb, var(--orange) 25%, rgba(0, 0, 0, 0.35));
  transform: scale(1.05);
  outline: none;
}

/* ===================== Responsivo por ALTURA (telas “baixas”) ===================== */
/* reduz tipografia, paddings e gaps quando a viewport é baixa,
   para que tudo caiba sem overflow e sem cortar KPIs */
@media (max-height: 900px) and (min-width: 981px) {
  .obras-card {
    padding: clamp(10px, 1.2vw, 14px);
  }
  .obras-side > * {
    padding: clamp(14px, 1.6vw, 18px);
  }
  .obras-title {
    font-size: clamp(22px, 4.6vw, 40px);
  }
  .obras-side-title {
    font-size: clamp(18px, 2vw, 24px);
  }
  .obras-text {
    font-size: clamp(13px, 1.2vw, 15px);
    line-height: 1.5;
  }
  .metric {
    padding-block: clamp(12px, 2vh, 22px);
    gap: 6px;
  }
  .metric__value {
    font-size: clamp(24px, 4vw, 40px);
  }
  .metric__label {
    font-size: clamp(11px, 1.4vw, 15px);
  }
  .obras-metrics {
    gap: 12px;
  }
}
@media (max-height: 780px) and (min-width: 981px) {
  .obras-side > * {
    padding: clamp(12px, 1.2vw, 16px);
  }
  .metric {
    padding-block: clamp(10px, 1.6vh, 18px);
  }
  .metric__value {
    font-size: clamp(22px, 3.6vw, 36px);
  }
  .metric__label {
    font-size: clamp(11px, 1.2vw, 14px);
  }
}
@media (max-height: 700px) and (min-width: 981px) {
  .obras-text {
    line-height: 1.45;
  }
  .obras-metrics {
    grid-template-columns: 1fr 1fr;
  } /* força 2 colunas para caber */
}

/* ============================== SERVIÇOS ============================= */
/* ============================== SERVIÇOS — imagens um pouco mais altas; texto encostado; KPIs à esquerda (desktop) e centrados (mobile) ============================= */
/* ============================== SERVIÇOS — imagens um pouco mais altas; texto encostado; KPIs à esquerda (desktop) e centrados (mobile) ============================= */

/* ---- Variáveis ---- */
:root {
  /* altura uniforme dos cards (imagem e texto) quando lado a lado (um pouco maior) */
  --servicos-card-h: clamp(420px, 52vh, 560px);

  /* distância entre a imagem e o texto (gutter entre colunas) */
  --servicos-gap: clamp(16px, 2vw, 32px);

  /* micro respiro entre o TEXTO e a IMAGEM (dentro do card de texto) */
  --servicos-pad-inner: clamp(8px, 1vw, 16px);

  /* respiro no lado externo (limite do container/header) */
  --servicos-pad-outer: 0px; /* encosta no limite */
}

/* wrapper da seção */
.sec-servicos {
  background: #fff;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--ink);
  overflow-x: clip;
  scroll-margin-top: var(--header-h);
}

/* GRID: duas colunas 50/50 */
.linha {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--servicos-gap);
  align-items: center; /* centraliza verticalmente as duas colunas */
  justify-items: stretch;
  min-width: 0;
}

/* Colunas: mesma altura e cantos arredondados */
.col-img,
.col-text {
  position: relative;
  min-width: 0;
  border-radius: 12px;
  overflow: hidden;
  min-height: var(--servicos-card-h); /* altura uniforme (um pouco maior) */
}

/* Foto cobre o card */
.col-img {
  background: #f7fafc;
}
.servicos-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Texto: centraliza apenas no eixo Y e encosta no limite externo */
.col-text {
  display: flex;
  align-items: center; /* Y-centered */
  justify-content: flex-start;
  background: #fff;
}

/* -------- Bloco de texto (SEÇÃO A / texto à direita da imagem) -------- */
#servicos-a .servicos-texto {
  /* esq (lado da imagem) | dir (lado do container) */
  padding-inline: var(--servicos-pad-inner) var(--servicos-pad-outer);
}

/* -------- Bloco de texto (SEÇÃO B / texto à esquerda da imagem) -------- */
#servicos-b .servicos-texto {
  /* esq (container) | dir (imagem) */
  padding-inline: var(--servicos-pad-outer) var(--servicos-pad-inner);
}

/* Estilos comuns do bloco de texto */
.servicos-texto {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  line-height: 1.6;
  min-width: 0;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 12px;
  box-shadow: none;
  text-wrap: pretty;
  text-align: left; /* colado à esquerda */
}

/* Eyebrow e Título */
.eyebrow {
  justify-self: start;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--blue-900);
  padding-bottom: 0.35rem;
  background: linear-gradient(90deg, var(--orange) 0 12ch, transparent 12ch)
    bottom/100% 2px no-repeat;
  max-width: 100%;
}
#titulo-servicos,
.titulo-servicos {
  color: var(--blue-900);
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Intro */
.intro {
  color: var(--muted);
  margin: 0;
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Lista de tópicos */
.lista-servicos {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0 0;
  display: grid;
  gap: 0.7rem;
  min-width: 0;
}
.lista-servicos li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.55rem;
  border-radius: 8px;
  background: linear-gradient(
      120deg,
      rgba(255, 98, 0, 0.08),
      rgba(255, 98, 0, 0)
    )
    border-box;
}
.lista-servicos li::before {
  content: "";
  position: absolute;
  left: 0.3rem;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #ff6200, #ff9350);
  box-shadow: 0 0 0 2px rgba(255, 98, 0, 0.18);
}
.nome {
  display: block;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.desc {
  display: block;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 0.15rem;
}

/* ================= KPIs — à esquerda no desktop; centralizados no mobile ================= */
.kpis {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 28px);
  flex-wrap: wrap;
  margin-top: 0.2rem;
  min-width: 0;

  /* DESKTOP/Tablet: segue alinhamento do texto (à esquerda) */
  justify-content: flex-start;
  text-align: left;
}
.kpi {
  display: grid;
  grid-auto-flow: row;
  align-items: center;
  justify-items: center;
  gap: 0.25rem;
  white-space: normal;
  min-width: 0;
  max-width: 100%;
  text-align: center;
}
.kpi .valor {
  font-weight: 800;
  font-size: clamp(1.5rem, 2.6vw, 2.3rem);
  color: var(--orange);
  line-height: 1;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-inline-size: 12ch;
  justify-self: center;
  text-align: center;
}
.legenda {
  color: var(--blue-900);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.4vw, 1.05rem);
  line-height: 1.25;
}
.kpi-sep {
  width: 1px;
  height: 28px;
  background: linear-gradient(
    180deg,
    transparent,
    color-mix(in srgb, var(--orange) 55%, transparent),
    transparent
  );
  display: inline-block;
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  will-change: transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Mantém 50/50 no reverso ===== */
@media (min-width: 981px) {
  .sec-servicos--reversa .linha {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================= RESPONSIVO ============================= */
@media (max-width: 980px) {
  /* Respiro entre o HERO e a seção de serviços no mobile (reduzido) */
  .video-hero + .sec-servicos,
  .hero-section + .sec-servicos,
  .sec-servicos {
    margin-top: clamp(8px, 2.5vh, 20px);
  }

  /* Respiro inferior para não encostar no carrossel */
  #servicos-a {
    margin-bottom: clamp(16px, 5vh, 40px);
  }

  .linha {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: clamp(14px, 3.8vw, 24px);
  }

  .col-img,
  .col-text {
    min-height: unset;
    border-radius: 12px;
  }

  /* imagem um pouco mais alta também no empilhado */
  .col-img {
    aspect-ratio: 16 / 11;
  } /* ↑ levemente mais alta que 16/10 */
  .servicos-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  /* --- ORDEM NO MOBILE (quando empilha) --- */
  /* Seção A: texto em cima, imagem embaixo */
  #servicos-a .col-text {
    grid-row: 1;
  }
  #servicos-a .col-img {
    grid-row: 2;
  }

  /* Seção B já está texto antes da imagem no HTML; mantém a ordem natural */

  /* texto colado ao limite do container */
  #servicos-a .servicos-texto {
    padding-inline: var(--servicos-pad-inner) var(--servicos-pad-outer);
  }
  #servicos-b .servicos-texto {
    padding-inline: var(--servicos-pad-outer) var(--servicos-pad-inner);
  }

  .titulo-servicos,
  #titulo-servicos {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }
  .intro {
    font-size: clamp(0.95rem, 4.2vw, 1.05rem);
  }

  /* MOBILE: KPIs centralizados no meio do bloco de texto */
  .kpis {
    gap: 12px 24px;
    justify-content: center; /* <<< centraliza somente no mobile */
    text-align: center;
    margin-bottom: clamp(20px, 6vh, 48px);
  }
  .kpi-sep {
    display: none;
  }
}

/* =========================================================================================================
   Imagem antes do rodapé
========================================================================================================= */
/* NÃO USAR shorthand background para não zerar o background-image das variantes .prefooter--* */
.sec-hero-bg {
  position: relative;
  width: 100%;
  height: 80vh;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.sec-hero-bg .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* Se for usar texto nessa seção, reutilize .hero-content */
.sec-hero-bg .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sec-hero-bg .hero-content h1 {
  font-size: clamp(24px, 5vw, 50px);
  margin-bottom: 10px;
}

/* Mobile: ajustar apenas o card de obras (imagem) para ocupar 85vh e ter acentos laranja */
@media (max-width: 980px) {
  .sec-obras .obras-card {
    grid-template-columns: 1fr; /* empilha imagem + painel lateral */
    height: auto; /* altura definida pela imagem */
    min-height: 0;
    padding-bottom: 16px;
  }

  .sec-obras .obras-viewport {
    height: 85dvh; /* imagem ocupa 85% da viewport (apenas o card de imagem) */
    border-radius: 8px; /* cantos menos arredondados */
    overflow: hidden;
    position: relative;
  }

  .sec-obras .obras-figure,
  .sec-obras .obras-figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  /* acentos laranja removidos conforme solicitado */

  /* Mantém o painel lateral abaixo da imagem com pequeno espaçamento */
  .sec-obras .obras-side {
    margin-top: 14px;
    border-radius: 8px;
  }
}

.sec-hero-bg .hero-content p {
  font-size: clamp(14px, 2vw, 20px);
  opacity: 0.9;
}

/* ============================== FOOTER =============================== */

/* =============================== FOOTER =============================== */
.site-footer {
  --bg: #fff;
  --ink: #0e2a47;
  --muted: #536477;
  --accent: var(--orange);
  --line: #e9eef3;
  background: var(--bg);
  color: var(--ink);
  padding: 40px 0 20px;
  font-family: Inter, system-ui, sans-serif;
  margin-top: 4%;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: start;
}
.footer-col {
  display: grid;
  gap: 10px;
}
.footer-title {
  color: var(--accent);
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.footer-links a {
  text-decoration: none;
  color: var(--ink);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 15px 0;
  display: grid;
  gap: 6px;
}
.footer-contact a {
  text-decoration: none;
  color: var(--ink);
}
.footer-contact a:hover {
  color: var(--accent);
}
.ico {
  color: var(--accent);
  margin-right: 6px;
}
.footer-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  text-decoration: none;
}
.logo-mark {
  font-weight: 700;
  color: var(--ink);
  font-size: 22px;
}
.logo-dot {
  color: var(--accent);
}
.footer-social {
  display: flex;
  gap: 8px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--accent);
  background: #fff;
  transition: 0.2s;
}
.footer-social a:hover {
  background: #fff4ec;
  border-color: var(--accent);
}
.footer-map iframe {
  border-radius: 8px;
  width: 100%;
  height: 200px;
}
.footer-sep {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 30px 0 20px;
}
.footer-copy {
  text-align: center;
  color: #7a8a9a;
  font-size: 13px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
