/* =========================================================================
   PULSE — FOLHA DE ESTILO ÚNICA
   CSS puro, sem framework. Organização:
     1. Tokens        — cores, fontes e raios
     2. Reset         — normalização entre navegadores
     3. Base          — html, body, títulos, foco
     4. Utilitários   — container, seção, efeitos reaproveitados
     5. Componentes   — um bloco por componente .astro
     6. Movimento     — animações e prefers-reduced-motion

   Convenção de nomes: bloco__elemento--variação (BEM).
   ========================================================================= */

/* =========================================================================
   1. TOKENS
   Paleta derivada do portfólio institucional, mantendo base escura para
   atender a diretriz de não usar fundo branco no site.
   ========================================================================= */
:root {
  color-scheme: dark;

  /* Superfícies */
  --brand-bg: #0c1624;
  --brand-bg-soft: #111f32;
  --brand-surface: #172942;
  --brand-surface-2: #203956;
  --brand-border: rgba(211, 231, 245, 0.12);
  --brand-border-strong: rgba(211, 231, 245, 0.22);

  /* Texto */
  --brand-text: #eef7fb;
  --brand-muted: #b5c7d6;
  --brand-faint: #7f96ad;

  /* Acentos do portfólio */
  --brand-primary: #a6ce55;
  --brand-primary-strong: #8fb83f;
  --brand-secondary: #4299cf;
  --brand-accent: #7f94c5;

  /* Versões em canais RGB, para uso com transparência: rgb(var(--rgb-x) / 20%) */
  --rgb-primary: 166 206 85;
  --rgb-secondary: 66 153 207;
  --rgb-accent: 127 148 197;
  --rgb-bg: 12 22 36;

  /* Efeitos */
  --brand-ring: rgba(166, 206, 85, 0.55);
  --shadow-glow: 0 0 40px -8px rgba(66, 153, 207, 0.35);
  --brand-gradient: linear-gradient(
    100deg,
    var(--brand-primary),
    var(--brand-secondary),
    var(--brand-accent)
  );

  /* Tipografia */
  --font-display: "Sora", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Raios */
  --radius-lg: 0.5rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Verde do WhatsApp */
  --wa-green: #25d366;
  --wa-green-dark: #20bd59;
}

/* =========================================================================
   2. RESET
   ========================================================================= */
*,
*:before,
*:after {
  box-sizing: border-box;
  border: 0 solid var(--brand-border);
}
* {
  margin: 0;
}
img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}
ul,
ol {
  list-style: none;
  padding: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  background-color: transparent;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}
hr {
  border-top-width: 1px;
}

/* =========================================================================
   3. BASE
   ========================================================================= */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}
