/* ============================================================
   DentaCare Premium — responsive.css
   Mobile-first breakpoints
   ============================================================ */

/* ─── BREAKPOINTS
   xs  < 480px   (small phones)
   sm  < 640px   (phones)
   md  < 768px   (large phones / portrait tablet)
   lg  < 1024px  (tablet / small laptop)
   xl  < 1280px  (laptop)
   ──────────────────────────────────────────────────────────── */

/* ── LG: tablet / small laptop ──────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  /* Navbar */
  .navbar-menu,
  .navbar-cta {
    display: none;
  }

  .navbar-toggle {
    display: flex;
  }

  .nav-mobile {
    display: block;
  }

  /* Hero */
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-block: calc(var(--navbar-height) + 48px) 64px;
  }

  .hero-subtitle {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    display: flex;
    justify-content: center;
  }

  .hero-image {
    max-width: 380px;
  }

  .hero-float-card--left {
    left: -12px;
  }

  .hero-float-card--right {
    right: -12px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .about-image-wrap {
    padding-bottom: 40px;
    padding-right: 40px;
    max-width: 480px;
    margin-inline: auto;
  }

  .about-features {
    align-items: center;
  }

  .about-features li {
    justify-content: center;
  }

  .about-content .btn {
    display: inline-flex;
  }

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

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

  /* Process */
  .process-timeline {
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }

  .process-step {
    flex: 0 0 calc(50% - 12px);
    min-width: 0;
  }

  .process-step-connector {
    display: none;
  }

  /* Gallery */
  .gallery-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-inline: auto;
  }

  /* Scheduling */
  .scheduling-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .scheduling-content {
    text-align: center;
  }

  .scheduling-content .section-title {
    text-align: center;
  }

  .scheduling-benefits li {
    justify-content: center;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .map-placeholder {
    height: 300px;
  }

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

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

/* ── MD: large phones / portrait tablet ─────────────────── */
@media (max-width: 768px) {
  :root {
    --section-padding: 64px;
    --navbar-height: 68px;
  }

  /* Section Header */
  .section-header {
    margin-bottom: 48px;
  }

  .section-title {
    font-size: clamp(1.75rem, 6vw, 2.25rem);
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

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

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 1.875rem;
  }

  .hero-image {
    max-width: 300px;
  }

  .hero-float-card {
    padding: .6rem .875rem;
    min-width: 150px;
    font-size: .875rem;
  }

  .hero-float-card--left { left: -4px; }
  .hero-float-card--right { right: -4px; }

  /* About */
  .about-image-wrap {
    padding-bottom: 32px;
    padding-right: 32px;
  }

  .about-secondary-image {
    width: 170px;
    height: 200px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
  }

  /* Differentials */
  .differentials-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  /* Process */
  .process-step {
    flex: 0 0 100%;
  }

  /* Scheduling Form */
  .scheduling-form-wrap {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Contact */
  .contact-social {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-legal {
    justify-content: center;
  }

  /* Swiper navigation */
  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
}

/* ── SM: phones ─────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --section-padding: 56px;
    --container-px: 18px;
  }

  /* Hero */
  .hero-content {
    padding-block: calc(var(--navbar-height) + 36px) 52px;
  }

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

  .hero-actions .btn {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  .stat-divider {
    width: 60px;
    height: 1px;
  }

  .hero-float-card {
    display: none;
  }

  /* Section headers */
  .section-header {
    margin-bottom: 36px;
  }

  /* About */
  .about-image-wrap {
    padding-bottom: 28px;
    padding-right: 28px;
  }

  .about-secondary-image {
    width: 140px;
    height: 165px;
  }

  .about-badge-award {
    top: 12px;
    right: 0;
    padding: .6rem .875rem;
    font-size: .8125rem;
  }

  /* Service card */
  .service-card {
    padding: 28px 22px;
  }

  /* Team card */
  .team-card-image img {
    height: 260px;
  }

  /* Gallery */
  .gallery-comparison-item img {
    height: 150px;
  }

  /* Testimonials */
  .testimonial-card {
    padding: 28px 22px;
  }

  /* FAQ */
  .faq-question {
    padding: 16px 18px;
    font-size: .9rem;
  }

  .faq-answer {
    padding: 0 18px 16px;
  }

  /* Scheduling */
  .scheduling-form-wrap {
    padding: 24px 16px;
    border-radius: var(--radius-lg);
  }

  .form-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
  }

  /* Contact */
  .contact-card-item {
    flex-direction: column;
    gap: 10px;
  }

  /* WhatsApp + Back to Top */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
    bottom: 20px;
    right: 20px;
  }

  .back-to-top {
    right: 20px;
    bottom: 84px;
  }

  /* Footer */
  .footer-top {
    padding-block: 56px 40px;
  }

  .footer-legal {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* ── XS: small phones ───────────────────────────────────── */
@media (max-width: 400px) {
  :root {
    --container-px: 14px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: .9375rem;
  }

  .btn-lg {
    padding: .8rem 1.5rem;
    font-size: .9375rem;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .scheduling-form-wrap {
    padding: 20px 14px;
  }

  .about-secondary-image {
    width: 120px;
    height: 145px;
  }
}

/* ─── PRINT ─────────────────────────────────────────────── */
@media print {
  .navbar-wrapper,
  .whatsapp-float,
  .back-to-top,
  .hero-particles,
  .hero-float-card,
  .hero-scroll-cta {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .hero-section {
    min-height: auto;
    padding: 40px 0;
    background: white !important;
  }

  .hero-title,
  .hero-subtitle {
    color: #000 !important;
  }

  .section-padding {
    padding-block: 32px;
  }

  .bg-dark-section {
    background: #f5f5f5 !important;
  }

  .bg-dark-section * {
    color: #000 !important;
  }
}

/* ─── ACCESSIBILITY: reduced motion ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  html { scroll-behavior: auto; }

  .hero-image,
  .hero-float-card,
  .whatsapp-float {
    animation: none !important;
  }
}

/* ─── ACCESSIBILITY: high contrast ──────────────────────── */
@media (forced-colors: active) {
  .btn-primary,
  .service-card-icon,
  .process-step-icon,
  .differential-icon {
    forced-color-adjust: none;
  }
}
