/* ============================================
   GUZMAN PIANO STUDIO - RESPONSIVE STYLES
   ============================================ */

/* ============================================
   LARGE DESKTOP — min-width: 1200px
   ============================================ */
@media (min-width: 1200px) {
  :root {
    --nav-height: 80px;
  }

  .container {
    padding: 0 var(--space-8);
  }

  .hero-content h1 {
    font-size: 5.5rem;
  }

  .footer-grid {
    grid-template-columns: 2.5fr 1fr 1fr 1.5fr;
  }

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

  .section-padding {
    padding: var(--space-32) 0;
  }
}

/* ============================================
   TABLET — max-width: 1024px
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

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

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

  .comparison-table {
    font-size: var(--text-sm);
  }

  .comparison-table th,
  .comparison-table td {
    padding: var(--space-4);
  }
}

/* ============================================
   TABLET — max-width: 768px
   ============================================ */
@media (max-width: 768px) {

  /* ---- NAVIGATION ---- */
  .hamburger {
    display: flex;
  }

  .nav-mobile-overlay {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--navy-darker);
    flex-direction: column;
    align-items: flex-start;
    padding: calc(var(--nav-height) + var(--space-8)) var(--space-6) var(--space-8);
    gap: var(--space-1);
    transition: right var(--transition-slow);
    z-index: var(--z-sticky);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    overflow-y: auto;
  }

  .nav-open .nav-links {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
    border-radius: var(--radius-lg);
    color: rgba(255,255,255,0.85);
  }

  .nav-links a:hover,
  .nav-links a.active {
    background: rgba(255,255,255,0.1);
    color: var(--white);
  }

  .nav-links a.active {
    background: rgba(244, 180, 27, 0.15);
    color: var(--mustard-accent);
  }

  .nav-cta {
    margin-left: 0;
    margin-top: var(--space-4);
    width: 100%;
  }

  .nav-cta .btn {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
  }

  /* ---- TYPOGRAPHY ---- */
  .heading-xl { font-size: clamp(2rem, 8vw, 3rem); }
  .heading-lg { font-size: clamp(1.75rem, 6vw, 2.5rem); }
  .heading-md { font-size: clamp(1.5rem, 5vw, 2rem); }

  /* ---- HERO ---- */
  .hero-content h1 {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
  }

  .hero-content p {
    font-size: var(--text-base);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta-group .btn {
    width: 100%;
    max-width: 320px;
  }

  /* ---- SECTIONS ---- */
  .section-padding {
    padding: var(--space-16) 0;
  }

  .section-padding-sm {
    padding: var(--space-12) 0;
  }

  .section-title h2 {
    font-size: clamp(var(--text-2xl), 5vw, var(--text-3xl));
  }

  /* ---- GRIDS ---- */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }

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

  .stat-item {
    padding: var(--space-6);
  }

  .stat-number {
    font-size: var(--text-3xl);
  }

  /* ---- QUOTE CAROUSEL ---- */
  .quote-text {
    font-size: var(--text-xl);
  }

  /* ---- PIANO ---- */
  .keyboard {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 var(--space-4);
  }

  .piano-container {
    padding: var(--space-6) var(--space-4) var(--space-8);
  }

  .song-buttons {
    gap: var(--space-2);
  }

  .song-buttons .btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-4);
  }

  /* ---- REVIEWS ---- */
  .reviews-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* ---- FOOTER ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }

  /* ---- ACCORDION ---- */
  .accordion-trigger {
    padding: var(--space-5) var(--space-6);
  }

  .accordion-content {
    padding: 0 var(--space-6) var(--space-5);
  }

  /* ---- COMPARISON TABLE ---- */
  .comparison-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl);
  }

  .comparison-table {
    min-width: 500px;
  }

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

  /* ---- TIMELINE ---- */
  .timeline::before {
    left: 24px;
  }

  .timeline-number {
    width: 48px;
    height: 48px;
    font-size: var(--text-base);
  }

  /* ---- INSTRUCTOR CARDS ---- */
  .instructors-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* ---- BLOG ---- */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  /* ---- ARTICLE ---- */
  .article-body h2 {
    font-size: var(--text-xl);
  }

  .article-body p {
    font-size: var(--text-base);
  }

  .pull-quote {
    padding: var(--space-5) var(--space-6);
  }

  .pull-quote p {
    font-size: var(--text-lg);
  }

  /* ---- BACK TO TOP ---- */
  .back-to-top {
    bottom: var(--space-5);
    right: var(--space-5);
    width: 44px;
    height: 44px;
  }

  /* ---- POLICY TABLE ---- */
  .policy-section {
    padding: 0 var(--space-2);
  }

  /* ---- BENEFITS CARDS ---- */
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================
   MOBILE — max-width: 480px
   ============================================ */
