/* =========================================================================
   Eletro Técnica Mirassol — Landing Page
   Tokens lidos do Figma (node 1:3 "Desktop", 1920px) via MCP
   ========================================================================= */

:root {
  /* --- Marca --- */
  --red: #e53527;          /* botões primários */
  --red-deep: #d71926;     /* destaque dentro de títulos */
  --red-badge: #c7271b;    /* eyebrow / badge em fundo claro */
  --navy: #17339f;         /* seções escuras, barra de CTA, links */
  --navy-deep: #071a3d;    /* fim do gradiente */
  --navy-footer: #05142e;  /* rodapé */

  /* --- Texto --- */
  --ink: #101827;          /* títulos */
  --ink-plain: #000000;    /* h1 */
  --muted: #4d596d;        /* corpo em fundo claro */
  --muted-2: #9ca0ac;      /* botão fantasma */
  --on-navy: #ffffff;
  --on-navy-lead: #c5d0e4;
  --on-navy-lead-2: #d7def2;
  --on-navy-body: #aebbd2;
  --footer-link: #b2bdd1;
  --footer-tagline: #9eabc2;
  --footer-bottom: #7f8da7;

  /* --- Superfícies --- */
  --surface: #ffffff;
  --surface-2: #f6f7fb;    /* fundo de seção */
  --surface-card: #f5f7fa; /* cards S6/S7 */
  --icon-bg: #edf1ff;      /* caixa de ícone */
  --border: #dfe4ec;
  --rule: #d4d4d4;         /* divisores entre seções */
  --header-line: #f2f3f5;

  /* --- Tipografia --- */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-h1: clamp(2.25rem, 1.06rem + 3.75vw, 4.5rem);       /* 36 → 72 */
  --fs-h2: clamp(1.75rem, 1.1rem + 2.03vw, 3.25rem);       /* 28 → 52 */
  --fs-h3: clamp(1.0625rem, 0.99rem + 0.23vw, 1.2rem);     /* 17 → 19.2 */
  --fs-h3-lg: clamp(1.125rem, 1.03rem + 0.3vw, 1.26rem);   /* 18 → 20.2 */
  --fs-body: 1rem;                                          /* 16 / lh 28 */
  --fs-card: 0.92rem;                                       /* 14.7 */
  --fs-eyebrow: 0.75rem;                                    /* 12 */

  /* --- Layout --- */
  --container: 1392px;
  --container-wide: 1440px;
  --container-about: 1524px;   /* seção Sobre sangra à esquerda no Figma */
  --hl-gap: 50px;              /* espaçamento entre colunas da faixa de destaques */
  --gutter: clamp(1.25rem, 0.4rem + 3.4vw, 4rem);
  --section-y: clamp(4rem, 2.4rem + 5vw, 7.5rem);
  --radius: 10px;
  --radius-sm: 8px;
  --radius-lg: 10px;
  --header-h: 88px;

  --shadow-card: 0 18px 46px rgba(7, 26, 61, 0.08);
  --shadow-grid: 0 24px 48px rgba(7, 26, 61, 0.06);
  --shadow-btn: 0 10px 24px rgba(229, 53, 39, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.75;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Primitivos de layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--wide { max-width: calc(var(--container-wide) + var(--gutter) * 2); }
.container--about { max-width: calc(var(--container-about) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); position: relative; }
.section--divided { border-top: 1px solid var(--rule); }
.section--surface { background: var(--surface-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy .eyebrow { color: var(--on-navy); }
.section--navy .lead { color: var(--on-navy-lead); }

/* ---------- Tipografia ---------- */
.eyebrow {
  display: inline-block;
  font-size: var(--fs-eyebrow);
  font-weight: 800;
  letter-spacing: 0.112em;
  text-transform: uppercase;
  color: var(--red-badge);
  line-height: 1.47;
  margin-bottom: 1.875rem;
}

.h1 {
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 0.96;
  letter-spacing: -0.06em;
  color: var(--ink-plain);
}

.h2 {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.0465em;
  color: var(--ink);
}
.section--navy .h2 { color: var(--on-navy); }
.accent { color: var(--red-deep); }
.section--navy .accent { color: #ff8f84; }

.h3 {
  font-size: var(--fs-h3);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.028em;
  color: var(--ink);
}
.section--navy .h3 { color: var(--on-navy); }

.lead { color: var(--muted); font-size: var(--fs-body); line-height: 1.75; }
.body-card { color: var(--muted); font-size: var(--fs-card); line-height: 1.68; }

/* Cabeçalho de seção: título à esquerda, apoio alinhado à direita do container.
   As larguras vêm medidas do Figma — são elas que definem onde o texto quebra. */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(1.5rem, 0.5rem + 3vw, 5rem);
}
.section-head .h2 { max-width: var(--h2w, 640px); }
.section-head .lead {
  flex: 0 1 var(--leadw, 500px);
  max-width: var(--leadw, 500px);
  padding-bottom: 0.35rem;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.btn svg, .btn img { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

.btn--primary {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn--primary:hover { background: var(--red-deep); border-color: var(--red-deep); }

.btn--ghost { border-color: var(--muted-2); color: var(--muted-2); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.btn--lg { min-height: 60px; padding: 0 20px; border-radius: var(--radius); font-size: 1rem; }
.btn--lg svg, .btn--lg img { width: 20px; height: 20px; }

/* Link com seta */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.93rem;
  color: var(--navy);
}
.link-arrow svg { width: 18px; height: 18px; flex: none; transition: transform 0.18s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Caixa de ícone ---------- */
.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--icon-bg);
  color: var(--navy);
}
.icon-box svg { width: 25px; height: 25px; }
.icon-box--lg { width: 64px; height: 64px; border-radius: 9px; }
.icon-box--lg svg { width: 30px; height: 30px; }
.icon-box--md { width: 48px; height: 48px; }
.icon-box--md svg { width: 24px; height: 24px; }
.icon-box--sm { width: 40px; height: 40px; border-radius: 7px; }
.icon-box--sm svg { width: 21px; height: 21px; }
.icon-box--on-navy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* =========================================================================
   Header
   ========================================================================= */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
  border-bottom: 2px solid var(--header-line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, -1rem + 5vw, 4rem);
  width: 100%;
}
.header__logo { flex: none; }
.header__logo img { width: 150px; height: auto; }

.nav { display: flex; align-items: center; gap: clamp(1.25rem, 0.2rem + 2.4vw, 3.25rem); }
.nav a {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink-plain);
  position: relative;
  padding-block: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav a:hover::after,
.nav a[aria-current="true"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--ink);
  background: #fff;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(1080px, 100svh);
  padding-top: calc(var(--header-h) + clamp(2rem, 0.5rem + 5vw, 5rem));
  padding-bottom: clamp(6rem, 3rem + 9vw, 11rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg, .hero__pattern, .hero__persona {
  position: absolute; z-index: -1; pointer-events: none; user-select: none;
}
.hero__bg { inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pattern { right: 0; bottom: 0; width: min(911px, 48%); height: auto; }

/* No Figma a persona fica a 159px da direita e 14px do fundo (1920×1080).
   A borda direita dela cai 81px além do container de 1440 — por isso a âncora
   é o container centralizado (720 + 81 = 801), e não a borda da viewport. */
.hero__persona {
  right: max(2rem, calc(50% - 801px));
  bottom: 14px;
  /* 717/1920 ≈ 37vw — encolhe junto com o texto para não invadir o título */
  width: min(717px, 37.4vw);
  aspect-ratio: 717 / 924;      /* o node usa CROP: ~1,5% cortado em cima e embaixo */
  height: auto;
  object-fit: cover;
  object-position: center;
}

/* 802/1740 (conteúdo do container em 1920) ≈ 46vw */
.hero__content { max-width: min(802px, 46vw); }
.hero__text { margin-top: 1.875rem; max-width: 680px; font-size: 1.125rem; line-height: 1.72; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 2rem; }

/* =========================================================================
   Faixa de destaques (card vermelho sobreposto)
   ========================================================================= */
/* No Figma a faixa começa 57px antes do fim da Hero (y 1023 vs 1080) e o
   bloco seguinte respira 63px abaixo dela. */
.highlights { position: relative; z-index: 2; margin-top: -57px; }
.highlights + .section { padding-top: 63px; }

.highlights__card {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--hl-gap);
  min-height: 114px;
  padding: 20px clamp(1.5rem, 0.5rem + 2.5vw, 3.5rem);
  background: var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: #fff;
}
.highlight { display: flex; align-items: flex-start; gap: 10px; position: relative; }
.highlight + .highlight::before {
  content: "";
  position: absolute;
  left: calc(var(--hl-gap) / -2);
  top: 50%;
  translate: -50% -50%;
  width: 1px; height: 35px;
  background: rgba(255, 255, 255, 0.45);
}
.highlight img { width: 23px; height: 23px; flex: none; margin-top: 1px; }
.highlight strong { display: block; font-size: 0.9375rem; font-weight: 700; line-height: 1.405; }
.highlight span { display: block; font-size: 0.78rem; line-height: 1.45; opacity: 0.92; }

/* Variante mobile: bloco único centralizado com copy própria */
.highlights__card--mobile { display: none; }
.highlights__card--mobile img { width: 23px; height: 23px; margin-inline: auto; }
.highlights__card--mobile strong { font-size: 0.9375rem; font-weight: 700; line-height: 1.4; }
.highlights__card--mobile p { font-size: 0.75rem; line-height: 1.5; }

/* =========================================================================
   S2 — Sobre
   ========================================================================= */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 887fr) minmax(0, 647fr);
  gap: clamp(2rem, 0.5rem + 4vw, 5.75rem);
  align-items: center;
}
.about__media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 887 / 592;
  background: linear-gradient(135deg, #1d2b4d, var(--navy-deep));
}
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body .h2 { max-width: 647px; }
.about__body .lead { max-width: 580px; }
.about .lead { margin-top: 1.4rem; }
.about .lead + .lead { margin-top: 1rem; }
.about__divider { height: 1px; background: var(--rule); margin: 2.25rem 0 1.75rem; }
.about__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.9rem; }
.about__list li {
  display: flex; align-items: center; gap: 15px;
  font-size: 0.875rem; font-weight: 600; color: var(--ink-plain);
}
.about__list svg { width: 20px; height: 20px; flex: none; color: var(--red); }

/* =========================================================================
   S3 — Serviços
   ========================================================================= */
.services .section-head { --h2w: 616px; --leadw: 500px; }
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.125rem);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-grid);
  overflow: hidden;
}
.service {
  display: flex;
  gap: 22px;
  padding: 42px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}