body {
  background-color: var(--brand-bg);
  color: var(--brand-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  letter-spacing: 0;
  line-height: 1.1;
}
strong {
  font-weight: 600;
}
::selection {
  background: var(--brand-primary);
  color: #0c1624;
}
:focus-visible {
  outline: 2px solid var(--brand-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =========================================================================
   4. UTILITÁRIOS
   ========================================================================= */
.bg-aura {
  background-color: var(--brand-bg);
  background-image:
    linear-gradient(145deg, rgba(66, 153, 207, 0.14), transparent 36%),
    linear-gradient(25deg, rgba(166, 206, 85, 0.09), transparent 42%),
    linear-gradient(180deg, #0c1624, #10213a 52%, #0c1624);
}

/* Seção padrão e larguras de conteúdo */
.section {
  padding: 5rem 1.25rem;
}
.section--tight {
  padding: 0 1.25rem 2rem;
}
.section--contato {
  padding: 0 1.25rem 5rem;
}
.container {
  width: 100%;
  margin-inline: auto;
}
.container--xs {
  max-width: 28rem;
}
.container--sm {
  max-width: 42rem;
}
.container--md {
  max-width: 48rem;
}
.container--lg {
  max-width: 64rem;
}
.container--xl {
  max-width: 72rem;
}
.container--wide {
  max-width: 92rem;
}

/* Cartão de vidro */
.glass {
  background: linear-gradient(180deg, #ffffff0b, #ffffff04);
  border: 1px solid var(--brand-border);
  backdrop-filter: blur(6px);
}

/* Texto com gradiente de marca */
.text-gradient {
  background-image: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Linha divisória com brilho */
.hr-glow {
  height: 1px;
  border: 0;
  background: linear-gradient(
    90deg,
    transparent,
    var(--brand-border-strong),
    transparent
  );
}

/* Etiqueta de seção (o "eyebrow") */
.eyebrow {
  display: inline-block;
  border: 1px solid var(--brand-border);
  background: #ffffff08;
  border-radius: var(--radius-full);
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-primary);
}

/* Some da tela mas continua acessível a leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Link "pular para o conteúdo" — só aparece ao receber foco pelo teclado */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 50;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  border-radius: var(--radius-lg);
  background: var(--brand-primary);
  padding: 0.5rem 1rem;
  color: #0c1624;
}

/* =========================================================================
   5. COMPONENTES
   ========================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.btn--md {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.btn--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  line-height: 1.5rem;
}
.btn--primary {
  color: #0c1624;
  background-image: linear-gradient(
    to right,
    var(--brand-primary),
    var(--brand-secondary)
  );
  box-shadow: 0 8px 30px -8px #4299cf80;
}
.btn--primary:hover {
  filter: brightness(1.1);
}
.btn--whatsapp {
  color: #fff;
  background-color: var(--wa-green);
  box-shadow: 0 8px 30px -8px #25d3668c;
}
.btn--whatsapp:hover {
  background-color: var(--wa-green-dark);
}
.btn--ghost {
  color: var(--brand-text);
  border: 1px solid var(--brand-border-strong);
  background-color: #ffffff05;
}
.btn--ghost:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.btn--block {
  width: 100%;
}

/* Ícones dentro de botões */
.btn__icon {
  height: 1.25rem;
  width: 1.25rem;
}
.icon--sm {
  height: 1rem;
  width: 1rem;
}

/* ---------- Logo (Logo.astro) ------------------------------------------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.logo__mark {
  height: 2rem;
  width: 2.75rem;
  flex-shrink: 0;
}
.logo__text {
  line-height: 1;
}
.logo__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--brand-text);
}
.logo__sub {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-primary);
}

/* ---------- Cabeçalho fixo (Header.astro) ------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 100%;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

/* Aplicada por JS depois de rolar 20px */
.site-header.is-scrolled,
.site-header.has-menu-open {
  background-color: #111f32e6;
  backdrop-filter: blur(16px);
  border-bottom-color: var(--brand-border);
}
.site-header__nav {
  margin-inline: auto;
  display: flex;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}
.site-header__menu {
  display: none;
  align-items: center;
  gap: 0.25rem;
}
.site-header__link {
  display: block;
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-muted);
  transition: color 0.2s ease;
}
.site-header__link:hover {
  color: var(--brand-text);
}
.site-header__link.is-active {
  color: var(--brand-primary);
}
.site-header__toggle {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  color: var(--brand-text);
}
.site-header__toggle svg {
  height: 1.5rem;
  width: 1.5rem;
}
.site-header__mobile {
  display: none;
  border-top: 1px solid var(--brand-border);
  background-color: #111f32f2;
  backdrop-filter: blur(16px);
}
.site-header__mobile.is-open {
  display: block;
}
.site-header__mobile-list {
  margin-inline: auto;
  display: flex;
  max-width: 72rem;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}
.site-header__mobile-link {
  display: block;
  border-radius: var(--radius-lg);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand-muted);
}
.site-header__mobile-link.is-active {
  background-color: #ffffff0d;
  color: var(--brand-primary);
}
@media (min-width: 768px) {
  .site-header__menu {
    display: flex;
  }
  .site-header__toggle,
  .site-header__mobile,
  .site-header__mobile.is-open {
    display: none;
  }
}

/* ---------- Hero com vídeo de fundo (Hero.astro) ------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 88svh;
  overflow: hidden;
  padding: 8rem 0 5rem;
}

/* Vídeo e véu desaparecem juntos na base, revelando o fundo do body.
   Evita o degrau de cor que uma parada sólida criaria na emenda. */
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video {
  height: 100%;
  width: 100%;

  /* object-fit preenche a área sem distorcer, cortando o excedente */
  object-fit: cover;
  object-position: center;
}
.hero__overlay,
.page-header__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, #0c1624eb, #0c1624b8, #0c1624d1 70%, #0c1624e6),
    linear-gradient(120deg, rgba(66, 153, 207, 0.22), transparent 55%),
    linear-gradient(300deg, rgba(166, 206, 85, 0.14), transparent 55%);
}
.hero__media,
.hero__overlay,
.page-header__media {
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    transparent 100%
  );
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%);
}
.hero__inner {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  width: 100%;
  max-width: 64rem;
  padding-inline: 1.25rem;
  text-align: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  background: #ffffff0f;
  backdrop-filter: blur(4px);
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
  color: var(--brand-muted);
}

