/* ============================================================
   01. VARIÁVEIS GLOBAIS E RESET
   ============================================================ */

:root {
  --bg: #0a0a0a;
  --bg2: #1a1a1a;
  --ink: #2c3e63;
  --accent: #ff8c00; /* laranja da logo */
  --white: #fff;
  --cream: #f7f7f4;
  --muted: #aab7bd;
  --line: rgba(255, 255, 255, .17);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #fff;
  line-height: 1.35;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}

/* ============================================================
   02. HEADER E NAVEGAÇÃO
   ============================================================ */

.site-header {
  height: 74px;
  background: #0a0a0a;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
  transition: background-color .35s ease, border-color .35s ease;
}

.page-home .site-header {
  background: transparent;
  border-bottom-color: transparent;
}

.page-home .site-header.scrolled {
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, .09);
}

.page-home .site-header:has(.main-nav.open) {
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, .09);
}

.page-home .hero {
  margin-top: -74px;
}

.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: stretch;
  gap: 26px;
  margin-left: auto;
  height: 100%;
}

.main-nav a,
.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
}

.nav-dropdown-toggle {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
  /* remove o retângulo azul de realce que alguns navegadores móveis
     desenham ao tocar, e a seleção de texto acidental */
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.nav-dropdown-toggle:focus {
  outline: none;
}

.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

.main-nav a:hover,
.main-nav a.active,
.nav-dropdown-toggle.active,
.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle {
  color: var(--accent);
}

.main-nav a.active:after {
  content: "";
  position: absolute;
  height: 2px;
  left: 0;
  right: 0;
  bottom: 16px;
  background: var(--accent);
}

/* Submenu de Equipamentos (mantido do site anterior) */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-dropdown-toggle:after {
  content: "";
  display: inline-block;
  flex: 0 0 auto;
  width: 11px;
  height: 8px;
  margin-left: 8px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .2s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle:after,
.nav-dropdown:focus-within .nav-dropdown-toggle:after {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 215px;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, .5);
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown.dismissed .nav-dropdown-menu {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.nav-dropdown-menu a {
  padding: 10px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #d6e0e2;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: rgba(255, 255, 255, .07);
  color: var(--accent);
}

.nav-dropdown-menu a.active:after {
  display: none;
}

/* ============================================================
   03. BOTÕES
   ============================================================ */

.btn {
  min-height: 44px;
  padding: 0 21px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  transition: .2s;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

/* link para o site da ART Sistemas: mantém o azul da marca dela */
.btn-primary.btn-sistemas {
  background: #0788ff;
}

.btn-outline {
  border-color: rgba(255, 255, 255, .45);
  background: rgba(0, 0, 0, .16);
}

.btn.small {
  min-height: 40px;
  font-size: 11px;
  padding: 0 17px;
}

/* ============================================================
   04. MENU MOBILE (TOGGLE)
   ============================================================ */

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #fff;
  margin: 5px;
}

/* ============================================================
   05. HERO — BANNER PRINCIPAL
   ============================================================ */

.hero {
  min-height: 590px;
  position: relative;
  display: flex;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, .96) 0%, rgba(5, 5, 5, .68) 42%, rgba(5, 5, 5, .18) 75%), url('../img/hero-home.jpg?v=20260925-1800') center center/cover no-repeat;
  transform: scale(1.025);
}

.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(5, 5, 5, .88), transparent 40%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  padding: 93px 0 88px;
}

.hero-copy {
  max-width: 650px;
}

.hero-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}

.eyebrow:before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex: 0 0 auto;
}

.dark-pill {
  border: 0;
  background: none;
}

.light-pill {
  border: 0;
  background: none;
  color: var(--ink);
}

.page-home .dark-pill {
  color: #8fa3ab;
}

.page-home .light-pill {
  color: #5f6e74;
}

.page-home .hero-copy>p {
  color: #9fb0b6;
}

.page-home .solution-card p {
  color: #8fa1a7;
}

.page-home .company-grid p {
  color: #93a5aa;
}

