/* ============================================
   048 TURISMO — Components
   Botoes, badges, cards, formularios,
   header, footer, stats.
   ============================================ */


/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.btn--primary {
  background-color: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  font-weight: 700;
}

.btn--primary:hover {
  background-color: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--orange-rgb), 0.4);
}

.btn--primary:active {
  transform: translateY(0);
  background-color: var(--orange-hover);
  box-shadow: none;
}

.btn--primary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.btn--outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn--outline:hover {
  background-color: var(--white);
  color: var(--navy);
}

.btn--outline:active {
  transform: translateY(0);
  background-color: var(--white-alpha-85);
}

.btn--outline:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

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

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: var(--fs-base);
}

@media (max-width: 767px) {
  .btn--lg {
    max-width: 100%;
    white-space: normal;
    padding: 0.875rem 1.5rem;
    line-height: 1.3;
  }
}

.btn--pulse {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--orange-rgb), 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(var(--orange-rgb), 0); }
}


/* ---------- BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
}

.badge--outline {
  border: 1.5px solid var(--white-alpha-50);
  color: var(--white);
  cursor: default;
  transition: all var(--transition);
}

.badge--outline:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.badge--outline-light {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  cursor: default;
  transition: all var(--transition);
}

.badge--outline-light:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.badge--solid {
  background-color: var(--orange);
  color: var(--white);
}

/* H1 com visual de badge (hero da home).
   Reset de defaults do user-agent (margin/font-size) para visual idêntico ao span original. */
h1.badge {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.4;
}


/* ---------- CARDS ---------- */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  transition: all var(--transition);
}

.card--diferencial,
.card--servico {
  border: 1px solid var(--gray-200);
  text-align: center;
}

.card--diferencial:hover,
a.card--servico:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

a.card--servico {
  cursor: pointer;
}

div.card--servico {
  cursor: default;
}

.card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--navy-rgb), 0.06), rgba(var(--orange-rgb), 0.06));
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
  color: var(--navy);
}

