/* AUTIS — Mobile Experience */

/* ─── Bottom Navigation ─────────────────────────────────────── */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1001;
  background: rgba(7,7,28,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255,255,255,0.07);
  height: 64px;
  align-items: stretch;
  padding: 0 0.2rem;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mob-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--text-muted);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--t);
  position: relative;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-item i { font-size: 1.1rem; transition: var(--t); }
.mob-nav-item.active,
.mob-nav-item:active { color: var(--violet-light); }
.mob-nav-item::before {
  content: '';
  position: absolute;
  top: 0; left: 22%; right: 22%;
  height: 2px;
  border-radius: 0 0 3px 3px;
  background: var(--grad-brand);
  transform: scaleX(0);
  transition: var(--t);
}
.mob-nav-item.active::before { transform: scaleX(1); }

/* WhatsApp center button */
.mob-nav-wpp {
  flex: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mob-nav-wpp a {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  color: white;
  text-decoration: none;
  transform: translateY(-13px);
  box-shadow: 0 -4px 24px rgba(37,211,102,0.5), 0 6px 20px rgba(37,211,102,0.3);
  transition: var(--t);
  -webkit-tap-highlight-color: transparent;
}
.mob-nav-wpp a:active { transform: translateY(-9px) scale(0.95); }

/* ─── Mobile-only status bar (index.html) ─── */
.mob-status-bar {
  display: none;
  align-items: center;
  gap: 7px;
  background: rgba(16,185,129,0.07);
  border: 1px solid rgba(16,185,129,0.13);
  border-radius: 40px;
  padding: 6px 14px;
  font-size: 0.71rem;
  font-weight: 600;
  color: var(--green-light);
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}
.mob-status-dot {
  width: 5px; height: 5px;
  background: var(--green-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

/* ─── Shown only on mobile ─── */
.mob-only { display: none; }

/* ══════════════════════════════════════════════════════════════
   MOBILE OVERRIDES  ( ≤ 768px )
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  .mob-nav   { display: flex; }
  .mob-only  { display: flex; }

  /* Prevent horizontal overflow */
  html, body  { overflow-x: hidden; max-width: 100%; }

  /* Room for bottom nav */
  body        { padding-bottom: 76px; }
  footer      { padding-bottom: 80px; }

  /* WhatsApp float — replaced by bottom nav */
  .whatsapp-float { display: none !important; }

  /* Scroll-to-top above bottom nav */
  .scroll-top { bottom: 80px; left: 16px; right: auto; }

  /* ─── Navbar — sem hamburguer (bottom nav substitui) ─── */
  .nav-toggle { display: none !important; }
  .nav-cta.desktop { display: none; }

  /* ─── Navbar — Bottom Sheet ─── */
  .nav-menu.open {
    top: auto !important;
    bottom: 64px;
    border-bottom: none !important;
    border-top: 1px solid var(--border);
    border-radius: 20px 20px 0 0;
    padding: 0 1.5rem 1.5rem !important;
    gap: 0 !important;
    animation: mob-sheet-up 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-menu.open::before {
    content: '';
    display: block;
    width: 38px; height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 0.8rem auto 1rem;
  }
  @keyframes mob-sheet-up {
    from { transform: translateY(40px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }
  .nav-menu.open li { border-bottom: 1px solid var(--border); }
  .nav-menu.open li:last-child { border: none; }
  .nav-menu.open a {
    display: flex !important;
    align-items: center !important;
    gap: 0.85rem !important;
    padding: 0.9rem 0 !important;
    font-size: 0.98rem !important;
  }

  /* ─── Hero (index.html) ─── */
  .hero {
    min-height: 100svh !important;
    padding-top: 78px !important;
    padding-bottom: 2.5rem !important;
    align-items: flex-start;
  }
  .hero-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }
  .hero-gfx { display: none !important; }
  .hero-content { max-width: 100%; }

  .hero h1 {
    font-size: clamp(2.6rem, 11.5vw, 3.4rem) !important;
    letter-spacing: -0.04em;
    line-height: 1.04;
  }
  .hero-sub { font-size: 0.98rem; max-width: 100%; }

  .hero-ctas { flex-direction: column; gap: 0.7rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; padding: 15px; }

  /* Stats as horizontal chips */
  .hero-stats {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: none !important;
    padding-top: 0 !important;
    margin-top: 1.4rem;
    gap: 0.7rem !important;
    padding-bottom: 2px;
  }
  .hero-stats::-webkit-scrollbar { display: none; }
  .hero-stat {
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    text-align: center;
  }
  .hero-stat .num  { font-size: 1.6rem !important; }
  .hero-stat .lbl  { font-size: 0.68rem; line-height: 1.3; }

  /* ─── Services — Horizontal Snap Scroll ─── */
  .services-grid {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card {
    flex-shrink: 0 !important;
    width: calc(82vw - 3rem);
    scroll-snap-align: start;
  }

  /* ─── Testimonials — Horizontal Snap Scroll ─── */
  #depoimentos .grid-3 {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1rem;
    padding-bottom: 1rem;
  }
  #depoimentos .grid-3::-webkit-scrollbar { display: none; }
  #depoimentos .testimonial-card {
    flex-shrink: 0;
    width: calc(86vw - 3rem);
    height: auto;
    scroll-snap-align: start;
  }

  /* ─── Section spacing ─── */
  section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }

  /* ─── Page Hero (sobre/solucoes/contato) ─── */
  .page-hero {
    padding-top: 108px;
    padding-bottom: 3rem;
  }
  .page-hero h1 { font-size: clamp(2rem, 9.5vw, 3rem) !important; }

  /* ─── Solucoes: Service Sections ─── */
  .service-section { padding: 3rem 0; }
  .service-section .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .mob-order-first { order: -1 !important; }
  .service-graphic {
    min-height: 160px !important;
    padding: 2rem 1.5rem;
  }
  .service-graphic .big-icon { font-size: 3rem; }

  /* ─── Process Steps — Horizontal Snap Scroll ─── */
  .process-steps {
    display: flex !important;
    flex-direction: row !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 1rem;
    padding-bottom: 1rem;
    align-items: flex-start;
  }
  .process-steps::-webkit-scrollbar { display: none; }
  .process-steps::before { display: none !important; }
  .process-step {
    flex-shrink: 0;
    width: 148px;
    scroll-snap-align: start;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.2rem 1rem;
    text-align: center;
  }

  /* ─── Sobre: Stats row ─── */
  .mob-stats-row {
    display: flex !important;
    grid-template-columns: unset !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.5rem;
    padding-bottom: 4px;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
  }
  .mob-stats-row::-webkit-scrollbar { display: none; }
  .mob-stats-row > div { flex-shrink: 0; min-width: 110px; }

  .values-grid  { grid-template-columns: 1fr 1fr !important; gap: 0.8rem !important; }
  .clients-grid { grid-template-columns: 1fr 1fr !important; gap: 0.8rem !important; }

  /* ─── Contact ─── */
  .form-row { grid-template-columns: 1fr !important; }
  .mob-grid-stack { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* ─── Footer ─── */
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  /* ─── Marquee ─── */
  .marquee-item { font-size: 0.86rem; }

  /* ─── Buttons ─── */
  .btn-lg { font-size: 0.94rem; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
}

/* ─── Hide mobile elements on desktop ─── */
@media (min-width: 769px) {
  .mob-nav,
  .mob-only,
  .mob-status-bar { display: none !important; }
}
