/* ==========================================================================
   MeqTac Cronotacógrafos — estilos complementares ao Tailwind
   ========================================================================== */

:root {
  --brand-600: #c8102e;
  --brand-700: #a90d27;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

/* Compensa o cabeçalho fixo ao navegar pelas âncoras */
html {
  scroll-padding-top: 7.5rem;
}

body {
  overflow-x: hidden;
}

/* --------------------------------------------------------------------------
   Acessibilidade
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 600;
  border-bottom-right-radius: 0.75rem;
}

.skip-link:focus {
  left: 0;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 2px;
  border-radius: 0.375rem;
}

/* --------------------------------------------------------------------------
   Navegação
   -------------------------------------------------------------------------- */

.nav-link {
  display: block;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link:hover {
  color: var(--brand-600);
  background-color: #f8fafc;
}

.nav-link.is-active {
  color: var(--brand-600);
  background-color: #fef2f3;
}

.nav-link-mobile {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  transition: color 0.2s, background-color 0.2s;
}

.nav-link-mobile:hover,
.nav-link-mobile.is-active {
  color: var(--brand-600);
  background-color: #f8fafc;
}

/* Sombra sutil só depois que a página rola */
#navbar.is-scrolled {
  border-color: #e2e8f0;
  box-shadow: 0 10px 30px -18px rgb(15 23 42 / 0.35);
}

/* --------------------------------------------------------------------------
   Barra de ações mobile
   -------------------------------------------------------------------------- */

.mobile-action-bar {
  display: none;
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 5.5rem;
  }

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

  /* A faixa de horário some após a primeira rolagem e libera área útil. */
  #cabecalho > div:first-child {
    max-height: 2.25rem;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  #cabecalho.is-compact > div:first-child {
    max-height: 0;
    opacity: 0;
  }

  #navbar > div:first-child {
    min-height: 4.25rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
  }

  #menu-mobile {
    max-height: calc(100dvh - 4.25rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: 0 18px 35px -24px rgb(15 23 42 / 0.45);
  }

  body.menu-aberto {
    overflow: hidden;
  }

  #inicio {
    padding-top: 7.25rem;
  }

  #inicio > .relative {
    gap: 2.25rem;
    padding-top: 2.75rem;
    padding-bottom: 3.75rem;
  }

  #inicio h1 {
    font-size: clamp(2.15rem, 10vw, 2.75rem);
  }

  #inicio p {
    font-size: 1rem;
  }

  #inicio dl {
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
  }

  #inicio dl dd {
    font-size: 1.35rem;
  }

  #inicio dl dt {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    line-height: 1.25;
  }

  main section:not(#inicio) {
    scroll-margin-top: 5.25rem;
  }

  /* Cartões em swipe horizontal reduzem bastante o comprimento da página. */
  .mobile-carousel,
  #grade-unidades {
    display: flex;
    gap: 1rem;
    margin-right: -1rem;
    margin-left: -1rem;
    padding-right: 1rem;
    padding-left: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1rem;
    overscroll-behavior-inline: contain;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-carousel::-webkit-scrollbar,
  #grade-unidades::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel > *,
  #grade-unidades > * {
    width: min(84vw, 21rem);
    min-width: min(84vw, 21rem);
    scroll-snap-align: start;
  }

  #grade-unidades .unit-card {
    min-height: 100%;
  }

  .mobile-action-bar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 0.65rem;
    padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom));
    border-top: 1px solid #e2e8f0;
    background: rgb(255 255 255 / 0.96);
    box-shadow: 0 -12px 30px -20px rgb(15 23 42 / 0.5);
    backdrop-filter: blur(12px);
  }

  .mobile-action-bar a {
    display: inline-flex;
    min-height: 2.9rem;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
  }

  .mobile-action-bar__secondary {
    border: 1px solid #cbd5e1;
    color: #1e293b;
    background: #fff;
  }

  .mobile-action-bar__primary {
    color: #fff;
    background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
    box-shadow: 0 8px 20px -12px rgb(200 16 46 / 0.8);
  }

  /* A barra inferior substitui o botão flutuante e evita sobreposição. */
  #whatsapp-flutuante {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Cartões de serviço (foto desfocada ao fundo + texto legível por cima)
   -------------------------------------------------------------------------- */