/* Ponto pulsante do selo */
.hero__dot {
  position: relative;
  display: flex;
  height: 0.5rem;
  width: 0.5rem;
}
.hero__dot:before,
.hero__dot:after {
  content: "";
  border-radius: var(--radius-full);
  background-color: var(--brand-primary);
}
.hero__dot:before {
  position: absolute;
  height: 100%;
  width: 100%;
  opacity: 0.75;
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.hero__dot:after {
  position: relative;
  height: 0.5rem;
  width: 0.5rem;
}
.hero__title {
  margin-top: 1.75rem;
  margin-inline: auto;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.02;
  color: var(--brand-text);
}
.hero__break {
  display: none;
}
.hero__text {
  margin-top: 1.75rem;
  margin-inline: auto;
  max-width: 48rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.hero__text strong {
  color: var(--brand-text);
}
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .hero {
    padding: 10rem 0 7rem;
  }
  .hero__title {
    font-size: 4.5rem;
  }
  .hero__break {
    display: inline;
  }
  .hero__text {
    font-size: 1.25rem;
  }
  .hero__actions {
    flex-direction: row;
  }
}

/* Sem o vídeo, o pôster assume como imagem de fundo. Declarado apenas dentro
   da media query para que o arquivo não seja baixado por quem não precisa. */
@media (prefers-reduced-motion: reduce) {
  .hero__media video {
    display: none;
  }
  .hero__media {
    background-image: url(../videos/hero-poster.jpg);
    background-size: cover;
    background-position: center;
  }
}

/* ---------- Topo das páginas internas (PageHeader.astro) ---------------- */
.page-header {
  position: relative;
  overflow: hidden;
  padding: 9rem 1.25rem 3.5rem;
}
.page-header--image {
  isolation: isolate;
  display: grid;
  padding: 0;
}
.page-header__media picture {
  display: block;
}
.page-header__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header--image .page-header__media {
  position: relative;
  inset: auto;
  align-self: start;
  overflow: hidden;
}
.page-header--image .page-header__img {
  position: relative;
  inset: auto;
  height: auto;
  max-height: 88svh;
  animation: ken-burns 26s ease-in-out infinite alternate;
}
.page-header--image .page-header__inner {
  padding: 2rem 1.25rem 3.5rem;
}
.page-header__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.pulse-line {
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: -62%;
  width: 220%;
  max-width: none;
  height: 21rem;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.35;
}
@media (min-width: 640px) {
  .pulse-line {
    left: 0;
    width: 100%;
    height: 11rem;
    opacity: 0.4;
  }
}
@media (max-width: 639.98px) {
  .page-header__media .pulse-line {
    height: 100%;
  }
}
.pulse-line__path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: ecg-draw 4s ease-in-out infinite;
}
.page-header__inner {
  position: relative;
  z-index: 10;
  margin-inline: auto;
  max-width: 48rem;
  text-align: center;
}
.page-header__title {
  margin-top: 1rem;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--brand-text);
}
.page-header__text {
  margin-top: 1.25rem;
  margin-inline: auto;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
@media (max-width: 639.98px) {
  .page-header--image .page-header__overlay {
    background:
      linear-gradient(180deg, #0c162473, #0c162440 45%, #0c16248c),
      linear-gradient(120deg, rgba(66, 153, 207, 0.18), transparent 60%);
  }
  .page-header--image .page-header__media {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 82%,
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 82%, transparent 100%);
  }
}
@media (min-width: 640px) {
  .page-header {
    padding-top: 11rem;
    padding-bottom: 5rem;
  }
  .page-header__title {
    font-size: 3rem;
  }
  .page-header--image {
    padding: 0;
  }
  .page-header--image > .page-header__media,
  .page-header--image > .page-header__inner {
    grid-area: 1 / 1;
  }
  .page-header--image .page-header__inner {
    align-self: center;
    padding: 5rem 1.25rem;
  }
  .page-header--image .page-header__media {
    -webkit-mask-image: linear-gradient(
      180deg,
      #000 0%,
      #000 80%,
      transparent 100%
    );
    mask-image: linear-gradient(180deg, #000 0%, #000 80%, transparent 100%);
  }
}

/* ---------- Título de seção (SectionHeading.astro) ---------------------- */
.section-heading {
  max-width: 42rem;
}
.section-heading--center {
  margin-inline: auto;
  text-align: center;
}
.section-heading--left {
  text-align: left;
}
.section-heading__title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-text);
}
.section-heading__text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
@media (min-width: 640px) {
  .section-heading__title {
    font-size: 2.25rem;
  }
  .section-heading__text {
    font-size: 1.125rem;
  }
}
@media (min-width: 768px) {
  .section-heading__title {
    font-size: 2.6rem;
  }
}

