/* ============================================================
   M MARTTINS — main.css
   Variáveis da marca, tipografia, base e overrides do Tailwind
   ============================================================ */

:root {
  /* --- Paleta da marca (BrandBook V1.0) --- */
  --color-primary: #0E2A47;          /* azul-marinho profundo */
  --color-primary-deep: #081C33;     /* primário ainda mais escuro */
  --color-primary-light: #1A3D63;
  --color-accent: #E63946;           /* vermelho M MARTTINS */
  --color-accent-dark: #C42836;
  --color-accent-soft: #F26D75;

  --color-bg-light: #F7F8FA;
  --color-bg-card: #FFFFFF;
  --color-text-dark: #1C1C1E;
  --color-text-muted: #5A5A66;
  --color-text-onDark: #E6EAF0;
  --color-white: #FFFFFF;

  --color-border: #E5E7EB;

  /* --- Tipografia --- */
  /* Cliente preferiu site 100% sans-serif; --font-serif mantida como alias de Inter
     pra não exigir refactor das 38 classes .font-serif espalhadas no HTML. */
  --font-serif: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-sans:  'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* --- Espaçamento de seção --- */
  --section-py-sm: 3rem;
  --section-py-md: 5rem;
  --section-py-lg: 7rem;

  /* --- Sombras --- */
  --shadow-card: 0 8px 24px -8px rgba(14, 42, 71, 0.18);
  --shadow-hover: 0 16px 40px -12px rgba(14, 42, 71, 0.30);
}

/* ------------------------------------------------------------
   Base / reset suave
   ------------------------------------------------------------ */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--color-primary);
}
/* !important contra o reset do Tailwind Preflight (carrega via CDN depois deste CSS). */
h1, h2 {
  font-weight: 800 !important;
}
h3, h4 {
  font-weight: 700;
}

.font-serif { font-family: var(--font-serif); }
.font-sans  { font-family: var(--font-sans); }

/* ------------------------------------------------------------
   Botões
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: 4px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
}
.btn-secondary:hover {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   Detalhes da marca (linha vermelha curta — vista no BrandBook)
   ------------------------------------------------------------ */
.brand-rule {
  display: inline-block;
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
  border-radius: 2px;
}

/* ------------------------------------------------------------
   Hero (Home)
   ------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--color-primary-deep); /* fundo enquanto a img carrega */
  color: var(--color-white);
  overflow: hidden;
}
/* <img> de fundo (carregada dinamicamente pelo JS de hero_settings) */
.hero .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero .hero-bg.is-loaded,
.hero .hero-bg[src] { opacity: 1; }
/* overlay escurecido pra texto ficar legível */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(8,28,51,0.45) 0%, rgba(8,28,51,0.75) 100%);
  pointer-events: none;
}
/* glow vermelho discreto no canto */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at top left, rgba(230,57,70,0.18), transparent 60%);
  pointer-events: none;
}
.hero h1 {
  color: var(--color-white);
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  color: var(--color-text-onDark);
  max-width: 38rem;
}

/* ------------------------------------------------------------
   Hero de páginas internas (Sobre, Serviços, Portfólio, Contato)
   Fundo azul-marinho sólido com detalhe vermelho lateral.
   ------------------------------------------------------------ */
.page-hero {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary-deep) 0%, var(--color-primary) 100%);
  color: var(--color-white);
  overflow: hidden;
  margin-top: 5rem; /* compensa o header fixed */
}
.page-hero::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--color-accent);
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,57,70,0.15), transparent 70%);
  pointer-events: none;
}
.page-hero h1 { color: var(--color-white); }

/* Quando há .page-hero, o main NÃO precisa de padding-top adicional
   (já foi compensado por margin-top do próprio hero). */
body:not(.has-hero) main:has(.page-hero) { padding-top: 0; }

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 1.75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-accent);
}

.card-dark {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: transparent;
}
.card-dark h3 { color: var(--color-white); }

