/* ==========================================================================
   Tecbrita — Site Institucional (demo)
   Folha única: tokens de design + componentes + utilitários
   Abordagem mobile-first. Breakpoints: 480 / 768 / 1024 / 1280.
   Paleta derivada da logomarca clara (amostragem do cubo isométrico).
   ========================================================================== */

/* ---------- 1. Tokens de design ------------------------------------------ */
:root {
  /* Cores de marca (amostradas do logo; #F57E1E e #1E3C38 são leituras diretas) */
  --brand-primary: #1E3C38;        /* verde petróleo do wordmark */
  --brand-deep: #13302B;           /* face escura do cubo */
  --brand-ink: #0C2620;            /* 950 — fundo do rodapé / band */
  --brand-600: #2E6B60;            /* tom intermediário (focus ring, ícones) */
  --brand-tint: #EAF1EC;           /* lavagem clara p/ superfícies de apoio */

  --accent-orange: #F57E1E;        /* laranja do cubo (CTA com texto petróleo) */
  --accent-orange-hover: #E06A10;
  --accent-ink: #B34A08;           /* laranja AA-ajustado p/ texto/link (5.38:1) */

  /* Neutros quentes levemente esverdeados (conversam com a marca) */
  --surface-canvas: #F7F6F2;
  --surface-card: #FFFFFF;
  --surface-border: #DFE2DB;
  --text-primary: #16302B;
  --text-muted: #546159;
  --text-inverse: #FFFFFF;
  --text-inverse-muted: #C9D6D0;

  /* Estados */
  --ring: #2E6B60;
  --error: #B3261E;
  --success: #14683C;

  /* Tipografia — escala modular 1.25 (base 16) */
  --font-display: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --fs-13: 0.8125rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-25: 1.5625rem;
  --fs-31: 1.9375rem;
  --fs-39: 2.4375rem;
  --fs-49: 3.0625rem;
  --lh-body: 1.65;
  --lh-tight: 1.12;

  /* Espaçamento (escala de 8px) */
  --sp-1: 8px;  --sp-2: 16px; --sp-3: 24px; --sp-4: 32px;
  --sp-5: 40px; --sp-6: 48px; --sp-8: 64px; --sp-10: 80px; --sp-12: 96px;

  /* Raios / sombras / transições */
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 24px; --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 38, 32, .06), 0 1px 3px rgba(12, 38, 32, .08);
  --shadow-md: 0 4px 12px rgba(12, 38, 32, .08), 0 2px 4px rgba(12, 38, 32, .06);
  --shadow-lg: 0 16px 32px rgba(12, 38, 32, .14), 0 4px 8px rgba(12, 38, 32, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);   /* ease-out suave */
  --dur-fast: 150ms; --dur: 200ms; --dur-slow: 250ms;

  --container: 1200px;
  --header-h: 72px;
  --z-header: 100; --z-menu: 90; --z-toast: 200;
}

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

html {
  color-scheme: light;
  scroll-behavior: smooth;               /* âncoras suaves; neutralizado p/ reduced-motion */
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  color: var(--text-primary);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--text-primary);
  margin: 0 0 var(--sp-2);
  font-weight: 800;
  letter-spacing: -0.01em;
}

p { margin: 0 0 var(--sp-2); }
a { color: var(--accent-ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; cursor: pointer; }

/* Foco visível consistente (WCAG 2.4.7) */
:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Âncoras respeitam o header fixo */
section[id], [id].section-target { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.section { padding-block: var(--sp-10); }

/* Eyebrow: rótulo de seção */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-family: var(--font-display);
  font-size: var(--fs-13);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: var(--sp-1);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; background: var(--accent-orange); border-radius: 2px; }

.section-title { font-size: clamp(var(--fs-25), 4.4vw, var(--fs-39)); max-width: 24ch; }
.section-lead { color: var(--text-muted); font-size: var(--fs-20); max-width: 62ch; }
.section-head { margin-bottom: var(--sp-6); }

/* Chip "ILUSTRATIVO" — sinaliza conteúdo demo a confirmar */
.chip-demo {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--brand-tint);
  border: 1px dashed var(--brand-600);
  border-radius: var(--r-pill);
  padding: 2px 10px;
}

/* ---------- 3. Botões ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-16);
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }

/* CTA primário: laranja da marca com texto petróleo (AA 6:1 — ver guia de estilo) */
.btn-primary { background: var(--accent-orange); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-orange-hover); box-shadow: var(--shadow-md); }

.btn-secondary { background: transparent; color: var(--text-inverse); border-color: rgba(255,255,255,.65); }
.btn-secondary:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.btn-onlight { background: var(--brand-primary); color: var(--text-inverse); }
.btn-onlight:hover { background: var(--brand-deep); }