@media (max-width: 480px) {

  /* ---- BASE ---- */
  :root {
    --nav-height: 64px;
  }

  .container {
    padding: 0 var(--space-4);
  }

  /* ---- NAVIGATION ---- */
  .nav-logo-text {
    font-size: var(--text-base);
  }

  /* ---- HERO ---- */
  .hero-content {
    padding: var(--space-8) var(--space-4);
  }

  .hero-content h1 {
    font-size: clamp(1.875rem, 10vw, 2.75rem);
  }

  .hero-note-1,
  .hero-note-3,
  .hero-note-5 {
    display: none;
  }

  /* ---- TYPOGRAPHY ---- */
  .section-title h2 {
    font-size: var(--text-2xl);
  }

  /* ---- SECTIONS ---- */
  .section-padding {
    padding: var(--space-12) 0;
  }

  /* ---- GRIDS ---- */
  .grid-4 { grid-template-columns: 1fr; }

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

  .stat-number {
    font-size: var(--text-2xl);
  }

  /* ---- CARDS ---- */
  .feature-card {
    padding: var(--space-8) var(--space-6);
  }

  .review-card {
    padding: var(--space-6);
  }

  .card-body {
    padding: var(--space-6);
  }

  /* ---- BUTTONS ---- */
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: var(--text-sm);
  }

  /* ---- PIANO ---- */
  .white-key {
    width: 36px;
    height: 120px;
  }

  .black-key {
    width: 23px;
    height: 76px;
  }

  .piano-container {
    padding: var(--space-5) var(--space-3) var(--space-6);
    border-radius: var(--radius-lg);
  }

  .song-buttons {
    flex-direction: column;
    align-items: center;
  }

  .song-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* ---- QUOTE CAROUSEL ---- */
  .quote-container {
    min-height: 240px;
  }

  .quote-text {
    font-size: var(--text-lg);
  }

  /* ---- REVIEW CONTROLS ---- */
  .filter-buttons {
    gap: var(--space-2);
  }

  .filter-btn {
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  /* ---- FORM ---- */
  .form-checkbox-group,
  .form-radio-group {
    flex-direction: column;
  }

  /* ---- ACCORDION ---- */
  .accordion-title {
    font-size: var(--text-base);
  }

  .accordion-trigger {
    padding: var(--space-4) var(--space-5);
  }

  .accordion-content {
    padding: 0 var(--space-5) var(--space-4);
  }

  /* ---- FOOTER ---- */
  .site-footer {
    padding: var(--space-12) 0 var(--space-6);
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    gap: var(--space-4);
  }

  /* ---- RATING SUMMARY ---- */
  .rating-big {
    font-size: 3rem;
  }

  /* ---- TIMELINE ---- */
  .timeline::before {
    left: 20px;
  }

  .timeline-number {
    width: 40px;
    height: 40px;
    font-size: var(--text-sm);
    flex-shrink: 0;
  }

  .timeline-content h3 {
    font-size: var(--text-base);
  }

  /* ---- BENEFITS ---- */
  .benefits-grid {
    grid-template-columns: 1fr;
  }

  /* ---- BLOG ---- */
  .blog-filter-bar {
    overflow-x: auto;
    padding-bottom: var(--space-3);
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }

  .blog-filter-btn {
    flex-shrink: 0;
  }

  /* ---- INSTRUCTOR CARD ---- */
  .instructor-avatar {
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
  }

  /* ---- SHARE BUTTONS ---- */
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }

  .share-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  /* ---- PAGE LOADER ---- */
  .loader-text {
    font-size: var(--text-lg);
    letter-spacing: 1px;
  }

  /* ---- CONTACT ---- */
  .contact-info-item {
    gap: var(--space-3);
  }

  .contact-info-icon {
    width: 36px;
    height: 36px;
    font-size: var(--text-lg);
  }

  /* ---- COMPARISON TABLE ---- */
  .comparison-table th,
  .comparison-table td {
    padding: var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .site-header,
  .hamburger,
  .back-to-top,
  .page-loader,
  .hero-particles,
  .piano-section,
  .quote-carousel,
  .social-links {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
    background: none;
  }

  .hero-content {
    color: #000;
  }

  .hero-content h1,
  .hero-content p {
    color: #000;
  }

  a {
    color: inherit;
    text-decoration: underline;
  }

  .btn {
    border: 1px solid #000;
    color: #000;
    background: none;
  }

  .site-footer {
    background: none;
    color: #000;
    border-top: 1px solid #000;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@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;
  }

  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-particles {
    display: none;
  }

  .hero-note-1,
  .hero-note-2,
  .hero-note-3,
  .hero-note-4,
  .hero-note-5 {
    animation: none;
  }

  .hero-content h1,
  .hero-content .hero-eyebrow,
  .hero-content .hero-subtitle,
  .hero-content .hero-cta-group {
    opacity: 1;
    animation: none;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --border-color: #666;
    --text-secondary: #333;
    --text-light: #444;
  }

  .btn-primary {
    background: #CC0000;
    border-color: #CC0000;
  }

  .nav-links a {
    color: #fff;
  }

  .review-card,
  .feature-card,
  .blog-card {
    border: 2px solid var(--border-color);
  }
}