.hero h1 {
  font-size: clamp(50px, 5.1vw, 72px);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 18px 0 22px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-copy>p {
  font-size: 17px;
  max-width: 590px;
  color: #f0f3f4;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
}

.hero-actions .btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

/* ============================================================
   06. FAIXA DE DESTAQUES (NÚMEROS)
   ============================================================ */

.stats {
  background: #fbfbfa;
  color: var(--ink);
  padding: 28px 0 34px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 0;
  margin-top: 20px;
}

.stats-grid article {
  min-width: 0;
  padding: 0 34px;
  border-right: 1px solid #d2d8dc;
}

.stats-grid article:first-child {
  padding-left: 0;
  padding-right: 34px;
}

.stats-grid article:last-child {
  border: 0;
  padding-right: 0;
  padding-left: 34px;
}

.stat-icon {
  display: flex;
  align-items: center;
  height: 36px;
  margin-bottom: 5px;
  color: var(--accent);
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats strong {
  color: #000;
  font-size: 35px;
  line-height: 1.05;
  display: block;
  letter-spacing: -.035em;
}

.stats p {
  color: #000;
  margin: 5px 0 0;
  font-size: 14px;
}

/* ============================================================
   07. CABEÇALHOS DE SEÇÃO E FUNDO ESCURO
   ============================================================ */

.dark-section {
  background: radial-gradient(circle at 58% 0%, #2a2a2a 0, #161616 35%, #050505 82%);
  position: relative;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 40px;
  margin-bottom: 22px;
}

/* selo em cima do título, alinhados à esquerda (mesmo padrão do topo das páginas) */
.section-head.top-align {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.section-head h2 {
  font-size: 39px;
  line-height: 1.02;
  letter-spacing: -.035em;
  margin: 12px 0 0;
}

/* ============================================================
   08. CARDS DE PROJETO (PÁGINA CLIENTES)
   ============================================================ */

.project-card {
  width: calc((min(var(--max), 100vw - 48px) - 36px)/3);
  max-width: 395px;
  min-width: 300px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 7px;
  overflow: hidden;
  flex: 0 0 auto;
}

.project-card>img {
  width: 100%;
  height: 205px;
  object-fit: cover;
}

.project-body {
  padding: 15px 17px 16px;
  min-height: 178px;
  position: relative;
}

.project-body h3 {
  font-size: 20px;
  margin: 0 48px 9px 0;
}

.project-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.project-body li {
  font-size: 13px;
  margin: 6px 0;
  color: #eef2f3;
}

.project-body li:before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  color: #fff;
  margin-right: 9px;
  font-size: 14px;
  font-weight: 900;
}

.project-body>a,
.solution-card a {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
}

/* ============================================================
   09. CARDS DE VANTAGENS (SOLUÇÕES)
   ============================================================ */

.solutions {
  padding: 34px 0 38px;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.solution-card {
  border: 1px solid rgba(255, 255, 255, .19);
  border-radius: 6px;
  overflow: hidden;
  background: #1a1a1a;
}

.solution-card>img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  background: #05090b;
  padding: 0;
  margin: 0;
}

.solution-card>div {
  padding: 14px 15px 20px;
  min-height: 155px;
  position: relative;
}

.solution-card h3 {
  font-size: 17px;
  margin: 0 0 5px;
}

.solution-card p {
  font-size: 12px;
  color: #d6e0e2;
  margin: 0 34px 0 0;
}

.solution-card a {
  width: 32px;
  height: 32px;
  font-size: 18px;
  left: 15px;
  right: auto;
  bottom: 12px;
}

/* ============================================================
   10. CITAÇÃO E CTA DA EMPRESA
   ============================================================ */

.company-cta {
  padding: 42px 0;
  background: linear-gradient(rgba(10, 10, 10, .91), rgba(10, 10, 10, .94)), url('../img/hero-art-locacao.jpg') center/cover;
}

.company-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  align-items: center;
  gap: 65px;
}

.company-grid blockquote {
  margin: 0;
  font-size: 24px;
  line-height: 1.3;
}

.company-grid blockquote span {
  display: block;
  color: var(--accent);
  font-size: 62px;
  line-height: .55;
  font-weight: 900;
}

.company-grid>div {
  border-left: 1px solid rgba(255, 255, 255, .28);
  padding-left: 46px;
}

.company-grid p {
  color: #e1e8ea;
  margin: 0 0 18px;
  font-size: 13px;
}

/* segundo bloco (ART Sistemas), abaixo do botão da ART Locação */
.company-sistemas {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}

/* ============================================================
   11. RODAPÉ
   ============================================================ */

.footer {
  padding: 36px 0 18px;
  background: #0a0a0a;
  color: #e6edef;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .7fr .95fr 1.6fr;
  gap: 38px;
}

.footer h3 {
  font-size: 13px;
  margin: 0 0 12px;
}

.footer-grid>div:not(.footer-brand) a {
  display: table;
  font-size: 12px;
  margin: 6px 0;
  color: #d5dee1;
}

.footer-brand img {
  height: 52px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p,
.footer-contact p {
  font-size: 11px;
  color: #bdc9cd;
  line-height: 1.55;
  margin: 5px 0;
}

.footer-contact .btn {
  display: inline-flex;
  margin-top: 10px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 26px;
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #91a0a5;
}

/* ============================================================
   12. GRADE DE EQUIPAMENTOS (HOME)
   Substitui o carrossel: os itens aparecem todos de uma vez,
   como no site anterior. Ao passar o mouse sobre um item, um
   card maior é projetado com a descrição completa.
   ============================================================ */

.equip-section {
  padding: 38px 0 44px;
  /* clip só na horizontal: segura a largura do painel de detalhe nas
     telas estreitas sem cortá-lo por baixo na última linha da grade
     (overflow: hidden cortaria os dois eixos) */
  overflow-x: clip;
  overflow-y: visible;
}

.equip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.equip-note {
  font-size: 14.5px;
  color: #8fa1a7;
  margin: 0;
}

/* Botão "Ver todos os equipamentos": um pouco maior que o padrão */
.equip-section .section-head .btn {
  min-height: 48px;
  padding: 0 24px;
  font-size: 14px;
}

.equip-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg2);
  overflow: visible;
}

.equip-card > .equip-inner {
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg2);
  transition: transform .28s ease, box-shadow .28s ease;
}

