/* ==========================================================================
   mobile.css — responsive overrides for phones/tablets.
   Loaded LAST in BaseLayout (after make-page.css AND each page's inline
   <style>), so equal-specificity rules here win. Put mobile behavior here
   instead of hunting duplicated chrome rules across pages.
   ========================================================================== */

/* The appointments page IS the booking form, so the header's Book/Contact CTA
   is redundant there — hide it on every viewport. */
[data-screen-label="Book Appointment"] .hdr-r{display:none;}

/* Drawer CTA: the generic `.drawer a{color:navy}` rule was darkening the red
   Book/Contact button's text — keep it white. */
.drawer .btn-primary{color:#fff;}

/* ---------- Tablet / small-laptop (≤860) ---------- */
@media (max-width:860px){
  /* Homepage hero: collapse to one column and let grid tracks shrink.
     Without min-width:0 the grid items keep their content's min-width and
     overflow the viewport (headline + lead were getting clipped). */
  .hero-fb-grid{grid-template-columns:1fr;min-width:0;}
  .hero-fb-copy,.hero-fb-mosaic{min-width:0;max-width:100%;}
  .hero-fb-mosaic{justify-self:stretch;}
}

/* Appointments hero collapses to one column at ≤920 (page inline style);
   match that breakpoint so the form sits ABOVE the copy the moment it stacks. */
@media (max-width:920px){
  .hero.bk .container{display:flex;flex-direction:column;}
  .hero.bk .bk-head{order:0;}      /* eyebrow + headline on top */
  .hero.bk .hero-vis{order:1;}     /* then the form */
  .hero.bk .bk-aside{order:2;margin-top:28px;}  /* lead + bullets + phone below */
}

/* ---------- Phone (≤600) ---------- */
@media (max-width:600px){

  /* Tighter page gutters so content isn't pinched by 28px rails. */
  .container{padding-left:18px;padding-right:18px;}

  /* ---- Top utility bar ----
     The address is long and collides with the rating on narrow screens.
     Drop it (it lives in the header drawer + footer) and center the rating
     as compact social proof. */
  .topbar .container{justify-content:center;height:34px;gap:0;}
  .topbar .tl{display:none;}
  .topbar .tr{font-size:12px;}

  /* ---- Header ---- two rows: logo + menu on top (logo gets full room, no
     squish), full-width Book/Contact button below as a big tap target. */
  .hdr .container{flex-wrap:wrap;height:auto;gap:12px;padding-top:11px;padding-bottom:11px;
    align-items:center;justify-content:space-between;}
  .brand{order:0;flex:0 0 auto;}
  .brand img{height:34px;}
  .burger{order:1;width:44px;height:44px;}
  .hdr-r{order:2;width:100%;margin-left:0;gap:0;}
  .hdr-r .hdr-phone{display:none;}
  .hdr-r .btn{width:100%;justify-content:center;padding:14px 18px;font-size:13px;letter-spacing:.06em;}
  .hdr-r .btn svg{width:17px;height:17px;}

  /* ---- Mobile drawer ---- smaller links + tighter spacing so every nav
     item + the CTA fit on one screen without scrolling. */
  .drawer{padding:20px;}
  .drawer .dh{margin-bottom:16px;}
  .drawer a{font-size:18px;padding:11px 0;}
  .drawer .btn{margin-top:14px;}

  /* ---- Car-picker bar ---- keep the label on its own line, then let the
     make chips scroll horizontally in a single tidy row (no 3-row stack). */
  .carbar .container{gap:10px;padding:10px 18px;}
  .carbar .cb-label{width:100%;}
  /* Bleed the scroll row to the screen edges but keep an 18px gutter at the
     start/end so the first and last chip aren't jammed against the edge. */
  .carbar .cb-chips{flex-wrap:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;
    scrollbar-width:none;width:auto;margin:0 -18px;padding:2px 18px;}
  .carbar .cb-chips::-webkit-scrollbar{display:none;}
  .carbar .cb-chip{flex:none;}

  /* ---- Homepage hero ---- scale type down and reclaim vertical space. */
  .hero-fb-grid{padding-left:18px;padding-right:18px;
    padding-top:78px;padding-bottom:52px;gap:26px;}
  .hero-fb-h1{font-size:clamp(30px,8.4vw,40px);margin:14px 0 16px;}
  .hero-fb-lead{font-size:15.5px;max-width:100%;margin-bottom:22px;}
  .hero-fb-pills{gap:8px;margin-top:20px;}
  .hfp{font-size:12.5px;padding:8px 13px 8px 11px;}

  /* ---- Appointments hero/form ---- sit the form near the top and pad the
     card body a little tighter. */
  /* Keep the eyebrow + headline compact so the form stays in view below them. */
  .hero.bk{padding-top:16px;}
  .hero.bk .bk-head{margin-bottom:6px;}
  .hero.bk .display{font-size:clamp(24px,6.6vw,32px);margin:8px 0 0;}
  .bkform .fb{padding:22px 20px;}
  .bkform .fh{padding:18px 20px;}
  .bkform .note{padding:0 20px 20px;}
  .intent{gap:6px;}
  .intent label{padding:11px 5px;}
  .intent label span{font-size:11.5px;}
  .intent label small{display:none;}
}
