/* ==========================================================================
   AC Tecnologia — folha de estilo única
   AC Inovação e Tecnologia LTDA
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Marca */
  --teal: #3aa69e;
  --teal-dark: #2e8a83;
  --teal-soft: #e8f4f3;

  /* Neutros */
  --ink: #1a2b2a;
  --muted: #5a6b6a;
  --white: #ffffff;
  --offwhite: #f7fafa;
  --line: #e1eceb;

  /* Superfícies escuras (rodapé) */
  --ink-soft: #243a38;
  --on-dark: #dbe8e7;
  --on-dark-muted: #94aaa8;

  /* Forma */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(26, 43, 42, 0.04),
               0 4px 16px rgba(26, 43, 42, 0.05);
  --shadow-md: 0 2px 4px rgba(26, 43, 42, 0.04),
               0 12px 32px rgba(26, 43, 42, 0.08);
  --shadow-teal: 0 6px 20px rgba(58, 166, 158, 0.28);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4rem, 9vw, 7rem);

  /* Tipografia */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --fs-display: clamp(2.15rem, 5.6vw, 3.5rem);
  --fs-h2: clamp(1.65rem, 3.6vw, 2.3rem);
  --fs-h3: clamp(1.1rem, 1.6vw, 1.2rem);
  --fs-lead: clamp(1.05rem, 1.9vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

ul, ol { margin: 0; padding: 0; }

button { font: inherit; color: inherit; }

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

/* --------------------------------------------------------------------------
   3. Utilitários de layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); }
.section--soft { background: var(--offwhite); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; color: var(--white); }

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

/* --------------------------------------------------------------------------
   4. Tipografia de apoio
   -------------------------------------------------------------------------- */

/* Eyebrow: retoma o espacejamento largo do lettering "TECNOLOGIA" da marca. */
.eyebrow {
  display: block;
  margin-bottom: 1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-dark);
}
.eyebrow--on-dark { color: var(--teal); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head .lead { margin-top: 1rem; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
}

h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.012em; }