.service:hover { background: var(--surface-2); }
.service:nth-child(2n) { border-right: 0; }
.service:nth-last-child(-n + 2) { border-bottom: 0; }
.service p { margin-top: 0.15rem; color: var(--muted); font-size: var(--fs-card); line-height: 1.68; }

.cta-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: clamp(1.5rem, 1rem + 1.6vw, 2rem);
  padding: 30px;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
}
.cta-bar strong { display: block; font-size: 1.03rem; font-weight: 700; line-height: 1.5; }
.cta-bar p { color: var(--on-navy-lead-2); font-size: 0.875rem; line-height: 1.6; margin-top: 0.1rem; }

/* =========================================================================
   S4 — Estrutura técnica (azul-marinho)
   ========================================================================= */
.structure { overflow: hidden; isolation: isolate; text-align: center; }
.structure__media, .structure__pattern { position: absolute; z-index: -1; pointer-events: none; }
.structure__media {
  inset: 0 0 0 40%;
  background: var(--navy);
}
.structure__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(23, 51, 159, 0.82) 30%, rgba(23, 51, 159, 0.35) 100%);
}
.structure__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.structure__pattern { left: -148px; bottom: 0; width: 631px; opacity: 0.28; }

.structure__head { max-width: 900px; margin-inline: auto; }
.structure__head .h2 { margin-inline: auto; max-width: 881px; }
.structure__head .lead { max-width: 564px; margin: 1.5rem auto 0; }

