/* =========================================================
   Mobile refinements (phones ≤ 600px)
   Shorter cards and images, tighter spacing.
   Loaded last on every page.
   ========================================================= */
@media (max-width: 600px) {

  /* ---------- Home: team cards (icon | text | arrow) ---------- */
  .team-card { padding: 14px 44px 14px 14px; gap: 12px; min-height: 0; align-items: flex-start; }
  .team-card__icon { width: 46px; height: 46px; flex: 0 0 46px; font-size: 22px; }
  .team-card h3 { font-size: 19px !important; margin-bottom: 4px; }
  .team-card p { font-size: 14px; line-height: 1.4; }
  .team-card__arrow { width: 40px; height: 30px; }

  /* ---------- Home: owner cards side by side (photo | text) ---------- */
  .coach-card { display: grid !important; grid-template-columns: 38% 1fr; align-items: end; min-height: 0 !important; text-align: left !important; overflow: hidden; }
  .coach-card__photo { height: 170px !important; flex-basis: auto !important; position: relative; overflow: hidden; align-self: stretch; }
  .coach-card__photo img { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); height: 165px !important; width: auto !important; max-width: none; margin: 0 !important; }
  .coach-card__body { padding: 14px 14px 14px 12px !important; align-self: center; }
  .coach-card__body h3 { font-size: 19px !important; }
  .coach-card__exp { font-size: 14px !important; margin: 2px 0 6px !important; }
  .coach-card__body p:not(.coach-card__exp) { font-size: 13.5px !important; line-height: 1.4; }

  /* ---------- Holiday Camps flyer: two top photos side by side ---------- */
  .flyer__photo { grid-column: auto !important; align-self: stretch; display: flex; align-items: center; }
  .flyer__photo--1 { border-right: 2px solid var(--yellow) !important; }
  .flyer__photo--2 { border-top: 0 !important; }
  .flyer__strip img { max-height: 150px; width: 100%; object-fit: contain; background: #0d0d0d; }

  /* ---------- Hero images ---------- */
  .camps-hero__media, .camps-hero__media img { max-height: 200px; }
  .camps-hero__media img, .about-hero__media img, .teams-hero__media img { width: 100%; object-fit: cover; }
  .about-hero__media, .about-hero__media img { max-height: 180px; }
  .hero__inner { gap: 18px !important; }
  .hero { padding-bottom: 28px; }

  /* ---------- About: founder cards ---------- */
  .founder-card { min-height: 0 !important; }
  .founder-card__photo, .founder-card__photo img { max-height: 190px; }

  /* ---------- Teams: level cards ---------- */
  .level__media, .level__media img { height: 185px !important; }
  .level__media img { object-fit: cover; object-position: center 22%; }
  .level__plate { font-size: 34px !important; }

  /* ---------- Recruitment ---------- */
  .recruit-intro__media, .recruit-intro__media img { max-height: 200px; }
  .recruit-intro__media img { width: 100%; object-fit: cover; }
  .approach-card {
    display: grid !important; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 2px;
    text-align: left !important; padding: 16px 16px 18px !important; min-height: 0 !important; align-items: start;
  }
  .approach-card__num { position: absolute; right: 14px; top: 8px; left: auto; font-size: 22px !important; }
  .approach-card__icon { grid-row: 1 / span 2; width: 52px !important; height: 52px !important; margin: 0 !important; font-size: 24px; }
  .approach-card h3 { font-size: 19px !important; margin: 2px 0 0 !important; padding-right: 30px; }
  .approach-card p { font-size: 14px; line-height: 1.4; margin: 0 !important; }
  .resource-card {
    display: grid !important; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 10px;
    align-items: center; padding: 14px 16px 16px !important; min-height: 0 !important;
  }
  .resource-card__icon { width: 44px !important; height: 44px !important; margin: 0 !important; }
  .resource-card h3 { margin: 0 !important; font-size: 17px !important; }
  .resource-card p { grid-column: 1 / -1; margin: 0 !important; }
  .resource-card .btn { grid-column: 1 / -1; margin: 0 !important; padding-top: 10px; padding-bottom: 10px; }

  /* ---------- Personal Training programs ---------- */
  .pt-programs { gap: 12px !important; }
  .pt-program {
    display: grid !important; grid-template-columns: 54px 1fr; column-gap: 14px; row-gap: 2px;
    text-align: left !important; padding: 14px 44px 14px 14px !important; min-height: 0 !important; align-items: start;
  }
  .pt-program__icon { grid-row: 1 / span 2; width: 54px !important; height: 54px !important; margin: 0 !important; font-size: 26px; }
  .pt-program h3 { font-size: 19px !important; margin: 2px 0 0 !important; text-align: left !important; }
  .pt-program p { font-size: 14px !important; margin: 0 !important; }
  .pt-meet__media, .pt-meet__media img { max-height: 190px; }
  .pt-meet__media img { width: 100%; object-fit: cover; }

  /* ---------- Coaches: leaders (photo | text) ---------- */
  .co-leader { display: grid !important; grid-template-columns: 44% 1fr !important; align-items: center; gap: 14px; height: auto !important; }
  .co-leader__photo { height: 200px !important; max-width: none !important; margin: 0 !important; }
  .co-leader__photo img { height: 195px !important; width: 100% !important; object-fit: contain; object-position: bottom; }
  .co-leader__body { text-align: left !important; padding-top: 0 !important; }
  .co-leader__name { align-items: flex-start !important; font-size: 34px !important; line-height: .95; }
  .co-leader__role { font-size: 10.5px !important; padding: 4px 10px !important; margin: 8px 0 0 !important; }
  .co-leader__bio { font-size: 14px !important; margin: 10px 0 0 !important; text-align: left; }
  .co-leaders__grid { gap: 18px !important; }
  .staff-card__photo { height: 120px !important; }
  .staff-card__photo svg, .staff-card__photo img { height: 100%; }
}

