/* ================================================================
   RESPONSIVE CSS — Rule 11
   Media-query overrides only. Loaded after main.css.
   Breakpoints: 1024px, 768px
   ================================================================ */

/* ================================================================
   TABLET (max-width: 1024px)
   ================================================================ */
@media (max-width: 1024px) {
  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .hero__desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__image {
    min-height: 280px;
    max-height: 400px;
  }

  /* Layouts */
  .two-col,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .coaching__inner {
    grid-template-columns: 1fr;
  }

  /* Cards */
  .what__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Stats */
  .stats__grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Gallery Preview */
  .gallery-preview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-preview__item--tall {
    grid-row: span 1;
  }
  .gallery-preview__item--wide {
    grid-column: span 2;
  }

  /* Photo Strip */
  .photo-strip__item {
    width: 220px;
    height: 150px;
  }
}

/* ================================================================
   MOBILE (max-width: 768px)
   ================================================================ */
@media (max-width: 768px) {
  /* Nav */
  .nav__links {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    gap: 1rem;
  }

  /* Hero */
  .hero__image {
    min-height: 220px;
    max-height: 320px;
  }

  /* Timeline — vertical layout on mobile */
  .timeline__track {
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
  }
  .timeline__item {
    flex: none;
    padding: 0 0 0 2.5rem;
    opacity: 1;
    transform: none;
  }
  .timeline__dot {
    position: absolute;
    left: 0;
    top: 0;
  }
  .timeline__line,
  .timeline__line-progress {
    top: 0;
    left: 7px;
    width: 2px !important;
    height: 100% !important;
  }
  .timeline__month {
    font-size: 0.75rem;
  }
  .timeline__label {
    font-size: 1rem;
  }

  /* Cards */
  .what__grid {
    grid-template-columns: 1fr;
  }
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* Past Results — single column on mobile */
  .results-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .result-card {
    padding: 1.25rem 1.25rem !important;
  }

  /* Stats */
  .stats__grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Timeline table */
  .timeline-table td:first-child {
    white-space: normal;
    width: auto;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Gallery */
  .gallery-preview__grid {
    grid-template-columns: 1fr;
  }
  .gallery-preview__item--wide {
    grid-column: span 1;
  }
  .gallery-preview__item img {
    min-height: 180px;
  }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  /* Page Hero */
  .page-hero {
    padding: 9rem 0 4rem;
  }

  /* Photo Strip */
  .photo-strip__item {
    width: 180px;
    height: 120px;
  }

  /* Forms — touch-friendly inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  input[type="number"],
  input[type="search"],
  select,
  textarea {
    font-size: 16px; /* Prevents iOS zoom on focus */
    padding: 0.875rem 1rem;
    min-height: 48px; /* WCAG minimum tap target */
  }

  /* Buttons — touch-friendly tap target */
  .btn,
  button[type="submit"],
  input[type="submit"],
  .wpcf7-submit {
    min-height: 48px;
    min-width: 48px;
    padding: 0.875rem 1.75rem;
  }

  /* Tables — horizontal scroll wrapper */
  .timeline-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Two-col image — full width stacked */
  .two-col__media img {
    width: 100%;
  }

  /* CTA section — tighter on mobile */
  .cta-section__inner {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  /* Pullquote — readable on small screens */
  .pullquote__text {
    font-size: clamp(1.25rem, 4vw, 1.75rem);
  }
}

/* ================================================================
   SMALL MOBILE (max-width: 480px)
   ================================================================ */
@media (max-width: 480px) {
  /* Stats — single column on very small screens */
  .stats__grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  /* Hero buttons — full width stack */
  .hero__actions {
    flex-direction: column;
    width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Hero image — smaller on tiny screens */
  .hero__image {
    min-height: 180px;
    max-height: 260px;
  }
}

/* ================================================================
   LARGE SCREENS (min-width: 1440px)
   ================================================================ */
@media (min-width: 1440px) {
  /* Cap content width for ultra-wide monitors */
  .container {
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================================================
   REDUCED MOTION (accessibility)
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .photo-strip__track {
    animation: none !important;
  }
}

/* ================================================================
   PRINT STYLES
   ================================================================ */
@media print {
  .nav, .footer, .cta-section,
  .photo-strip,
  .nav-toggle, .btn {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  .page-hero {
    background: none !important;
    color: #000;
    padding: 1rem 0;
  }
  .page-hero__eyebrow,
  .page-hero__title,
  .page-hero__subtitle {
    color: #000;
  }
  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #666;
  }
  section {
    page-break-inside: avoid;
  }
}
