/* ═══════════════════════════════════════════════════════════
   mobile.css — overrides applied at ≤768px only
   Loaded conditionally via <link media="(max-width: 768px)">
   No @media wrapper needed inside this file.
   Edit freely without affecting desktop.
   ═══════════════════════════════════════════════════════════ */

/* Layout paddings — compact for narrow screens */
.l-nav { padding: .9rem 1.2rem; }
.l-topics { padding: 1.2rem; }
.hd-r1 { padding: .65rem .9rem; }
.app-strip { padding: 0 .9rem .55rem; }
.app-main { padding: 1rem .9rem 5rem; }
.sec-wrap { padding: 1rem .9rem 4.5rem; }
.sec-card { padding: .9rem; }
.dt-wrap { padding: 1.2rem .9rem 5rem; }

/* Section nav strip becomes horizontally scrollable */
.main-sec-strip {
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: .15rem;
}
.main-sec-strip::-webkit-scrollbar { display: none; }

/* Hide desktop-only header counter */
.hd-cnt { display: none; }

/* Books: stack title and toggle vertically */
.book-top { flex-direction: column; align-items: flex-start; }
.book-toggle { width: 100%; }

/* Cards: single column on mobile */
.fc-wrap.gv { grid-template-columns: 1fr; }

/* Related fatwas: single column */
.rel-grid { grid-template-columns: 1fr; }

/* Smaller typography for narrow screens */
.dt-q { font-size: 1.1rem; }
.rm-q { font-size: 1.2rem; }
.rm-a { font-size: 1.05rem; }

/* Floating search button visible only on mobile */
.fab-srch { display: flex; }

/* ────────────────────────────────────────────────────────────
   HERO — mobile (image on top portrait, content stacked below)
   ──────────────────────────────────────────────────────────── */
.hero {
  min-height: auto;
  display: block;
}

/* Image is the natural top element of the hero */
.hero-image {
  position: relative;
  height: 56vh;
  min-height: 360px;
  max-height: 560px;
}
.hero-image img {
  object-position: center 20%;
}

/* Overlay only fades the bottom into the content background for smooth blend */
.hero-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    rgba(9, 9, 9, 0.5) 80%,
    var(--d1) 100%
  );
}
[data-theme=light] .hero-overlay {
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 55%,
    rgba(245, 240, 232, 0.5) 80%,
    var(--d1) 100%
  );
}

.hero-content {
  position: relative;
  padding: 1.4rem 1.2rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Mobile typography */
.hero-badge { margin-bottom: 1rem; font-size: .65rem; padding: .35rem .85rem; }
.hero-title { margin-bottom: 1rem; font-size: clamp(1.8rem, 8vw, 2.6rem); }
.hero-sub { margin-bottom: 1.1rem; font-size: .88rem; line-height: 1.75; }
.hero-stats { margin-bottom: 1.3rem; font-size: .76rem; gap: .4rem; }
.hero-stats strong { font-size: .92rem; }
.hero-cta { margin-bottom: 1.2rem; flex-direction: column; align-items: stretch; }
.hero-cta .cbtn { justify-content: center; padding: .85rem 1.2rem; font-size: .9rem; }
.hero-disclaimer { font-size: .68rem; text-align: center; }

/* ────────────────────────────────────────────────────────────
   TRUST STRIP — vertical stack on mobile
   ──────────────────────────────────────────────────────────── */
.hero-strip { padding: 1.4rem 1rem 1.6rem; }
.strip-tagline { font-size: .92rem; margin-bottom: 1rem; }
.strip-grid { grid-template-columns: 1fr; gap: .7rem; }
.strip-card { padding: 1rem 1.1rem; }
.strip-icon { width: 36px; height: 36px; margin-bottom: .6rem; }
.strip-card h3 { font-size: .98rem; margin-bottom: .25rem; }
.strip-card p { font-size: .76rem; }

.fotd-section { padding: 1.5rem 1rem .8rem; }
