/* ── Canadian Cars — Mobile Layer (Frost theme) ── */

.bottom-nav { display: none; }

@media (max-width: 768px) {

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .sticky-tg { display: none !important; }

  /* Hero — prevent overflow */
  .hero { overflow: hidden !important; }
  .hero-main { overflow: hidden; }
  .hero-right { min-height: 300px; }
  .hero-left { padding: 28px 20px !important; }

  /* Stats — 2 column grid */
  .hero-stats {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 14px 20px !important;
    padding-bottom: 20px !important;
  }

  /* FAQ — prevent text cutoff */
  .faq-list { max-width: 100%; overflow: hidden; }
  .faq-q { padding-left: 4px; padding-right: 4px; }
  .faq-q span:first-child { overflow-wrap: break-word; word-break: break-word; }

  /* Container safe padding */
  .container { padding: 0 16px !important; max-width: 100vw; }

  /* Sections overflow protection */
  .section, .numbers, .mid-cta, .trust-bar, .contact, .process { overflow: hidden; }

  /* Bottom Navigation Bar */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: 60px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid #E0E0E0;
    align-items: stretch;
    justify-content: space-around;
  }

  .bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-decoration: none;
    color: #999;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
    border-top: 2px solid transparent;
  }

  .bottom-nav a.active {
    color: #C41E3A;
    border-top-color: #C41E3A;
  }

  .bottom-nav a:active { color: #555; }
  .bottom-nav a.bn-cta { color: #C41E3A; }
  .bottom-nav a.bn-cta:active { color: #E8344F; }
  .bottom-nav a svg { display: block; flex-shrink: 0; }
}
