/* ============================================
   Adorable Pet Grooming - Responsive Styles
   ============================================ */

/* ============================================
   TABLET: max-width 1199px
   ============================================ */
@media (max-width: 1199px) {
  .hero-float-card.card-1 { right: -2%; }
  .hero-float-card.card-2 { left: -2%; }
  .hero-float-card.card-3 { right: -4%; }

  .timeline-line { display: none; }
  .timeline-content { width: 100% !important; margin: 0 0 0 64px !important; }
  .timeline-dot { left: 24px; transform: none; }

  .cta-banner { padding: 48px 36px; }
}

/* ============================================
   TABLET: max-width 991px
   ============================================ */
@media (max-width: 991px) {
  .section-pad { padding: 60px 0; }
  .section-pad-lg { padding: 80px 0; }

  .hero-section { min-height: auto; padding: 100px 0 60px; }
  .hero-image-wrap { margin-top: 40px; }
  .hero-float-card { display: none; }
  .hero-image-main { max-height: 400px; }

  .hero-stats { gap: 20px; }

  .quiz-options { grid-template-columns: 1fr; }
  .quiz-wrap { padding: 32px 24px; }

  .calc-wrap { padding: 28px 24px; }
  .checklist-wrap { padding: 28px 24px; }

  .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

  .footer-apg .col-lg-3:first-child { margin-bottom: 32px; }

  .testimonial-feature { padding: 36px 28px; }

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

  .navbar-collapse {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    padding: 16px;
    margin-top: 12px;
  }
  .nav-cta { display: inline-flex; margin-top: 8px; }
}

/* ============================================
   MOBILE: max-width 767px
   ============================================ */
@media (max-width: 767px) {
  .section-pad { padding: 48px 0; }
  .section-pad-lg { padding: 64px 0; }

  .hero-title { font-size: 2.2rem; }
  .hero-description { font-size: 1rem; }
  .hero-actions { gap: 10px; }
  .hero-stats { gap: 16px; }
  .hero-stat-num { font-size: 1.6rem; }
  .hero-image-main { aspect-ratio: 16/9; max-height: 280px; border-radius: 20px; }

  .section-title { font-size: 1.6rem; }
  .page-hero h1 { font-size: 1.8rem; }

  .btn-primary-apg,
  .btn-outline-apg,
  .btn-accent-apg,
  .btn-white-apg {
    padding: 12px 24px;
    font-size: 0.85rem;
    width: 100%;
    justify-content: center;
  }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery-filters { gap: 6px; }
  .gallery-filter-btn { padding: 6px 14px; font-size: 0.8rem; }

  .quiz-wrap { padding: 24px 16px; }
  .quiz-q { font-size: 1.1rem; }
  .quiz-options { grid-template-columns: 1fr; gap: 8px; }
  .quiz-option { padding: 12px 14px; }

  .calc-wrap { padding: 24px 16px; }
  .checklist-wrap { padding: 24px 16px; }

  .cta-banner { padding: 36px 24px; border-radius: 20px; }
  .cta-banner h2 { font-size: 1.6rem; }

  .timeline-content { margin-left: 52px !important; padding: 16px; }
  .timeline-dot { width: 36px; height: 36px; font-size: 0.85rem; top: 16px; }

  .counter-wrap { padding: 20px 16px; }
  .counter-num { font-size: 2.2rem; }

  .testimonial-feature { padding: 28px 20px; }
  .testimonial-text { font-size: 1rem; }

  .review-card { padding: 20px; }

  .team-card .team-info { padding: 18px; }

  .service-card { padding: 24px; }

  .faq-question { padding: 16px 18px; font-size: 0.9rem; }
  .faq-answer p { font-size: 0.875rem; }

  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; flex-direction: column; }
  .cookie-icon { display: none; }

  .footer-apg { padding: 48px 0 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }

  .article-hero { height: 240px; border-radius: 16px; }
  .map-embed { height: 280px; }

  .back-to-top { bottom: 20px; right: 16px; width: 40px; height: 40px; }

  .hero-badge { font-size: 0.75rem; padding: 5px 12px; }

  .breadcrumb-apg ol { font-size: 0.75rem; }

  .about-timeline-item { padding-left: 48px; }
  .about-timeline-dot { left: 10px; }
}

/* ============================================
   SMALL MOBILE: max-width 480px
   ============================================ */
