/*
Theme Name: Sarkar Noor (GeneratePress Child)
Theme URI: https://sarkarhealings.com
Description: Masterclass Quranic Healing & Benefit-First Architecture Child Theme for Sarkar Healings
Author: Sarkar Healings
Template: generatepress
Version: 1.0.2
*/

/* ==========================================================================
   SARKAR NOOR — DESIGN TOKENS & MASTERCLASS STYLES
   Illuminated manuscript: Forest Emerald + Burnished Gold on Parchment Vellum.
   ========================================================================== */

:root {
  --emerald-deep: #0f3d2e;
  --emerald: #1c5a42;
  --emerald-soft: #e8f0ea;
  --gold: #b8923d;
  --gold-light: #e4c989;
  --parchment: #fbf7ee;
  --parchment-dim: #f2ead9;
  --ink: #1e2422;
  --ink-soft: #5b6560;
  --line: #e2d9c4;
  --white: #ffffff;

  --tier-a-bg: #DDEEDD; --tier-a-ink: #1E4D2B;
  --tier-b-bg: #cbe6ff; --tier-b-ink: #003957;
  --tier-c-bg: #F5E6C3; --tier-c-ink: #6B4E10;
  --tier-d-bg: #EAE6DD; --tier-d-ink: #4A443A;

  --f-display: 'Playfair Display', 'Lora', Georgia, serif;
  --f-body: 'Source Serif 4', Georgia, serif;
  --f-ui: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --f-ar: 'Amiri', serif;

  --radius: 6px;
  --arch: 999px 999px var(--radius) var(--radius);
  --shadow-card: 0 1px 2px rgba(15,61,46,.06), 0 8px 24px -12px rgba(15,61,46,.18);
  --shadow-lift: 0 20px 60px -20px rgba(15,61,46,.35);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 17px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, .wp-block-heading {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--emerald-deep);
  line-height: 1.25;
}

/* Arabic Typography */
.ar, [lang="ar"], .nn-ar {
  font-family: var(--f-ar);
  font-size: 1.35em;
  line-height: 1.9;
  color: var(--emerald-deep);
  direction: rtl;
  unicode-bidi: isolate;
}

/* Eyebrow badge */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--f-ui);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: .9rem;
}
.eyebrow svg { width: 14px; height: 14px; fill: var(--gold); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--f-ui);
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .85rem 1.7rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.btn--gold {
  background: var(--gold);
  color: var(--emerald-deep) !important;
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(184,146,61,.6);
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255,255,255,.4);
  color: #ffffff !important;
}
.btn--ghost:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--gold-light);
}

.btn--outline {
  background: transparent;
  border-color: var(--emerald);
  color: var(--emerald-deep);
}
.btn--outline:hover {
  background: var(--emerald-soft);
}

/* Rosette motif */
.rosette {
  width: 34px;
  height: 34px;
  flex: none;
}
.rosette path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
}

