/* ============================================
   SUNDAS FOUNDATION — Responsive Breakpoints
   ============================================ */

/* ---- Large phones (576px+) ---- */
@media (max-width: 1200px) {
  :root {
    --fs-5xl: 2.75rem;
    --fs-4xl: 2.25rem;
  }
}

/* ---- Desktop (below 1024px) ---- */
@media (max-width: 1024px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
  }

  .section {
    padding-top: var(--space-3xl);
    padding-bottom: var(--space-3xl);
  }

  /* Navigation: switch to hamburger */
  .nav-bar {
    display: none;
  }

  .hamburger {
    display: flex;
  }

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

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

  /* Split layouts stack */
  .split,
  .split--60-40,
  .split--40-60 {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Profile */
  .profile {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .profile__image-wrap {
    max-width: 350px;
  }

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

  /* Stats bar */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__item:nth-child(2)::after {
    display: none;
  }

  /* CTA Banner */
  .cta-banner__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  /* Timeline */
  .timeline::before {
    left: 14px;
  }

  .timeline__item {
    width: 100%;
    left: 0 !important;
    padding-left: var(--space-3xl) !important;
    padding-right: 0 !important;
    text-align: left !important;
  }

  .timeline__dot {
    left: 5px !important;
    right: auto !important;
  }

  /* Gallery grid */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials - single column */
  .testimonials__slide {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Hero nav */
  .hero__nav {
    width: 40px;
    height: 40px;
  }

  .hero__nav--prev { left: 10px; }
  .hero__nav--next { right: 10px; }
}

/* ---- Tablets (below 768px) ---- */
@media (max-width: 768px) {
  :root {
    --fs-5xl: 2rem;
    --fs-4xl: 1.75rem;
    --fs-3xl: 1.5rem;
  }

  .section {
    padding-top: var(--space-2xl);
    padding-bottom: var(--space-2xl);
  }

  .section-title {
    margin-bottom: var(--space-xl);
  }

  .section-title__heading {
    font-size: var(--fs-3xl);
  }

  /* Grid collapses */
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  /* Form rows stack */
  .form-row {
    grid-template-columns: 1fr;
  }

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

  /* Page banner */
  .page-banner {
    padding: 80px 0 40px;
  }

  .page-banner__title {
    font-size: var(--fs-3xl);
  }

  /* Hero */
  .hero {
    min-height: 400px;
    height: 70vh;
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero__text {
    font-size: var(--fs-base);
  }

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

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

  /* CTA form stacks */
  .cta-banner__form {
    flex-direction: column;
  }

  /* Medical page sidebar */
  .medical-layout {
    grid-template-columns: 1fr;
  }

  .medical-sidebar {
    position: static;
    order: -1;
  }

  /* Stats */
  .stats-bar__number {
    font-size: var(--fs-3xl);
  }

  /* Top bar */
  .top-bar__location {
    display: none;
  }

  .top-bar__social {
    margin: 0 auto;
  }

  /* Header */
  .main-header__phone {
    display: none;
  }

  .main-header__logo img {
    height: 48px;
  }

  .main-header__org-name {
    font-size: var(--fs-md);
  }
}

/* ---- Small phones (below 576px) ---- */
@media (max-width: 576px) {
  :root {
    --fs-5xl: 1.75rem;
    --fs-4xl: 1.5rem;
    --container-pad: 16px;
  }

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

  .main-header__org-name {
    display: none;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .stats-bar__item::after {
    display: none;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
  }

  .hero {
    min-height: 350px;
    height: 60vh;
  }

  .hero__subtitle {
    font-size: var(--fs-xs);
  }

  /* Lightbox */
  .lightbox__nav {
    width: 36px;
    height: 36px;
  }

  .lightbox__nav--prev { left: 10px; }
  .lightbox__nav--next { right: 10px; }

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

  /* Number boxes */
  .number-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  /* Team cards */
  .team-card__photo {
    width: 100px;
    height: 100px;
  }
}
