/* ==========================================================================
   Zainab Memorial Welfare Society — responsive rules
   Breakpoints: 1200 / 992 / 768 / 576
   ========================================================================== */

/* ---------- <= 1200px ---------- */
@media (max-width: 1200px) {
  :root { --section-y: 90px; --gap: 26px; }

  h1 { font-size: 46px; }
  h2 { font-size: 35px; }
  .hero h1,
  .hero .hero-title { font-size: 44px; }

  .main-nav a { padding: 12px 11px; font-size: 15px; }
  .main-nav a::after { left: 11px; right: 11px; }

  .brand__name { font-size: 17px; }
  .brand img, .footer__brand img { width: 54px; height: 54px; }

  .about__layout, .split { gap: 46px; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.1fr 1.2fr; gap: 36px; }
  .newsletter { padding: 48px 44px; gap: 34px; }
}

/* ---------- <= 1100px : nav drawer ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header__inner { min-height: 80px; }
}

/* ---------- <= 992px ---------- */
@media (max-width: 992px) {
  :root { --section-y: 74px; }

  h1 { font-size: 38px; }
  h2 { font-size: 30px; }
  .hero h1,
  .hero .hero-title { font-size: 36px; }
  h3 { font-size: 23px; }

  /* Nav switches to drawer */
  .main-nav { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .header__inner { min-height: 78px; }

  .topbar__inner { justify-content: center; text-align: center; }
  .topbar__social { display: none; }

  .hero__viewport, .hero__inner { min-height: 540px; }
  .hero__inner { padding-top: 96px; padding-bottom: 96px; }
  .hero__content { max-width: 100%; }
  .hero p { font-size: 16.5px; }
  .hero__arrow { display: none; }
  .hero__dots { bottom: 34px; }

  .quick-actions { margin-top: 54px; }
  .quick-actions__grid { grid-template-columns: repeat(2, 1fr); }
  .quick-action { border-bottom: 1px solid var(--line-soft); }
  .quick-action:nth-child(2n) { border-right: 0; }

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

  .about__layout, .split, .video-band__inner, .detail-layout, .donate-layout, .newsletter {
    grid-template-columns: 1fr;
  }
  .split--reverse .split__figure { order: 0; }
  .split__figure::before { display: none; }
  .about__inset { width: 168px; right: -12px; bottom: -20px; }
  .about__badge { left: -12px; }

  .video-band__inner { padding-top: 84px; padding-bottom: 84px; text-align: left; }
  .video-play { justify-self: start; width: 92px; height: 92px; font-size: 24px; }

  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter:nth-child(2n) { border-right: 0; }
  .counter { border-bottom: 1px solid var(--line); }
  .counter:nth-last-child(-n+2) { border-bottom: 0; }
  .counter__num { font-size: 38px; }

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

  .footer__grid { grid-template-columns: repeat(2, 1fr); gap: 40px; padding-bottom: 54px; }
  .site-footer { padding-top: 70px; }

  .page-head__inner { padding-top: 84px; padding-bottom: 74px; }
  .page-head h1 { font-size: 36px; }

  .detail-layout { gap: 46px; }
  .donate-box { padding: 34px 28px; }
  .pay-tiles { grid-template-columns: repeat(3, 1fr); }
  .pay-panel__grid { grid-template-columns: 1fr; }
  .pay-qr { max-width: 260px; margin: 0 auto; }
  .sec-head--split { flex-direction: column; align-items: flex-start; gap: 22px; }
}

/* ---------- <= 768px ---------- */
@media (max-width: 768px) {
  :root { --section-y: 62px; --gap: 22px; }

  body { font-size: 15.5px; line-height: 1.8; }

  h1 { font-size: 27px; }
  h2 { font-size: 23px; }
  .hero h1,
  .hero .hero-title { font-size: 29px; }
  h3 { font-size: 19.5px; }
  h4 { font-size: 17.5px; }

  /* In par class+element specificity hai, is liye alag se chhota karna parta hai */
  .page-head h1 { font-size: 26px; }
  .newsletter h2 { font-size: 23px; }
  .article-body h2 { font-size: 22px; margin-top: 30px; }
  .article-body h3 { font-size: 19px; margin-top: 26px; }
  .sec-head p { font-size: 15.5px; }

  .service-card h3,
  .cause-card__body h3,
  .post-card__body h3,
  .quick-action h3,
  .team-card h3 { font-size: 18.5px; }
  .event-card__body h3 { font-size: 19px; }
  .video-card__body h3 { font-size: 18px; }

  .container { padding: 0 18px; }

  .topbar { display: none; }

  /* Lamba brand name burger ko bahar dhakel deta tha */
  .brand { flex: 1 1 auto; min-width: 0; gap: 10px; }
  .brand__text { min-width: 0; }
  .brand__name {
    font-size: 15.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header__actions { flex: none; }

  .hero__viewport, .hero__inner { min-height: 480px; }
  .hero__inner { padding-top: 78px; padding-bottom: 78px; }
  .hero__buttons .btn { padding: 15px 24px; font-size: 14px; }

  .quick-actions__grid { grid-template-columns: 1fr; }
  .quick-action { border-right: 0; }
  .quick-action:last-child { border-bottom: 0; }

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

  .event-card { grid-template-columns: 1fr; }
  .event-card__media img { min-height: 200px; }
  .event-card__body { padding: 26px 22px; }

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

  .cta-band__inner { padding-top: 70px; padding-bottom: 70px; }
  .cta-band h2 { max-width: none; }

  .form-grid { grid-template-columns: 1fr; }
  .amount-grid { grid-template-columns: repeat(2, 1fr); }
  .pay-tiles { grid-template-columns: repeat(2, 1fr); }
  .pay-panel { padding: 22px 18px 20px; }

  .newsletter { padding: 38px 26px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__bottom ul { justify-content: center; }

  .sec-head { margin-bottom: 40px; }
  .article-foot { flex-direction: column; align-items: flex-start; }
  .map-embed iframe { height: 320px; }
  .to-top { right: 18px; bottom: 18px; width: 44px; height: 44px; }
}

/* ---------- <= 576px ---------- */
@media (max-width: 576px) {
  h1 { font-size: 24px; }
  h2 { font-size: 21px; }
  .hero h1,
  .hero .hero-title { font-size: 25px; }
  .page-head h1 { font-size: 23px; }
  .article-body h2 { font-size: 20px; }
  .page-head__inner { padding-top: 62px; padding-bottom: 54px; }

  .brand__tag { display: none; }
  .header__actions .btn { display: none; }

  .hero__buttons { flex-direction: column; align-items: flex-start; }
  .hero__buttons .btn { width: 100%; justify-content: center; }

  .counters { grid-template-columns: 1fr; }
  .counter { border-right: 0; }
  .counter:last-child { border-bottom: 0; }

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

  .service-card, .contact-card, .aside-card { padding: 30px 22px; }
  .widget { padding: 26px 20px; }
  .cause-card__body, .post-card__body { padding: 24px 20px 26px; }
}
