/* ============================================
   PET GROOMING HQ - RESPONSIVE STYLES
   pgh-responsive.css
   ============================================ */

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

  .pgh-hero { min-height: 100vh; }
  .pgh-hero-collage { height: 580px; }
  .pgh-hero-img-main { height: 440px; }
}

/* ===== DESKTOP ===== */
@media (min-width: 992px) and (max-width: 1399px) {
  .pgh-display-1 { font-size: 3.5rem; }
}

/* ===== TABLET LANDSCAPE ===== */
@media (max-width: 1199px) {
  .pgh-section { padding: 80px 0; }
  .pgh-section-lg { padding: 100px 0; }

  .pgh-gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 180px);
  }

  .pgh-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
  .pgh-gallery-item:nth-child(5) { grid-column: span 1; }

  .pgh-process-timeline::before { display: none; }
  .pgh-process-step { flex-direction: column !important; }
  .pgh-process-step-num { margin: 0; align-self: flex-start; }
}

/* ===== TABLET PORTRAIT ===== */
@media (max-width: 991px) {
  .pgh-section { padding: 64px 0; }
  .pgh-section-sm { padding: 40px 0; }
  .pgh-section-lg { padding: 80px 0; }

  .pgh-navbar-nav { display: none; }
  .pgh-navbar-nav.pgh-nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--pgh-white);
    padding: 1.5rem;
    box-shadow: var(--pgh-shadow);
    border-radius: 0 0 var(--pgh-radius-lg) var(--pgh-radius-lg);
    gap: 0.25rem;
  }

  .pgh-mobile-menu-btn { display: flex; align-items: center; }

  .pgh-navbar { background: rgba(255,255,255,0.97) !important; backdrop-filter: blur(12px); }
  .pgh-navbar .pgh-navbar-logo-text,
  .pgh-navbar .pgh-nav-link { color: var(--pgh-dark) !important; }
  .pgh-navbar .pgh-navbar-logo-text span { color: var(--pgh-primary) !important; }
  .pgh-navbar .pgh-mobile-menu-btn { color: var(--pgh-dark) !important; }

  .pgh-hero-collage { display: none; }
  .pgh-hero { min-height: 80vh; }
  .pgh-hero-stats { gap: 1.5rem; }

  .pgh-stats-section .row > div:not(:last-child) .pgh-stat-item { border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 2rem; margin-bottom: 2rem; }

  .pgh-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 180px);
  }
  .pgh-gallery-item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .pgh-gallery-item:nth-child(5) { grid-column: span 2; }

  .pgh-map-info-card { margin-top: 2rem; }

  .pgh-process-timeline::before { display: none; }
  .pgh-process-step { flex-direction: column !important; }
  .pgh-process-step-num { margin: 0; }

  .pgh-hero-stats { flex-wrap: wrap; gap: 1rem; }
  .pgh-hero-stat-num { font-size: 1.75rem; }

  .pgh-comparison-slider { height: 280px; }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
  .pgh-section { padding: 52px 0; }
  .pgh-section-sm { padding: 32px 0; }

  .pgh-display-1 { font-size: 2.25rem; }
  .pgh-display-2 { font-size: 1.9rem; }
  .pgh-heading-lg { font-size: 1.6rem; }

  .pgh-hero { min-height: 90vh; padding-top: 80px; }
  .pgh-hero-desc { font-size: 1rem; }
  .pgh-hero-actions { flex-direction: column; align-items: flex-start; }

  .pgh-hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    padding-top: 1.5rem;
    margin-top: 2.5rem;
  }

  .pgh-stat-number { font-size: 2.5rem; }

  .pgh-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(5, 140px);
  }

  .pgh-gallery-item:nth-child(1) { grid-column: 1; grid-row: 1; }
  .pgh-gallery-item:nth-child(5) { grid-column: 1; }

  .pgh-team-card-img-wrap { height: 240px; }

  .pgh-page-header { padding: 120px 0 70px; }
  .pgh-page-header h1 { font-size: 2rem; }

  .pgh-finder-options { gap: 0.5rem; }
  .pgh-finder-chip { font-size: 0.85rem; padding: 0.4rem 0.9rem; }

  .pgh-footer { padding-top: 52px; }
  .pgh-footer-bottom { flex-direction: column; text-align: center; }
  .pgh-footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 1rem; }

  .pgh-cookie-banner { left: 1rem; right: 1rem; bottom: 1rem; }
  .pgh-cookie-actions { flex-direction: column; }

  .pgh-quiz-body,
  .pgh-calc-body,
  .pgh-finder-body,
  .pgh-checklist-body { padding: 1.5rem; }

  .pgh-quiz-header,
  .pgh-calc-header,
  .pgh-finder-header,
  .pgh-checklist-header { padding: 1.5rem; }

  .pgh-comparison-slider { height: 220px; }

  .pgh-article-feature-img { height: 240px; }
  .pgh-article-content { font-size: 0.97rem; }
  .pgh-article-content h2 { font-size: 1.4rem; }

  .pgh-back-to-top { bottom: 1.5rem; right: 1.5rem; }
}

/* ===== SMALL MOBILE ===== */
@media (max-width: 480px) {
  .pgh-display-1 { font-size: 1.9rem; }
  .pgh-btn-lg { padding: 0.9rem 1.75rem; font-size: 0.95rem; }

  .pgh-hero-stats { grid-template-columns: 1fr 1fr; }
  .pgh-hero-stat-num { font-size: 1.5rem; }

  .pgh-quiz-option { padding: 0.85rem 1rem; font-size: 0.9rem; }

  .pgh-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .pgh-gallery-item { height: 200px; }
  .pgh-gallery-item:nth-child(1),
  .pgh-gallery-item:nth-child(5) { grid-column: 1; grid-row: auto; }
}

/* ===== PRINT ===== */
@media print {
  .pgh-navbar,
  .pgh-cookie-banner,
  .pgh-back-to-top,
  .pgh-scroll-progress { display: none !important; }

  body { font-size: 12pt; }
  h1,h2,h3 { page-break-after: avoid; }
  img { max-width: 100%; }
  .pgh-hero { min-height: auto; }
}

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

/* ===== HIGH CONTRAST ===== */
@media (prefers-color-scheme: dark) {
  /* We keep the light theme but ensure key contrast ratios */
}

/* ===== FOCUS VISIBLE ===== */
:focus-visible {
  outline: 3px solid var(--pgh-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--pgh-primary);
  outline-offset: 3px;
}

/* ===== CONTAINER OVERRIDES ===== */
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }
@media (min-width: 1400px) { .container { max-width: 1320px; } }