/* Lista de documentos (PDFs de credenciamento) dentro de .card-dark */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  list-style: none;
}
.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.375rem;
  color: var(--color-white);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.doc-link:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.doc-link svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.doc-link .doc-link-ext {
  margin-left: auto;
  opacity: 0.55;
}
.doc-link[data-pending="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Header dinâmico
   ------------------------------------------------------------
   - Topo (sem scroll): fundo branco translúcido, links escuros,
     mostra logo-dark.
   - Após scroll (.is-scrolled): fundo azul-marinho sólido, links
     claros, mostra logo-light.
   - Em páginas internas (sem hero) já começa "scrolled" via JS.
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(10px);
  /* sem border-bottom — visual mais limpo */
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled {
  background: rgba(8, 28, 51, 0.95);            /* azul-marinho */
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.35);
}

/* Compensa o header fixo — empurra o conteúdo abaixo dele em
   páginas SEM hero. Páginas COM hero usam .has-hero no <body>. */
body:not(.has-hero) main,
body:not(.has-hero) .page-content {
  padding-top: 5rem;
}

/* Brand logo no header — swap de src é feito via JS em wireDynamicHeader.
   Topo (sobre hero, fundo claro/branco): logo-dark.
   Scrolled (fundo azul): logo-light. */
.brand-logo {
  display: inline-flex;
  align-items: center;
  height: 56px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: opacity .2s ease;
}
@media (min-width: 768px) {
  .brand-logo { height: 64px; }
  .brand-logo-img { height: 56px; }
}

/* Links da navegação — adaptam a cor conforme estado do header */
.nav-link {
  color: var(--color-text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  text-decoration: none;
  transition: color .35s ease;
}
.site-header.is-scrolled .nav-link {
  color: var(--color-white);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transition: transform .2s ease;
  transform-origin: left;
}
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Botão hamburguer adapta */
#menu-toggle {
  color: var(--color-text-dark);
  border-color: var(--color-border);
  transition: color .35s ease, border-color .35s ease;
}
.site-header.is-scrolled #menu-toggle {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
}

/* Menu mobile aberto também segue o tema do header */
.site-header.is-scrolled #mobile-menu {
  background: var(--color-primary);
  border-top-color: rgba(255,255,255,0.1);
}
.site-header.is-scrolled #mobile-menu .nav-link { color: var(--color-white); }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--color-primary-deep);
  color: var(--color-text-onDark);
}
.site-footer a { color: var(--color-text-onDark); transition: color .15s ease; }
.site-footer a:hover { color: var(--color-accent-soft); }

.footer-logo {
  height: 56px;
  width: auto;
  display: block;
}
@media (min-width: 768px) {
  .footer-logo { height: 64px; }
}

/* ------------------------------------------------------------
   WhatsApp flutuante
   ------------------------------------------------------------ */
.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 28px; height: 28px; }

/* ------------------------------------------------------------
   Faixa de credibilidade (trust bar)
   ------------------------------------------------------------ */
.trust-bar {
  background: var(--color-primary);
  color: var(--color-white);
}
.trust-bar .item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.trust-bar .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ------------------------------------------------------------
   Utilitários
   ------------------------------------------------------------ */
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-accent);
}

.container-narrow { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
.container-wide   { max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------
   Portfólio — chips de filtro
   ------------------------------------------------------------ */
.filter-chip {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all .2s ease;
}
.filter-chip:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
}
.filter-chip.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* ------------------------------------------------------------
   Portfólio — cards
   ------------------------------------------------------------ */
.portfolio-item { transition: opacity .25s ease; }

.portfolio-card {
  position: relative;
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: zoom-in;
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.portfolio-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform .5s ease;
}
.portfolio-card:hover img { transform: scale(1.05); }

.portfolio-card figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8,28,51,0.92) 80%);
  color: var(--color-white);
}
.portfolio-card figcaption .cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin-bottom: 0.25rem;
}
.portfolio-card figcaption .title {
  font-size: 1rem;
  font-weight: 600;
}

