/* ============================================================
   MOBILE REFINEMENTS
   Tighter, intentional small-screen layout for inner pages
   (events, tourism, religious, umrah).  Loaded after site.css.
   ============================================================ */

/* SplitIntro — was inline 2-col without a breakpoint, now responsive */
.split-intro {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 960px) {
  .split-intro {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ------------------------------------------------------------
   < 720px — phone refinements
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  /* Section rhythm — tighter vertical breathing */
  .sec { padding: 56px 0; }
  .sec-tight { padding: 40px 0; }
  .wrap { padding: 0 18px; }

  /* SectionTitle — pull copy closer to grids */
  .section-title { margin: 0 auto 28px; }
  .section-title h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.18; }
  .section-title .lede { font-size: 14.5px; line-height: 1.7; }

  /* h-section in SplitIntro */
  .split-intro .h-section { font-size: clamp(26px, 7vw, 34px); line-height: 1.18; margin: 8px 0 10px; }
  .split-intro .lede { font-size: 14.5px; line-height: 1.7; }

  /* ----- Type cards: 2 columns, tighter cards ----- */
  .type-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .type-card { padding: 16px 14px; border-radius: 14px; }
  .type-card .ic { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 8px; }
  .type-card .ic i { width: 18px; height: 18px; }
  .type-card h3 { font-size: 14.5px; margin: 0 0 4px; line-height: 1.3; }
  .type-card p { font-size: 12.5px; line-height: 1.55; }

  /* ----- Offer rows: compact ----- */
  .offer-grid { gap: 10px; }
  .offer { padding: 14px; gap: 12px; border-radius: 14px; }
  .offer .n { flex: 0 0 30px; width: 30px; height: 30px; font-size: 13px; }
  .offer .ttl { font-size: 14.5px; margin-bottom: 1px; }
  .offer .desc { font-size: 12.5px; line-height: 1.6; }

  /* ----- Chip list: tight ----- */
  .chip-list { gap: 8px; }
  .chip-list .chip { padding: 8px 12px; font-size: 13px; }

  /* ----- CTA band: tighter, full-width buttons ----- */
  .cta-band { padding: 32px 22px; gap: 20px; border-radius: 20px; }
  .cta-band h2 { font-size: clamp(24px, 7vw, 30px); margin-bottom: 10px; }
  .cta-band p { font-size: 14.5px; line-height: 1.7; }
  .cta-band .actions { gap: 8px; justify-content: stretch !important; }
  .cta-band .actions .btn { flex: 1 1 100%; justify-content: center; }

  /* ----- Buttons: medium on mobile ----- */
  .btn-lg { padding: 13px 20px; font-size: 14.5px; }

  /* ----- About: Vision/Mission cards ----- */
  .vm-grid { gap: 8px; grid-template-columns: 1fr 1fr; }
  .vm { padding: 14px 12px; border-radius: 14px; }
  .vm .ic { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 8px; }
  .vm .ic i { width: 16px; height: 16px; }
  .vm h3 { font-size: 13.5px; margin: 0 0 4px; line-height: 1.25; }
  .vm p { font-size: 11.5px; line-height: 1.6; }

  /* ----- About: Values grid — 2 cols on phones ----- */
  .values-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 8px; }
  .value { padding: 12px 11px; border-radius: 12px; }
  .value .num { font-size: 9.5px; margin-bottom: 4px; letter-spacing: 0.16em; }
  .value h3 { font-size: 13px; margin: 0 0 3px; line-height: 1.25; }
  .value p { font-size: 11.5px; line-height: 1.55; }

  /* ----- Contact: methods heading ----- */
  .contact-methods__heading { font-size: 22px; line-height: 1.2; margin: 6px 0 14px; }

  /* ----- Contact: form card ----- */
  .contact-grid { gap: 20px; }
  .form-card { padding: 18px 16px !important; border-radius: 16px; }
  .form-card .head { margin-bottom: 14px; }
  .form-card h2 { font-size: 20px !important; margin: 6px 0 4px !important; }
  .form-card .head p { font-size: 12.5px; }
  .field { margin-bottom: 10px; }
  .field label { font-size: 11.5px; margin-bottom: 4px; }
  .field input, .field select, .field textarea {
    padding: 10px 12px;
    font-size: 13.5px;
    border-radius: 10px;
  }
  .field textarea { min-height: 90px; }
  .field-actions { gap: 8px; margin-top: 4px; }
  .field-actions .submit { padding: 12px 22px; font-size: 13.5px; }
  .field-actions .wa-alt { padding: 11px 18px; font-size: 13px; }

  /* ----- Contact: methods list ----- */
  .methods { gap: 8px; }
  .method { padding: 12px 14px; gap: 12px; border-radius: 12px; }
  .method .ic { flex: 0 0 34px; width: 34px; height: 34px; }
  .method .ic i { width: 16px; height: 16px; }
  .method .ttl { font-size: 13.5px; }
  .method .v { font-size: 12px; }

  /* ----- Contact: info card ----- */
  .info-card { padding: 16px 14px; border-radius: 14px; margin-top: 12px; }
  .info-card h3 { font-size: 15px; margin: 0 0 6px; }
  .info-card p { font-size: 12.5px; line-height: 1.7; }

  /* ----- Gallery sticky filter bar (.gallery-filters / .pill) ----- */
  .gallery-filters { padding: 8px 0; top: 64px; }
  .filter-row { padding: 0 18px; gap: 6px; }
  .pill {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
    border-width: 1px;
  }
  .pill .pc { font-size: 10px; }

  /* ----- Feature list (Differentiators) ----- */
  .feature-list { gap: 8px; }
  .feature-list li { padding: 11px 12px; gap: 10px; border-radius: 12px; font-size: 13px; }
  .feature-list li .tick { flex: 0 0 22px; width: 22px; height: 22px; }
  .feature-list li .tick i { width: 13px; height: 13px; }
  .feature-list li b { font-size: 13.5px; }
  .feature-list li small { font-size: 11.5px; line-height: 1.5; }
}