.structure__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.4rem + 1.6vw, 1.875rem);
  margin-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  text-align: left;
}
.structure__cards li { display: flex; gap: 15px; }
.structure__cards h3 { font-size: 0.96rem; font-weight: 700; line-height: 1.5; color: #fff; }
.structure__cards p { margin-top: 0.1rem; font-size: 0.79rem; line-height: 1.52; color: var(--on-navy-body); }

/* =========================================================================
   S5 — Motores e equipamentos
   ========================================================================= */
.equipment .section-head { --h2w: 806px; --leadw: 486px; }
.equipment__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.5rem + 1.6vw, 1.3rem);
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.125rem);
}
.equipment__card {
  display: flex;
  gap: 26px;
  padding: 42px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.equipment__card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.equipment__card .h3 { font-size: var(--fs-h3-lg); }
.equipment__card p { margin: 0.25rem 0 1rem; color: var(--muted); font-size: var(--fs-card); line-height: 1.68; }

.authorized {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1.25rem, 0.5rem + 2vw, 2.125rem);
  margin-top: clamp(1.75rem, 1rem + 2vw, 3.125rem);
  padding: 30px 34px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 54%);
}
.authorized__body { flex: 1 1 420px; }
.authorized__body .eyebrow { margin-bottom: 0.15rem; color: var(--on-navy-lead-2); }
.authorized__body h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.4; }
.authorized__body p { margin-top: 0.2rem; font-size: 0.875rem; color: var(--on-navy-lead); line-height: 1.6; }

/* =========================================================================
   S6 — Quem atendemos
   ========================================================================= */