/* ---------- Bloco "Quem somos" (index.astro) ---------------------------- */
.about {
  display: grid;
  align-items: center;
  gap: 3rem;
  margin-inline: auto;
  max-width: 72rem;
}
.about__title {
  margin-top: 1rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-text);
}
.about__text {
  margin-top: 1.25rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.about__text + .about__text {
  margin-top: 1rem;
}
.about__actions {
  margin-top: 1.75rem;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.feature {
  display: flex;
  gap: 1rem;
  border-radius: var(--radius-2xl);
  padding: 1.25rem;
}
.feature__icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-color: rgb(var(--rgb-primary) / 15%);
  color: var(--brand-primary);
}
.feature__icon svg {
  height: 1.25rem;
  width: 1.25rem;
}
.feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-text);
}
.feature__text {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
@media (min-width: 640px) {
  .about__title {
    font-size: 2.25rem;
  }
}
@media (min-width: 768px) {
  .about {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Grades de cartões ------------------------------------------- */
.card-grid {
  display: grid;
  align-items: stretch;
  gap: 1.5rem;
}
.card-grid--services {
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1280px) {
  .card-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Cartão de serviço (ServiceCard.astro) ----------------------- */
.service-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-0.25rem);
  border-color: rgb(var(--rgb-primary) / 40%);
}
.service-card__icon {
  display: flex;
  height: 3rem;
  width: 3rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xl);
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-primary) / 20%),
    rgb(var(--rgb-secondary) / 20%)
  );
  box-shadow: 0 0 0 1px rgb(var(--rgb-primary) / 25%);
  color: var(--brand-primary);
}
.service-card__icon svg {
  height: 1.5rem;
  width: 1.5rem;
}
.service-card__cat {
  margin-top: 1.25rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-faint);
}
.service-card__title {
  margin-top: 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-text);
}
.service-card__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.service-card__actions {
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Lista de itens com check — usada em serviços e soluções */
.check-list {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.check-list--grow {
  flex: 1 1 0%;
  margin-top: 1.5rem;
}
.check-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--brand-muted);
}
.check-list--strong .check-list__item {
  color: var(--brand-text);
}
.check-list__item svg {
  margin-top: 0.125rem;
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  color: var(--brand-primary);
}