@media (max-width: 480px) {
  .hero-title { font-size: 1.9rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { display: none; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .testimonial-feature { padding: 20px; }

  .quiz-nav { flex-direction: column-reverse; }
  .quiz-nav .btn-primary-apg,
  .quiz-nav .btn-outline-apg { width: 100%; justify-content: center; }

  .slider-arrows { display: none; }

  .form-group-apg.col-md-6 { width: 100%; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .navbar-apg,
  .cookie-consent,
  .back-to-top,
  .hero-float-card,
  .cta-banner { display: none !important; }

  body { background: white; color: black; }

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

  .page-hero { padding: 20px 0; background: white; }
}

/* ============================================
   HIGH CONTRAST
   ============================================ */
@media (prefers-contrast: high) {
  :root {
    --primary: #1a5c34;
    --text: #000000;
    --text-light: #333333;
    --border: #666666;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-left,
  .reveal-right { opacity: 1; transform: none; }
  .hero-float-card { animation: none; }
  .float-paw { animation: none; }
}

/* ============================================
   LANDSCAPE PHONE
   ============================================ */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section { min-height: auto; padding: 80px 0 40px; }
  .hero-image-wrap { display: none; }
}

/* ============================================
   LARGE SCREENS
   ============================================ */
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
  .hero-title { font-size: 5rem; }
}

/* ============================================
   DARK MODE (Optional Support)
   ============================================ */
@media (prefers-color-scheme: dark) {
  /* Intentionally not applying dark mode to maintain brand consistency */
  /* Users can override by adding class="dark-mode" to body */
}

/* About page timeline */
.about-timeline { position: relative; padding-left: 32px; }
.about-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.about-timeline-item {
  position: relative;
  padding-left: 32px;
  padding-bottom: 36px;
}
.about-timeline-item:last-child { padding-bottom: 0; }
.about-timeline-dot {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 14px;
  height: 14px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 3px rgba(44,110,73,0.2);
}
.about-timeline-year {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.about-timeline-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.about-timeline-desc { font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-light); line-height: 1.6; }

/* Value cards */
.value-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  transition: var(--transition);
  height: 100%;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, rgba(44,110,73,0.1), rgba(76,149,108,0.15));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
  color: var(--primary);
  transition: var(--transition);
}
.value-card:hover .value-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
}
.value-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.value-card p { font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-light); line-height: 1.6; margin: 0; }

/* Services page */
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 32px;
}
.service-detail-img { aspect-ratio: 16/7; overflow: hidden; }
.service-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.service-detail-body { padding: 40px; }
.service-detail-body h2 { font-size: 1.75rem; margin-bottom: 16px; }
.service-detail-body p { font-family: var(--font-ui); font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 16px; }
.service-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 24px 0; }
.service-feature-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: 0.875rem; color: var(--text);
}
.service-feature-item i { color: var(--primary); font-size: 0.9rem; flex-shrink: 0; }

/* Pricing table */
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}
.pricing-card.featured {
  border-color: var(--primary);
  background: linear-gradient(160deg, rgba(44,110,73,0.04) 0%, white 100%);
  box-shadow: var(--shadow-md);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-name { font-family: var(--font-ui); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--secondary); margin-bottom: 8px; }
.pricing-price { font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--primary); }
.pricing-price sup { font-size: 1rem; vertical-align: top; margin-top: 8px; display: inline-block; }
.pricing-desc { font-family: var(--font-ui); font-size: 0.85rem; color: var(--text-light); margin: 12px 0 24px; }
.pricing-features { text-align: left; list-style: none; padding: 0; margin-bottom: 28px; }
.pricing-features li { font-family: var(--font-ui); font-size: 0.875rem; color: var(--text-light); padding: 6px 0; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li i { color: var(--primary); font-size: 0.8rem; flex-shrink: 0; }

/* Hours table */
.hours-table { width: 100%; }
.hours-table tr { border-bottom: 1px solid var(--border); }
.hours-table tr:last-child { border-bottom: none; }
.hours-table td { font-family: var(--font-ui); font-size: 0.875rem; padding: 10px 0; }
.hours-table td:last-child { text-align: right; color: var(--primary); font-weight: 600; }
.hours-closed { color: var(--text-muted) !important; font-style: italic; }

/* Captcha placeholder */
.captcha-wrap {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  color: var(--text-light);
}
.captcha-checkbox-custom {
  width: 24px; height: 24px;
  border: 2px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.captcha-checkbox-custom.checked {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}