.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--surface-border); }
.btn-ghost:hover { border-color: var(--brand-primary); background: var(--brand-tint); }

.btn-sm { min-height: 42px; padding: 8px 18px; font-size: var(--fs-13); }

/* Links "saiba mais" com seta */
.link-more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-13);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  color: var(--accent-ink);
}
.link-more svg { transition: transform var(--dur) var(--ease); }
.link-more:hover svg { transform: translateX(4px); }
.link-more:hover { text-decoration: underline; }

/* ---------- 4. Acessibilidade visual -------------------------------------- */
.skip-link {
  position: absolute;
  left: var(--sp-2);
  top: -48px;
  z-index: 210;
  background: var(--brand-ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--sp-2); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

/* ---------- 5. Header ------------------------------------------------------ */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  /* Sobre o hero: transparente com texto claro */
  background: transparent;
  transition: background-color var(--dur-slow) var(--ease), box-shadow var(--dur-slow) var(--ease);
}
.site-header .container { display: flex; align-items: center; gap: var(--sp-3); }

.site-header.is-scrolled {
  background: rgba(12, 38, 32, .96);
  box-shadow: 0 2px 16px rgba(12, 38, 32, .28);
}

.logo { flex-shrink: 0; }
.logo img { height: 46px; width: auto; }

.main-nav { margin-left: auto; }
.main-nav ul { display: none; }        /* mobile: painel (abaixo) */
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;                     /* alvo de toque */
  padding: 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-13);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-inverse);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.main-nav a[aria-current="true"] { color: var(--accent-orange); }
.main-nav a[aria-current="true"]::after {
  content: ""; display: block; height: 2px; width: 100%;
  background: var(--accent-orange); border-radius: 2px;
}

.header-cta { display: none; }

/* Botão hambúrguer */
.nav-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: var(--r-md);
  color: #fff;
}
.nav-toggle:hover { border-color: #fff; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Painel mobile (drawer) */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: var(--z-menu);
  background: var(--brand-ink);
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-slow) var(--ease), visibility 0s linear var(--dur-slow);
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform var(--dur-slow) var(--ease), visibility 0s;
}
.mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--sp-1);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-20);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:hover { color: var(--accent-orange); }
.mobile-menu .btn { margin-top: var(--sp-3); }

/* ---------- 6. Hero -------------------------------------------------------- */
.hero {
  position: relative;
  min-height: max(560px, 92svh);
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  background: var(--brand-ink);          /* cor sólida durante carregamento (evita flash) */
  color: var(--text-inverse);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
/* Sobreposição em gradiente derivada da paleta (petrol 950 -> 700) */
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(12,38,32,.93) 18%, rgba(19,48,43,.78) 48%, rgba(19,48,43,.42) 100%),
    linear-gradient(to top, rgba(12,38,32,.55), transparent 34%);
}

.hero__content { max-width: 720px; padding-block: var(--sp-10); }
.hero .eyebrow { color: var(--accent-orange); }
.hero .eyebrow::before { background: var(--accent-orange); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.35rem, 7.2vw, 4.3rem);
  font-style: italic;                    /* ecoa o wordmark itálico da marca */
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent-orange); }

.hero__lead {
  font-size: clamp(1.05rem, 2vw, var(--fs-20));
  color: #D9E4DE;
  max-width: 54ch;
  margin-bottom: var(--sp-4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-6); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1) var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.22);
  padding-top: var(--sp-3);
  font-family: var(--font-display);
}
.hero__facts li { display: flex; align-items: center; gap: 10px; color: var(--text-inverse-muted); font-size: var(--fs-13); }
.hero__facts strong { color: #fff; font-size: var(--fs-16); }
.hero__facts svg { color: var(--accent-orange); flex-shrink: 0; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  color: rgba(255,255,255,.75);
  animation: float 2.6s var(--ease) infinite;
}
@keyframes float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- 7. Sobre -------------------------------------------------------- */
.about-grid { display: grid; gap: var(--sp-6); align-items: center; }

.about-figure { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Selo flutuante sobre a foto (data de fundação) */
.about-figure__badge {
  position: absolute; left: var(--sp-3); bottom: var(--sp-3);
  background: var(--accent-orange);
  color: var(--brand-ink);
  border-radius: var(--r-lg);
  padding: 14px 18px;
  box-shadow: var(--shadow-md);
  font-family: var(--font-display);
}
.about-figure__badge strong { display: block; font-size: var(--fs-31); line-height: 1; }
.about-figure__badge span { font-size: var(--fs-13); font-weight: 600; }

.about-points { margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.about-points li { display: flex; gap: 12px; align-items: flex-start; }
.about-points svg { flex-shrink: 0; margin-top: 4px; color: var(--brand-600); }

/* ---------- 8. Cards (serviços / diferenciais / cases) --------------------- */
.card-grid { display: grid; gap: var(--sp-3); }

.card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-3);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-600);
}