/* ==================== HEADER ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251,247,238,.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: .9rem 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
}
.brand__mark {
  width: 32px;
  height: 32px;
  color: var(--emerald-deep);
}
.brand__name {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--emerald-deep);
  line-height: 1.1;
}
.brand__name small {
  display: block;
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .15rem;
}

.nav-desktop { display: none; }
@media (min-width: 960px) { .nav-desktop { display: block; } }
.nav-desktop > ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a, .nav-desktop button {
  font-family: var(--f-ui);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem 0;
}
.nav-desktop a:hover, .nav-desktop button:hover {
  color: var(--emerald);
}
.has-panel { position: relative; }
.nav-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  width: 640px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lift);
  padding: 1.6rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease;
}
.has-panel:hover .nav-panel, .has-panel:focus-within .nav-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .2rem 1.6rem;
}
.nav-panel__grid h4 {
  grid-column: 1 / -1;
  font-family: var(--f-ui);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .6rem;
}
.nav-panel a {
  display: block;
  padding: .55rem 0;
  border-bottom: 1px solid var(--parchment-dim);
  font-size: .92rem;
  font-weight: 600;
}
.nav-panel a small {
  display: block;
  font-family: var(--f-body);
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  font-size: .8rem;
  margin-top: .15rem;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.icon-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--emerald-deep);
  cursor: pointer;
  border-radius: 50%;
}
.icon-btn:hover {
  background: var(--emerald-soft);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-toggle { display: none; } }

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.drawer[data-open="true"] { display: block; }
.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(15,26,20,.55);
}
.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  background: var(--parchment);
  padding: 1.5rem;
  overflow-y: auto;
}
.drawer nav ul { list-style: none; margin: 0; padding: 0; }
.drawer nav > ul > li { border-bottom: 1px solid var(--line); }
.drawer nav a, .drawer nav button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--f-ui);
  font-size: 1rem;
  padding: .85rem 0;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.drawer .sub { padding-left: 1rem; padding-bottom: .5rem; }
.drawer .sub a { font-size: .9rem; color: var(--ink-soft); padding: .5rem 0; }

/* ==================== HERO ==================== */
.hero {
  position: relative;
  background: var(--emerald-deep);
  color: var(--white);
  overflow: hidden;
  padding: 5.5rem 24px 4.5rem;
  text-align: center;
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  border: 1px solid var(--gold-light);
  opacity: .35;
}
.hero::before { top: 28px; left: 28px; border-right: none; border-bottom: none; }
.hero::after { bottom: 28px; right: 28px; border-left: none; border-top: none; }
.hero__frame {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero .rosette { margin: 0 auto 1.4rem; color: var(--gold-light); }
.hero .ar {
  display: block;
  font-family: var(--f-ar);
  font-size: 1.7rem;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
  direction: rtl;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  margin-bottom: 1.1rem;
}
.hero p {
  font-family: var(--f-body);
  font-size: 1.08rem;
  color: rgba(255,255,255,.78);
  max-width: 520px;
  margin: 0 auto 2.2rem;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
}

/* ==================== TRUST STRIP ==================== */
.trust-strip {
  background: var(--parchment-dim);
  border-bottom: 1px solid var(--line);
}
.trust-strip__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 2.4rem 0;
  text-align: center;
}
@media (min-width: 720px) { .trust-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: .6rem 1rem; border-left: 1px solid var(--line); }
.stat:first-child { border-left: none; }
.stat__num {
  display: block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--emerald-deep);
}
.stat__label {
  display: block;
  font-family: var(--f-ui);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: .3rem;
}

/* ==================== SECTIONS ==================== */
.section { padding: 5rem 0; }
.section--tint { background: var(--emerald-soft); }
.section__head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .8rem; }
.section__head p { color: var(--ink-soft); font-size: 1.02rem; }

/* ==================== HUB GRID ==================== */
.hub-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.1rem;
  margin: 0;
  padding: 0;
}
.hub-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.6rem 1.5rem;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.hub-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.hub-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.hub-card h3 a { text-decoration: none; color: var(--emerald-deep); }
.hub-card h3 a:hover { color: var(--gold); }
.hub-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.6; margin: 0; }