/* ---------- Cartão de solução (ProductCard.astro) ----------------------- */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
  transition: all 0.3s ease;
}
.product-card:hover {
  transform: translateY(-0.25rem);
}
.product-card:not(.product-card--featured):hover {
  border-color: rgb(var(--rgb-primary) / 40%);
}
.product-card--featured {
  border-color: rgb(var(--rgb-primary) / 50%);
  box-shadow: 0 0 0 1px rgb(var(--rgb-primary) / 30%);
}
.product-card__tag {
  position: absolute;
  top: -0.75rem;
  left: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: var(--radius-full);
  background-image: linear-gradient(
    to right,
    var(--brand-primary),
    var(--brand-secondary)
  );
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 700;
  color: #0c1624;
}
.product-card__tag svg {
  height: 0.875rem;
  width: 0.875rem;
}
.product-card__public {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-faint);
}
.product-card__title {
  margin-top: 0.375rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
}
.product-card__text {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.product-card__actions {
  margin-top: 1.75rem;
}
.products-note {
  margin-top: 2rem;
  margin-inline: auto;
  max-width: 42rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--brand-faint);
}

/* ---------- Faixa de números (Stats.astro) ------------------------------ */
.stats {
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  background-color: var(--brand-bg-soft);
  padding-block: 3.5rem;
}
.stats__grid {
  margin-inline: auto;
  display: grid;
  max-width: 64rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-inline: 1.25rem;
}
.stats__item {
  text-align: center;
}
.stats__value {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 800;
}
.stats__label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.375;
  color: var(--brand-muted);
}
@media (min-width: 640px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .stats__value {
    font-size: 2.25rem;
  }
}

/* ---------- Faixa de chamada (CtaBanner.astro) -------------------------- */
.cta {
  position: relative;
  margin-inline: auto;
  max-width: 64rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-3xl);
  padding: 2.5rem;
  text-align: center;
}
.cta:before,
.cta:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -10;
}
.cta:before {
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-primary) / 15%),
    transparent,
    rgb(var(--rgb-secondary) / 15%)
  );
}
.cta:after {
  background-color: #111f3299;
  z-index: -11;
}
.cta__title {
  margin-inline: auto;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--brand-text);
}
.cta__text {
  margin-top: 1rem;
  margin-inline: auto;
  max-width: 36rem;
  color: var(--brand-muted);
}
.cta__hours {
  margin-top: 0.5rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-primary);
}
.cta__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.cta__email {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-muted);
}
.cta__email:hover {
  color: var(--brand-primary);
}
@media (min-width: 640px) {
  .cta {
    padding: 3.5rem;
  }
  .cta__title {
    font-size: 2.25rem;
  }
  .cta__actions {
    flex-direction: row;
  }
}

/* ---------- Página de contato (contato.astro) --------------------------- */
.contact {
  display: grid;
  gap: 2.5rem;
  margin-inline: auto;
  max-width: 72rem;
}
.contact__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
}
.contact__text {
  margin-top: 0.75rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.contact__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius-xl);
  padding: 1rem;
}
.contact__icon {
  display: flex;
  height: 2.75rem;
  width: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  background-color: rgb(var(--rgb-primary) / 15%);
  color: var(--brand-primary);
}
.contact__icon svg {
  height: 1.25rem;
  width: 1.25rem;
}
.contact__body {
  min-width: 0;
}
.contact__label {
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-faint);
}
.contact__value {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-text);
  word-break: break-all;
}
a.contact__value:hover {
  color: var(--brand-primary);
}
@media (min-width: 768px) {
  .contact {
    grid-template-columns: 1fr 1.1fr;
  }
}

