/* ==========================================================================
   RESPONSIVIDADE & COMPORTAMENTOS MOBILE
   ========================================================================== */

/* --------------------------------------------------------------------------
   AJUSTES GERAIS MOBILE (< 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  /* --------------------------------------------------------------------------
     1. PADRONIZAÇÃO DE MARGENS E PADDINGS LATERAIS (20px)
     -------------------------------------------------------------------------- */
  :root {
    --container-padding: 20px;
  }

  .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .header,
  .hero,
  .section,
  .physical-location,
  .regions-section,
  .final-cta,
  .footer {
    padding-left: 0;
    padding-right: 0;
  }

  /* --------------------------------------------------------------------------
     2. ALINHAMENTO VERTICAL UNIFICADO (TÍTULOS, TEXTOS E BOTÕES)
     -------------------------------------------------------------------------- */
  .section-header {
    text-align: left;
    margin-inline: 0;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .section-title {
    text-align: left;
    font-size: 1.75rem;
  }

  .section-subtitle {
    text-align: left;
  }

  /* Header não-sticky no mobile integrado ao hero como faixa compacta */
  .header {
    position: relative;
    top: auto;
    background-color: var(--color-bg-hero);
    border-bottom: none;
    box-shadow: none;
  }

  .header__inner {
    padding-block: 0.75rem 0.5rem;
  }

  .header__brand-group {
    display: flex;
    align-items: center;
    gap: clamp(8px, 2.4vw, 12px);
    width: 100%;
  }

  .header__brand {
    flex-shrink: 0;
  }

  .header__logo {
    width: clamp(108px, 28vw, 118px);
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
  }

  .header__tagline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--font-family-primary);
    font-stretch: semi-condensed;
    font-size: clamp(1.25rem, 5.2vw, 1.95rem);
    font-weight: 900;
    color: var(--color-navy-deep);
    line-height: 1.02;
    letter-spacing: -0.04em;
    margin: 0;
    flex: 1;
  }

  .header__tagline-line {
    display: block;
    white-space: nowrap;
  }

  .header__tagline-accent {
    color: var(--color-electric-blue);
  }

  .header__brand-name {
    display: none;
  }

  /* Oculta ações do cabeçalho no mobile */
  .header__actions {
    display: none;
  }

  /* Hero Section */
  .hero {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-top: none;
  }

  .hero__content {
    text-align: left;
    padding: 0;
    margin: 0;
  }

  /* Remove título duplicado abaixo do header no mobile */
  .hero__title {
    display: none;
  }

  .hero__subtitle {
    font-size: clamp(1.125rem, 4.8vw, 1.25rem);
    line-height: 1.45;
    color: var(--color-graphite-700);
    font-weight: 500;
    text-align: left;
    margin-inline: 0;
    margin-top: 0;
    margin-bottom: 1.5rem;
    max-width: 100%;
    width: 100%;
  }

  .hero__cta-group {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }

  .hero__cta-group .btn {
    width: 100%;
  }

  /* Seção de Serviços */
  #servicos {
    padding-top: 1.75rem;
  }

  .section {
    padding-block: 2.75rem;
  }

  .service-card {
    padding: 1.35rem;
  }

  /* Seção Ponto Físico */
  .physical-location {
    padding-block: 2.75rem 3.5rem;
  }

  .physical-location__content {
    text-align: left;
    padding: 0;
    margin: 0;
  }

  .physical-location__actions {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
  }

  .physical-location__actions .btn {
    width: 100%;
  }

  .physical-location .photo-slot {
    margin-top: 1rem;
  }

  /* Seção de Vídeo */
  .video-card {
    max-width: 320px;
    margin-inline: auto;
  }

  /* Regiões Atendidas */
  .regions-cta-wrapper {
    width: 100%;
    margin-top: 1.25rem;
  }

  .regions-cta-wrapper .btn {
    width: 100%;
  }

  .regions-media-wrapper {
    margin-top: 1.5rem;
    width: 100%;
  }

  /* --------------------------------------------------------------------------
     ENQUADRAMENTO DE FOTOS REAIS NO MOBILE
     -------------------------------------------------------------------------- */
  .photo-slot--hero {
    aspect-ratio: 1 / 1;
    max-height: 360px;
  }

  .photo-slot--hero img {
    object-position: center 52%;
  }

  .photo-slot--automotive {
    aspect-ratio: 4 / 5;
  }

  .photo-slot--location {
    aspect-ratio: 4 / 3;
    margin-top: 1rem;
  }

  .photo-slot--location img {
    object-position: center 68%;
  }

  .photo-slot--external {
    aspect-ratio: 4 / 3;
    max-height: 380px;
  }

  .photo-slot--external img {
    object-position: center 88%;
  }

  /* --------------------------------------------------------------------------
     3. BLOCO FINAL CTA (BOTÕES OCUPANDO 100% DA LARGURA DISPONÍVEL)
     -------------------------------------------------------------------------- */
  .final-cta {
    padding-top: 3rem;
    padding-bottom: 4.5rem;
    text-align: left;
  }

  .final-cta__content {
    max-width: 100%;
    margin-inline: 0;
    padding: 0;
    text-align: left;
  }

  .final-cta__title {
    text-align: left;
    margin-inline: 0;
  }

  .final-cta__subtitle {
    text-align: left;
    max-width: 100%;
    margin-inline: 0;
  }

  .final-cta__actions {
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
    margin-bottom: 1.5rem;
  }

  .final-cta__actions .btn {
    width: 100%;
  }

  /* --------------------------------------------------------------------------
     4. RODAPÉ MOBILE (20px margem, 40px superior, 32px entre grupos, 32px inferior)
     -------------------------------------------------------------------------- */
  .footer {
    padding-top: 40px;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    text-align: left;
  }

  .footer .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .footer__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 32px;
  }

  .footer__list {
    padding-left: 0;
    margin-left: 0;
  }

  .footer__list-item {
    padding-left: 0;
    margin-left: 0;
  }

  .footer__bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-2);
  }

  .footer__credit {
    justify-content: center;
    text-align: center;
  }

  .footer__banner {
    margin-top: 28px;
    padding-block: 1.5rem 2rem;
    padding-inline: 0;
  }

  .footer__banner-logo {
    width: 86%;
    max-width: 360px;
    height: auto;
  }

  /* Espaço livre inferior garantido no mobile (100–120px livres abaixo do conteúdo) */
  body {
    padding-bottom: calc(115px + var(--safe-area-bottom));
  }

  /* Barra inferior continua fixa apenas no mobile e independente */
  .mobile-bottom-bar {
    display: block;
  }

  /* Tipografia dos blocos escuros no mobile: mínimo 14px, preferencialmente 15px */
  .final-cta__subtitle,
  .physical-location p,
  .footer__text,
  .footer__list-item {
    font-size: 15px;
    line-height: 1.6;
  }

  .footer__bottom p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* --------------------------------------------------------------------------
   AJUSTES PARA TELAS MUITO PEQUENAS (< 380px)
   -------------------------------------------------------------------------- */
@media (max-width: 380px) {
  .header__brand-group {
    gap: 8px;
  }

  .header__logo {
    width: 106px;
  }

  .header__tagline {
    font-size: 1.25rem;
    letter-spacing: -0.04em;
  }

  .hero__subtitle {
    font-size: 1.125rem;
  }

  .mobile-bottom-bar .btn {
    font-size: 0.8rem;
    padding-inline: 0.5rem;
  }

  .mobile-bottom-bar .btn svg {
    width: 16px;
    height: 16px;
  }
}

/* --------------------------------------------------------------------------
   AJUSTES PARA DESKTOP E TELAS GRANDES (>= 1024px)
   -------------------------------------------------------------------------- */
@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   PREFERÊNCIA POR MENOS ANIMAÇÕES (ACESSIBILIDADE)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