.card__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-2);
}
.card h3 { font-size: var(--fs-20); }
.card p { color: var(--text-muted); margin-bottom: var(--sp-2); }
.card .spec {
  font-family: var(--font-display);
  font-size: var(--fs-13);
  font-weight: 700;
  color: var(--brand-600);
  font-variant-numeric: tabular-nums;    /* números alinhados (WCAG 1.4) */
}

/* Cards de case (imagem no topo) */
.case { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.case figure { margin: 0; aspect-ratio: 16 / 11; overflow: hidden; }
.case img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.case:hover img { transform: scale(1.045); }
.case .card__body { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.case .tagline { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); }
.case h3 { font-size: var(--fs-16); margin: 0; }
.case .result {
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px dashed var(--surface-border);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-13);
  color: var(--brand-600);
}
.tag {
  display: inline-block;
  background: var(--brand-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
}

/* Diferenciais (linhas com número grande) */
.why { background: var(--brand-primary); color: var(--text-inverse); }
.why .section-title, .why .section-lead { color: #fff; }
.why .eyebrow { color: var(--accent-orange); }
.why .section-lead { color: #CFDDD7; }

.why-list { display: grid; gap: var(--sp-1); counter-reset: why; }
.why-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-3);
  align-items: start;
  padding: var(--sp-3) var(--sp-2);
  border-radius: var(--r-lg);
  transition: background-color var(--dur) var(--ease);
}
.why-item:hover { background: rgba(255,255,255,.06); }
.why-item__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--accent-orange);
  font-variant-numeric: tabular-nums;
  min-width: 2.2ch;
}
.why-item h3 { color: #fff; font-size: var(--fs-20); margin-bottom: 4px; }
.why-item p { color: #C9D6D0; max-width: 62ch; margin: 0; }

/* ---------- 9. Números ------------------------------------------------------ */
.stats { background: var(--surface-card); border-block: 1px solid var(--surface-border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4) var(--sp-3); text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 3.9rem);
  line-height: 1;
  color: var(--brand-primary);
  font-variant-numeric: tabular-nums;   /* evita tremor durante o contador */
}
.stat__num .suffix { color: var(--accent-orange); }
.stat__label { margin-top: var(--sp-1); color: var(--text-muted); font-size: var(--fs-13); }

/* ---------- 10. Depoimentos (carrossel acessível) --------------------------- */
.testimonials { background: var(--brand-tint); }

.carousel { position: relative; max-width: 820px; margin-inline: auto; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-xl); }
.carousel__track {
  display: flex;
  transition: transform var(--dur-slow) var(--ease);
}
.slide { flex: 0 0 100%; min-width: 100%; padding: var(--sp-4) var(--sp-3); }

.quote-card {
  background: var(--surface-card);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--sp-5) var(--sp-4);
  height: 100%;
}
.quote-card .quote-mark { color: var(--accent-orange); margin-bottom: var(--sp-2); }
.quote-card blockquote { margin: 0; font-size: var(--fs-20); line-height: 1.5; }
.quote-card figcaption { margin-top: var(--sp-3); display: flex; align-items: center; gap: 12px; }
.quote-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand-primary); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
  flex-shrink: 0;
}
.quote-name { font-family: var(--font-display); font-weight: 700; }
.quote-role { font-size: var(--fs-13); color: var(--text-muted); }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-3); }
.carousel__btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2px solid var(--brand-primary);
  background: var(--surface-card);
  color: var(--brand-primary);
  transition: background-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.carousel__btn:hover { background: var(--brand-primary); color: #fff; }
.carousel__btn:active { transform: scale(.94); }

.carousel__dots { display: flex; gap: var(--sp-1); }
.carousel__dots button {
  width: 12px; height: 12px; padding: 0;
  border-radius: 50%;
  border: 2px solid var(--brand-600);
  background: transparent;
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.carousel__dots button[aria-selected="true"] { background: var(--accent-orange); border-color: var(--accent-orange); transform: scale(1.25); }
/* Amplia a área de toque dos dots */
.carousel__dots button::before { content: ""; position: absolute; inset: -12px; }

/* ---------- 11. Faixa CTA --------------------------------------------------- */
.cta-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; }
.cta-band__media { position: absolute; inset: 0; z-index: -1; }
.cta-band__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-band__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(12,38,32,.94) 30%, rgba(19,48,43,.8));
}
.cta-band__inner { display: grid; gap: var(--sp-3); align-items: center; padding-block: var(--sp-10); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4.4vw, 2.5rem); }
.cta-band p { color: #D9E4DE; max-width: 56ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- 12. Contato ------------------------------------------------------ */
.contact-grid { display: grid; gap: var(--sp-6); }

.form-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-xl);
  padding: var(--sp-4);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; gap: var(--sp-3); }

