/* =========================================================
   RESPONSIVE.CSS — RSIA ANANDA
   Breakpoints: >=1024px Laptop, >=768px Tablet, <768px Mobile
   ========================================================= */

/* ---------- LAPTOP / SMALL DESKTOP (<=1140px) ---------- */
@media (max-width: 1140px) {
  .hero__card--float-1 { left: 0; }
  .hero__card--float-2 { right: 0; }
}

/* ---------- TABLET (<=1024px) ---------- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__mini-stats { justify-content: center; }
  .hero__visual { margin-top: 40px; }

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

  .about__stats { order: -1; }

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

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

  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- TABLET / MOBILE NAV (<=880px) ---------- */
@media (max-width: 880px) {
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .header__nav.is-open {
    max-height: 400px;
  }

  .header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 10px 24px 20px;
  }

  .header__menu li {
    width: 100%;
  }

  .header__link {
    display: block;
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }

  .header__actions .btn--sm {
    display: none;
  }

  .header__toggle.is-active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
  }
  .header__toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  .header__toggle.is-active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
  }
}

/* ---------- MOBILE (<=640px) ---------- */
@media (max-width: 640px) {
  .container { padding-inline: 18px; }

  .hero { padding: 40px 0 70px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__mini-stats { gap: 22px; flex-wrap: wrap; }

  .hero__card { display: none; }
  .hero__illustration { max-width: 280px; }

  .services, .doctors, .about, .contact { padding: 64px 0; }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stat-card { padding: 22px 14px; }
  .stat-card strong { font-size: 1.5rem; }

  .schedule-table th, .schedule-table td { padding: 12px 16px; }

  .contact__form { padding: 26px; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; text-align: left; }
}

/* ---------- SMALL MOBILE (<=380px) ---------- */
@media (max-width: 380px) {
  .hero__mini-stats { gap: 16px; }
  .stats-grid { grid-template-columns: 1fr; }
}
