/* =========================================================
   SERVIÇOS GERAIS — Folha de estilo principal
   Identidade visual: navy + laranja, tipografia do sistema,
   layout responsivo, mega menu de duas áreas.
   ========================================================= */

:root {
  --navy-900: #0b2233;
  --navy-800: #0f2f45;
  --navy-700: #14405e;
  --navy-600: #1a5480;
  --navy-100: #e7eef4;
  --navy-050: #f4f8fb;

  --orange-600: #e85d04;
  --orange-500: #f27405;
  --orange-100: #ffe3cc;

  --ink: #16232e;
  --ink-soft: #455565;
  --ink-mute: #6b7c8c;
  --line: #dbe4ec;
  --line-soft: #e9eff4;
  --bg: #ffffff;
  --bg-soft: #f6f9fc;
  --success: #1b7f4d;
  --success-bg: #e6f5ec;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --warn: #8a6100;
  --warn-bg: #fff5d6;

  /* Cores dos módulos */
  --mod1: #d97706; /* Elétricos */
  --mod1-bg: #fef3e2;
  --mod2: #7c3aed; /* Eletrodomésticos */
  --mod2-bg: #f3ecfe;
  --mod3: #0891b2; /* Refrigeração */
  --mod3-bg: #e3f6fa;
  --mod4: #2563eb; /* Hidráulicos */
  --mod4-bg: #e8effd;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 34, 51, 0.06), 0 1px 3px rgba(11, 34, 51, 0.08);
  --shadow-md: 0 4px 12px rgba(11, 34, 51, 0.1);
  --shadow-lg: 0 12px 32px rgba(11, 34, 51, 0.16);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

@supports (height: 100dvh) {
  :root {
    --header-h: clamp(64px, 10vw, 72px);
  }
}


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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

img,
svg {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a {
  color: var(--navy-600);
  text-decoration: none;
}

a:hover {
  color: var(--orange-600);
}

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
}

h2 {
  font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.9rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
  color: var(--ink-soft);
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.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;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease;
}

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

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

.btn-primary:hover {
  background: var(--orange-600);
  color: #fff;
}

.btn-outline {
  border-color: var(--navy-700);
  color: var(--navy-700);
  background: transparent;
}

.btn-outline:hover {
  background: var(--navy-700);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--navy-800);
}

.btn-light:hover {
  background: var(--navy-050);
  color: var(--navy-900);
}

.btn-ghost-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.05rem;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-900);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: var(--header-h);
  position: relative;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.logo:hover {
  color: #fff;
}

.logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  display: block;
}

.logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  color: #dce7f0;
  font-weight: 600;
  font-size: 0.92rem;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link[aria-expanded="true"],
.nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Seta do gatilho "Serviços": gira 180° quando o painel está aberto. */
.nav-caret {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  transition: transform 0.22s ease;
}

.nav-caret svg {
  width: 14px;
  height: 14px;
  display: block;
}

.nav-link[aria-expanded="true"] .nav-caret {
  transform: rotate(180deg);
}

.nav-cta {
  margin-left: 0.5rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
}

/* ---------- Mega menu ---------- */
.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-top: 4px solid var(--orange-500);
  box-shadow: var(--shadow-lg);
  display: none;
  color: var(--ink);
}

.mega.is-open {
  display: block;
}

/* Cabeçalho do painel (apenas no menu mobile em tela cheia). */
.mega-head {
  display: none;
}

/* Cabeçalho do menu mobile (apenas no menu mobile em tela cheia). */
.nav-mobile-head {
  display: none;
}

.nav-close,
.mega-close,
.mega-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.nav-close svg,
.mega-close svg,
.mega-back svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mega-back svg {
  width: 18px;
  height: 18px;
}

.mega-back[hidden] {
  display: none;
}

.mega-inner {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 0;
  max-height: min(72vh, 640px);
  overflow: hidden;
}

.mega-sectors {
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 0.75rem 0;
  background: var(--bg-soft);
  max-height: min(72vh, 640px);
}

.mega-group-label {
  padding: 0.7rem 1.1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0;
}