.equip-card figure {
  margin: 0;
  background: #fff;
}

.equip-card img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  padding: 14px;
  background: #fff;
  transition: transform .28s ease;
}

.equip-body {
  padding: 16px 16px 18px;
}

.equip-body h3 {
  font-size: 15px;
  margin: 0 0 6px;
  letter-spacing: -.01em;
}

.equip-body p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #93a5aa;
  margin: 0;
}

/* Painel de detalhe projetado no hover */
.equip-detail {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: 128%;
  min-width: 300px;
  z-index: 20;
  background: var(--bg2);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .55);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* atraso ao fechar: evita que o painel suma em um movimento
     rápido do mouse entre a imagem e o botão "Ver detalhes" */
  transition: opacity .25s ease .14s, transform .25s ease .14s, visibility .25s .14s;
}

.equip-card:hover,
.equip-card:focus-within {
  z-index: 30;
}

.equip-card:hover .equip-detail,
.equip-card:focus-within .equip-detail {
  transition-delay: 0s;
  opacity: 1;
  visibility: visible;
  /* o painel passa a receber o mouse: como ele é filho do card,
     o :hover continua válido enquanto o cursor estiver sobre ele */
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.equip-card:hover .equip-inner,
.equip-card:focus-within .equip-inner {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
}

.equip-detail figure {
  margin: 0 0 14px;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.equip-detail img {
  width: 100%;
  height: 168px;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.equip-detail h3 {
  font-size: 17px;
  margin: 0 0 8px;
  letter-spacing: -.02em;
}

.equip-detail p {
  font-size: 13px;
  line-height: 1.55;
  color: #dbe4e6;
  margin: 0 0 14px;
}

.equip-detail-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.equip-detail .equip-detail-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.equip-detail .equip-detail-cta:hover {
  text-decoration: underline;
}

/* segundo link, em destaque: leva direto ao orçamento */
.equip-detail .equip-detail-cta.alocar {
  color: #fff;
  background: var(--accent);
  padding: 7px 13px;
  border-radius: 999px;
}

.equip-detail .equip-detail-cta.alocar:hover {
  background: #e07b00;
  text-decoration: none;
}

/* Sem hover (toque): o painel abre ao tocar no card — a classe .open é
   aplicada por js/art-home.js. Largura reduzida para caber na tela. */
@media (hover: none) {
  .equip-detail {
    width: 100%;
    min-width: 0;
  }

  .equip-card.open {
    z-index: 30;
  }

  .equip-card.open .equip-detail {
    transition-delay: 0s;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
  }

  .equip-card.open .equip-inner {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .4);
  }
}

/* ============================================================
   13. AJUSTES E CORREÇÕES ADICIONAIS
   (mantidos ANTES das media queries de propósito — assim os
   breakpoints abaixo continuam podendo sobrescrevê-los)
   ============================================================ */

/* Logo ART Sistemas — imagem original da marca */

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

/* Footer CTA: centralização corrigida */

.footer-contact .btn.small,
.footer-contact .btn.btn-outline.small {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Soluções: assets ajustados para ocupar integralmente a área visual dos cards */

.solution-card>img {
  display: block;
  width: 100%;
  height: 178px;
  object-fit: fill;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
}

/* Correção 17/09: todos os cards de Soluções seguem exatamente a geometria do primeiro card. */

.solutions-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.solution-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.solution-card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 10;
  object-fit: fill;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  flex: 0 0 auto;
}

.solution-card > div {
  flex: 1 1 auto;
}

/* Correção definitiva Card 2 — remove regra específica antiga e iguala os 4 cards */

.solutions-grid .solution-card:nth-child(1) > img,
.solutions-grid .solution-card:nth-child(2) > img,
.solutions-grid .solution-card:nth-child(3) > img,
.solutions-grid .solution-card:nth-child(4) > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 11 / 10;
  object-fit: fill;
  object-position: center;
  margin: 0;
  padding: 0;
  border: 0;
  transform: none;
  flex: 0 0 auto;
}

/* ============================================================
   14. RESPONSIVO — TABLET (até 900px)
   ============================================================ */

@media (max-width: 900px) {
  .equip-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* No menu mobile o submenu vira lista recolhida: abre e fecha ao
     tocar em "Equipamentos" (classe .open aplicada pelo JS), como o
     hover faz no desktop */
  .nav-dropdown {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-dropdown-toggle {
    padding: 10px 0;
    cursor: pointer;
  }

  /* o toque dispara :focus-within; a seta só gira com o menu aberto */
  .nav-dropdown:hover .nav-dropdown-toggle:after,
  .nav-dropdown:focus-within .nav-dropdown-toggle:after {
    transform: none;
  }

  .nav-dropdown.open .nav-dropdown-toggle:after {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0 0 4px 14px;
    min-width: 0;
    display: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: flex;
  }

  /* o toque dispara :focus-within, cuja regra de desktop é mais
     específica e reaplicaria o translateX(-50%) — o submenu sairia
     deslocado para a esquerda e ficaria cortado */
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    transform: none;
  }

  .nav-dropdown-menu a {
    padding: 7px 0;
    font-size: 12px;
    text-transform: none;
  }

  .site-header {
    height: auto;
  }

  .page-home .hero {
    margin-top: -70px;
  }

  .nav-wrap {
    min-height: 70px;
    flex-wrap: wrap;
    /* o gap de 34px do desktop também separaria as duas linhas
       (logo e menu) — aqui só vale na horizontal */
    row-gap: 0;
    /* sem isto, ao abrir o menu a nav vai para a 2ª linha e o
       align-content padrão (stretch) estica a linha da logo para
       preencher o min-height — sobrava um vão embaixo da logo */
    align-content: flex-start;
  }

  /* a barra mantém os 70px pela altura própria da logo/botão, já que
     as linhas não esticam mais */
  .brand {
    height: 70px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 70px;
    margin-left: auto;
  }

  .nav-cta {
    display: none;
  }

  .main-nav {
    display: none;
    order: 3;
    width: 100%;
    height: auto;
    flex-direction: column;
    gap: 0;
    padding: 0 0 18px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav a.active:after {
    display: none;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    padding-top: 65px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
  }

  .stats-grid article:nth-child(2) {
    border: 0;
  }

  .project-card {
    width: calc(100vw - 92px);
    max-width: 420px;
  }

  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .company-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .company-grid>div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 24px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   15. RESPONSIVO — MOBILE (até 600px)
   ============================================================ */

@media (max-width: 600px) {
  .equip-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(100% - 30px, var(--max));
  }

  .hero h1 {
    font-size: 43px;
  }

  .hero-copy>p {
    font-size: 15px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid article {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid #d8dddf;
  }

  .stats-grid article:nth-child(2) {
    border-bottom: 1px solid #d8dddf;
  }

  .stats-grid article:first-child {
    padding-right: 0;
  }

  .stats-grid article:last-child {
    border-bottom: 0;
    padding-left: 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head h2 {
    font-size: 32px;
  }

  .project-card {
    width: calc(100vw - 54px);
    min-width: 270px;
  }

  .project-card>img {
    height: 185px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    gap: 12px;
    flex-direction: column;
  }
}

/* ============================================================
   16. BOTÃO WHATSAPP E LEMBRETE DE CONTATO
   ============================================================ */

/* Botão WhatsApp ao lado do telefone (footer e card de contato) */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: -8px 0 -8px 44px;
  gap: 7px;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  background: #15833e;
  color: #e4ece7;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}

.whatsapp-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.whatsapp-btn:hover,
.whatsapp-btn:focus-visible {
  background: #116d33;
  transform: translateY(-1px);
}

.whatsapp-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.footer-grid .footer-contact .whatsapp-btn {
  display: inline-flex;
  margin: -7px 0 -7px 44px;
  padding: 6px 14px 6px 10px;
  font-size: 12px;
  color: #e4ece7;
}

.footer-grid .footer-contact .whatsapp-btn svg {
  width: 15px;
  height: 15px;
}

/* Sem espaço ao lado do número, o botão desce para uma linha própria */
.footer-contact,
.contact-info-card {
  container-type: inline-size;
}

@container (max-width: 330px) {
  .footer-grid .footer-contact .whatsapp-btn,
  .contact-info-card .whatsapp-btn {
    display: flex;
    width: fit-content;
    margin: 8px 0 10px;
  }
}

/* Lembrete discreto de contato entre as seções */
.contact-nudge {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.contact-nudge-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 18px;
  padding: 20px 0;
  text-align: center;
}

.contact-nudge p {
  margin: 0;
  font-size: 14px;
  color: #9fb0b6;
}

.contact-nudge a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  transition: color .2s ease;
}

.contact-nudge a span {
  transition: transform .2s ease;
}

.contact-nudge a:hover,
.contact-nudge a:focus-visible {
  color: #ffa333;
}

.contact-nudge a:hover span,
.contact-nudge a:focus-visible span {
  transform: translateX(4px);
}

.contact-nudge a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 2px;
}

/* Footer: telefone do SAC + botão WhatsApp. Lado a lado quando cabe;
   senão o botão desce para a linha de baixo sem sobrepor o conteúdo. */
.footer-contact .tel-whats,
.contact-info-card .tel-whats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 44px;
  row-gap: 10px;
}

.footer-grid .footer-contact .tel-whats .whatsapp-btn {
  margin: -7px 0;
}

/* Quando o botão desce para baixo do número, volta às margens normais */
@container (max-width: 360px) {
  .footer-grid .footer-contact .tel-whats .whatsapp-btn {
    margin: 0;
  }
}

.contact-info-card .tel-whats .whatsapp-btn {
  margin: -8px 0;
}

@container (max-width: 360px) {
  .contact-info-card .tel-whats .whatsapp-btn {
    margin: 0;
  }
}

/* Assinatura da citação do sócio diretor */
.quote-author {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.quote-author strong {
  font-family: "Allura", cursive;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
}

.quote-author small {
  font-size: 13px;
  color: #93a5aa;
}

.quote-author small em {
  font-style: normal;
  color: var(--accent);
}