/* ---------- Formulário (ContactForm.astro) ------------------------------ */
.form {
  border-radius: var(--radius-2xl);
  padding: 1.75rem;
}
.form > * + * {
  margin-top: 1rem;
}
.form__row {
  display: grid;
  gap: 1rem;
}
.form__label {
  margin-bottom: 0.375rem;
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--brand-text);
}
.form__field {
  width: 100%;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-xl);
  background-color: #ffffff08;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--brand-text);
}
.form__field::placeholder {
  color: var(--brand-faint);
}
.form__field:focus {
  border-color: var(--brand-primary);
  outline: none;
}
textarea.form__field {
  resize: none;
}
select.form__field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b5c7d6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 0.875rem;
  cursor: pointer;
}
select.form__field option {
  background-color: var(--brand-bg-soft);
  color: var(--brand-text);
}
@media (max-width: 767.98px), (pointer: coarse) {
  .form__field,
  select.form__field option {
    font-size: 1rem;
  }
}
.form__note {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--brand-faint);
}
@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Rodapé (Footer.astro) --------------------------------------- */
.footer {
  border-top: 1px solid var(--brand-border);
  background-color: var(--brand-bg-soft);
}
.footer__inner {
  margin-inline: auto;
  max-width: 72rem;
  padding: 3.5rem 1.25rem;
}
.footer__cols {
  display: grid;
  gap: 2.5rem;
}
.footer__about {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--brand-muted);
}
.footer__social {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
}
.footer__social-link {
  display: flex;
  height: 2.5rem;
  width: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-full);
  color: var(--brand-muted);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}
.footer__social-link:hover {
  border-color: var(--brand-primary);
  color: var(--brand-primary);
}
.footer__social-link svg {
  height: 1.25rem;
  width: 1.25rem;
}
.footer__title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-faint);
}
.footer__nav {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.footer__link {
  font-size: 0.875rem;
  color: var(--brand-muted);
  transition: color 0.2s ease;
}
.footer__link:hover {
  color: var(--brand-primary);
}
.footer__contact {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--brand-muted);
}
.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.footer__contact svg {
  margin-top: 0.125rem;
  height: 1rem;
  width: 1rem;
  flex-shrink: 0;
  color: var(--brand-primary);
}
.footer__contact a {
  word-break: break-all;
}
.footer__contact a:hover {
  color: var(--brand-primary);
}
.footer__divider {
  margin-block: 2.5rem;
}
.footer__legal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.75rem;
  line-height: 1rem;
  color: var(--brand-faint);
}
@media (min-width: 640px) {
  .footer__legal {
    flex-direction: row;
  }
}
@media (min-width: 768px) {
  .footer__cols {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---------- Botão flutuante do WhatsApp (WhatsAppFloat.astro) ----------- */
.wa-float {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 50;
  display: flex;
  height: 3.5rem;
  width: 3.5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background-color: var(--wa-green);
  color: #fff;
  box-shadow: 0 10px 15px -3px #0000004d;
  transition: transform 0.2s ease;
}
.wa-float:hover {
  transform: scale(1.05);
}
.wa-float svg {
  height: 2.125rem;
  width: 2.125rem;
}
@supports (height: 100svh) {
  .wa-float {
    top: calc(100svh - 4.75rem);
    bottom: auto;
  }
}
@media (min-width: 640px) {
  .wa-float {
    height: 4rem;
    width: 4rem;
  }
  .wa-float svg {
    height: 2.5rem;
    width: 2.5rem;
  }
}
@supports (height: 100svh) {
  @media (min-width: 640px) {
    .wa-float {
      top: calc(100svh - 5.25rem);
    }
  }
}

/* ---------- Galeria e lightbox (GalleryGrid.astro) ---------------------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-2xl);
  text-align: left;
  padding: 0;
}
.gallery__media {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery__item:hover .gallery__media {
  transform: scale(1.05);
}
.gallery__media--1 {
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-primary) / 30%),
    rgb(var(--rgb-secondary) / 20%)
  );
}
.gallery__media--2 {
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-secondary) / 30%),
    rgb(var(--rgb-primary) / 20%)
  );
}
.gallery__media--3 {
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-accent) / 25%),
    rgb(var(--rgb-secondary) / 20%)
  );
}
.gallery__media--4 {
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-primary) / 25%),
    rgb(var(--rgb-accent) / 20%)
  );
}
.gallery__veil {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7),
    transparent 50%
  );
}
.gallery__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 1rem;
}
.gallery__cat {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--brand-primary);
}
.gallery__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
}
@media (min-width: 768px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Cabeçalho da prévia da galeria na home (seção hoje comentada) */
.gallery-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}
.gallery-head__link {
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-primary);
}
.gallery-head__link:hover {
  text-decoration: underline;
}
.gallery-wrap {
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .gallery-head {
    flex-direction: row;
    align-items: flex-end;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #000000d9;
  backdrop-filter: blur(4px);
  padding: 1.5rem;
}
.lightbox.is-open {
  display: flex;
}
.lightbox__close {
  position: absolute;
  right: 1.25rem;
  top: 1.25rem;
  font-size: 1.875rem;
  line-height: 1;
  color: #fffc;
}
.lightbox__close:hover {
  color: #fff;
}
.lightbox__figure {
  max-width: 48rem;
  text-align: center;
}
.lightbox__media {
  margin-inline: auto;
  display: flex;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 42rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background-image: linear-gradient(
    to bottom right,
    rgb(var(--rgb-primary) / 30%),
    rgb(var(--rgb-secondary) / 20%)
  );
}
.lightbox__media img {
  height: 100%;
  width: 100%;
  object-fit: contain;
}
.lightbox__placeholder {
  font-size: 0.875rem;
  color: #fff9;
}
.lightbox__caption {
  margin-top: 1rem;
  color: var(--brand-muted);
}

/* ---------- Página 404 (404.astro) -------------------------------------- */
.notfound {
  display: flex;
  min-height: 70vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: 1.25rem;
  text-align: center;
}
.notfound__code {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
}
.notfound__title {
  margin-top: 1rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-text);
}
.notfound__text {
  margin-top: 0.75rem;
  max-width: 28rem;
  color: var(--brand-muted);
}
.notfound__actions {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .notfound__code {
    font-size: 6rem;
  }
  .notfound__title {
    font-size: 1.875rem;
  }
  .notfound__actions {
    flex-direction: row;
  }
}

