/* ============================================================
   Starter Motor & Alternator Specialists — responsive styles
   All breakpoint rules for the 10-page build. Loaded after
   style.css. Base component styles live in style.css.
   ============================================================ */
@media (max-width:560px){ .logo.long .brand{white-space:normal} }

@media (max-width:420px){ .logo.long .brand{font-size:.95rem} footer.site .logo.long .brand{font-size:1rem} }

@media (max-width:560px){ .demo-note{font-size:.62rem} }

@media (min-width:1025px){ .mobile-nav{display:none !important} }

@media (max-width:1024px){
  nav.main,.header-call{display:none}
  .header-phone{display:inline-flex}
  .burger{display:inline-flex;margin-left:0}
}

@media (max-width:1100px){ .why-grid{grid-template-columns:repeat(2,1fr)} }

@media (max-width:560px){ .why-grid{grid-template-columns:1fr} }

@media (max-width:1024px){
  body{padding-bottom:78px}
  .callbar{display:block;position:fixed;left:0;right:0;bottom:0;z-index:60;background:var(--blue);padding:10px 14px calc(10px + env(safe-area-inset-bottom));box-shadow:0 -6px 18px rgba(28,75,214,.35)}
  .callbar-btn{display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;color:var(--blue);text-decoration:none;font-weight:800;font-size:1.08rem;min-height:52px;border-radius:8px}
  .callbar-btn svg path{fill:var(--blue)}
  .callbar-btn:active{background:var(--cream)}
}

@media print{
  .callbar{display:none !important}
  body{padding-bottom:0}
}

@media (max-width:1100px){
  .steps{grid-template-columns:repeat(2,1fr)}
  .franchise-in{gap:26px}
  .gallery{grid-template-columns:repeat(3,1fr)}
  .header-in{gap:18px}
  nav.main{gap:18px}
  .header-call{padding-left:18px}
}

@media (max-width:900px){
  .hero{padding:34px 0 22px}
  .hero-grid{grid-template-columns:1fr;gap:26px}
  .pagehero{padding:36px 0 6px}
  .pagehero-grid{grid-template-columns:1fr;gap:26px}
  .story-grid{grid-template-columns:1fr;gap:24px}
  .bench-grid{grid-template-columns:1fr}
  .cards.c3,.cards.c2{grid-template-columns:1fr}
  .steps{grid-template-columns:repeat(2,1fr)}
  .repair-grid{grid-template-columns:1fr}
  .repair h2{white-space:normal}
  .repair-links .btn{margin-left:0;margin-top:16px}
  .repair-links .sep{margin:0 14px}
  .franchise-in{grid-template-columns:1fr;gap:18px}
  .franchise-mid{border-left:0;padding-left:0}
  .cta-in{grid-template-columns:1fr;gap:18px}
  .testi-grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:repeat(2,1fr)}
  .footer-in{gap:18px}
  footer.site nav{margin-left:0}
  .footer-call{border-left:0;padding-left:0}
}

@media (max-width:640px){
  .wrap{padding:0 16px}
  .hero-cta,.pagehero-cta{flex-direction:column;align-items:stretch}
  .hero-cta .btn,.pagehero-cta .btn{width:100%}
  .repair-links{flex-direction:column;align-items:flex-start}
  .repair-links .sep{display:none}
  .repair-links .btn{margin-left:0;margin-top:14px;align-self:stretch}
  .franchise .btn,.cta-band .btn{width:100%}
  .form-grid{grid-template-columns:1fr}
  .form-card{padding:24px 20px 26px}
  .footer-base{flex-direction:column;gap:4px}
  .footer-base .dot{display:none}
  .footer-base .fb-item{white-space:normal}
  .footer-base .fb-demo{flex:none;text-align:left;margin-top:0}
}

@media (max-width:640px){
  .hero-slider{aspect-ratio:auto;min-height:440px}
  .hero-slide-in{padding:26px 22px 56px;gap:16px}
  .hero-dots{left:22px;bottom:16px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}
  .js .reveal{opacity:1;transform:none}
}

@media print{
  body{background:#fff}
  header.site{position:static;box-shadow:none}
  .burger,.mobile-nav{display:none !important}
  .hero-art,.story-art,.bench-card,.pcard,.step{box-shadow:none}
  .rotator .rot-layer{display:none !important}
}
/* ============================================================
   10-PAGE BUILD — RESPONSIVE ADDITIONS
   Loaded after style.css. The wider desktop nav (7 items) in
   this build switches to the burger menu sooner so the long
   logo, nav and call link never wrap or squeeze.
   ============================================================ */
@media (max-width:1180px){
  nav.main,.header-call{display:none}
  .header-phone{display:inline-flex}
  .burger{display:inline-flex;margin-left:0}
  .mobile-nav.open{display:block}
}
@media (min-width:1181px){ .mobile-nav{display:none !important} }

@media (max-width:1024px){
  .story-layout{grid-template-columns:1fr;gap:28px}
  .story-side{position:static}
  .contact-cards{grid-template-columns:1fr 1fr}
  .next-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .backtop{bottom:78px;right:14px} /* clear of the sticky mobile call bar */
  .breadcrumb{font-size:.86rem}
}
@media (max-width:640px){
  .contact-cards{grid-template-columns:1fr}
  .next-grid{grid-template-columns:1fr}
  .form-switch a{flex:1 1 auto;justify-content:center}
}

/* Desktop header fit (28 Nov QA): at desktop widths the 7-item nav, the
   call link and the demo line each sit on ONE line inside the 1160px wrap —
   tighter gaps/type plus nowrap (nav links + call in style.css, demo line
   here) stop "Our workshop", "Call the workshop" and "TubeForge.uk"
   wrapping onto second lines. */
@media (min-width:1181px){
  .header-in{gap:18px}
  nav.main{gap:16px}
  nav.main a{font-size:.93rem}
  .header-call{padding-left:16px;margin-left:0;font-size:.95rem}
  header.site .logo.long .brand{font-size:1.08rem}
  .demo-note{white-space:nowrap;font-size:.66rem}
}
