/* ==========================================================================
   Base compartilhada — 5 modelos de site para eletricistas
   Estrutura, componentes e acessibilidade. Cada modelo tem seu theme.css.
   ========================================================================== */

:root {
  --font-display: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.8125rem, 0.79rem + 0.12vw, 0.875rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  --step-1: clamp(1.125rem, 1.06rem + 0.32vw, 1.3125rem);
  --step-2: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.75rem, 1.35rem + 1.8vw, 2.75rem);
  --step-4: clamp(2.125rem, 1.5rem + 2.8vw, 3.75rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;

  --container: 1180px;
  --container-narrow: 760px;
  --gutter: clamp(1.125rem, 4vw, 2.5rem);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --color-bg: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f4f5f7;
  --color-text: #14181d;
  --color-muted: #4b5563;
  --color-primary: #1d4ed8;
  --color-on-primary: #ffffff;
  --color-accent: #b45309;
  --color-on-accent: #ffffff;
  --color-border: #dde1e7;
  --color-border-strong: #b8bfc9;
  --color-focus: #1d4ed8;
  --color-danger: #b91c1c;
  --color-success: #166534;
  --color-wa: #25d366;
  --color-header-bg: #ffffff;
  --color-footer-bg: #14181d;
  --color-footer-text: #f5f7fa;
  --color-footer-muted: #c7ccd4;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px -16px rgba(15, 23, 42, 0.28);
  --shadow-lg: 0 28px 60px -28px rgba(15, 23, 42, 0.35);

  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 180ms;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 20px);
  scroll-padding-bottom: 110px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 700;
}

p {
  text-wrap: pretty;
}

ul,
ol {
  padding: 0;
}

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

strong {
  font-weight: 700;
}