/* ------------------------------------------------------------
   < 560px — small phone: hero gets the heaviest cleanup
   ------------------------------------------------------------ */
@media (max-width: 560px) {
  .page-hero { padding: 96px 0 48px; }
  .page-hero .ph-crumbs { font-size: 11px; margin-bottom: 10px; }
  .page-hero .ph-grid { gap: 24px; margin-top: 14px; }

  .page-hero .ph-eyebrow { font-size: 11.5px; letter-spacing: 0.14em; }
  .page-hero .ph-title { font-size: clamp(30px, 9vw, 38px); line-height: 1.1; margin: 12px 0 14px; max-width: 100%; }
  .page-hero .ph-title em::after { height: 8px; bottom: 4px; }

  .page-hero .ph-lede {
    font-size: 14.5px;
    line-height: 1.75;
    margin: 0 0 18px;
    max-width: 100%;
  }

  /* Stats — compact pills, 3 in a row */
  .page-hero .ph-stats { gap: 6px; margin: 0 0 18px; }
  .page-hero .ph-stat { padding: 7px 11px; gap: 8px; flex: 1 1 auto; }
  .page-hero .ph-stat .n { font-size: 15px; }
  .page-hero .ph-stat .l { font-size: 11px; }

  /* CTAs stack full-width for thumb reach */
  .page-hero .ph-cta { gap: 8px; }
  .page-hero .ph-cta .btn { flex: 1 1 100%; justify-content: center; padding: 13px 18px; font-size: 14.5px; }

  /* Stage — shorter, less letterboxing on phones */
  .page-hero .ph-stage { aspect-ratio: 4/5; border-radius: 18px; }
  .page-hero .ph-stamp { top: 14px; right: 14px; font-size: 10.5px; padding: 6px 10px; }
  .page-hero .ph-floor { right: 16px; left: 16px; bottom: 16px; }
  .page-hero .ph-floor .eb { font-size: 9.5px; letter-spacing: 0.18em; }
  .page-hero .ph-floor .ttl { font-size: 20px; }

  /* Decorative ring smaller and inside the corner so it never clips off-screen */
  .page-hero .ph-ring { width: 72px; height: 72px; top: -10px; }
  [dir="rtl"] .page-hero .ph-ring { left: -10px; }

  /* Orbs lighter so they don't crush the type */
  .page-hero .ph-orb { filter: blur(60px); opacity: 0.42; }
  .page-hero .ph-orb.purple { width: 240px; height: 240px; }
  .page-hero .ph-orb.green { width: 240px; height: 240px; }
}

