/* ============================================================
   MOBILE LAYOUT — Completely redesigned for mobile devices
   WeAreOnTheWeb — mobile.css
   Applied at ≤ 767px
   ============================================================ */

@media (max-width: 767px) {

  /* ── Base overrides ── */
  :root { --nav-h: 60px; }

  .section-pad    { padding: 60px 0; }
  .section-pad-sm { padding: 48px 0; }
  .section-header { margin-bottom: 36px; }
  .container      { padding: 0 18px; }

  /* Push page content above bottom nav */
  body { padding-bottom: var(--mob-bottom-nav-h); }

  /* ── Navbar — minimal on mobile ── */
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

  /* ── Mobile menu ── */
  .mobile-menu {
    padding-bottom: calc(var(--mob-bottom-nav-h) + 24px);
  }

  /* ── HERO — card overlay rising from bottom ── */
  .hero {
    height: 100svh;
    min-height: 640px;
    display: flex;
    flex-direction: column;
  }

  /* Slides still cover full area */
  .slide {
    background-position: center 30%;
  }

  /* Stronger overlay on mobile for readability */
  .slide-overlay {
    background: linear-gradient(
      to top,
      rgba(8,9,13,.96) 0%,
      rgba(8,9,13,.65) 45%,
      rgba(8,9,13,.25) 100%
    );
  }

  /* Content anchored to the bottom of the slide */
  /* FIX: use the CSS variable so buttons always clear the white bottom nav */
  .slide-content {
    align-items: flex-end;
    padding-top: 0;
    padding-bottom: calc(var(--mob-bottom-nav-h) + 72px + env(safe-area-inset-bottom, 0px));
  }

  /* Hero card on mobile */
  .hero-text {
    max-width: 100%;
    width: 100%;
    padding: 26px 20px 22px;
    background: rgba(8,9,13,.62);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 20px;
    margin-bottom: 0;
  }

  .hero-badge {
    font-size: 10.5px;
    padding: 5px 12px;
    margin-bottom: 12px;
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
  }

  .hero-headline {
    font-size: clamp(28px, 7.5vw, 40px);
    letter-spacing: -.025em;
    margin-bottom: 10px;
    line-height: 1.1;
  }

  .hero-sub {
    font-size: 13.5px;
    color: rgba(255,255,255,.65);
    max-width: 100%;
    margin-bottom: 18px;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: row;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 13px;
    padding: 12px 14px;
    white-space: nowrap;
  }

  /* Hide desktop nav arrows on mobile — swipe only */
  .slide-arrows { display: none; }
  .scroll-hint  { display: none; }

  /* Dots: sit between the card and the bottom nav */
  .slide-dots {
    bottom: calc(var(--mob-bottom-nav-h) + 20px + env(safe-area-inset-bottom, 0px));
    gap: 7px;
  }
  .dot { width: 6px; height: 6px; }
  .dot.active { width: 22px; }

  /* ── WHAT WE DO — 2×2 grid on mobile ── */
  .what-we-do {
    overflow: visible;
  }

  .features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    overflow-x: unset;
    scroll-snap-type: unset;
    padding: 0;
    margin: 0;
    scrollbar-width: unset;
  }
  .features-grid::-webkit-scrollbar { display: unset; }

  .feature-card {
    flex: unset;
    scroll-snap-align: unset;
    padding: 20px 16px;
    border-radius: 16px;
  }

  .feature-card:last-child {
    margin-right: 0;
  }

  /* Remove swipe hint — no longer needed */
  .what-we-do .section-header::after {
    display: none;
  }

  /* Feature card text scaling for 2-col grid */
  .feature-icon {
    width: 42px; height: 42px;
    font-size: 18px;
    margin-bottom: 12px;
  }

  .feature-card h3 {
    font-size: 13.5px;
    margin-bottom: 7px;
  }

  .feature-card p {
    font-size: 12.5px;
    line-height: 1.55;
  }

  /* ── STATS — 2×2 compact grid ── */
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }

  .stat-item {
    padding: 36px 16px;
    position: relative;
  }

  /* Custom borders for 2x2 grid */
  .stat-item::after { display: none !important; }

  .stat-item:nth-child(1) {
    border-right: 1px solid rgba(255,255,255,.1);
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .stat-item:nth-child(3) {
    border-right: 1px solid rgba(255,255,255,.1);
  }

  .stat-number {
    font-size: clamp(34px, 10vw, 52px);
  }

  /* Decorative accent bar above each stat */
  .stat-item::before {
    content: '';
    display: block;
    width: 28px; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 99px;
    margin: 0 auto 14px;
  }

  /* ── WHY CHOOSE US — 2-col compact grid ── */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .service-card {
    padding: 22px 16px;
    border-radius: var(--radius);
  }

  .service-icon-wrap {
    width: 52px; height: 52px;
    font-size: 20px;
    margin-bottom: 14px;
  }

  .service-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .service-card p {
    font-size: 12.5px;
  }

  /* ── PRICING — full-width stacked ── */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
    gap: 14px;
  }

  .price-card.featured { transform: none; }

  /* Featured card gets a colored top bar on mobile */
  .price-card.featured::before {
    content: '';
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
  }

  .price-card-head,
  .price-card-body { padding: 18px 20px; }

  .price-amount { font-size: 40px; }

  /* ── CTA ── */
  .cta-inner {
    flex-direction: column;
    text-align: center;
    padding: 52px 0;
    gap: 24px;
  }
  .cta-actions {
    justify-content: center;
    flex-direction: column;
    width: 100%;
  }
  .cta-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 15px 24px;
  }

  /* ── FOOTER ── */
  .footer-top { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .footer-brand { grid-column: auto; }
  .footer-desc  { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 20px 0;
  }

  /* ── BOTTOM NAVIGATION BAR ── */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    height: var(--mob-bottom-nav-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 24px rgba(0,0,0,.06);
  }

  .mbn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--gray-400);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    transition: color .2s;
    padding-top: 6px;
    text-decoration: none;
  }

  .mbn-item i {
    font-size: 19px;
    transition: transform .2s, color .2s;
  }

  .mbn-item:hover,
  .mbn-item.active {
    color: var(--accent);
  }

  .mbn-item.active i {
    transform: translateY(-2px);
  }

  /* Contact item — stands out */
  .mbn-item.mbn-cta {
    color: var(--accent);
  }
  .mbn-item.mbn-cta i {
    background: var(--accent);
    color: #fff;
    width: 40px; height: 40px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    margin-bottom: 0;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: all .2s;
  }
  .mbn-item.mbn-cta span {
    font-size: 9px;
    margin-top: 2px;
  }
  .mbn-item.mbn-cta:hover i {
    background: #4338ca;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(79,70,229,.4);
  }

  /* Hide bottom nav when mobile menu is open */
  body.menu-open .mobile-bottom-nav {
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: all .3s ease;
  }

  /* Reveal animation on mobile — less travel distance */
  [data-reveal] { transform: translateY(16px); }

} /* end @media (max-width: 767px) */

/* ── Extra small phones ── */
@media (max-width: 380px) {
  .hero-headline { font-size: 28px; }
  .service-card h4 { font-size: 13px; }
  .services-grid { grid-template-columns: 1fr; }
}
