/* =====================================================================
   Zengvotech — mobile & tablet enhancements
   ---------------------------------------------------------------------
   Loaded AFTER each page's inline <style>.
   Every visual rule below sits inside a max-width media query, so the
   desktop layout (901px and up) is completely unchanged.
   ===================================================================== */

/* Hamburger + mobile menu are hidden on desktop */
.menu-toggle{display:none}
.mobile-menu{display:none}

/* ---------------------------------------------------------------------
   TABLET + MOBILE  (≤ 900px)
   --------------------------------------------------------------------- */
@media(max-width:900px){

  html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
  body{overflow-x:hidden}
  a,button{-webkit-tap-highlight-color:rgba(0,25,117,.10)}

  /* ---------- Header + working hamburger ---------- */
  .header-inner{gap:16px}
  .logo{flex:0 1 auto;min-width:0}
  .logo img{max-width:100%;height:auto}

  .menu-toggle{
    display:inline-flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;
    flex:none;width:44px;height:44px;margin-right:-8px;padding:0;
    border:0;border-radius:8px;background:transparent;cursor:pointer;
  }
  .menu-toggle:focus-visible{outline:2px solid #3157b9;outline-offset:2px}
  .menu-toggle span{
    display:block;width:24px;height:2px;border-radius:2px;background:#001975;
    transition:transform .25s ease,opacity .2s ease;
  }
  .menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
  .menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

  .mobile-menu{
    display:block;position:absolute;left:0;right:0;top:100%;z-index:80;
    background:#fff;border-top:1px solid #efefef;
    box-shadow:0 22px 34px rgba(16,24,64,.16);
    max-height:calc(100vh - 78px);overflow-y:auto;overscroll-behavior:contain;
    opacity:0;visibility:hidden;transform:translateY(-8px);
    transition:opacity .22s ease,transform .22s ease,visibility 0s linear .22s;
  }
  .mobile-menu.open{
    opacity:1;visibility:visible;transform:none;
    transition:opacity .22s ease,transform .22s ease;
  }
  .mobile-menu nav{display:flex;flex-direction:column;padding-top:6px}
  .mobile-menu nav a{
    display:flex;align-items:center;justify-content:space-between;
    padding:16px 2px;font-size:15.5px;font-weight:600;color:#232323;
    border-bottom:1px solid #f0f1f5;
  }
  .mobile-menu nav a:after{content:"›";font-size:22px;line-height:1;color:#b3b8cc;font-weight:400}
  .mobile-menu nav a:active{color:#001975}
  .mobile-menu nav a.active,.mobile-menu nav a.current{color:#001975;font-weight:800}
  .mobile-menu nav a.active:after,.mobile-menu nav a.current:after{color:#ffc327}
  .mobile-menu-actions{display:grid;gap:10px;padding:18px 0 22px}
  .mm-btn{
    display:flex;align-items:center;justify-content:center;min-height:48px;padding:0 18px;
    border-radius:4px;font-size:14px;font-weight:800;text-align:center;
  }
  .mm-btn-yellow{background:#ffc327;color:#111}
  .mm-btn-navy{background:#001975;color:#fff}

  /* ---------- Inner-page hero banners (about / contact / taxi) ---------- */
  .about-hero,.contact-hero,.page-hero{
    min-height:0;
    background:
      linear-gradient(90deg,rgba(0,25,117,.94) 0%,rgba(0,25,117,.86) 100%),
      url("hero-software-bg.webp") center/cover no-repeat;
  }
  .about-hero-inner,.contact-hero-inner,.page-hero-inner{padding:64px 0 86px}
  .about-hero .hero-kicker,.contact-hero .hero-kicker,.page-hero-kicker{
    margin:0;font-size:clamp(20px,5.6vw,32px);line-height:1.2;letter-spacing:1.5px;
  }

  /* ---------- Footer (all pages) ---------- */
  .footer{padding:44px 0 20px}
  .footer-grid{gap:30px 24px}
  .footer-logo img{width:165px}
  .footer-links{gap:10px}
  .footer-links a{display:inline-block;padding:1px 0}
  .footer-bottom{margin-top:30px}

  /* ---------- Shared CTA buttons ---------- */
  .cta-btn{min-height:48px}

  /* ---------- Forms: 16px stops iOS zoom-on-focus, taller touch targets ---------- */
  .field input,.field select,.field textarea{font-size:16px}
  .field input,.field select{height:48px}

  /* =================== HOME =================== */
  .page-home .hero{
    min-height:0;
    background:
      linear-gradient(180deg,rgba(0,25,117,.90) 0%,rgba(0,25,117,.84) 100%),
      url("hero-software-bg.webp") center/cover no-repeat;
  }
  .page-home .hero-inner{padding:64px 0 118px}
  .page-home .hero-copy{max-width:none}
  .page-home .hero-kicker{font-size:11px;letter-spacing:2.4px;line-height:1.5;margin-bottom:14px}
  .page-home .hero h1{font-size:clamp(32px,8.6vw,46px);line-height:1.08;letter-spacing:-.5px}
  .page-home .hero p{font-size:15px;max-width:none}
  .page-home .hero .growth{margin-top:20px;max-width:none}

  .page-home .section-kicker{font-size:14px;letter-spacing:2.4px;padding-top:16px}
  .page-home .about{padding-bottom:36px}
  .page-home .about-grid{margin-top:0;gap:34px}
  .page-home .about-copy{padding:16px 0 0;max-width:none}
  .page-home .about h2{font-size:27px;line-height:1.2}
  .page-home .form-card{padding:26px 20px 28px;margin-top:0}
  .page-home .form-card h3{font-size:24px;margin-bottom:20px}
  .page-home .submit{width:100%;height:48px;font-size:14px}

  .page-home .contact-cta{padding:46px 0}
  .page-home .contact-cta-inner{gap:24px}
  .page-home .contact-cta-actions{align-items:stretch}

  .page-home .solutions{margin-top:20px}
  .page-home .solutions-head{margin-bottom:26px}
  .page-home .solution-row,.page-home .solution-row.reverse{margin-bottom:38px}
  .page-home .solution-image img{height:auto;aspect-ratio:16/10;object-fit:cover}
  .page-home .solution-copy{padding:22px 0 0}
  .page-home .solution-no{margin-bottom:12px}
  .page-home .solution-copy h3{font-size:26px}
  .page-home .solution-copy h4{font-size:18px}

  /* fixed 424px card height was clipping content on mobile */
  .page-home .software-needs{padding:28px 0}
  .page-home .software-needs-card{height:auto}
  .page-home .software-needs-card img{height:220px;max-height:none}
  .page-home .software-needs-copy{margin:0;padding:26px 22px 28px}
  .page-home .software-needs-copy h2{font-size:24px}

  .page-home .impact{padding:44px 0 0}
  .page-home .impact-grid{gap:38px}
  .page-home .impact h2{font-size:27px}
  .page-home .impact-visual:before{left:-10px;bottom:-14px}
  .page-home .impact-tagline{font-size:18px}

  .page-home .why{margin-top:56px;padding:44px 0}
  .page-home .why-head{margin-bottom:26px}
  .page-home .why-card{min-height:0;padding:22px 20px}

  /* =================== ABOUT =================== */
  .page-about .about-intro{padding:48px 0 56px}
  .page-about .intro-grid{gap:40px}
  .page-about .intro-copy h2{font-size:27px}
  .page-about .intro-visual:before{right:-10px;bottom:-14px}
  .page-about .intro-visual img{min-height:0;aspect-ratio:4/3}

  .page-about .what-we-do{padding:48px 0 56px}
  .page-about .section-head{margin-bottom:26px}
  .page-about .section-head h2{font-size:27px}
  .page-about .what-grid{gap:16px}
  .page-about .what-card{min-height:0;padding:24px 20px 26px}

  .page-about .approach{padding:52px 0}
  .page-about .approach-grid{gap:30px}
  .page-about .approach-panel{min-height:0;padding:30px 24px}
  .page-about .approach-panel h2{font-size:26px}
  .page-about .approach-flow{margin-top:20px}
  .page-about .approach-flow span{font-size:12px;padding:8px 12px}

  .page-about .mv-section{padding-bottom:52px}
  .page-about .mv-grid{gap:18px}
  .page-about .mv-card{min-height:0;padding:28px 22px}
  .page-about .mv-card h2{font-size:23px}

  .page-about .trust{padding:52px 0 56px}
  .page-about .trust-head{margin-bottom:28px}
  .page-about .trust-head h2{font-size:27px}
  .page-about .trust-grid{gap:16px}
  .page-about .trust-card{min-height:0;padding:22px 20px}

  .page-about .about-cta{padding:44px 0}
  .page-about .about-cta-box{padding:28px 22px;gap:24px}
  .page-about .about-cta h2{font-size:24px}

  /* =================== CONTACT =================== */
  .page-contact .contact-main{padding:48px 0 56px}
  .page-contact .contact-grid{gap:38px}
  .page-contact .contact-copy h2{font-size:27px}
  .page-contact .contact-copy>p{margin-bottom:24px}
  .page-contact .contact-card{grid-template-columns:46px 1fr;gap:14px;padding:14px 16px}
  .page-contact .contact-icon{width:46px;height:46px}
  .page-contact .contact-card a,.page-contact .contact-card p{overflow-wrap:anywhere}
  .page-contact .contact-form-card{padding:26px 18px 28px}
  .page-contact .contact-form-card h2{font-size:25px}
  .page-contact .field textarea{min-height:120px}
  .page-contact .submit{width:100%;height:50px}
  .page-contact .contact-cta{padding:44px 0}
  .page-contact .contact-cta-inner{gap:26px}
  .page-contact .contact-cta h2{font-size:24px}

  /* =================== TAXI SOFTWARE =================== */
  .page-taxi section[id]{scroll-margin-top:56px}
  .page-taxi .subnav a{padding:14px 12px;font-size:12.5px}

  .page-taxi .hero{padding:36px 0 48px}
  .page-taxi .hero-grid{gap:36px}
  .page-taxi .hero-kicker{font-size:10px;letter-spacing:1px;padding:6px 12px;margin-bottom:16px}
  .page-taxi .hero h1{font-size:clamp(27px,7.6vw,36px)}
  .page-taxi .hero p.lede{font-size:15px;max-width:none;margin-bottom:22px}
  .page-taxi .hero-trust{gap:8px 18px;margin-top:22px}
  .page-taxi .mock{padding:14px}
  .page-taxi .mock-row{gap:10px}
  .page-taxi .mock-tag{flex:none;white-space:nowrap}

  .page-taxi .stats{padding:28px 0}
  .page-taxi .stats-grid{grid-template-columns:1fr 1fr;gap:22px 14px}
  .page-taxi .stat b{font-size:26px}
  .page-taxi .stat span{display:block;font-size:11.5px;line-height:1.35}

  .page-taxi .overview{padding:44px 0 8px}
  .page-taxi .overview-grid{gap:34px}
  .page-taxi .overview h2{font-size:26px;line-height:1.2}
  .page-taxi .overview-copy .btn{width:100%}
  .page-taxi .lifecycle{padding:20px 18px}

  .page-taxi .explorer,.page-taxi .problems,.page-taxi .whybuy,
  .page-taxi .flow-section,.page-taxi .impact,.page-taxi .who{padding:52px 0}
  .page-taxi .section-head{margin-bottom:28px}
  .page-taxi .section-head h2{font-size:26px}
  .page-taxi .section-head p{font-size:14px}
  .page-taxi .whybuy-card,.page-taxi .bento .card{padding:20px 18px}

  .page-taxi .who-tab{padding:10px 14px;font-size:12px}
  .page-taxi .who-panel{flex-direction:column;gap:14px;padding:22px 20px}
  .page-taxi .journey{padding:38px 0 0}
  .page-taxi .journey-strip{font-size:12.5px;gap:6px}

  .page-taxi .demo{padding:44px 0 56px}
  .page-taxi .demo-card{border-radius:14px}
  .page-taxi .demo-copy{padding:32px 22px 28px}
  .page-taxi .demo-copy h2{font-size:24px}
  .page-taxi .demo-copy p{max-width:none}
  .page-taxi .demo-form{padding:26px 20px 28px}
}

/* ---------------------------------------------------------------------
   TAXI: module explorer becomes a swipeable tab strip (matches the 820px
   breakpoint the page already uses to stack the explorer)
   --------------------------------------------------------------------- */
@media(max-width:820px){
  .page-taxi .mod-list{
    display:flex;max-height:none;overflow-x:auto;overflow-y:hidden;
    border-right:0;border-bottom:1px solid var(--line);
    scrollbar-width:none;-webkit-overflow-scrolling:touch;
  }
  .page-taxi .mod-list::-webkit-scrollbar{display:none}
  .page-taxi .mod-btn{
    flex:none;width:auto;white-space:nowrap;padding:14px 16px;
    border-bottom:3px solid transparent;border-right:1px solid var(--line);
  }
  .page-taxi .mod-btn.active{border-left:0;border-bottom-color:var(--yellow)}
  .page-taxi .mod-panel{padding:22px 18px}
  .page-taxi .mod-panel .device{padding:16px}
  .page-taxi .mod-panel h3{font-size:20px}
  .page-taxi .mod-panel p{max-width:none}

  /* trip-lifecycle timeline: proper vertical stepper with a connecting line */
  .page-taxi .timeline{display:grid;gap:0;padding-top:0}
  .page-taxi .timeline:before{display:block;top:31px;bottom:31px;left:22px;right:auto;width:2px;height:auto}
  .page-taxi .tl-step{
    display:grid;grid-template-columns:46px 1fr;column-gap:16px;align-items:center;
    padding:8px 0;text-align:left;
  }
  .page-taxi .tl-dot{grid-row:1/3;margin:0;background:#14338f}
  .page-taxi .tl-step b{align-self:end;margin:0;font-size:15px}
  .page-taxi .tl-step small{display:block;align-self:start;max-width:none;margin:2px 0 0;font-size:12.5px}
}

/* ---------------------------------------------------------------------
   TABLET ONLY (621–900px): avoid a lonely orphan card in 2-column grids
   --------------------------------------------------------------------- */
@media(min-width:621px) and (max-width:900px){
  .what-grid>:last-child:nth-child(odd),
  .trust-grid>:last-child:nth-child(odd),
  .why-cards>:last-child:nth-child(odd),
  .whybuy-grid>:last-child:nth-child(odd),
  .bento>:last-child:nth-child(odd){grid-column:1/-1}
}

/* ---------------------------------------------------------------------
   PHONES (≤ 620px)
   --------------------------------------------------------------------- */
@media(max-width:620px){
  .footer-bottom{gap:6px;align-items:flex-start}

  /* stacked, full-width buttons in heroes */
  .page-home .hero-buttons{flex-direction:column;gap:10px}
  .page-home .hero-buttons .btn{width:100%;padding:15px 20px}
  .page-taxi .hero-buttons{flex-direction:column;gap:10px}
  .page-taxi .hero-buttons .btn{width:100%}
  .page-taxi .hero-trust{flex-direction:column}

  .page-home .contact-cta h2{font-size:24px}

  /* iPhone home-indicator safe area + room so the sticky call bar never hides the footer */
  .page-taxi .sticky-call{padding-bottom:calc(13px + env(safe-area-inset-bottom,0px))}
  .page-taxi .footer{padding-bottom:78px}
}

/* Very small phones */
@media(max-width:380px){
  .logo img{width:150px}
  .mobile-menu nav a{font-size:15px}
}

/* Respect users who prefer less motion */
@media(prefers-reduced-motion:reduce){
  .mock{animation:none!important}
  html{scroll-behavior:auto}
}