/* ------------------------------------------------------------
   Testimonials — uniform card style inside the mobile slider.
   The featured/green/sand variants on desktop intentionally differ;
   on mobile (≤720px) we force every card to share the same shape,
   padding, typography, and chrome so the carousel reads consistently.
   ------------------------------------------------------------ */
@media (max-width: 720px) {
  .t-swiper .t-card,
  .t-swiper .t-card.featured,
  .t-swiper .t-card.green,
  .t-swiper .t-card.sand {
    background: #fff;
    color: var(--by-ink);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 22px 20px 18px;
    box-shadow:
      0 28px 56px -22px rgba(21, 21, 21, 0.45),
      0 8px 22px -10px rgba(21, 21, 21, 0.18);
  }

  /* Strip the featured card's dark gradient wash. */
  .t-swiper .t-card.featured::before { display: none; }

  /* Quote — uniform font + size for every card. */
  .t-swiper .t-card .quote,
  .t-swiper .t-card.featured .quote {
    font-family: var(--font-ar-sans);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.75;
    color: var(--by-ink);
    margin: 10px 0 14px;
    letter-spacing: 0;
  }

  /* Quote mark — single size + light purple for every card. */
  .t-swiper .t-card .qmark,
  .t-swiper .t-card.featured .qmark,
  .t-swiper .t-card.green .qmark,
  .t-swiper .t-card.sand .qmark {
    font-size: 56px;
    top: 6px;
    left: 14px;
    color: var(--purple-100);
  }

  /* Stars — uniform color & size. */
  .t-swiper .t-card .stars,
  .t-swiper .t-card.featured .stars,
  .t-swiper .t-card.green .stars {
    color: var(--by-purple);
    font-size: 13px;
    margin-bottom: 12px;
    letter-spacing: 1px;
  }

  /* Stamp — same dark ink chip for every card. */
  .t-swiper .t-card .stamp,
  .t-swiper .t-card.featured .stamp,
  .t-swiper .t-card.green .stamp,
  .t-swiper .t-card.sand .stamp {
    background: var(--by-ink);
    color: #fff;
    font-size: 10.5px;
    padding: 5px 10px;
    transform: rotate(-2deg);
  }
  .t-swiper .t-card .stamp .d,
  .t-swiper .t-card.featured .stamp .d,
  .t-swiper .t-card.green .stamp .d,
  .t-swiper .t-card.sand .stamp .d {
    background: var(--by-purple-hi);
  }

  /* Author block — uniform border, avatar, and typography. */
  .t-swiper .t-card .author,
  .t-swiper .t-card.featured .author {
    border-top: 1px dashed var(--border-strong);
    padding-top: 12px;
    gap: 10px;
  }
  .t-swiper .t-card .avatar,
  .t-swiper .t-card.featured .avatar,
  .t-swiper .t-card.green .avatar,
  .t-swiper .t-card.sand .avatar {
    width: 36px;
    height: 36px;
    font-size: 15px;
    background: linear-gradient(135deg, var(--by-purple), var(--purple-700));
    color: #fff;
  }
  .t-swiper .t-card .author .name,
  .t-swiper .t-card.featured .author .name {
    color: var(--by-ink);
    font-size: 14px;
  }
  .t-swiper .t-card .author .sub,
  .t-swiper .t-card.featured .author .sub {
    color: var(--fg-subtle);
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }

  /* Trip strip — uniform light pill (only the featured card has one). */
  .t-swiper .t-card.featured .trip-strip {
    background: var(--purple-100);
    color: var(--by-purple);
    backdrop-filter: none;
    box-shadow: none;
    border: 1px solid var(--border);
    font-size: 11.5px;
    padding: 6px 10px;
    margin: 0 0 12px;
    align-self: flex-start;
  }
  .t-swiper .t-card.featured .trip-strip i { color: var(--by-purple); }
}

/* ------------------------------------------------------------
   < 380px — very small phones (older devices, accessibility zoom)
   ------------------------------------------------------------ */
@media (max-width: 380px) {
  .type-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr !important; }
  .vm-grid { grid-template-columns: 1fr; }
  .page-hero .ph-stats { flex-direction: column; align-items: stretch; }
  .page-hero .ph-stat { justify-content: space-between; }
}