.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-13);
  letter-spacing: .04em;
  margin-bottom: 6px;
}
.field .req { color: var(--error); }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  color: var(--text-primary);
  background: var(--surface-canvas);
  border: 1.5px solid var(--surface-border);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(46,107,96,.22);
  background: #fff;
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(179,38,30,.14);
}
.field-error {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px;
  color: var(--error);
  font-size: var(--fs-13);
  font-weight: 600;
  min-height: 20px;
}
.field-error svg { flex-shrink: 0; }
.field-hint { margin-top: 6px; color: var(--text-muted); font-size: var(--fs-13); }
.form-note { font-size: var(--fs-13); color: var(--text-muted); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }

.contact-info { display: grid; gap: var(--sp-2); align-content: start; }
.contact-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-2);
  padding: var(--sp-2);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--r-lg);
}
.contact-item__icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--brand-tint);
  color: var(--brand-primary);
  border-radius: var(--r-md);
}
.contact-item h3 { font-size: var(--fs-16); margin-bottom: 2px; }
.contact-item p, .contact-item a { margin: 0; color: var(--text-muted); font-size: var(--fs-13); }
.contact-item a { color: var(--accent-ink); }

/* Toast de sucesso do formulário */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  transform: translate(-50%, 160%);
  z-index: var(--z-toast);
  display: flex; align-items: center; gap: var(--sp-2);
  background: var(--brand-ink);
  color: #fff;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  font-family: var(--font-display);
  font-weight: 600;
  max-width: min(92vw, 480px);
  transition: transform var(--dur-slow) var(--ease);
}
.toast.is-visible { transform: translate(-50%, 0); }
.toast svg { color: #6FE3AE; flex-shrink: 0; }

/* ---------- 13. Footer -------------------------------------------------------- */
.site-footer { background: var(--brand-ink); color: var(--text-inverse-muted); }
.footer-grid { display: grid; gap: var(--sp-5); padding-block: var(--sp-10) var(--sp-5); }
.site-footer h3 { color: #fff; font-size: var(--fs-16); margin-bottom: var(--sp-2); }
.site-footer a { color: var(--text-inverse-muted); text-decoration: none; transition: color var(--dur) var(--ease); }
.site-footer a:hover { color: var(--accent-orange); text-decoration: underline; }
.footer-brand img { height: 52px; width: auto; margin-bottom: var(--sp-2); }
.footer-brand p { max-width: 40ch; font-size: var(--fs-13); }
.footer-links { display: grid; gap: 10px; font-size: var(--fs-13); }
.footer-contact { display: grid; gap: var(--sp-2); font-size: var(--fs-13); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact svg { flex-shrink: 0; margin-top: 3px; color: var(--accent-orange); }
.social-links { display: flex; gap: var(--sp-1); margin-top: var(--sp-2); }
.social-links a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--r-md);
  color: #fff;
}
.social-links a:hover { background: var(--accent-orange); border-color: var(--accent-orange); color: var(--brand-ink); }

.footer-credits {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-block: var(--sp-3);
  font-size: var(--fs-13);
  color: #8FA59C;
}
.footer-credits .row { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); justify-content: space-between; }

/* Botão voltar ao topo */
.back-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 80;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: none;
  background: var(--accent-orange);
  color: var(--brand-ink);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
              visibility var(--dur), background-color var(--dur) var(--ease);
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-top:hover { background: var(--accent-orange-hover); }

/* ---------- 14. Reveal on scroll --------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 15. Breakpoints (mobile-first) ------------------------------------ */
@media (min-width: 480px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
  .section { padding-block: var(--sp-12); }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1.05fr 1fr; }
  .contact-grid { grid-template-columns: 1.15fr 1fr; }
  .cta-band__inner { grid-template-columns: 1.4fr auto; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .form-grid .field--full, .form-actions { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .mobile-menu { display: none; }
  .main-nav ul { display: flex; gap: 4px; }
  .header-cta { display: inline-flex; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1280px) {
  .why-list { grid-template-columns: 1fr 1fr; gap: var(--sp-2) var(--sp-6); }
}

/* ---------- 16. Movimento reduzido (WCAG 2.3.3 / Apple MD) --------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .case:hover img { transform: none; }
}

/* Impressão mínima (bônus p/ apresentação a clientes) */
@media print {
  .site-header, .mobile-menu, .back-top, .hero__media, .scroll-hint { display: none !important; }
  body { background: #fff; color: #000; }
}
