/* ==========================================================
   Wefix — responsive
   Designed per breakpoint, not just scaled down.
   1280 wide · 1024 laptop/tablet landscape · 860 tablet
   640 phone · 400 small phone
   ========================================================== */

@media (max-width: 1280px) {
  .trust__item { padding: 1.6rem 1.1rem; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { max-width: 680px; margin-inline: auto; width: 100%; }
  .page-hero__grid, .why, .story__grid, .split, .contact, .wizard, .explorer { grid-template-columns: 1fr; }
  .page-hero__media { max-width: 680px; }
  .wizard__aside { position: static; }
  .story__layers { min-height: 480px; }
  .trust__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust__item:nth-child(3) { border-left: 0; }
  .trust__item:nth-child(n + 3) { border-top: 1px solid var(--navy-line); }
  .process { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
  .process__rail { display: none; }
  .issues { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .issues--feature .issue:first-child { grid-column: span 2; }
  .enquiry-options { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .feature-band > div { border-left: 0; border-top: 1px solid var(--line); }
  .feature-band > div:first-child { border-top: 0; }
  .cat-block { grid-template-columns: 1fr; }
  .cat-block__head .media { max-width: 560px; }
  .mag { grid-template-columns: 1fr; }
  .mag-feature { min-height: 440px; }
  .article-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .final-cta__grid { grid-template-columns: 1fr; }
  .tabpanel__card { min-height: 0; }
}

@media (max-width: 860px) {
  .bento { grid-template-columns: 1fr; }
  .svc--feature { grid-row: auto; }
  .svc--feature .svc__media { min-height: 300px; }
  .svc--small { flex-direction: column; }
  .svc--small .svc__media { width: 100%; min-height: 200px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .row { grid-template-columns: 1fr; gap: 2rem; }
  .row--flip .row__media { order: 0; }
  .row__index { left: 0; }
  .why__quote { right: 1rem; bottom: -1rem; }
  .story__layers { min-height: 440px; }
  .checklist-card { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 3fr; }
  .wizard__steps { grid-template-columns: 1fr 1fr 1fr; }
  .tabpanel__cols { grid-template-columns: 1fr; }
  .repair-list { grid-template-columns: 1fr; }
  .feature-band > div { border-left: 0; }
  .page-hero__float { left: 0.75rem; }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}

@media (max-width: 640px) {
  .grid--2, .grid--3, .grid--4, .field-row, .issues, .article-row, .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-left: 0 !important; border-top: 1px solid var(--navy-line); }
  .trust__item:first-child { border-top: 0; }
  .process { grid-template-columns: 1fr; }
  .issues--feature .issue:first-child { grid-column: auto; }
  .row__cols { grid-template-columns: 1fr; }
  .hero__actions .btn, .page-hero__actions .btn, .final-cta__actions .btn, .mag-feature .btn { width: 100%; }
  .wizard__steps { grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; }
  .wizard__steps span { font-size: 0.68rem; }
  .wizard__nav .btn { width: 100%; }
  .mag-card { grid-template-columns: 1fr; }
  .mag-card__body { padding: 0 1.1rem 1.2rem; }
  .carousel__slide { padding: 1.6rem; }
  .carousel__arrows { display: none; }
  .carousel__controls { justify-content: center; }
  .float-card { padding: 0.6rem 0.75rem; }
  .float-card--a { top: 2%; left: 0; }
  .float-card--b { bottom: 2%; right: 0; }
  .float-card span { display: none; }
  .svc__body { padding: 1.3rem; }
  .final-cta { border-radius: var(--r-md); }
  .why__media .media { aspect-ratio: 4 / 3.4; }
  .why__quote { position: static; margin-top: 1rem; max-width: none; }
  .story__layers { min-height: 380px; }
  .story__note { position: static; max-width: none; margin-top: 1rem; }
  .story__big { position: relative; width: 100%; }
  .story__small { display: none; }
  .story__layers { min-height: 0; display: grid; gap: 0; }
  .page-hero__float { position: static; margin-top: 1rem; max-width: none; }
  .tabpanel__media { aspect-ratio: 4 / 3; }
  .enquiry-options a { padding: 1.1rem; }
  .contact__form { padding: 1.4rem; }
  .btn { white-space: normal; }
  .head { margin-bottom: 2rem; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 2.6rem; }
  .wizard__steps span { display: none; }
}

/* Vertical process rail on phones */
@media (max-width: 640px) {
  .process__rail { display: block; top: 34px; bottom: 34px; left: 33px; right: auto; width: 3px; height: auto; }
  .process__fill { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--brand), #7cc6ef); }
  .process.is-live .process__fill { transform: scaleY(1); }
  .step { padding-bottom: 0.5rem; }
}

/* About page timeline: vertical on phones */
@media (max-width: 760px) {
  .journey { grid-template-columns: 1fr; gap: 2rem; padding-left: 0.25rem; }
  .journey::before { top: 0; bottom: 0; left: 0.55rem; right: auto; width: 3px; height: auto; }
  .journey__item { padding: 0 0 0 2.25rem; }
  .journey__item::before { position: absolute; left: 0; top: 0.25rem; margin: 0; }
  .journey__year { font-size: 2.2rem; }
}