.mega-sector-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  padding: 0.58rem 1.1rem;
  background: none;
  border: 0;
  border-left: 4px solid transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.mega-sector-btn:hover {
  background: #fff;
  color: var(--navy-700);
}

.mega-sector-btn[aria-selected="true"] {
  background: #fff;
  border-left-color: var(--orange-500);
  color: var(--navy-800);
}

.mega-sector-btn .chev {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--ink-mute);
  transition: transform 0.22s ease, color 0.22s ease;
}

.mega-sector-btn .chev svg {
  width: 16px;
  height: 16px;
  display: block;
}

.mega-sector-btn[aria-selected="true"] .chev {
  color: var(--orange-600);
  transform: rotate(90deg);
}

.mega-services {
  padding: 1.1rem 1.4rem 1.4rem;
  overflow-y: auto;
  max-height: min(72vh, 640px);
}

.mega-services-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.9rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line-soft);
}

.mega-services-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy-800);
}

.mega-services-head a {
  font-size: 0.83rem;
  font-weight: 700;
  white-space: nowrap;
}

.mega-services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.2rem 1rem;
}

.mega-services-grid a {
  display: block;
  padding: 0.42rem 0.6rem;
  border-radius: 7px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

.mega-services-grid a:hover {
  background: var(--navy-050);
  color: var(--navy-700);
}

.mega-panel[hidden] {
  display: none;
}

.mega-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(11, 34, 51, 0.45);
}

.mega-backdrop.is-open {
  display: block;
}

/* ---------- Hero (capa do site) ---------- */
.hero {
  background-color: var(--navy-900);
  background-image: url("../images/capa-site.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: clamp(280px, 34vw, 520px);
  position: relative;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

/* ---------- Seções ---------- */
.section {
  padding: clamp(2.4rem, 1.8rem + 2.4vw, 4rem) 0;
}

.section-soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-head p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-600);
  margin-bottom: 0.45rem;
}

/* ---------- Grids de cards ---------- */
.grid {
  display: grid;
  gap: 1.1rem;
}

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.35rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #c6d5e2;
}

.card h3 a {
  color: var(--ink);
}

.card h3 a:hover {
  color: var(--navy-600);
}

.card p {
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-mute);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
  margin-top: auto;
}

.card-meta .go {
  font-weight: 700;
  color: var(--navy-600);
}

/* Cards de módulo */
.module-card {
  border-top: 5px solid var(--mod-color, var(--navy-600));
}

.module-card .mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mod-color, var(--navy-600));
  background: var(--mod-bg, var(--navy-050));
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.7rem;
  width: fit-content;
}

.m1 { --mod-color: var(--mod1); --mod-bg: var(--mod1-bg); }
.m2 { --mod-color: var(--mod2); --mod-bg: var(--mod2-bg); }
.m3 { --mod-color: var(--mod3); --mod-bg: var(--mod3-bg); }
.m4 { --mod-color: var(--mod4); --mod-bg: var(--mod4-bg); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 0.7rem 0;
  font-size: 0.83rem;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink-mute);
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  color: var(--ink-mute);
  margin-left: 0.15rem;
}

.breadcrumbs a {
  color: var(--navy-600);
  font-weight: 600;
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink-soft);
  font-weight: 600;
}

/* ---------- Página interna ---------- */
.page-head {
  background: linear-gradient(180deg, var(--navy-050), #fff);
  border-bottom: 1px solid var(--line-soft);
  padding: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem) 0;
}

.page-head .lead {
  max-width: 52rem;
  font-size: 1.05rem;
  margin-bottom: 0;
}

.page-head-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--navy-050);
  border: 1px solid var(--line);
  color: var(--navy-700);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.tag a {
  color: inherit;
}

/* Conteúdo de serviço */
.prose {
  max-width: 48rem;
}

.prose h2 {
  margin-top: 1.8rem;
}

.prose ul {
  color: var(--ink-soft);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--orange-500);
  box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--orange-500);
}

.info-box {
  background: var(--navy-050);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1.4rem 0;
  font-size: 0.92rem;
}

