/* ================================================================
   Ruqya Manchester Services - Apple liquid glass, maroon + gold
   ================================================================ */
:root {
  --bg-1: #2a0710;
  --bg-2: #160308;
  --maroon: #7b1a2e;
  --maroon-2: #a3283f;
  --rose: #d9667a;
  --gold: #d8b25e;
  --gold-2: #f1d690;
  --text: #f7eef0;
  --muted: rgba(247, 238, 240, .72);
  --faint: rgba(247, 238, 240, .5);
  --wa: #25d366;
  --r-lg: 30px;
  --r-md: 22px;
  --serif: "DM Serif Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; background: var(--bg-2); }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--sans); font-size: 17px; line-height: 1.65; color: var(--text);
  background: radial-gradient(120% 80% at 20% 0%, #4a0d1c 0%, var(--bg-1) 45%, var(--bg-2) 100%) fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: var(--gold-2); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -.01em; line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--gold-2); }
h2 { font-size: clamp(36px, 5vw, 58px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- moving liquid background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; will-change: transform; }
.b1 { width: 52vmax; height: 52vmax; left: -14vmax; top: -16vmax; background: var(--maroon-2); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 38vmax; height: 38vmax; right: -12vmax; top: 18vh; background: #b8892f; opacity: .28; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 44vmax; height: 44vmax; left: 20vw; bottom: -24vmax; background: var(--maroon); animation: drift3 28s ease-in-out infinite alternate; }
.b4 { width: 26vmax; height: 26vmax; left: 8vw; top: 55vh; background: var(--rose); opacity: .22; animation: drift2 22s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(12vw, 10vh) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-10vw, 14vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(-8vw, -12vh) scale(1.15); } }

/* ---------- THE liquid glass ---------- */
.glass {
  position: relative; isolation: isolate;
  background: linear-gradient(145deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, .06) 45%, rgba(255, 255, 255, .03) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--r-md);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -1px 0 rgba(255, 255, 255, .08),
    inset 0 0 24px rgba(255, 255, 255, .05),
    0 18px 50px rgba(10, 0, 3, .45);
}
/* soft specular highlight across the top - the "liquid" shine */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 60% at 20% -10%, rgba(255, 255, 255, .22), transparent 55%);
}
/* bright rim that melts at the bottom */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .08) 40%, rgba(241, 214, 144, .25) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

/* ---------- buttons + chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 16px/1 var(--sans); padding: 16px 26px; border-radius: 999px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a0710; box-shadow: 0 10px 30px rgba(216, 178, 94, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn--wa { background: var(--wa); color: #06311a; box-shadow: 0 10px 30px rgba(37, 211, 102, .3); }
.btn--glass {
  color: var(--text); background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--block { width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; color: var(--gold-2);
  background: rgba(216, 178, 94, .12); border: 1px solid rgba(241, 214, 144, .35);
}
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; padding: 14px 16px 0; }
.top__bar { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 10px 10px 10px 18px; border-radius: 999px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, var(--gold-2), var(--gold)); box-shadow: 0 0 18px rgba(216, 178, 94, .5); }
.brand__mark svg { width: 18px; height: 18px; fill: #3a0b14; }
.brand__text { font-family: var(--serif); font-size: 21px; white-space: nowrap; }
.brand__text em { color: var(--gold-2); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero h1 { font-size: clamp(46px, 6.6vw, 84px); margin: 22px 0 22px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.ticks li { display: flex; align-items: center; gap: 8px; }
.ticks li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

.portrait { margin: 0; position: relative; }
.portrait__frame { padding: 12px; border-radius: var(--r-lg); }
.portrait__frame img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: 20px; }
.portrait__tag {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: fit-content; margin: 16px auto 0;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------- ayah ---------- */
.ayah-wrap { padding: 30px 0 20px; }
.ayah { margin: 0; padding: clamp(28px, 4vw, 46px); text-align: center; border-radius: var(--r-lg); }
.ayah__ar { font-family: var(--arabic); font-size: clamp(30px, 4.4vw, 50px); line-height: 1.9; color: var(--gold-2); margin: 0 0 10px; text-shadow: 0 0 30px rgba(216, 178, 94, .35); }
.ayah__en { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 26px); margin: 0 0 12px; }
.ayah cite { font-style: normal; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }

