/* Medford Mustangs - Responsive Stylesheet */
/* Mobile-first responsive design */

/* ===========================
   TABLET STYLES (640px+)
   =========================== */
@media (min-width: 640px) {
  /* Typography */
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 2rem; }

  /* Hero */
  .hero h1 {
    font-size: 4rem;
  }

  .hero-tagline {
    font-size: 1.5rem;
  }

  .hero-logo {
    width: 180px;
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sponsors Grid */
  .sponsors-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Coaches Grid */
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coach-header {
    flex-direction: row;
  }

  .coach-photo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
  }

  .coach-info {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
  }

  /* Gallery Grid */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Stats Banner */
  .stats-banner {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Legacy Coaches */
  .legacy-coaches {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===========================
   LAPTOP STYLES (768px+)
   =========================== */
@media (min-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: none;
  }

  .nav-desktop {
    display: block;
  }

  .nav-mobile {
    display: none;
  }

  /* Hero */
  .hero {
    min-height: 100vh;
  }

  .hero h1 {
    font-size: 4.5rem;
  }

  .hero-championships {
    font-size: 1.25rem;
  }

  /* Page Hero */
  .page-hero {
    padding: 140px 0 80px;
  }

  /* Container */
  .container {
    padding: 0 var(--spacing-xl);
  }

  /* Features Grid */
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Sponsors */
  .sponsors-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===========================
   DESKTOP STYLES (1024px+)
   =========================== */
@media (min-width: 1024px) {
  /* Typography */
  h1 { font-size: 4rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2.25rem; }

  /* Hero */
  .hero h1 {
    font-size: 5rem;
  }

  .hero-tagline {
    font-size: 1.75rem;
  }

  .hero-logo {
    width: 200px;
  }

  /* Header */
  .header-inner {
    padding: var(--spacing-md) var(--spacing-xl);
  }

  .logo img {
    height: 60px;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  /* Navigation */
  .nav-desktop ul {
    gap: var(--spacing-xl);
  }

  .nav-desktop a {
    font-size: 1rem;
  }

  /* Footer Grid */
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  /* Coaches */
  .coaches-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coach-photo {
    width: 250px;
    height: 250px;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Sponsors */
  .sponsors-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .sponsor-logo {
    max-width: 180px;
  }

  /* Contact */
  .contact-form-wrapper {
    padding: var(--spacing-3xl);
  }
}

/* ===========================
   LARGE DESKTOP STYLES (1280px+)
   =========================== */
@media (min-width: 1280px) {
  /* Container */
  .container {
    max-width: 1400px;
  }

  /* Hero */
  .hero h1 {
    font-size: 5.5rem;
  }

  .hero-content {
    max-width: 1000px;
  }

  /* Features */
  .feature-card {
    padding: var(--spacing-3xl);
  }

  /* Gallery */
  .gallery-cover {
    height: 250px;
  }

  /* Sponsors */
  .sponsors-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===========================
   EXTRA LARGE STYLES (1536px+)
   =========================== */
@media (min-width: 1536px) {
  html {
    font-size: 18px;
  }

  .container {
    max-width: 1600px;
  }
}

/* ===========================
   MOBILE LANDSCAPE
   =========================== */
@media (max-width: 767px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-logo {
    width: 100px;
    margin-bottom: var(--spacing-md);
  }

  .hero-tagline {
    font-size: 1rem;
  }

  .hero-championships {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
  }

  .page-hero {
    padding: 100px 0 40px;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  .header,
  .footer,
  .menu-toggle,
  .nav-mobile,
  .btn,
  .social-links {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 20px 0;
    background: none !important;
  }

  .hero-overlay {
    display: none;
  }

  .hero h1,
  .hero-tagline,
  .hero-championships {
    color: var(--color-primary) !important;
  }

  .section {
    padding: 20px 0;
  }

  .page-hero {
    padding: 20px 0;
    background: none !important;
  }

  .page-hero h1 {
    color: var(--color-primary) !important;
  }

  table {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }
}

/* ===========================
   REDUCED MOTION
   =========================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ===========================
   HIGH CONTRAST MODE
   =========================== */
@media (prefers-contrast: high) {
  :root {
    --color-primary: #000080;
    --color-secondary: #FFD700;
    --color-gray-500: #333333;
    --color-gray-600: #222222;
  }

  .btn-primary {
    border: 2px solid var(--color-primary-dark);
  }

  .btn-secondary {
    border-width: 3px;
  }
}

/* ===========================
   DARK MODE (future support)
   =========================== */
@media (prefers-color-scheme: dark) {
  /* Dark mode styles can be added here if needed */
  /* Currently keeping the branded navy/gold theme */
}