.card__title {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.card__text {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  line-height: 1.6;
}

.card--servico {
  border-top: 3px solid var(--orange);
}

.card--case {
  border-left: 4px solid var(--orange);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card__case-logo {
  height: 60px;
  width: 120px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.card__case-logos {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.card__case-logos .card__case-logo {
  margin-bottom: 0;
}

.card__case-logo--bigger {
  height: 69px;
  width: 138px;
}

.card__case-logo--round {
  border-radius: 50%;
  object-fit: cover;
  width: 60px;
  height: 60px;
}

.card__case-logo--placeholder {
  height: 60px;
  width: 120px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  color: var(--gray-400);
  margin-bottom: var(--space-md);
}

.card__case-name {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-sm);
}

.card__case-tag {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--orange);
  margin-top: var(--space-sm);
}


/* ---------- FORMS ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) 25px 25px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  max-width: 100%;
}

.form-card__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-xs);
}

.form-card__subtitle {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: 0;
}

.ghl-form-slot {
  overflow: hidden;
  min-height: 560px;
  contain-intrinsic-size: auto 560px;
  position: relative;
}

.ghl-form-slot:not(.is-loaded)::before {
  content: 'Carregando formulário...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: var(--fs-sm, 0.875rem);
  z-index: 1;
  pointer-events: none;
}

.footer__credentials {
  font-size: var(--fs-xs, 0.75rem);
  opacity: 0.85;
  margin: 0 0 var(--space-xs, 0.5rem) 0;
  line-height: 1.5;
}
.footer__credentials abbr {
  text-decoration: none;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}

.ghl-form-slot iframe {
  min-height: 560px;
  display: block;
  position: relative;
  z-index: 2;
}

.form-card--dark {
  background: var(--white-alpha-08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--white-alpha-12);
  padding-top: var(--space-xl);
}

.form-card--dark .form-card__title {
  color: var(--white);
}

.form-card--dark .form-card__subtitle {
  color: var(--white-alpha-70);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-row {
  display: grid;
  gap: var(--space-md);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-800);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group select::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-500);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(var(--navy-rgb), 0.1);
}

.form-card--dark .form-group input,
.form-card--dark .form-group select,
.form-card--dark .form-group textarea {
  background: var(--white-alpha-10);
  border-color: var(--white-alpha-20);
  color: var(--white);
}

.form-card--dark .form-group input::placeholder,
.form-card--dark .form-group select::placeholder,
.form-card--dark .form-group textarea::placeholder {
  color: var(--white-alpha-50);
}

.form-card--dark .form-group input:focus,
.form-card--dark .form-group select:focus,
.form-card--dark .form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(var(--orange-rgb), 0.2);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236C757D' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}


/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}

.header--scrolled {
  background: rgba(var(--navy-rgb), 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px var(--black-alpha-15);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__logo-img {
  max-height: 70px;
  width: auto;
  display: block;
  margin: 18px 0;
  transition: transform var(--transition);
}

.header__logo:hover .header__logo-img {
  transform: scale(1.05);
}

.header__nav {
  display: none;
}

.header__nav-list {
  display: flex;
  gap: var(--space-xl);
}

.header__nav-link {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--white-alpha-85);
  transition: color var(--transition);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--orange);
  transition: width var(--transition);
}

.header__nav-link:hover {
  color: var(--white);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__nav-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
  color: var(--white);
}

.header__cta {
  display: none;
  font-size: var(--fs-xs);
  padding: 0.625rem 1.25rem;
}

.header__menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
  z-index: 1101;
  position: relative;
}

.header__menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
  transition: all var(--transition);
  transform-origin: center;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-toggle[aria-expanded="true"] .header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__nav.nav--open {
  display: flex;
  position: fixed;
  inset: 0;
  background: var(--navy-dark);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: calc(var(--header-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
  z-index: 1100;
  animation: fadeIn 0.3s ease;
  overflow-y: auto;
}

.header__nav.nav--open .header__nav-list {
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  padding: 0;
  margin: 0;
  list-style: none;
  width: 100%;
}

.header__nav.nav--open .header__nav-link {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 600;
  color: var(--white);
  padding: var(--space-sm) var(--space-lg);
  text-align: center;
}

.header__nav.nav--open .header__nav-link:hover,
.header__nav.nav--open .header__nav-link:focus-visible {
  color: var(--orange);
}

.header__nav-close {
  display: none;
}

.header__nav.nav--open .header__nav-close {
  display: flex;
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__nav.nav--open .header__nav-close:hover,
.header__nav.nav--open .header__nav-close:focus-visible {
  color: var(--orange);
  background: rgba(255, 255, 255, 0.08);
}

.header__nav.nav--open .header__nav-close:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}


/* ---------- WHATSAPP FAB (Mobile flutuante) ---------- */
.whatsapp-fab {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  z-index: 900;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition);
  padding: 0;
}

.whatsapp-fab:hover,
.whatsapp-fab:focus-visible {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.whatsapp-fab:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

.whatsapp-fab:active {
  transform: scale(0.95);
}

@media (max-width: 1023px) {
  .whatsapp-fab {
    display: flex;
  }
}

/* Esconde o FAB quando modal está aberto (evita sobreposição visual).
   Dupla cobertura: :has() para browsers modernos + classe body.modal-open
   adicionada via JS para Safari iOS <15.4 e cross-browser robustness. */
body:has(.modal.is-open) .whatsapp-fab,
body.modal-open .whatsapp-fab {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-fab {
    transition: none;
  }
}


/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-sm);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 480px) {
  .stats-grid {
    gap: var(--space-xs);
  }

  .stat__number {
    font-size: var(--fs-lg);
  }
}

.stat {
  padding: var(--space-sm);
}

.stat__number {
  display: block;
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat__number--highlight {
  color: var(--orange);
}

.stat__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  margin-top: var(--space-xs);
}