.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 1.25rem;
  min-height: 22rem;
  display: flex;
  align-items: flex-end;
  background-color: #0f172a;
  box-shadow: 0 20px 45px -25px rgb(15 23 42 / 0.5);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 55px -25px rgb(200 16 46 / 0.35);
}

/* Borda de gradiente que aparece no hover, sem alterar o layout */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, var(--brand-600), transparent 45%, transparent 55%, #f1707d);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(0.95);
  transform: scale(1.12);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.service-card:hover .service-card__bg {
  filter: blur(1.5px) saturate(1.05);
  transform: scale(1.18);
}

/* Véu escuro garante contraste AA do texto sobre qualquer foto */
.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to top,
    rgb(15 23 42 / 0.94) 0%,
    rgb(15 23 42 / 0.82) 38%,
    rgb(15 23 42 / 0.45) 100%
  );
}

.service-card__body {
  padding: 1.75rem;
  color: #fff;
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.875rem;
  background: linear-gradient(135deg, #e63f52, var(--brand-600) 55%, var(--brand-700));
  color: #fff;
  box-shadow: 0 12px 25px -12px rgb(200 16 46 / 0.9);
}

.service-card__title {
  margin-top: 1.15rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.service-card__text {
  margin-top: 0.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #e2e8f0;
}

/* --------------------------------------------------------------------------
   Cartões de unidade
   -------------------------------------------------------------------------- */

.unit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1.25rem;
  background-color: #fff;
  border: 1px solid #e2e8f0;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.unit-card:hover,
.unit-card.is-highlighted {
  transform: translateY(-4px);
  border-color: #cbd5e1;
  box-shadow: 0 25px 45px -28px rgb(15 23 42 / 0.55);
}

.unit-card.is-highlighted {
  border-color: var(--brand-600);
}

.unit-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1e293b 0%, #334155 55%, #475569 100%);
  overflow: hidden;
}

.unit-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.unit-card:hover .unit-card__media img {
  transform: scale(1.06);
}

/* Placeholder exibido quando a foto da fachada ainda não existe */
.unit-card__placeholder {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #cbd5e1;
  text-align: center;
  padding: 1rem;
}

.unit-card__media.is-placeholder img {
  display: none;
}

.unit-card__media.is-placeholder .unit-card__placeholder {
  display: flex;
}

.unit-card__badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  background-color: var(--brand-600);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 20px -10px rgb(200 16 46 / 0.8);
}

.unit-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.25rem;
  flex: 1;
}

.unit-card__row {
  display: flex;
  gap: 0.6rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #475569;
}

.unit-card__row svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--brand-600);
}

.unit-card__row a:hover {
  color: var(--brand-600);
  text-decoration: underline;
}

.unit-card__actions {
  margin-top: auto;
  padding-top: 0.4rem;
}

/* --------------------------------------------------------------------------
   Formulário
   -------------------------------------------------------------------------- */

.form-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.form-legend {
  width: 100%;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.form-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
}

.form-req {
  color: var(--brand-600);
  font-weight: 700;
}