@media (max-width: 600px) {
  /* owner cards: text left-aligned next to the photo */
  .coach-card__body, .coach-card__body h3, .coach-card__body p { text-align: left !important; }

  /* hero accent shape no longer sits behind the text */
  .hero__shape--right { display: none; }

  /* Teams: no empty band under the text */
  .level__body { min-height: 135px !important; }

  /* Coaches: John's badge/bio stay inside the screen */
  .co-leader__body { min-width: 0; }
  .co-leader--john .co-leader__role, .co-leader__role { min-width: 0 !important; max-width: 100%; padding: 5px 10px !important; white-space: normal; }
  .co-leader--john .co-leader__bio, .co-leader__bio { max-width: 100% !important; }
  .co-leader--john .co-leader__photo img { width: 100% !important; left: 0 !important; }

  /* Recruitment: intro photo full width */
  .recruit-intro__media { width: 100%; max-width: none !important; }
}
@media (max-width: 600px) {
  .camps-hero__media, .about-hero__media, .teams-hero__media { width: 100% !important; max-width: none !important; }
  .camps-hero__media img { height: 200px; }
}

/* =========================================================
   Footers centered on phones (all footer variants)
   ========================================================= */
@media (max-width: 600px) {
  .site-footer .footer__inner,
  .pt-footer__inner,
  .co-footer__inner { display: flex !important; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-left: 16px !important; padding-right: 16px !important; }

  .site-footer .footer__inner > *,
  .pt-footer__inner > *,
  .co-footer__inner > * { width: 100%; margin: 0 !important; padding: 0 !important; border: 0 !important; justify-self: center; }
  .site-footer .logo--footer, .pt-footer__logo, .co-footer__logo { width: auto !important; display: flex; justify-content: center; }

  /* quick links: centered wrapping row */
  .footer__links, .pt-footer__links, .co-footer__links ul {
    display: flex !important; flex-wrap: wrap; justify-content: center; gap: 6px 18px; grid-template-columns: none !important;
  }
  .footer__links .is-empty, .co-footer__links .is-empty { display: none; }
  .co-footer__links h3, .site-footer h4, .pt-footer h4 { text-align: center; }

  /* contact lines + social icons */
  .footer__contact li, .pt-footer__contact li, .co-footer__row { justify-content: center; text-align: center; flex-wrap: wrap; }
  .footer__contact small, .pt-footer__contact small { display: block; width: 100%; }
  .footer__social, .pt-footer__social { justify-content: center; }
  .co-footer__cities { text-align: center; }
  .pt-footer__follow { padding-left: 0 !important; }
  .footer__copy, .pt-footer__copy { text-align: center; }
}
@media (max-width: 600px) {
  /* PT footer: its two link lists flow as one centered row */
  .pt-footer__links { display: block !important; }
  .pt-footer__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0 0 6px; }
  /* address line: pin icon sits inline with the text */
  .footer__contact li, .pt-footer__contact li { display: block !important; }
  .footer__contact li svg, .pt-footer__contact li svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
  .footer__contact li > span, .pt-footer__contact li > span { display: inline; }
}
@media (max-width: 600px) {
  /* footer columns: clear vertical rhythm + subtle separators */
  .site-footer .footer__inner, .pt-footer__inner, .co-footer__inner { gap: 0 !important; padding-top: 30px !important; padding-bottom: 8px !important; }
  .site-footer .footer__inner > *, .pt-footer__inner > *, .co-footer__inner > * { padding: 22px 0 !important; }
  .site-footer .footer__inner > * + *, .pt-footer__inner > * + *, .co-footer__inner > * + * { border-top: 1px solid rgba(255,255,255,.12) !important; }
  .site-footer .footer__inner > :first-child, .pt-footer__inner > :first-child, .co-footer__inner > :first-child { padding-top: 0 !important; }
  .site-footer h4, .pt-footer h4, .co-footer__links h3 { margin: 0 0 12px !important; }
  .footer__links, .pt-footer__links ul, .co-footer__links ul { row-gap: 10px !important; }
  .footer__contact li, .pt-footer__contact li { margin: 0 0 10px !important; line-height: 1.5; }
  .footer__contact li:last-child, .pt-footer__contact li:last-child { margin-bottom: 0 !important; }
  .footer__contact small, .pt-footer__contact small { margin-top: 4px; }
  .co-footer__row { margin: 0 0 12px !important; }
  .footer__copy, .pt-footer__copy { padding: 16px 0 18px !important; }
}
@media (max-width: 600px) { .pt-footer__links ul { margin-bottom: 10px !important; } .pt-footer__links ul:last-child { margin-bottom: 0 !important; } }
