/* =========================================================
   AUTOESCOLA MASTER
   AJUSTE MOBILE - SELO + LOCAL + FINAL DA PAGINA
   ========================================================= */

@media (max-width: 900px) {

  /* -----------------------------------------------------
     HERO MOBILE
     ----------------------------------------------------- */

  .hero {
    overflow-x: hidden !important;
  }

  .photo {
    position: relative !important;
    overflow: visible !important;
    padding-bottom: 118px !important; /* espaço para selo + localização */
  }

  .photo img {
    display: block !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Selo centralizado */
  .campaign-seal {
    position: absolute !important;
    left: 50% !important;
    bottom: 72px !important;
    transform: translateX(-50%) !important;
    width: 96px !important;
    max-width: 96px !important;
    min-width: 96px !important;
    z-index: 6 !important;
    display: block !important;
    margin: 0 !important;
  }

  .campaign-seal img,
  .campaign-seal svg {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Card de localização centralizado abaixo do selo */
  .location {
    position: absolute !important;
    left: 50% !important;
    bottom: 10px !important;
    transform: translateX(-50%) !important;

    width: min(88%, 330px) !important;
    max-width: 330px !important;
    min-height: 52px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 10px 14px !important;
    margin: 0 !important;

    text-align: left !important;
    line-height: 1.15 !important;
    font-size: 14px !important;

    border-radius: 16px !important;
    background: rgba(5, 12, 28, 0.88) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.28) !important;
    backdrop-filter: blur(6px) !important;
    z-index: 5 !important;
  }

  .location svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto !important;
  }

  .location br {
    display: block !important;
  }

  /* -----------------------------------------------------
     CTA inferior / área final antes do footer
     ----------------------------------------------------- */

  .bottom-button,
  .button.bottom-button {
    width: min(92%, 420px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .fineprint {
    max-width: 92% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    line-height: 1.25 !important;
    font-size: 13px !important;
  }

  /* -----------------------------------------------------
     FOOTER MOBILE
     ----------------------------------------------------- */

  .footer-inner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;

    padding: 22px 18px 26px !important;
    text-align: center !important;
  }

  .footer-inner > * {
    width: 100% !important;
    max-width: 320px !important;
    margin: 0 auto !important;
  }

  .footer-inner > * + * {
    border-top: 1px solid rgba(255,255,255,0.14) !important;
    padding-top: 16px !important;
  }

  .footer-about,
  .footer-date {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 8px !important;
  }

  .footer-about img,
  .footer-about .brand img {
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    margin: 0 auto !important;
    display: block !important;
  }

  .footer-about p,
  .footer-date p,
  .footer-inner p {
    margin: 0 auto !important;
    max-width: 270px !important;
    font-size: 13px !important;
    line-height: 1.28 !important;
  }

  .footer-date strong,
  .footer-about strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.18 !important;
  }
}

/* Mobile menor */
@media (max-width: 560px) {
  .campaign-seal {
    width: 88px !important;
    max-width: 88px !important;
    min-width: 88px !important;
    bottom: 70px !important;
  }

  .location {
    width: min(90%, 300px) !important;
    max-width: 300px !important;
    font-size: 13px !important;
    padding: 10px 12px !important;
  }

  .footer-inner {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}


/* BM_MOBILE_RECOVERY_START */

/*
 Ajuste exclusivo para celulares.
 Sem mudanças no notebook ou desktop.
*/

@media (max-width:700px) {

  .hero {
    display:flex !important;
    flex-direction:column !important;
    height:auto !important;
    min-height:0 !important;
    overflow:visible !important;
  }

  .hero > .hero-inner {
    order:1 !important;
  }

  /* Fotografia sem os 118px artificiais */

  .hero > .photo {
    order:2 !important;
    position:relative !important;
    display:block !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    padding:0 !important;
    margin:0 !important;
    overflow:hidden !important;
  }

  .hero > .photo img {
    display:block !important;
    width:100% !important;
    height:auto !important;
    max-height:none !important;
    padding:0 !important;
    margin:0 !important;
    object-fit:contain !important;
  }

  /* Selo centralizado sobre o fim da foto */

  
  .hero > .campaign-seal {
    order:3 !important;
    position:relative !important;
    align-self:flex-end !important;

    inset:auto !important;
    transform:none !important;
    translate:none !important;

    width:64px !important;
    min-width:0 !important;
    max-width:64px !important;
    height:auto !important;

    margin:-72px 14px 0 auto !important;
    padding:0 !important;

    z-index:8 !important;
    pointer-events:none !important;
  }


  .hero > .campaign-seal img {
    display:block !important;
    width:100% !important;
    height:auto !important;
  }

  /* Localização diretamente abaixo do selo */

  .hero > .location {
    order:4 !important;
    position:relative !important;
    align-self:center !important;

    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;

    transform:none !important;
    translate:none !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:8px !important;

    box-sizing:border-box !important;
    width:calc(100% - 32px) !important;
    max-width:320px !important;
    min-height:52px !important;

    margin:8px auto 14px !important;
    padding:10px 12px !important;

    color:#fff !important;
    font-size:13px !important;
    line-height:1.2 !important;
    text-align:left !important;

    background:#06192e !important;
    border:1px solid #ffffff80 !important;
    border-radius:14px !important;

    z-index:4 !important;
  }

  .hero > .location svg {
    flex:0 0 19px !important;
    width:19px !important;
    height:19px !important;
  }

  /* Cronômetro abaixo da localização */

  .hero .master-timer {
    position:relative !important;
    inset:auto !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;

    transform:none !important;
    translate:none !important;

    width:calc(100% - 32px) !important;
    max-width:390px !important;

    height:auto !important;
    margin:8px auto 18px !important;

    z-index:2 !important;
  }

  .hero > .master-timer {
    order:5 !important;
    align-self:center !important;
  }

}

/* BM_MOBILE_RECOVERY_END */

/* BM_SELO_CANTO_START */
@media (max-width:700px) {

  .hero .photo {
    position:relative !important;
  }

  .hero .photo > .campaign-seal {
    position:absolute !important;
    display:block !important;

    inset:auto !important;
    right:12px !important;
    bottom:10px !important;

    width:58px !important;
    min-width:0 !important;
    max-width:58px !important;
    height:auto !important;

    margin:0 !important;
    padding:0 !important;

    transform:none !important;
    translate:none !important;
    filter:drop-shadow(0 4px 7px #0008) !important;

    z-index:50 !important;
    pointer-events:none !important;
  }

  .hero .photo > .campaign-seal img {
    display:block !important;
    width:100% !important;
    height:auto !important;
  }
}
/* BM_SELO_CANTO_END */