.audience__grid {
  display: grid;
  grid-template-columns: minmax(0, 498fr) minmax(0, 779fr);
  gap: clamp(2rem, 0.5rem + 4vw, 7.25rem);
  align-items: center;
}
.audience .h2 { max-width: 457px; }
.audience .lead { max-width: 498px; margin-top: 1.6rem; }
.audience .btn { margin-top: 2rem; }

.audience__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.audience__list li {
  display: flex; align-items: center; gap: 15px;
  padding: 20px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.audience__list li:hover { border-color: var(--navy); box-shadow: var(--shadow-card); }
.audience__list svg { width: 22px; height: 22px; flex: none; color: var(--navy); }

/* =========================================================================
   S7 — Qual sua necessidade?
   ========================================================================= */
.needs .section-head { --h2w: 486px; --leadw: 328px; }
.needs__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 0.4rem + 2vw, 2.5rem);
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.125rem);
}
.need {
  display: flex;
  gap: 19px;
  padding: 29px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.need:hover { border-color: var(--navy); box-shadow: var(--shadow-card); transform: translateY(-3px); }
.need:hover .need__arrow { transform: translateX(4px); color: var(--navy); }
.need__body { flex: 1; }
.need p { margin-top: 0.15rem; color: var(--muted); font-size: 0.91rem; line-height: 1.62; }
.need__arrow {
  flex: none; width: 19px; height: 19px; margin-top: 4px;
  color: var(--muted-2); transition: transform 0.2s ease, color 0.2s ease;
}

/* =========================================================================
   S8 — Nosso atendimento
   ========================================================================= */
.process { text-align: center; }
.process .h2 { max-width: 760px; margin-inline: auto; }  /* 1 linha, como no Figma */
.process__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 0.5rem + 2.4vw, 2.5rem);
  margin-top: clamp(2rem, 1rem + 2.5vw, 3.25rem);
  text-align: left;
}
.process__steps h3 { margin-top: 1rem; font-size: 1.15rem; }
.process__steps p { margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-card); line-height: 1.62; }

/* =========================================================================
   S9 — Fale conosco
   ========================================================================= */
.contact-cta { overflow: hidden; isolation: isolate; text-align: center; }
.contact-cta__pattern {
  position: absolute;
  right: 0; top: 30px;
  width: min(761px, 55%);
  z-index: -1;
  opacity: 0.22;
  pointer-events: none;
}
.contact-cta .eyebrow { color: var(--on-navy-lead-2); }
.contact-cta .h2 { max-width: 580px; margin-inline: auto; } /* 2 linhas, como no Figma */
.contact-cta .lead { max-width: 534px; margin: 1.5rem auto 0; color: var(--on-navy-lead-2); }
.contact-cta .btn { margin-top: 2.6rem; }

/* =========================================================================
   Footer
   ========================================================================= */
.footer {
  background: var(--navy-footer);
  color: #fff;
  padding-top: clamp(3rem, 2rem + 3vw, 4.375rem);
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 0.5rem + 3vw, 3.125rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.375rem);
}
.footer__logo { width: 175px; height: auto; }
.footer__tagline {
  margin-top: 1.5rem; max-width: 288px;
  color: var(--footer-tagline); font-size: 0.84rem; line-height: 1.65;
}
.footer h2 {
  font-size: 0.74rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; margin-bottom: 0.85rem;
}
.footer__link {
  display: inline-flex; align-items: flex-start; gap: 9px;
  padding-block: 9px;
  color: var(--footer-link); font-size: 0.84rem; line-height: 1.5;
  transition: color 0.18s ease;
}
.footer__link:hover { color: #fff; }
.footer__link svg { width: 17px; height: 17px; flex: none; margin-top: 2px; }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--footer-bottom); font-size: 0.76rem;
}

/* Botão flutuante WhatsApp */
.wa-float {
  position: fixed;
  right: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  bottom: clamp(1rem, 0.5rem + 1vw, 1.75rem);
  z-index: 90;
  display: grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366; color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  transition: transform 0.18s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }


/* =========================================================================
   Responsivo
   Desktop 1920 e Mobile 375 vêm dos frames do Figma.
   Tablet 768 é o estado intermediário (frame "Tablet • 768").
   ========================================================================= */

/* ---- ≤ 1440px : abaixo da largura de conteúdo do Figma ---- */
@media (max-width: 1440px) {
  .section-head { --h2w: none; --leadw: 42%; }
  .section-head .lead { flex: 0 1 42%; max-width: 42%; }
}