/* ---------- sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.head { max-width: 680px; margin-bottom: 44px; }
.head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { padding: 30px 28px 18px; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px; color: var(--gold-2);
  background: linear-gradient(145deg, rgba(216, 178, 94, .28), rgba(216, 178, 94, .06)); border: 1px solid rgba(241, 214, 144, .35);
  box-shadow: 0 0 24px rgba(216, 178, 94, .2), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { padding: 28px 24px 14px; }
.steps__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; margin-bottom: 18px;
  font-family: var(--serif); font-size: 24px; color: #2a0710; background: linear-gradient(180deg, var(--gold-2), var(--gold));
  box-shadow: 0 0 20px rgba(216, 178, 94, .45);
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

.trust { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.trust__head { position: sticky; top: 120px; }
.trust__head p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rules li { padding: 22px 26px; display: grid; gap: 4px; }
.rules b { font-weight: 600; font-size: 18px; color: var(--gold-2); }
.rules span { color: var(--muted); }

.reels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.reel { margin: 0; padding: 10px; border-radius: var(--r-md); }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 16px; background: #120306; }
.reel figcaption { padding: 12px 6px 4px; font-weight: 600; font-size: 15px; }

.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 14px; }
.faq details { padding: 0; border-radius: 20px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 26px; font-weight: 600; font-size: 18px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 22px;
  background: rgba(255, 255, 255, .12); color: var(--gold-2); transition: transform .3s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 26px 22px; margin: 0; color: var(--muted); }

.book { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.book__text p { color: var(--muted); font-size: 18px; margin-top: 16px; }
.contact { display: grid; gap: 14px; margin-top: 26px; }
.contact__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 20px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 18px; }
.contact__row small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--gold-2); flex: none; }
.contact__ic svg { width: 22px; height: 22px; fill: none; }
.contact__ic--wa { background: var(--wa); }
.contact__ic--wa svg { fill: #fff; }

.form { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-lg); display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.form small { font-weight: 400; color: var(--faint); }
.form input:not([type=checkbox]), .form select, .form textarea {
  font: inherit; font-size: 16px; color: var(--text); width: 100%;
  background: rgba(20, 3, 8, .35); border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; padding: 13px 15px;
}
.form select option { color: #000; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.form .is-bad { border-color: var(--rose) !important; outline: 1px solid var(--rose); }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; font-size: 14px !important; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.form__note { font-size: 13px; color: var(--faint); margin: 0; text-align: center; }

.footer { padding: 50px 0 120px; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.footer p { color: var(--faint); font-size: 14px; margin-top: 12px; }
.footer__small { font-size: 13px !important; }

/* floating glass dock (phones) */
.dock { display: none; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob, .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- tablet ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .top__bar .btn { margin-left: auto; }
  .hero__grid, .trust, .book { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; margin-inline: auto; width: 100%; }
  .trust__head { position: static; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps, .reels { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { padding: 10px 10px 0; }
  .top__bar { padding: 8px 8px 8px 12px; gap: 10px; }
  .brand__text { font-size: 17px; }
  .brand__mark { width: 30px; height: 30px; }
  .top__bar .btn { padding: 10px 14px; font-size: 13px; }
  .hero { padding-top: 28px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .cards, .steps { grid-template-columns: 1fr; }
  .reels { grid-template-columns: 1fr 1fr; gap: 12px; }
  .reel { padding: 6px; }
  .reel figcaption { font-size: 13px; padding: 8px 4px 2px; }
  .form__row { grid-template-columns: 1fr; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; position: fixed; z-index: 50;
    /* sits above the "Powered by Netlify" badge (64px) on the free plan */
    left: 12px; right: 12px; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 6px; border-radius: 999px;
  }
  .dock a { display: grid; place-items: center; height: 48px; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
  .dock__wa { color: var(--wa) !important; }
  .dock__book { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #2a0710 !important; }
}