.info-box.warn {
  background: var(--warn-bg);
  border-left-color: var(--warn);
}

.info-box.warn p {
  color: var(--warn);
}

/* ---------- Área de contato / CTA ---------- */
.cta-band {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(242, 116, 5, 0.25), transparent 55%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.35rem;
}

.cta-band p {
  color: #cfdfeb;
  margin: 0;
  max-width: 40rem;
}

.cta-band .cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.cta-inline {
  margin: 2rem 0;
}

/* ---------- Formulários ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.3rem, 1rem + 1.2vw, 2rem);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.field .req {
  color: var(--danger);
  margin-left: 0.15rem;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 0.95rem;
  padding: 0.62rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26, 84, 128, 0.15);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--ink-mute);
}

.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  font-weight: 600;
  min-height: 1em;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
}

.checkbox-field input {
  width: auto;
  margin-top: 0.3rem;
}

.checkbox-field label {
  font-weight: 500;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

.form-status {
  margin-top: 1rem;
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-info {
  background: var(--navy-050);
  border: 1px solid var(--line);
  color: var(--navy-700);
}

.form-status.is-success {
  background: var(--success-bg);
  border: 1px solid #bfe3cd;
  color: var(--success);
}

.form-status.is-error {
  background: var(--danger-bg);
  border: 1px solid #f3c7c3;
  color: var(--danger);
}

/* ---------- Busca ---------- */
.search-bar {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
}

.search-bar input {
  flex: 1;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
  outline: none;
  border-color: var(--navy-600);
  box-shadow: 0 0 0 3px rgba(26, 84, 128, 0.15);
}

/* ---------- Listas de serviços (páginas de setor) ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0.9rem;
}

.service-list a {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.service-list a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c6d5e2;
  color: var(--navy-700);
}

.service-list .svc-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.35;
}

.service-list .svc-desc {
  font-size: 0.82rem;
  color: var(--ink-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Estados vazios ---------- */
.empty-state {
  text-align: center;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  padding: clamp(2rem, 1.5rem + 2vw, 3.2rem) 1.5rem;
}

.empty-state .empty-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
}

.empty-state h3 {
  margin-bottom: 0.4rem;
}

.empty-state p {
  max-width: 34rem;
  margin-inline: auto;
  margin-bottom: 0.4rem;
}

.empty-state .empty-note {
  font-size: 0.8rem;
  color: var(--ink-mute);
}

/* ---------- Nota editorial ---------- */
.editorial-note {
  font-size: 0.85rem;
  color: var(--ink-mute);
  font-style: italic;
  border-left: 3px solid var(--line, #e2e8ee);
  padding-left: 0.8rem;
  margin-top: 0.8rem;
}

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--navy-900);
  color: #b9cddd;
  padding: 3rem 0 1.6rem;
  margin-top: 3rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.site-footer h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #b9cddd;
}

.site-footer a:hover {
  color: #fff;
}

.footer-brand .logo {
  margin-bottom: 0.8rem;
}

.footer-brand .logo-mark {
  background: #fff;
  color: var(--navy-900);
}

.footer-brand p {
  color: #93aabf;
  font-size: 0.86rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #7e96ac;
}

/* ---------- Mapa de cobertura ---------- */
.coverage-map {
  margin: 0 0 2.2rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--navy-800);
}

.coverage-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 1rem 1.15rem;
}

.coverage-map-head h4 {
  color: #fff;
  margin: 0;
}

.coverage-map-head p {
  margin: 0;
  font-size: 0.84rem;
  color: #93aabf;
}

.coverage-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: saturate(1.05);
}

/* Área de cobertura dentro da página "Regiões Atendidas" */
.coverage-map-block {
  margin-bottom: 2rem;
}

.coverage-map-block .coverage-map {
  margin-bottom: 0;
  border-color: var(--line);
  background: var(--bg-soft);
}

.coverage-map-block .coverage-map-head h4 {
  color: var(--ink);
}

.coverage-map-block .coverage-map-head p {
  color: var(--ink-mute);
}

.coverage-map--light iframe {
  height: 380px;
}