/* ==================== VERSE SPOTLIGHT ==================== */
.verse-spotlight {
  background: var(--emerald-deep);
  color: var(--white);
  padding: 4.5rem 24px;
  text-align: center;
}
.verse-spotlight__inner { max-width: 680px; margin: 0 auto; }
.verse-spotlight .rosette { margin: 0 auto 1.2rem; color: var(--gold-light); }
.verse-spotlight__ar {
  font-family: var(--f-ar);
  font-size: 1.9rem;
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}
.verse-spotlight__tr {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 1.15rem;
  color: rgba(255,255,255,.85);
  margin-bottom: .7rem;
}
.verse-spotlight__ref {
  font-family: var(--f-ui);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ==================== AYAT ASH-SHIFA (Folio List) ==================== */
.folio-list { display: flex; flex-direction: column; gap: 0; }
.folio {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
@media (min-width: 760px) { .folio { grid-template-columns: 220px 1fr; } }
.folio:last-child { border-bottom: none; }
.folio__ar {
  font-family: var(--f-ar);
  font-size: 1.5rem;
  color: var(--emerald-deep);
  direction: rtl;
  text-align: center;
  background: var(--parchment-dim);
  border-radius: 6px;
  padding: 1.4rem 1rem;
  line-height: 1.7;
}
.folio__ref {
  font-family: var(--f-ui);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .4rem;
}
.folio__title { font-size: 1.15rem; margin-bottom: .4rem; color: var(--emerald-deep); }
.folio__tr { color: var(--ink-soft); font-style: italic; margin: 0; }

/* ==================== DHIKR / TASBIH THREAD ==================== */
.dhikr { padding: 5rem 24px; text-align: center; }
.dhikr__ar {
  font-family: var(--f-ar);
  font-size: 2.3rem;
  color: var(--emerald-deep);
  margin: 1.6rem auto 1rem;
  direction: rtl;
}
.dhikr__tr {
  font-family: var(--f-body);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .4rem;
}
.dhikr__ref {
  font-family: var(--f-ui);
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 2.6rem;
}
.dhikr__lede { max-width: 520px; margin: 0 auto 2.4rem; color: var(--ink-soft); }
.tasbih { max-width: 760px; margin: 0 auto; position: relative; padding: 1.6rem 0; }
.tasbih__line {
  position: absolute;
  top: 50%; left: 6%; right: 6%;
  height: 1px;
  background: var(--gold);
  opacity: .5;
  transform: translateY(-50%);
  z-index: 0;
}
.tasbih__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.bead {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gold-light);
  text-decoration: none;
  color: var(--emerald-deep);
  transition: background .18s ease, transform .18s ease;
}
.bead:hover {
  background: var(--emerald-soft);
  transform: translateY(-2px);
}
.bead strong { font-family: var(--f-ui); font-size: .92rem; }
.bead span { font-family: var(--f-ui); font-size: .72rem; color: var(--ink-soft); }

/* ==================== RUQYAH CTA ==================== */
.cta-ruqyah {
  background: linear-gradient(160deg, var(--emerald-deep), #0a2c21);
  color: var(--white);
  padding: 5rem 24px;
  text-align: center;
}
.cta-ruqyah__inner { max-width: 600px; margin: 0 auto; }
.cta-ruqyah h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: .8rem 0 1rem; }
.cta-ruqyah p { color: rgba(255,255,255,.78); margin-bottom: 1.8rem; }
.feature-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-bottom: 2.2rem;
  font-family: var(--f-ui);
  padding: 0;
}
.feature-list li {
  font-size: .82rem;
  padding: .5rem 1rem;
  border: 1px solid rgba(228,201,137,.4);
  border-radius: 999px;
  color: var(--gold-light);
}

/* ==================== PRODUCTS ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.p-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .18s ease, transform .18s ease;
}
.p-card:hover { box-shadow: var(--shadow-card); transform: translateY(-3px); }
.p-card__img {
  aspect-ratio: 1/1;
  background: var(--parchment-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.p-card__img img { width: 100%; height: 100%; object-fit: cover; }
.p-card__sale {
  position: absolute;
  top: .7rem; left: .7rem;
  background: var(--gold);
  color: var(--emerald-deep);
  font-family: var(--f-ui);
  font-size: .68rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 999px;
  letter-spacing: .04em;
}
.p-card__body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  flex: 1;
}
.p-card__title {
  font-family: var(--f-ui);
  font-size: .94rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}
.p-card__price { font-family: var(--f-ui); font-size: .92rem; margin-top: auto; }
.p-card__price del { color: var(--ink-soft); opacity: .6; margin-right: .4rem; }
.p-card__price ins { color: var(--emerald-deep); font-weight: 700; text-decoration: none; }
.p-card__cta {
  font-family: var(--f-ui);
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
  padding: .65rem;
  border: 1px solid var(--emerald-deep);
  border-radius: var(--radius);
  color: var(--emerald-deep);
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.p-card__cta:hover { background: var(--emerald-deep); color: var(--white); }

/* ==================== FAQ ==================== */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--f-display);
  font-size: 1.12rem;
  color: var(--emerald-deep);
  padding: 1.4rem 0;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--f-ui);
  font-size: 1.3rem;
  color: var(--gold);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); padding-bottom: 1.4rem; max-width: 640px; margin: 0; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: var(--emerald-deep);
  color: rgba(255,255,255,.78);
}
.site-footer__grid {
  max-width: 1140px;
  margin: 0 auto;
  padding: 4rem 24px 2.4rem;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2.4rem;
}
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer h4 {
  font-family: var(--f-ui);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.site-footer p { font-size: .9rem; line-height: 1.7; }
.site-footer ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; margin: 0; padding: 0; }
.site-footer a { text-decoration: none; font-size: .88rem; color: rgba(255,255,255,.72); }
.site-footer a:hover { color: var(--gold-light); }
.footer-note {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.6rem 24px 2.2rem;
  max-width: 1140px;
  margin: 0 auto;
  font-family: var(--f-ui);
  font-size: .78rem;
}
.footer-note .disclaimer { max-width: 760px; color: rgba(255,255,255,.5); margin-bottom: .8rem; line-height: 1.6; }

/* Overrides for GeneratePress */
body.home #primary,
body.home .site-content {
  display: none !important;
}
