/**
 * Ajustes responsivos — mobile, tablet e desktop
 */

:root {
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
}

img,
video,
svg {
  max-width: 100%;
  height: auto;
}

/* Áreas seguras (iPhone, etc.) */
.sticky-cta {
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  right: max(1rem, env(safe-area-inset-right, 0px));
  left: auto;
  max-width: calc(100vw - 2rem);
}

.theme-light body,
body {
  padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .theme-light body,
  body { padding-bottom: 0; }
}

.mobile-nav {
  max-height: min(70vh, calc(100dvh - var(--header-h)));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-cta {
  text-align: center;
}

/* —— Header —— */
@media (max-width: 1023px) {
  .header-inner {
    gap: 0.5rem;
    height: var(--header-h);
    min-height: var(--header-h);
    max-height: var(--header-h);
  }

  .brand img {
    max-width: min(52vw, 20rem);
  }

  .nav-toggle {
    flex-shrink: 0;
  }
}

/* Hero — desktop: caixa e texto maiores */
@media (min-width: 1024px) {
  .theme-light .hero-copy {
    padding: 2.35rem 2.6rem;
  }

  .theme-light .hero-text {
    font-size: 1.58rem;
  }

  .theme-light .hero-bullets li {
    font-size: 1.44rem;
  }

  .theme-light .wa-topic__label {
    font-size: 1.05rem;
  }
}

/* Header desktop: ver hero-header-responsive.css */
@media (min-width: 1024px) {
  .nav-link {
    font-weight: 600;
    white-space: nowrap;
  }

  .btn-header-cta .wa-icon,
  .header-cta .wa-icon {
    width: 18px;
    height: 18px;
  }
}

@media (min-width: 1281px) {
  .btn-header-cta .wa-icon,
  .header-cta .wa-icon {
    width: 20px;
    height: 20px;
  }
}

/* —— Hero —— */
@media (max-width: 1023px) {
  .hero-layout {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 767px) {
  .theme-light .hero--light {
    min-height: auto;
    padding-top: 0;
    padding-bottom: 0;
  }

  /* Layout em coluna: ver hero-header-responsive.css */
  .theme-light .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 4vw, 1.35rem);
    width: 100%;
    padding-bottom: clamp(0.75rem, 3vw, 1.25rem);
  }

  .theme-light .hero-copy {
    order: 1;
    padding: clamp(1.35rem, 4vw, 1.75rem) clamp(1.1rem, 4vw, 1.5rem);
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    align-self: stretch;
    box-sizing: border-box;
  }

  .theme-light .hero-aside {
    order: 2;
    margin-top: 0;
    flex: 0 0 auto;
    width: 100%;
    max-width: min(28rem, 100%);
    margin-inline: auto;
  }

  .theme-light .hero-title {
    margin-bottom: 0.75rem;
  }

  .theme-light .hero-title__line {
    font-size: clamp(1.5rem, 6vw, 2.1rem);
    line-height: 1.12;
  }

  .theme-light .hero-text {
    font-size: 1.05rem;
    line-height: 1.55;
    margin-bottom: 0.9rem;
  }

  .theme-light .hero-bullets {
    margin-bottom: 1rem;
  }

  .theme-light .hero-bullets li {
    font-size: 0.98rem;
    margin-bottom: 0.45rem;
  }

  .theme-light .hero-check {
    font-size: 1.1rem;
  }

  .hero-cta-block {
    width: 100%;
    margin-top: 0.65rem;
    align-items: center;
    gap: 0.4rem;
  }

  .theme-light .btn-whatsapp--hero {
    max-width: none;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.92rem;
  }

  .theme-light .btn-whatsapp--hero .wa-icon {
    width: 18px;
    height: 18px;
  }

  .hero-cta-alt {
    display: block;
    text-align: center;
    font-size: 0.8125rem;
    line-height: 1.35;
  }

  /* Fundo do hero termina junto ao painel (sem “rabo” de foto) */
  .theme-light .hero--light .hero-skyline::after {
    background:
      linear-gradient(
        100deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(255, 255, 255, 0.82) 32%,
        rgba(238, 241, 246, 0.55) 48%,
        rgba(13, 58, 110, 0.12) 62%,
        rgba(255, 255, 255, 0.28) 78%,
        rgba(238, 241, 246, 0.65) 100%
      ),
      linear-gradient(180deg, transparent 0%, rgba(238, 241, 246, 0.55) 72%, var(--bg-page) 96%);
  }

  .theme-light .hero-features {
    margin-top: 0;
    padding-top: 0.5rem;
  }
}