/* ---- ≤ 1180px : desktop estreito ---- */
@media (max-width: 1180px) {
  .header__cta { display: none; }
  .highlights { --hl-gap: 32px; }
  .highlights__card { flex-wrap: wrap; row-gap: 1.75rem; }
  .highlight { flex: 1 1 calc(50% - var(--hl-gap)); }
  .highlight:nth-child(3)::before { display: none; }
  .structure__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- ≤ 1024px : tablet largo ---- */
@media (max-width: 1024px) {
  .section-head {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .section-head .h2 { max-width: 24ch; }
  .section-head .lead { flex: initial; max-width: 62ch; padding-bottom: 0; }

  .about__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about__media { order: -1; aspect-ratio: 16 / 10; }
  .about__body .h2, .about__body .lead { max-width: none; }
  .audience__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .audience .h2, .audience .lead { max-width: 62ch; }
  .needs__grid { grid-template-columns: 1fr; }
  .equipment__card, .service { padding: 32px; }
  .structure__media { inset: 0; }
  .structure__media::after { background: rgba(23, 51, 159, 0.88); }
  .structure__head .h2, .process .h2, .contact-cta .h2 { max-width: 22ch; }
}

/* ---- ≤ 900px : navegação em drawer, hero empilhado ---- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--header-line); font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav .btn { margin-top: 1.25rem; width: 100%; }

  .header__logo img { width: 124px; }

  /* Hero empilhado: texto em cima, técnico embaixo */
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-bottom: 0;
    text-align: left;
  }
  .hero > .container { order: 1; position: relative; z-index: 1; }
  .hero__persona {
    order: 2;
    position: relative;
    inset: auto;
    z-index: 0;
    width: min(460px, 78%);
    height: auto;
    margin: clamp(2rem, 1rem + 4vw, 3rem) auto -1px;
  }
  .hero__pattern { width: 100%; height: auto; opacity: 0.5; }
  .hero__content { max-width: none; }
  .hero__text { font-size: 1.0625rem; max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }

  .highlights { margin-top: -40px; }
  .highlights + .section { padding-top: var(--section-y); }

  .services__grid { grid-template-columns: 1fr; }
  .service { border-right: 0; }
  .service:nth-last-child(-n + 2) { border-bottom: 1px solid var(--border); }
  .service:last-child { border-bottom: 0; }

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

  .cta-bar, .authorized { flex-direction: column; align-items: stretch; }
  .cta-bar .btn, .authorized .btn { width: 100%; }
  /* em coluna, o flex-basis de 420px viraria ALTURA e abria um vão enorme */
  .authorized__body { flex: 0 1 auto; }
}

/* ---- ≤ 600px : mobile — espelha o frame "Mobile • 375" ---- */
@media (max-width: 600px) {
  :root { --fs-eyebrow: 0.625rem; }   /* 10px, como no frame mobile */

  .header__logo img { width: 88px; }
  .nav-toggle { width: 30px; height: 30px; border-radius: 5px; }
  .nav-toggle svg { width: 16px; height: 16px; }

  /* Hero: texto centralizado, sem foto do técnico e sem pattern */
  .hero { text-align: center; padding-bottom: 30px; background: #f8f9fb; }
  .hero__persona, .hero__pattern { display: none; }
  .hero__actions { justify-content: center; }

  /* Faixa de destaques: bloco único centralizado, full-bleed e sem sobrepor a Hero */
  .highlights { margin-top: 0; }
  .highlights > .container { max-width: none; padding-inline: 0; }
  .highlights__card { display: none; }
  .highlights__card--mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 30px 24px;
    background: var(--red);
    color: #fff;
  }

  .structure__cards { grid-template-columns: 1fr; }
  .audience__list { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .footer__bottom { flex-direction: column; }

  .process, .structure, .contact-cta { text-align: left; }
  .process .h2, .structure__head .h2, .contact-cta .h2 { margin-inline: 0; max-width: none; }
  .structure__head .lead, .contact-cta .lead { margin-inline: 0; }
  .section-head .h2, .section-head .lead { max-width: none; }
}

/* ---- ≤ 420px : telas pequenas ---- */
@media (max-width: 420px) {
  :root { --fs-h1: 2.125rem; --fs-h2: 1.75rem; }
  .service, .equipment__card { padding: 26px 22px; flex-direction: column; gap: 18px; }
  .need { padding: 22px; }
  .cta-bar, .authorized { padding: 24px 22px; }
  .authorized { flex-direction: column; align-items: flex-start; }
  .about__list { grid-template-columns: 1fr; }
  .wa-float { width: 50px; height: 50px; }
  .wa-float svg { width: 25px; height: 25px; }
}