/* ---------- FOOTER ---------- */
.footer {
  background: var(--navy-dark);
  color: var(--white-alpha-70);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer__logo-img {
  height: 50px;
  object-fit: contain;
  margin-bottom: var(--space-sm);
}

.footer__logo-text {
  display: inline-block;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.footer__logo-accent {
  font-weight: 400;
  color: var(--orange);
}

.footer__tagline {
  font-size: var(--fs-sm);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white-alpha-08);
  border-radius: 50%;
  color: var(--white-alpha-70);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.footer__social a:hover {
  background: var(--orange);
  color: var(--white);
  transform: translateY(-3px);
}

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

/* Espacamento entre listas dentro da mesma coluna do footer (ex: Navegacao + Servicos). */
.footer__heading--spaced {
  margin-top: var(--space-xl);
}

.footer__links ul li,
.footer__servicos ul li,
.footer__suporte ul li {
  margin-bottom: var(--space-sm);
}

.footer__links a,
.footer__servicos a,
.footer__suporte a {
  font-size: var(--fs-sm);
  transition: color var(--transition), transform var(--transition);
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 0;
}

.footer__links a:hover,
.footer__servicos a:hover,
.footer__suporte a:hover {
  color: var(--orange);
  transform: translateX(4px);
}

.footer__suporte a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.footer__endereco address {
  font-size: var(--fs-sm);
  line-height: 1.8;
}

/* WCAG 2.5.5 — link Google Maps com area de toque >=44px em mobile */
.footer__endereco address > a {
  display: inline-block;
  padding: var(--space-xs) 0;
  min-height: 44px;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--white-alpha-08);
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--white-alpha-60);
}

.footer__slogan {
  background: var(--white, #fff);
  text-align: center;
  padding: var(--space-md) 0;
}

.footer__slogan p {
  font-size: var(--fs-base);
  font-weight: 800;
  color: var(--navy-dark, #000044);
  margin: 0;
}


/* ---------- UTILITY CLASSES ---------- */

/* Footer selos */
.footer__selos {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  align-items: center;
  flex-wrap: wrap;
}

.footer__selo {
  width: 60px;
  height: 30px;
  aspect-ratio: auto;
  background: var(--white-alpha-10);
  border-radius: var(--radius-sm);
  font-size: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-alpha-60);
}

.footer__selo--wide {
  width: 80px;
  font-size: 0.45rem;
  text-align: center;
}

/* Form placeholder */
.ghl-form-placeholder {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: var(--fs-sm);
}

/* Image utilities */
.frota__card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-placeholder {
  aspect-ratio: 16/10;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Parceiro logo placeholders */
.parceiro-placeholder {
  width: 120px;
  height: 50px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
}

.parceiro-placeholder--sm {
  width: 120px;
  height: 50px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-md);
  font-size: 0.6rem;
}

/* Layout modifiers */
.section--centered {
  text-align: center;
}

/* Button variants */
.btn--outline-white {
  color: var(--white);
  border-color: var(--white-alpha-50);
}

.btn--outline-navy {
  color: var(--navy);
  border-color: var(--gray-300);
  text-decoration: none;
}

/* Link utilities */
.card-link {
  text-decoration: none;
  color: inherit;
}

/* Text utilities */
.u-text-orange {
  color: var(--orange);
}

.u-text-muted {
  color: var(--gray-600);
  font-size: var(--fs-sm);
}

.u-text-white-75 {
  color: rgba(255, 255, 255, 0.75);
}

/* Spacing utilities */
.u-mb-sm {
  margin-bottom: var(--space-sm);
}

.u-mb-md {
  margin-bottom: var(--space-md);
}

.u-mb-lg {
  margin-bottom: var(--space-lg);
}

.u-mb-xl {
  margin-bottom: var(--space-xl);
}

.u-mt-sm {
  margin-top: var(--space-sm);
}

/* Flex utilities */
.u-flex-center {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.u-flex-center--sm {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

/* Badges row */
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-xl);
}

/* Section header left-aligned variant */
.section-header--left .section-header__title {
  text-align: left;
  font-size: var(--fs-xl);
}

/* LP-specific text colors (--clr- prefixed tokens) */
.u-text-clr-white {
  color: var(--clr-white);
}

.u-text-clr-neutral-300 {
  color: var(--clr-neutral-300);
}

.u-text-clr-neutral-400 {
  color: var(--clr-neutral-400);
}

.btn--outline-clr-white {
  color: var(--clr-white);
  border-color: var(--clr-white-alpha-30);
}

/* Misc utilities */
.u-text-white-70 {
  color: var(--white-alpha-70);
  font-size: var(--fs-lg);
  margin-bottom: var(--space-xl);
}

.u-text-white {
  color: var(--white);
}

.u-icon-inline {
  vertical-align: middle;
  margin-right: 4px;
}

.u-no-shrink {
  margin: 0;
  flex-shrink: 0;
}

.u-mt-sm-xs {
  margin-top: var(--space-sm);
  font-size: var(--fs-xs);
}

.contact-card__link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-align: left;
}