@media (max-width: 399px) {
  .wa-topic {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    padding: 0.7rem 0.85rem;
    text-align: left;
  }

  .wa-topic__icon {
    flex-shrink: 0;
  }

  .wa-topic__label {
    font-size: 0.92rem;
    flex: 1;
  }

  .wa-topic__badge {
    margin-left: auto;
    flex-shrink: 0;
  }
}

/* Painel WhatsApp — tablets estreitos */
@media (min-width: 400px) and (max-width: 520px) {
  .wa-topic__label {
    font-size: 0.85rem;
  }

  .wa-topic__badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.3rem;
  }
}

.wa-panel__cta {
  text-align: center;
}

.wa-panel__cta span {
  line-height: 1.25;
}

@media (max-width: 767px) {
  .wa-panel__cta {
    margin-inline: 0.85rem;
    font-size: 1.05rem;
  }

  .wa-panel__top,
  .wa-panel__benefits {
    padding-inline: 1rem;
  }
}

/* —— Seções —— */
@media (max-width: 767px) {
  .section {
    padding: 2.75rem 0;
  }

  .section-header {
    margin-bottom: 2rem;
  }

  .section-title {
    font-size: clamp(1.45rem, 5.5vw, 2rem);
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .section--importancia-bg {
    padding: 3rem 0;
  }

  .section--cta-final {
    padding: 3rem 0;
  }

  .importancia-title {
    font-size: clamp(1.4rem, 5.5vw, 2rem);
  }

  .pros-card,
  .cons-card {
    padding: 1.35rem;
    transform: none;
  }
}

/* Faixas CTA WhatsApp */
@media (max-width: 767px) {
  .wa-cta-bar {
    margin-top: 2rem;
    padding: 1.25rem 1rem;
  }

  .wa-cta-bar__btn {
    width: 100%;
    white-space: normal;
    text-align: center;
    padding: 0.9rem 1.15rem;
  }

  .wa-cta-bar__title {
    font-size: 1.05rem;
  }
}

/* CTA final */
@media (max-width: 1023px) {
  .cta-final-grid {
    gap: 2rem;
  }

  .cta-final-copy {
    text-align: left;
  }

  .cta-final-copy .section-title {
    text-align: left;
  }

  .cta-final-text {
    text-align: left;
    margin-inline: 0;
  }

  .cta-final-list {
    max-width: none;
    margin-inline: 0;
    text-align: left;
  }
}

/* Cards e grids */
@media (max-width: 639px) {
  .quem-somos-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .quem-somos-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .mission-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .process-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .benefit-card {
    padding: 1rem;
  }
}

@media (max-width: 479px) {
  .service-card {
    padding: 1.35rem;
  }

  .stats-panel {
    padding: 1.35rem 1rem;
  }

  .stat-number {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }
}

/* Acordeão — alvo de toque */
.accordion-trigger {
  padding: 1rem 0.35rem;
  min-height: 3rem;
  cursor: pointer;
}

/* Logo marquee */
@media (max-width: 767px) {
  .logo-marquee-item {
    min-width: 130px;
    height: 64px;
  }

  .logo-marquee-track {
    gap: 1.5rem;
  }
}

/* Rodapé */
@media (max-width: 767px) {
  .footer-grid {
    gap: 2rem;
    text-align: center;
  }

  .footer-links,
  .footer-contact {
    padding: 0;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.25rem;
  }
}

/* Obrigado */
@media (max-width: 479px) {
  .thankyou-box {
    padding: 2rem 1.25rem;
  }

  .thankyou-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .thankyou-actions .btn {
    width: 100%;
  }
}

/* Evitar overflow horizontal */
.wa-panel,
.hero-copy,
.service-card,
.cta-final-grid {
  min-width: 0;
}

.page-main {
  overflow-x: clip;
}