/* ------------------------------------------------------------
   Lightbox
   ------------------------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 28, 51, 0.92);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  animation: lightbox-in .25s ease;
}
.lightbox.hidden { display: none; }

.lightbox-content {
  max-width: 1100px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 75vh;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.lightbox-meta {
  text-align: center;
  color: var(--color-white);
  max-width: 700px;
  margin: 0 auto;
}
.lightbox-meta h3 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-family: var(--font-sans);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.lightbox-meta p { font-size: 0.95rem; opacity: 0.85; }

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: var(--color-white);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

@keyframes lightbox-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ------------------------------------------------------------
   Contato — atalhos
   ------------------------------------------------------------ */
.contact-shortcut {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  text-decoration: none;
  color: inherit;
}
.contact-shortcut:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-accent);
}
.contact-shortcut .cs-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}
.contact-shortcut .cs-value {
  font-weight: 600;
  color: var(--color-primary);
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Formulário
   ------------------------------------------------------------ */
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.4rem;
}
.form-label .req { color: var(--color-accent); }

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: 4px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 42, 71, 0.12);
}
.form-input.has-error {
  border-color: var(--color-accent);
  background: rgba(230, 57, 70, 0.04);
}

.form-error {
  min-height: 1.25rem;
  font-size: 0.8rem;
  color: var(--color-accent-dark);
  margin-top: 0.4rem;
}

.form-feedback {
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  font-size: 0.95rem;
  border-left: 4px solid;
}
.form-feedback.is-success {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}
.form-feedback.is-error {
  background: #fef2f2;
  border-color: var(--color-accent);
  color: #991b1b;
}

/* ------------------------------------------------------------
   Budget Modal — popup de "Solicitar Orçamento"
   ------------------------------------------------------------ */
.budget-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  animation: budget-fade-in .25s ease;
}
.budget-modal.hidden { display: none; }

.budget-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 51, 0.75);
  backdrop-filter: blur(4px);
}

.budget-modal-content {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: 8px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding: 2rem 1.75rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: budget-slide-up .3s cubic-bezier(.2,.8,.3,1);
}

.budget-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.budget-modal-close:hover {
  background: var(--color-bg-light);
  color: var(--color-primary);
}

.budget-modal-header {
  margin-bottom: 1.5rem;
}

.budget-modal-form {
  margin-bottom: 1.5rem;
}

.budget-modal-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0 1rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
}
.budget-modal-divider::before,
.budget-modal-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border);
}

.budget-wa-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background: #25D366;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background .2s ease, transform .15s ease;
}
.budget-wa-button:hover {
  background: #1faa55;
  transform: translateY(-1px);
}

@keyframes budget-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes budget-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------
   Cookie Banner LGPD
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  background: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.35);
  animation: cookie-slide-up .4s ease;
}
.cookie-banner.hidden { display: none; }

.cookie-banner-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
}
@media (min-width: 768px) {
  .cookie-banner-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 80rem;
    margin: 0 auto;
  }
}
.cookie-text { flex: 1; }
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-actions .btn { padding: 0.55rem 1.15rem; font-size: 0.85rem; }

@keyframes cookie-slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ------------------------------------------------------------
   Privacidade — conteúdo de texto longo (.prose-content)
   ------------------------------------------------------------ */
.prose-content { color: var(--color-text-dark); }
.prose-content h2 {
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}
.prose-content p,
.prose-content ul { color: var(--color-text-muted); margin-bottom: 1rem; line-height: 1.7; }
.prose-content ul { padding-left: 1.5rem; list-style: disc; }
.prose-content li { margin-bottom: 0.3rem; }
.prose-content strong { color: var(--color-text-dark); }

/* ------------------------------------------------------------
   Skeleton — placeholder de loading dos cards dinâmicos
   ------------------------------------------------------------ */
.skeleton-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  animation: skeleton-pulse 1.4s ease-in-out infinite;
}
.skeleton-img {
  width: 100%;
  height: 280px;
  background: #e5e7eb;
}
.skeleton-text {
  height: 1.25rem;
  width: 60%;
  margin: 1rem 1.25rem;
  background: #e5e7eb;
  border-radius: 4px;
}
@keyframes skeleton-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

/* Estado de erro/empty no grid dinâmico */
.api-error {
  font-size: 0.95rem;
}

/* ------------------------------------------------------------
   Acessibilidade
   ------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
