/* MominHub's enamel and brass showcase. Typography comes from the site theme. */
#home {
  --brass: #c6a56a;
  --rim: rgb(200 170 107 / 42%);
  --stage-glow: rgb(48 138 111 / 34%);
  background: radial-gradient(ellipse at 82% 42%, var(--stage-glow), transparent 54%),
    linear-gradient(115deg, #071b18, #0b2b25 62%, #102e27) !important;
  isolation: isolate;
  overflow: hidden;
  border-block-end: 1px solid var(--rim);
}
html[data-theme="light"] #home {
  --stage-glow: rgb(104 167 139 / 28%);
  background: radial-gradient(ellipse at 82% 42%, var(--stage-glow), transparent 58%),
    linear-gradient(115deg, #fffdf6, #f0f4ea 63%, #dde8dc) !important;
}
#home .hero-pattern-overlay {
  background-image: repeating-linear-gradient(45deg, transparent 0 31px, var(--brass) 31px 32px),
    repeating-linear-gradient(-45deg, transparent 0 31px, var(--brass) 31px 32px);
  background-size: auto;
  opacity: .09;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
#home .hero-ambient-glow { display: none; }
#home .hero-pill-badge {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding-inline: 0 !important;
}
#home .pulsing-dot {
  width: 15px;
  height: 15px;
  background: var(--brass);
  clip-path: polygon(50% 0,65% 15%,85% 15%,85% 35%,100% 50%,85% 65%,85% 85%,65% 85%,50% 100%,35% 85%,15% 85%,15% 65%,0 50%,15% 35%,15% 15%,35% 15%);
  animation: none;
  border-radius: 0;
}
#home .hero-lead-grand { max-inline-size: 54ch; }
#home .hero-actions-row { margin-block: 1.25rem 1.75rem; }
#home .visual-stage-container {
  isolation: isolate;
  padding-block: clamp(60px, 6vw, 90px) 12px;
  height: auto !important;
}
#home .visual-stage-container::before {
  content: "";
  position: absolute;
  inset: 0 -6% 55px;
  background: url("images/mihrab-stage.svg") center / 100% 100% no-repeat;
  filter: drop-shadow(0 16px 12px rgb(1 23 18 / 32%));
  pointer-events: none;
  z-index: -1;
}
#home .stage-backlight { display: none; }
#home #heroPhoneDevice {
  width: min(58%, 255px) !important;
  height: auto !important;
  aspect-ratio: 1 / 2.04;
  transform: rotateY(-10deg) rotateZ(2deg) !important;
  animation: none !important;
  box-shadow: 3px 1px 0 #ae996f, 6px 2px 0 #494336, 10px 7px 0 #171e1a,
    16px 23px 26px rgb(0 0 0 / 48%) !important;
}
#home .hero-screen-pills { position: relative; z-index: 6; }
#home .floating-glass-card { border-color: var(--rim) !important; }
#pillars {
  --module-face: #172e32;
  --module-base: #101e2c;
  --module-edge: #344541;
  --module-rim: #7c7455;
  --module-inlay: rgb(228 197 132 / 18%);
  --module-glint: rgb(236 219 176 / 23%);
}
html[data-theme="light"] #pillars {
  --module-face: #f1f5eb;
  --module-base: #fffdf8;
  --module-edge: #bcbaa6;
  --module-rim: #b7ab88;
  --module-inlay: rgb(117 97 49 / 15%);
  --module-glint: white;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr));
  gap: clamp(12px, 2vw, 22px);
  align-items: stretch;
}
.module-card {
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  flex-direction: column;
  padding: clamp(16px, 2vw, 26px);
  min-width: 0;
  background: linear-gradient(155deg, var(--module-face), var(--module-base) 74%);
  color: var(--color-text-body);
  border: 1px solid var(--module-rim);
  border-radius: 18px;
  box-shadow: inset 0 1px var(--module-glint), 0 3px 0 var(--module-edge),
    0 9px 18px -9px rgb(0 15 19 / 45%);
  text-align: start;
}
/* Two interlocking squares form a recessed eight-point star at the far corner. */
.module-card::before, .module-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  inline-size: 32px;
  block-size: 32px;
  inset-inline-end: 16px;
  inset-block-start: 16px;
  border: 1px solid var(--module-inlay);
  outline: 1px solid var(--module-inlay);
  outline-offset: -5px;
  transform: rotate(22.5deg);
}
.module-card::after { transform: rotate(67.5deg); }
.module-heading { display: flex; align-items: center; gap: 12px; padding-inline-end: 36px; }
.module-heading > i {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 52px; border-radius: 50% 50% 10px 10px;
  border: 1px solid #c9ac71;
  background: linear-gradient(145deg, #296454, #143c36 68%);
  box-shadow: inset 0 0 0 3px #214c42, inset 0 0 0 4px #827c56,
    0 3px 0 #655c40, 0 5px 8px rgb(7 28 24 / 25%);
  color: #f4d99f;
  font-size: 20px;
}
.module-heading h3 { margin: 0; font-size: 21px; line-height: 1.35; color: var(--color-text-title); }
.module-card > p, .module-card li {
  font-size: 16px; line-height: 1.65;
}
.module-card > p { margin: 14px 0 18px; }
.module-card details { margin-block-start: auto; border-block-start: 1px solid var(--module-inlay); }
.module-card summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  cursor: pointer; padding-block: 9px 1px; min-height: 44px;
  font-size: 15px; line-height: 1.65; color: var(--hero-brass);
}
.module-card summary::-webkit-details-marker { display: none; }
.module-card summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px; border: 1px solid var(--module-rim); border-radius: 50%;
  background: linear-gradient(currentColor,currentColor) center / 10px 1.5px no-repeat,
    linear-gradient(currentColor,currentColor) center / 1.5px 10px no-repeat, var(--module-face);
  box-shadow: inset 0 1px var(--module-glint), 0 2px 0 var(--module-edge);
}
.module-card details[open] summary::after { background-size: 10px 1.5px, 0 0; }
.module-card:focus-within, .module-card:has(details[open]) { border-color: var(--hero-brass); }
@media (hover: hover) and (pointer: fine) {
  .module-card:hover { border-color: var(--hero-brass); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .module-card { transition: transform 180ms ease-out, border-color 180ms ease-out; }
  .module-card:hover { transform: translateY(-3px); }
  .module-heading > i { transition: transform 180ms ease-out; }
  .module-card:hover .module-heading > i { transform: perspective(240px) rotateY(-9deg) translateY(-1px); }
}
@media (forced-colors: active) {
  .module-card summary { display: list-item; list-style: revert; }
  .module-card summary::after, .module-card::before, .module-card::after { display: none; }
  .module-card summary::-webkit-details-marker { display: revert; }
}
.module-card details ul { margin: 6px 0; padding-inline-start: 1.25em; list-style: disc; }
.module-card li + li { margin-block-start: 6px; }
.module-card details a {
  display: inline-block; padding-block: 6px; color: var(--hero-brass);
  text-decoration: underline; text-underline-offset: 4px;
}
html[lang="ur"] .module-heading h3 { font-size: clamp(23px, 1.6vw, 27px); line-height: 1.8; }
html[lang="ur"] .module-card :is(p,li,summary,a) { font-size: clamp(19px, 1.3vw, 22px); line-height: 1.9; }
.module-card :is(summary,a):focus-visible { outline: 2px solid var(--hero-brass); outline-offset: 2px; }
#prayer-times .prayer-ribbon-card {
  border: 1px solid rgb(172 149 93 / 48%);
  box-shadow: inset 0 1px rgb(230 209 161 / 22%), 0 4px 0 rgb(111 96 60 / 25%), 0 13px 26px rgb(5 30 23 / 13%);
}
@media (max-width: 820px) {
  #home .modern-hero-grid {
    display: flex !important;
    flex-direction: column !important;
    align-items: center;
    gap: 12px !important;
    text-align: center;
  }
  #home .hero-content-col { display: contents !important; }
  #home .hero-pill-badge, #home .hero-headline-grand, #home .hero-lead-grand,
  #home .hero-actions-row { order: 0 !important; }
  #home .hero-visual-col { order: 1 !important; }
  #home .hero-audience-switch, #home .hero-chips-wrap, #home .hero-trust-bar { order: 2 !important; }
  #home { padding-top: 18px !important; }
  #home .hero-pill-badge, #home .hero-headline-grand, #home .hero-lead-grand {
    margin-block: 0 !important;
  }
  html[lang="ur"] #home .hero-headline-grand {
    font-size: clamp(2rem, 9vw, 2.8rem) !important;
    line-height: 1.85 !important;
    text-wrap: balance;
  }
  html[lang="ur"] #home .hero-lead-grand {
    font-size: 1.05rem !important;
    line-height: 1.95 !important;
  }
  #home .hero-audience-switch {
    width: 100%; align-items: stretch !important;
    border-radius: 16px !important;
    margin: 8px auto 0 !important;
  }
  #home .audience-tab-btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    white-space: normal !important;
    font-size: .91rem !important;
    padding: 5px 6px !important;
    line-height: 1.85 !important;
    gap: 5px !important;
    min-height: 44px;
    border-radius: 12px !important;
  }
  #home .audience-tab-btn span { white-space: normal !important; }
  #home .hero-actions-row {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: 10px !important;
  }
  #home .btn-playstore-masterpiece { grid-column: 1 / -1; }
  #home .hero-actions-row > * { width: 100% !important; min-width: 0 !important; }
  #home .visual-stage-container { max-width: min(82vw, 365px) !important; padding-top: 56px; }
  #home .visual-stage-container::before { inset: 0 -2% 78px; }
  #home .hero-actions-row { margin: 4px auto 0 !important; align-items: stretch !important; }
  #home .btn-hero-explore-pill, #home .btn-hero-qr-trigger {
    margin: 0 !important;
    border-radius: 12px !important;
    padding: 6px !important;
    font-size: .95rem !important;
    line-height: 1.8 !important;
    gap: 5px !important;
    min-height: 46px;
    justify-content: center !important;
    align-self: stretch !important;
  }
  #home .hero-chips-wrap, #home .modern-stats-ribbon {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 8px !important;
  }
  #home .hero-chips-wrap { margin: 0 !important; padding: 0 !important; align-items: stretch !important; }
  #home .modern-chip {
    margin: 0 !important; white-space: normal !important;
    font-size: .9rem !important; line-height: 1.85 !important;
    padding: 6px 8px !important;
  }
  #home .hero-trust-bar {
    display: flex !important; flex-flow: row wrap !important;
    justify-content: center !important; gap: 4px 12px !important;
  }
  #home .trust-divider { display: none !important; }
  #home .hero-trust-bar .trust-item { font-size: .86rem !important; gap: 4px !important; }
  #home .stat-glass-box { flex-direction: column !important; padding: 12px 6px !important; gap: 6px !important; text-align: center; }
  #home .screen-pill { min-height: 44px; }
  #home .hero-phone-bottom-bar { inset-inline: 4px; padding: 4px; gap: 2px; }
  #home .hero-phone-nav-btn { flex: 0 0 30px; height: 32px; }
  #home .hero-phone-title-wrap { flex: 1; min-width: 0; }
  #home .hero-phone-screen-label { width: 100%; line-height: 1.8; }
  #home .hero-phone-dots { gap: 2px; }
  #home .stat-content { text-align: center !important; }
  #home .stat-content h4 { unicode-bidi: isolate; direction: ltr; }
  #mobile-sticky-bar { padding: 6px 10px max(6px,env(safe-area-inset-bottom)); }
  #mobile-sticky-bar .sticky-bar-content, #mobile-sticky-bar .sticky-bar-brand,
  #mobile-sticky-bar .sticky-bar-actions { gap: 6px; }
  #mobile-sticky-bar .sticky-bar-rating { display: none; }
  #mobile-sticky-bar .sticky-bar-title { line-height: 1.9; }
  #mobile-sticky-bar .sticky-bar-logo { width: 32px; height: 32px; }
  #mobile-sticky-bar .btn-sticky-install { padding: 4px 10px; min-height: 44px; }
  #mobile-sticky-bar .btn-sticky-close { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #home *, #home *::before, #home *::after {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}