.form-opt {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background-color: #fff;
  font-size: 0.95rem;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder {
  color: #94a3b8;
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgb(200 16 46 / 0.12);
}

.form-input[aria-invalid="true"] {
  border-color: var(--brand-600);
  background-color: #fef2f3;
}

/* --------------------------------------------------------------------------
   Mapa (Leaflet)
   -------------------------------------------------------------------------- */

.leaflet-container {
  font-family: inherit;
}

.leaflet-popup-content-wrapper {
  border-radius: 0.9rem;
  box-shadow: 0 18px 40px -20px rgb(15 23 42 / 0.5);
}

.leaflet-popup-content {
  margin: 0.9rem 1.1rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.map-pin {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px 9999px 9999px 0;
  transform: rotate(-45deg);
  background-color: var(--brand-600);
  border: 3px solid #fff;
  box-shadow: 0 10px 20px -8px rgb(15 23 42 / 0.6);
}

.map-pin span {
  transform: rotate(45deg);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   Passo a passo (Como funciona)
   -------------------------------------------------------------------------- */

.step-card {
  position: relative;
  border-radius: 1.25rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.step-card:hover {
  border-color: #fbccd0;
  box-shadow: 0 18px 40px -28px rgb(15 23 42 / 0.35);
  transform: translateY(-3px);
}

.step-card__num {
  display: block;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand-600);
  line-height: 1;
}

.step-card__title {
  margin-top: 1rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.step-card__text {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #475569;
}

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

.faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: #fbccd0;
  box-shadow: 0 12px 30px -24px rgb(200 16 46 / 0.35);
}

.faq-item__q {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  font-weight: 700;
  color: #0f172a;
  font-size: 1rem;
}

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

.faq-item__q::after {
  content: "+";
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: #fef2f3;
  color: var(--brand-600);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.faq-item[open] .faq-item__q::after {
  content: "−";
  background: var(--brand-600);
  color: #fff;
}

.faq-item__a {
  padding: 0 1.25rem 1.2rem;
  margin: 0;
  color: #475569;
  line-height: 1.65;
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Botão flutuante do WhatsApp
   -------------------------------------------------------------------------- */

.whatsapp-pulse {
  position: fixed;
}

.whatsapp-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background-color: rgb(16 185 129 / 0.55);
  animation: whatsapp-ping 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes whatsapp-ping {
  0% { transform: scale(1); opacity: 0.7; }
  75%, 100% { transform: scale(1.9); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-pulse::before {
    animation: none;
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Efeitos premium — gradientes, glass e brilho
   -------------------------------------------------------------------------- */

.gradient-text {
  background: linear-gradient(100deg, var(--brand-600) 0%, #f1707d 45%, var(--brand-700) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Fundo "aurora": manchas de gradiente suaves e flutuantes, atrás do conteúdo */
.aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora__blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(70px);
  opacity: 0.4;
  will-change: transform;
  animation: aurora-float 22s ease-in-out infinite;
}

.aurora__blob--1 {
  top: -8rem;
  right: -6rem;
  height: 26rem;
  width: 26rem;
  background: radial-gradient(circle at 30% 30%, #fbccd0, transparent 70%);
  animation-delay: 0s;
}

.aurora__blob--2 {
  bottom: -10rem;
  left: -8rem;
  height: 24rem;
  width: 24rem;
  background: radial-gradient(circle at 60% 40%, #cbd5e1, transparent 70%);
  animation-delay: -5s;
}

.aurora__blob--3 {
  top: 30%;
  left: 40%;
  height: 18rem;
  width: 18rem;
  background: radial-gradient(circle at 50% 50%, #fde3e5, transparent 70%);
  animation-delay: -10s;
}

@keyframes aurora-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2rem, -1.5rem) scale(1.08); }
  66% { transform: translate(-1.5rem, 1.5rem) scale(0.95); }
}

/* Grade sutil de pontos, usada como textura de fundo */
.grid-pattern {
  z-index: 0;
  background-image: radial-gradient(rgb(15 23 42 / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

.grid-pattern--dark {
  background-image: radial-gradient(rgb(255 255 255 / 0.06) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
}

/* Anel de luz sutil ao redor da foto principal do hero */
.glow-ring {
  position: relative;
}

.glow-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--brand-500, #e63f52), transparent 40%, transparent 60%, var(--brand-600));
  opacity: 0.6;
}

/* Efeito de brilho que percorre botões no hover */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  height: 100%;
  width: 40%;
  background: linear-gradient(120deg, transparent, rgb(255 255 255 / 0.35), transparent);
  transform: skewX(-20deg);
  transition: left 0.7s ease;
}

.btn-shine:hover::after {
  left: 130%;
}

/* --------------------------------------------------------------------------
   Cartões de confiança (selos)
   -------------------------------------------------------------------------- */

.trust-card {
  position: relative;
  border-radius: 1.25rem;
  padding: 2rem 1.75rem;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.02));
  border: 1px solid rgb(255 255 255 / 0.08);
  backdrop-filter: blur(6px);
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.trust-card:hover {
  transform: translateY(-6px);
  border-color: rgb(200 16 46 / 0.4);
  background: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
}

.trust-card__seal {
  display: flex;
  height: 4.5rem;
  width: 4.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: linear-gradient(160deg, rgb(255 255 255 / 0.08), transparent);
  border: 1px solid rgb(255 255 255 / 0.12);
  color: #f7a3ab;
}

.trust-card__title {
  margin-top: 1.25rem;
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.trust-card__text {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #94a3b8;
}

/* --------------------------------------------------------------------------
   Animação de entrada
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .aurora__blob {
    animation: none;
  }

  .gradient-text {
    animation: none;
    background-position: 0% 50%;
  }
}