.ghl-form-slot--dashed {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--clr-neutral-300);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.ghl-form-slot--dashed-dark {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--clr-neutral-500);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}


/* ---------- MODAL ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition), visibility var(--transition);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal:not(.is-open) iframe,
.modal:not(.is-open) .ep-iFrameContainer,
.modal:not(.is-open) .ep-wrapper {
  visibility: hidden !important;
  pointer-events: none !important;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal__content {
  position: relative;
  background: var(--white, #fff);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-md) var(--space-md) 0;
  z-index: 1;
  box-shadow: var(--shadow-xl);
}

.modal__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--gray-500);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: color var(--transition);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal__close:hover {
  color: var(--gray-800);
}

.modal__title {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--space-xs);
  padding-right: var(--space-xl);
}

.modal__subtitle {
  font-size: var(--fs-sm);
  color: var(--gray-600);
  margin-bottom: var(--space-md);
}

.modal__content iframe {
  width: 100%;
  min-height: 420px;
  border: none;
}


/* ---------- FORM DISABLED STATE ---------- */
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ---------- BADGE FOCUS STATES ---------- */
.badge--outline:focus-visible,
.badge--outline-light:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- MODAL LOADING SPINNER ---------- */
.modal__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  padding: var(--space-2xl) 0;
  color: var(--gray-600);
  font-size: var(--fs-sm);
}

.modal__loading .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.modal.is-open .modal__loading {
  position: absolute;
  z-index: -1;
}


/* ========================================
   RESPONSIVE — TABLET (768px+)
   ======================================== */
@media (min-width: 768px) {
  .form-card {
    padding: var(--space-lg) 15px 15px;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}


/* ========================================
   RESPONSIVE — DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__menu-toggle {
    display: none;
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}


/* ============================================
   TABLE COMPARATIVA (F0-6 — AEO citation magnet)
   Tabela responsível em FAQ-accordions com dados comparativos.
   Mobile: overflow horizontal scroll | Tablet+: layout completo.
   ============================================ */
/* Wrapper para scroll horizontal com indicador visual de gradiente nas bordas */
.table-comparativa-wrapper {
  position: relative;
  margin: var(--space-md) var(--space-lg) var(--space-lg);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.table-comparativa-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 32px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--white));
  pointer-events: none;
  opacity: 0.85;
}
@media (min-width: 768px) {
  .table-comparativa-wrapper::after {
    display: none;
  }
}

.table-comparativa {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: var(--fs-sm);
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--white);
}

.table-comparativa caption {
  caption-side: bottom;
  text-align: left;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  padding: var(--space-sm) var(--space-md) 0;
  font-style: italic;
}

.table-comparativa th,
.table-comparativa td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
  min-width: 130px;
}

.table-comparativa thead th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--navy);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.table-comparativa tbody th[scope="row"] {
  font-weight: 600;
  color: var(--navy);
  background: var(--gray-50);
  min-width: 160px;
}

.table-comparativa tbody tr:last-child th,
.table-comparativa tbody tr:last-child td {
  border-bottom: none;
}

@media (min-width: 768px) {
  .table-comparativa {
    display: table;
    overflow-x: visible;
  }
  .table-comparativa th,
  .table-comparativa td {
    min-width: 0;
  }
  .table-comparativa thead th {
    white-space: normal;
  }
}

/* Caption fora do wrapper para legenda visível abaixo */
.table-comparativa-wrapper + .table-comparativa-caption {
  display: block;
  font-size: var(--fs-xs);
  color: var(--gray-600);
  font-style: italic;
  padding: 0 var(--space-lg);
  margin-top: calc(-1 * var(--space-sm));
}

@media (prefers-reduced-motion: no-preference) {
  .table-comparativa tbody tr {
    transition: background-color 200ms ease;
  }
  .table-comparativa tbody tr:hover {
    background: var(--gray-50);
  }
}