@media (max-width: 768px) {
  .coverage-map iframe {
    height: 240px;
  }

  .coverage-map--light iframe {
    height: 260px;
  }
}

/* ---------- Avaliações ---------- */
.review-summary {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.7rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.review-score {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--navy-800);
}

.review-summary-star,
.review-stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star {
  width: 18px;
  height: 18px;
  fill: #d8dee9;
  flex: 0 0 auto;
}

.star-on {
  fill: #f5a623;
}

.review-count {
  font-size: 0.9rem;
  color: var(--muted, #5a6472);
}

.review-grid {
  align-items: stretch;
}

.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  background: var(--navy-700, #1f3557);
  flex: 0 0 auto;
}

.review-who {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}

.review-name {
  font-weight: 600;
  color: var(--navy-800);
}

.review-when {
  font-size: 0.8rem;
  color: var(--muted, #5a6472);
}

.review-text {
  margin: 0;
  color: var(--text, #333b47);
}

.review-cta {
  margin-top: 1.8rem;
}

/* ---------- Utilidades ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }

.module-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 2.2rem 0 1.1rem;
}

.module-divider h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-800);
}

.module-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  height: 1.7em;
  padding: 0 0.45em;
  border-radius: 999px;
  background: var(--navy-050);
  border: 1px solid var(--line);
  color: var(--navy-700);
  font-size: 0.75rem;
  font-weight: 800;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  :root {
    --header-h: clamp(64px, 12vw, 72px);
  }

  .header-inner {
    gap: 0.8rem;
    flex-wrap: wrap;
  }

  .logo {
    font-size: 1rem;
  }

  .logo small {
    font-size: 0.6rem;
  }

  /* ---------- Menu mobile: overlay em tela cheia ----------
     O menu e o catálogo de serviços viram painéis fixos (inset: 0) com rolagem
     própria. Assim nenhum item fica preso atrás do cabeçalho fixo e não
     existem áreas de rolagem concorrentes que se sobreponham. */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    width: 100%;
    max-height: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    background: var(--navy-900);
    border-top: 0;
    padding: 0 0 2rem;
    margin: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

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

  .nav-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.35rem;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .nav-mobile-brand {
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.01em;
  }

  .main-nav > .nav-link,

  .main-nav > button.nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border-radius: 0;
    min-height: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-cta {
    margin: 1rem 1rem 0;
  }

  .nav-cta .btn {
    width: 100%;
    min-height: 50px;
  }

  .mega {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: none;
    margin: 0;
    background: var(--navy-900);
    border-top: 0;
    box-shadow: none;
    overflow: hidden;
  }

  .mega.is-open {
    display: flex;
  }

  .mega-head {
    display: block;
    flex: 0 0 auto;
    background: var(--navy-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mega-head-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
  }

  .mega-head-title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.25;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .mega-inner {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
    max-height: none;
    overflow: hidden;
    padding: 0;
  }

  .mega-sectors {
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    border-right: 0;
    border-bottom: 0;
    background: var(--navy-900);
    padding: 0.35rem 0.75rem 2.5rem;
  }

  .mega-group-label {
    color: #8fa9bf;
    padding: 0.9rem 0.6rem 0.35rem;
  }

  .mega-sector-btn {
    color: #e7eef4;
    border-left-color: transparent;
    padding: 0.75rem 0.85rem;
    border-radius: 10px;
    min-height: 50px;
    font-size: 0.95rem;
  }

  .mega-sector-btn:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
  }

  .mega-sector-btn[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: var(--orange-500);
    color: #fff;
  }

  .mega-sector-btn .chev {
    color: #8fa9bf;
    width: 22px;
    height: 22px;
  }

  .mega-sector-btn .chev svg {
    width: 18px;
    height: 18px;
  }

  .mega-sector-btn[aria-selected="true"] .chev {
    color: var(--orange-500);
  }

  .mega-services {
    display: none;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0.9rem 1rem 3rem;
    background: #fff;
  }

  .mega[data-view="services"] .mega-sectors {
    display: none;
  }

  .mega[data-view="services"] .mega-services {
    display: block;
  }

  .mega-services-head {
    margin-bottom: 0.7rem;
    padding-bottom: 0.6rem;
  }

  .mega-services-head h3 {
    display: none;
  }

  .mega-services-grid {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }

  .mega-services-grid a {
    padding: 0.62rem 0.6rem;
    font-size: 0.95rem;
  }

  .mega-group-title {
    color: var(--ink);
  }

  .mega-link {
    padding: 0.55rem 0;
  }

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

@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .cta-actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 768px) {
  :root {
    --header-h: clamp(60px, 14vw, 70px);
  }

  .container {
    padding: 0 1rem;
  }

  .site-header {
    position: sticky;
  }

  .header-inner {
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .logo {
    font-size: 0.98rem;
    min-width: 0;
  }

  .logo small {
    font-size: 0.58rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
    flex-shrink: 0;
  }

  /* O menu e o catálogo já são painéis em tela cheia (ver bloco de 1024px):
     aqui só se ajusta o respiro interno das listas. */
  .mega-sectors {
    padding: 0.35rem 0.6rem 2.5rem;
  }

  .mega-sector-btn {
    padding: 0.8rem 0.9rem;
    min-height: 52px;
  }

  .mega-services {
    padding: 0.9rem 1rem 3rem;
  }

  .mega-services-grid a {
    padding: 0.7rem 0.6rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .hero {
    min-height: 200px;
  }

  .section {
    padding: clamp(2rem, 1.6rem + 2vw, 3rem) 0;
  }

  h1 {
    font-size: clamp(1.8rem, 1.4rem + 2.6vw, 2.6rem);
  }

  h2 {
    font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.2rem);
  }
}
@media (max-width: 480px) {
  .btn-lg { width: 100%; }
}

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

/* Impede overflow horizontal acidental.
   `overflow-x: clip` não cria container de rolagem, então o cabeçalho
   `position: sticky` continua funcionando (com `hidden` como fallback).
   Aplicado também no `html`, pois o overflow do `body` é propagado para a
   viewport apenas quando o `html` não define o próprio overflow. */
html {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
  overflow-x: clip;
}

/* Trava a rolagem do documento enquanto o menu mobile está aberto. */
html.is-menu-open,
html.is-menu-open body {
  overflow: hidden;
}

/* ---------- Cards de perfil (Residencial / Empresas) ---------- */
.profile-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem;
}

.profile-card h3 { font-size: 1.35rem; margin: 0.2rem 0; }
.profile-card p { flex: 1; }

.profile-card .card-meta { margin-top: 0.8rem; }

/* ---------- Etapas do atendimento ---------- */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}

.section-soft .step-item { background: #fff; }

.step-num {
  flex: 0 0 auto;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--orange-100);
  color: var(--orange-600);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.step-item h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.step-item p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- FAQ (details/summary) ---------- */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}

.section-soft .faq-item { background: #fff; }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.2rem;
  font-weight: 700;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--orange-600);
  transition: transform 0.15s ease;
}

.faq-item[open] summary::after { content: "–"; }

.faq-item summary:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: -3px;
}

.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--ink-soft);
}

.faq-answer p { margin: 0; }

/* ---------- Tags de aplicações em cards ---------- */
.card-apps { margin: 0.2rem 0 0; }

.card-apps .tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--navy-100);
  color: var(--navy-700);
  margin-right: 0.3rem;
}

/* ---------- Marcas que atendemos (Grid responsivo) ---------- */
.brands-section {
  background: var(--bg);
}

.brands-head {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.brands-head.center {
  margin-inline: auto;
  text-align: center;
}

.brands-head p {
  margin-bottom: 0;
  font-size: 1.02rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  align-items: stretch;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 92px;
  padding: 0.8rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.brand-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c6d5e2;
}

.brand-card img {
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.brands-cta {
  margin-top: 1.6rem;
  text-align: center;
}

@media (min-width: 640px) {
  .brands-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 880px) {
  .brands-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .brands-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .brand-card {
    height: 84px;
  }
  .brand-card img {
    max-height: 56px;
  }
}