/* --------------------------------------------------------------------------
   5. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease,
              color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

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

.btn--outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  background: var(--teal-soft);
}

.btn--on-teal {
  background: var(--white);
  border-color: var(--white);
  color: var(--teal-dark);
  box-shadow: none;
}
.btn--on-teal:hover { background: var(--offwhite); color: var(--ink); transform: translateY(-1px); }

.btn--ghost-on-teal {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}
.btn--ghost-on-teal:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  color: var(--white);
}

.btn--whatsapp {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.btn--whatsapp:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--white); }

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

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* Link com seta */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--fs-sm);
  text-decoration: none;
  color: var(--teal-dark);
}
.arrow-link svg { transition: transform 0.18s ease; }
.arrow-link:hover svg { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   6. Cabeçalho
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 38px; height: 38px; }
.brand__name {
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Painel de navegação — mobile primeiro */
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 0.75rem var(--gutter) 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.nav.is-open { display: block; }

.nav__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.nav__link {
  display: block;
  padding: 0.75rem 0.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav__link:hover { color: var(--teal-dark); }
.nav__link[aria-current="page"] { color: var(--teal-dark); font-weight: 600; }
.nav__cta { margin-top: 1.25rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav {
    display: block;
    position: static;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav__list { flex-direction: row; align-items: center; gap: 0.35rem; }
  .nav__link {
    padding: 0.5rem 0.75rem;
    border-bottom: 0;
    border-radius: 8px;
    white-space: nowrap;
  }
  .nav__link:hover { background: var(--teal-soft); }
  .nav__link[aria-current="page"] { background: var(--teal-soft); }
  .nav__cta { margin-top: 0; margin-left: 0.75rem; }
  .nav__cta .btn { padding: 0.7rem 1.25rem; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
  background:
    radial-gradient(60rem 40rem at 85% -10%, var(--teal-soft), transparent 60%),
    var(--white);
  border-bottom: 1px solid var(--line);
}

/* Anel segmentado — a geometria da própria marca, ampliada. */
.hero__ring {
  position: absolute;
  top: 50%;
  right: -14rem;
  width: 46rem;
  height: 46rem;
  transform: translateY(-50%);
  color: var(--teal);
  opacity: 0.13;
  pointer-events: none;
}

.hero__inner { position: relative; z-index: 1; max-width: 40rem; }
.hero h1 { font-size: var(--fs-display); letter-spacing: -0.032em; }
.hero .lead { margin-top: 1.25rem; max-width: 34rem; }

.hero__activities {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.hero__activities li { display: flex; align-items: center; gap: 0.6rem; }
.hero__activities li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

@media (min-width: 900px) {
  .hero__ring { right: -8rem; width: 52rem; height: 52rem; }
}

/* Cabeçalho de páginas internas */
.page-hero {
  padding-block: clamp(3rem, 7vw, 5rem);
  background: var(--offwhite);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 1.1rem; max-width: 42rem; }

/* --------------------------------------------------------------------------
   8. Grades e cartões
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid--3, .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(58, 166, 158, 0.35);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: var(--fs-sm); }

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1.25rem;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Cartões estáticos (missão/visão/valores) — sem hover */
.card--flat { box-shadow: none; }
.card--flat:hover { transform: none; box-shadow: none; border-color: var(--line); }

.value-list {
  margin-top: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: var(--fs-sm);
  color: var(--muted);
}
.value-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.value-list li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 0.6rem;
  border-radius: 50%;
  background: var(--teal);
}

/* --------------------------------------------------------------------------
   9. Etapas do processo — o anel preenche 1/4 → 4/4
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step {
  position: relative;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.step__marker {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 1.1rem;
}
.step__marker svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.step__marker span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--teal-dark);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { font-size: var(--fs-sm); color: var(--muted); }

/* --------------------------------------------------------------------------
   10. Blocos de duas colunas
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 0.95fr; align-items: center; }
  .split--form { grid-template-columns: 0.9fr 1.1fr; align-items: start; }
}

.panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--teal-soft);
  border-radius: var(--radius-lg);
}
.panel--plain { background: var(--offwhite); border: 1px solid var(--line); }

.fact-list { list-style: none; display: flex; flex-direction: column; }
.fact-list > li { padding-block: 1rem; border-top: 1px solid rgba(26, 43, 42, 0.1); }
.fact-list > li:first-child { border-top: 0; padding-top: 0; }
.fact-list > li:last-child { padding-bottom: 0; }
.fact-list dt,
.fact-list__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 0.3rem;
}
.fact-list dd,
.fact-list__value { margin: 0; font-size: var(--fs-sm); color: var(--ink); }

.prose-block h2 + .lead { margin-top: 1rem; }
.prose-block p + p { margin-top: 1.1rem; }
.prose-block .lead + p { margin-top: 1.5rem; }

/* --------------------------------------------------------------------------
   11. Faixa de CTA
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 5rem);
  background: var(--teal);
  color: var(--white);
}
.cta-band__ring {
  position: absolute;
  top: 50%;
  right: -10rem;
  width: 30rem;
  height: 30rem;
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.14;
  pointer-events: none;
}
.cta-band__inner { position: relative; z-index: 1; max-width: 38rem; }
.cta-band h2 { color: var(--white); }
.cta-band p {
  margin-top: 0.9rem;
  font-size: var(--fs-lead);
  color: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------
   12. Contato
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal-dark);
}
.contact-item__label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}
.contact-item__value { font-size: var(--fs-sm); line-height: 1.55; }
.contact-item__value a { font-weight: 500; text-decoration: none; }
.contact-item__value a:hover { text-decoration: underline; }

/* Formulário */
.form-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #9db0ae; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(58, 166, 158, 0.16);
}

.field--check {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.field--check input {
  width: auto;
  margin-top: 0.28rem;
  accent-color: var(--teal);
  flex-shrink: 0;
}
.field--check label {
  margin-bottom: 0;
  font-weight: 400;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted);
}

.form-note { margin-top: 1rem; font-size: var(--fs-xs); color: var(--muted); }

.hp { position: absolute; left: -9999px; opacity: 0; }

/* --------------------------------------------------------------------------
   13. Texto corrido (política de privacidade)
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose h2 {
  margin-top: clamp(2.75rem, 5vw, 3.5rem);
  margin-bottom: 0.9rem;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}
.prose h2:first-of-type { margin-top: 0; }
/* Compensa o cabeçalho fixo ao chegar por âncora (ex.: #cookies). */
.prose h2[id] { scroll-margin-top: 6rem; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1.1rem; color: var(--muted); }
.prose p strong { color: var(--ink); font-weight: 600; }
.prose ul { margin: 0 0 1.1rem; padding-left: 0; list-style: none; }
.prose ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 1.4rem;
  color: var(--muted);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}
.prose ul li strong { color: var(--ink); font-weight: 600; }

.doc-meta {
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--teal-soft);
  border-radius: var(--radius);
  font-size: var(--fs-sm);
  color: var(--ink);
}
.doc-meta strong { font-weight: 600; }

/* --------------------------------------------------------------------------
   14. Rodapé
   -------------------------------------------------------------------------- */
.footer {
  padding-top: clamp(3.5rem, 7vw, 5rem);
  background: var(--ink);
  color: var(--on-dark);
}
.footer a { color: var(--on-dark); text-decoration: none; }
.footer a:hover { color: var(--teal); text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 3rem;
}
@media (min-width: 700px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) {
  .footer__grid { grid-template-columns: 1.35fr 1fr 1fr; gap: 3rem; }
}

.footer__logo { width: 190px; margin-bottom: 1.25rem; }

.footer__legal {
  font-size: var(--fs-sm);
  line-height: 1.75;
  color: var(--on-dark-muted);
}
.footer__legal strong { display: block; color: var(--on-dark); font-weight: 600; }

.footer__title {
  margin-bottom: 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.footer__list { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; font-size: var(--fs-sm); }
.footer__list--contact { color: var(--on-dark-muted); line-height: 1.6; }
.footer__list--contact strong {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 0.15rem;
}
.footer__list--contact span,
.footer__list--contact a { color: var(--on-dark); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: var(--on-dark-muted);
}

/* --------------------------------------------------------------------------
   15. Banner de consentimento de cookies
   -------------------------------------------------------------------------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 90;              /* acima do cabeçalho fixo (50), abaixo do skip link (100) */
  max-width: 62rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);

  /* Estado inicial da animação de entrada; .is-visible finaliza. */
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Vence .cookie-banner por especificidade, evitando o flash antes do JS. */
.cookie-banner[hidden] { display: none; }

/* O container só recebe foco como destino programático (tabindex="-1"); ele
   não é acionável, então o anel de foco fica com os botões internos. */
.cookie-banner:focus,
.cookie-banner:focus-visible { outline: none; }

.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }

.cookie-banner__title {
  margin-bottom: 0.3rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}

.cookie-banner__text {
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--muted);
}
.cookie-banner__text a { font-weight: 500; }

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cookie-banner__actions .btn { flex: 1 1 auto; }

/* Botões compactos — o banner é discreto, não um modal. */
.btn--sm {
  padding: 0.6rem 1.15rem;
  font-size: var(--fs-xs);
  box-shadow: none;
}

@media (min-width: 760px) {
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    gap: 1.75rem;
    padding: 1.25rem 1.5rem;
  }
  .cookie-banner__content { flex: 1 1 auto; }
  .cookie-banner__actions { flex: 0 0 auto; flex-wrap: nowrap; }
  .cookie-banner__actions .btn { flex: 0 0 auto; }
}

/* --------------------------------------------------------------------------
   16. Movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card:hover { transform: none; }
  .btn:hover { transform: none; }
  /* Sem deslocamento: o banner apenas aparece no lugar. */
  .cookie-banner { transform: none; }
}