::selection {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

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

a,
button,
input,
select,
textarea,
summary {
  scroll-margin-top: calc(var(--header-h) + 24px);
  scroll-margin-bottom: 110px;
}

[hidden] {
  display: none !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;
}

.icon {
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--sm {
  width: 17px;
  height: 17px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

.icon--solid {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -120%);
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-weight: 700;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: transform var(--speed) var(--ease);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

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

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

.section {
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--alt {
  background: var(--color-surface-alt);
}

.section-head {
  display: grid;
  gap: var(--space-4);
  max-width: 760px;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

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

.section-head--flush {
  margin-bottom: 0;
}

.section-head h2 {
  font-size: var(--step-3);
  letter-spacing: -0.015em;
}

.section-head p {
  color: var(--color-muted);
  font-size: var(--step-1);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.section-head--center .eyebrow::after {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lead {
  font-size: var(--step-1);
  color: var(--color-muted);
}

.text-muted {
  color: var(--color-muted);
}

.u-mt-5 {
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.u-mt-6 {
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

/* --------------------------------------------------------------------------
   Botões
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--color-on-primary);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 2px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--speed) var(--ease),
    filter var(--speed) var(--ease),
    background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}

.btn svg {
  flex: none;
  width: 20px;
  height: 20px;
}

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

.btn:active {
  transform: translateY(0);
  filter: brightness(0.97);
}

.btn--accent {
  --btn-bg: var(--color-accent);
  --btn-fg: var(--color-on-accent);
}

.btn--wa {
  --btn-bg: var(--color-wa);
  --btn-fg: #08240f;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
}

.btn--outline:hover {
  --btn-border: var(--color-primary);
  --btn-fg: var(--color-primary);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--color-text);
  --btn-border: transparent;
}

.btn--ghost:hover {
  --btn-bg: var(--color-surface-alt);
}

.btn--sm {
  min-height: 44px;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0.95rem 1.75rem;
  font-size: 1.0625rem;
}

.btn--block {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--speed) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

.link-arrow:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Topbar + header
   -------------------------------------------------------------------------- */

.topbar {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 0.875rem;
  line-height: 1.4;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 44px;
  padding-block: 0.4rem;
}

.topbar__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

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

.topbar__item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent);
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.topbar a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid currentColor;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--speed) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;
  min-height: 48px;
  text-decoration: none;
}

.brand__mark {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.brand__mark svg {
  width: 24px;
  height: 24px;
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1.09rem;
  letter-spacing: -0.01em;
}

.brand__text span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.nav {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.35rem, 1.4vw, 1.2rem);
  list-style: none;
}

.nav__list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.55rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-xs);
  transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.nav__list a:hover {
  color: var(--color-primary);
  background: var(--color-surface-alt);
}

.header__cta {
  flex: none;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.nav-toggle__bars {
  top: 50%;
  transform: translate(-50%, -50%);
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  left: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.site-header.is-open .nav-toggle__bars {
  background: transparent;
}

.site-header.is-open .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.site-header.is-open .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Hero e seções
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  overflow: clip;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.hero__copy {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.hero h1 {
  font-size: var(--step-4);
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 56ch;
  font-size: var(--step-1);
  color: var(--color-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.hero__note svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.hero__media {
  position: relative;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
  aspect-ratio: 4 / 4.7;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame--wide {
  aspect-ratio: 4 / 3;
}

.media-badge {
  position: absolute;
  right: clamp(0.75rem, 2vw, 1.25rem);
  bottom: clamp(0.75rem, 2vw, 1.25rem);
  display: grid;
  gap: 0.1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-md);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.media-badge strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 32px;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge svg {
  width: 16px;
  height: 16px;
}

.badge--urgent {
  background: var(--color-accent);
  border-color: transparent;
  color: var(--color-on-accent);
}

.badge--soft {
  background: var(--color-surface-alt);
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-list svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-success);
}

.trust-list--invert svg {
  color: var(--color-accent);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-border);
}

.stat {
  display: grid;
  gap: 0.15rem;
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
}

.stat strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.1;
  color: var(--color-primary);
}

.stat span {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Grid, cards e ícones
   -------------------------------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(1rem, 2.2vw, 1.5rem);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.card p {
  color: var(--color-muted);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.icon-box {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-surface-alt);
  color: var(--color-primary);
}

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

.icon-box--accent {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.icon-box--primary {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.service-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition:
    border-color var(--speed) var(--ease),
    transform var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

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

.service-card h3 {
  font-size: var(--step-1);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--color-muted);
}

.service-card .icon-box {
  margin-bottom: 0.35rem;
}

.service-card__price {
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.service-card__price strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
}

.service-card .link-arrow {
  justify-self: start;
  margin-top: 0.25rem;
}

.check-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.check-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.18em;
  color: var(--color-success);
}

.check-list--cols {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

/* --------------------------------------------------------------------------
   Destaques / faixa de urgência
   -------------------------------------------------------------------------- */

.strip {
  padding-block: 1rem;
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1.5rem;
  font-weight: 700;
}

.strip__inner > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.strip svg {
  width: 20px;
  height: 20px;
}

.strip a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* --------------------------------------------------------------------------
   Galeria
   -------------------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.6vw, 1.15rem);
}

.gallery__item {
  position: relative;
  grid-column: span 4;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}

.gallery__item--wide {
  grid-column: span 8;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1rem 0.85rem;
  background: linear-gradient(to top, rgba(8, 12, 16, 0.82), transparent);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Depoimentos
   -------------------------------------------------------------------------- */

.quote {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.quote blockquote {
  font-size: 1.02rem;
  line-height: 1.6;
}

.quote figcaption {
  display: grid;
  gap: 0.05rem;
  font-size: 0.9375rem;
}

.quote figcaption span {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.stars {
  display: flex;
  gap: 0.15rem;
  color: #b45309;
}

.stars svg {
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   Regiões atendidas
   -------------------------------------------------------------------------- */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 0.9375rem;
  font-weight: 600;
}

.chip svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Passos / processo
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 2rem);
  list-style: none;
  counter-reset: step;
}

.steps--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.step {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--color-border);
  counter-increment: step;
}

.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

.step h3 {
  font-size: var(--step-1);
}

.step p {
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-border-strong);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-primary);
  transition: transform var(--speed) var(--ease), background-color var(--speed) var(--ease);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
  background: var(--color-surface-alt);
}

.faq__answer {
  padding: 0 0 1.25rem;
  max-width: 70ch;
  color: var(--color-muted);
}

.faq__answer p + p {
  margin-top: 0.75rem;
}

/* --------------------------------------------------------------------------
   Formulários
   -------------------------------------------------------------------------- */

.form-card {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
}

.form-card__head {
  display: grid;
  gap: 0.35rem;
}

.form-card__head h3 {
  font-size: var(--step-2);
}

.form-card__head p {
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label,
.field legend {
  font-size: 0.9375rem;
  font-weight: 700;
}

.field .optional {
  font-weight: 500;
  color: var(--color-muted);
}

.input,
select.input,
textarea.input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

textarea.input {
  min-height: 118px;
  resize: vertical;
}

.input::placeholder {
  color: var(--color-muted);
  opacity: 0.75;
}

.input:hover {
  border-color: var(--color-primary);
}

.input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 22%, transparent);
  outline: none;
}

.input:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1rem;
}

.field__hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-muted);
}

.field__error {
  display: flex;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-danger);
}

.field--invalid .input {
  border-color: var(--color-danger);
  background: color-mix(in srgb, var(--color-danger) 5%, var(--color-surface));
}

.form-error-summary {
  padding: 1rem 1.15rem;
  border: 2px solid var(--color-danger);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-danger) 7%, var(--color-surface));
  color: var(--color-text);
}