/* =========================================================================
   6. MOVIMENTO
   ========================================================================= */
@keyframes ping {
  75%,
  to {
    transform: scale(2);
    opacity: 0;
  }
}
@keyframes ken-burns {
  0% {
    transform: scale(1.04) translate3d(-0.8%, -0.6%, 0);
  }
  to {
    transform: scale(1.12) translate3d(0.8%, 0.6%, 0);
  }
}
@keyframes ecg-draw {
  0% {
    stroke-dashoffset: 1000;
  }
  55% {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 0.15;
  }
}

/* Pulso do botão de WhatsApp */
@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 #25d3668c;
  }
  70% {
    box-shadow: 0 0 0 16px #25d36600;
  }
  to {
    box-shadow: 0 0 #25d36600;
  }
}
.wa-pulse {
  animation: wa-pulse 2.4s infinite;
}
:root {
  --split-x: 40px;
  --split-dur: 0.8s;
  --split-step: 0.05s;
  --split-delay: 0.2s;
  --split-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.split-word {
  display: inline-block;
  white-space: nowrap;
}
.split-char {
  display: inline-block;
  opacity: 0;
  transform: translate(var(--split-x));
  transition:
    opacity var(--split-dur) var(--split-ease)
      calc(var(--i, 0) * var(--split-step) + var(--split-delay)),
    transform var(--split-dur) var(--split-ease)
      calc(var(--i, 0) * var(--split-step) + var(--split-delay));
}
.is-split-in .split-char {
  opacity: 1;
  transform: none;
}
.text-gradient.is-split {
  background-image: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--brand-text);
}
.split-char--gradient {
  background-image: var(--brand-gradient);
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Reveal ao rolar */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wa-pulse,
  .hero__dot:before,
  .pulse-line__path {
    animation: none;
    stroke-dashoffset: 0;
  }
  .page-header--image .page-header__img {
    animation: none;
  }
  .split-char,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