.form-error-summary h4 {
  margin-bottom: 0.4rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-danger);
}

.form-error-summary ul {
  display: grid;
  gap: 0.25rem;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
}

.form-error-summary a {
  color: var(--color-danger);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.form-status {
  padding: 1rem 1.15rem;
  border: 2px solid var(--color-success);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--color-success) 7%, var(--color-surface));
}

.form-status h4 {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-success);
  margin-bottom: 0.3rem;
}

.form-status p {
  font-size: 0.9375rem;
}

.form-status .btn {
  margin-top: 0.75rem;
}

.form-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding-block: 0.35rem;
}

.checkbox-field input {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 0.08em;
  accent-color: var(--color-primary);
}

.checkbox-field label {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-muted);
}

.checkbox-field a {
  color: var(--color-text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* --------------------------------------------------------------------------
   Calculadora e resultado
   -------------------------------------------------------------------------- */

.calculator {
  display: grid;
  gap: 1.15rem;
}

.calculator__result {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.25rem;
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.calculator__result strong {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  color: var(--color-primary);
}

.calculator__result span {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Tabela de preços
   -------------------------------------------------------------------------- */

.price-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9688rem;
}

.price-table caption {
  padding: 1rem 1.25rem 0;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.price-table thead th {
  background: var(--color-surface-alt);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.price-table tbody tr:last-child td {
  border-bottom: 0;
}

.price-table td strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--color-text);
}

.price-table td:last-child {
  color: var(--color-muted);
  font-size: 0.875rem;
}

@media (max-width: 680px) {
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .price-table tr {
    padding: 1rem 1.15rem;
    border-bottom: 1px solid var(--color-border);
  }

  .price-table tbody tr:last-child {
    border-bottom: 0;
  }

  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.3rem 0;
    border: 0;
  }

  .price-table td::before {
    content: attr(data-label);
    flex: none;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-muted);
  }

  .price-table td:first-child {
    padding-bottom: 0.5rem;
    font-weight: 700;
  }

  .price-table td:first-child::before {
    content: none;
  }

  .price-table td:last-child {
    font-size: 0.8125rem;
  }
}

/* --------------------------------------------------------------------------
   Planos
   -------------------------------------------------------------------------- */

.plan {
  position: relative;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.plan--featured {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.plan__flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.8rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-on-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan h3 {
  font-size: var(--step-1);
}

.plan__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.plan__price strong {
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan__price span {
  color: var(--color-muted);
  font-size: 0.875rem;
}

.plan .check-list {
  flex: 1;
}

.plan__note {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Lembrete de manutenção
   -------------------------------------------------------------------------- */

.reminder {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.reminder__output {
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
}

.reminder__output strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--color-primary);
  line-height: 1.2;
}

.reminder__output span {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* --------------------------------------------------------------------------
   Selo de confiança / faixa de marcas
   -------------------------------------------------------------------------- */

.note-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.note-box svg {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: clip;
  padding: clamp(2.5rem, 5vw, 4.5rem);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.cta-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.cta-band h2 {
  font-size: var(--step-3);
  letter-spacing: -0.015em;
}

.cta-band p {
  margin-top: 0.6rem;
  max-width: 60ch;
  opacity: 0.9;
}

.cta-band .eyebrow {
  color: inherit;
  opacity: 0.85;
}

.cta-band__actions {
  display: grid;
  gap: 0.65rem;
  min-width: min(100%, 260px);
}

.cta-band .btn--outline {
  --btn-fg: var(--color-on-primary);
  --btn-border: color-mix(in srgb, var(--color-on-primary) 45%, transparent);
}

.cta-band .btn--outline:hover {
  --btn-fg: var(--color-on-primary);
  --btn-border: var(--color-on-primary);
}

.cta-band .btn--light {
  --btn-bg: #ffffff;
  --btn-fg: #14181d;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.footer__brand {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.footer__brand .brand__mark {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.footer__brand p {
  max-width: 38ch;
  font-size: 0.9375rem;
  color: var(--color-footer-muted);
}

.footer__col {
  display: grid;
  align-content: start;
  gap: 0.75rem;
}

.footer__col h3 {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-footer-muted);
}

.footer__col ul {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.footer__col a,
.footer__col span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  font-size: 0.9375rem;
  color: var(--color-footer-text);
}

.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__col svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-footer-muted);
}

.footer__bottom a {
  color: var(--color-footer-text);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__demo {
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Barra fixa mobile
   -------------------------------------------------------------------------- */

.mobile-cta {
  display: none;
  position: fixed;
  inset: auto 0 0;
  z-index: 95;
  grid-template-columns: 1fr 1.35fr;
  gap: 0.6rem;
  padding: 0.6rem var(--gutter) calc(0.6rem + env(safe-area-inset-bottom));
  background: var(--color-header-bg);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px -16px rgba(15, 23, 42, 0.4);
}

.mobile-cta .btn {
  min-height: 48px;
  padding-inline: 0.8rem;
  font-size: 0.9375rem;
}

.mobile-cta .btn--call {
  --btn-bg: var(--color-surface-alt);
  --btn-fg: var(--color-text);
  --btn-border: var(--color-border-strong);
}

/* --------------------------------------------------------------------------
   Animações discretas
   -------------------------------------------------------------------------- */

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy > * {
    animation: hero-rise 560ms var(--ease) both;
  }

  .hero__copy > :nth-child(2) {
    animation-delay: 60ms;
  }

  .hero__copy > :nth-child(3) {
    animation-delay: 120ms;
  }

  .hero__copy > :nth-child(4) {
    animation-delay: 180ms;
  }

  .hero__copy > :nth-child(5) {
    animation-delay: 240ms;
  }

  .hero__media {
    animation: hero-fade 700ms var(--ease) both;
    animation-delay: 120ms;
  }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__media {
    max-width: 560px;
  }

  .cta-band__inner {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .cta-band__actions {
    min-width: 0;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    order: 3;
  }

  .nav__list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
  }

  .site-header.is-open .nav__list {
    display: flex;
  }

  .nav__list a {
    min-height: 48px;
    padding-inline: 0.25rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav__list li:last-child a {
    border-bottom: 0;
  }

  .header__cta {
    display: none;
  }

  .mobile-cta {
    display: grid;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) {
  .topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .topbar__group {
    justify-content: center;
  }

  .topbar__demo {
    display: none;
  }

  .hero {
    padding-block: 2rem 2.75rem;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__actions {
    width: 100%;
  }

  .media-frame {
    aspect-ratio: 4 / 4.2;
  }

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

  .gallery__item,
  .gallery__item--wide {
    grid-column: span 1;
  }

  .gallery__item--tall {
    grid-row: auto;
  }

  .gallery__item img {
    min-height: 180px;
  }

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

  .cta-band {
    border-radius: var(--radius-md);
    padding: 1.75rem 1.35rem;
  }

  .cta-band__actions {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 480px) {
  .topbar {
    font-size: 0.8125rem;
  }

  .brand__text span {
    display: none;
  }

  .btn--lg {
    width: 100%;
  }

  .strip__inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-contrast: more) {
  :root {
    --color-border: currentColor;
    --color-border-strong: currentColor;
  }

  .btn,
  .card,
  .service-card,
  .form-card,
  .input,
  .chip {
    border-width: 2px;
  }
}

@media print {
  .topbar,
  .site-header,
  .mobile-cta,
  .hero__media,
  .cta-band__actions,
  .form-card,
  .site-footer {
    display: none !important;
  }

  body {
    padding: 0;
    font-size: 12pt;
  }

  .section {
    padding-block: 1.5rem;
  }
}
