/* Guided Nisa — palette taken from the logo */
:root {
  --lavender: #b9a6d9;
  --lavender-soft: #e9e1f5;
  --lilac: #d9ccef;
  --plum: #4b3a8c;
  --plum-deep: #362868;
  --blush: #f6d3de;
  --blush-soft: #fcedf1;
  --mint: #c9e6e4;
  --mint-soft: #e8f5f4;
  --peach: #fbe3d6;
  --cream: #fffaf7;
  --ink: #3a3352;
  --muted: #776f8f;
  --line: #e4dcef;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(75, 58, 140, .10);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --script: "Parisienne", cursive;
  --arabic: "Amiri", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--plum); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--plum-deep); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.script { font-family: var(--script); font-weight: 400; color: var(--lavender); font-size: 1.6em; line-height: 1; display: block; }
.arabic, .bismillah { font-family: var(--arabic); direction: rtl; }
.eyebrow { font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* ---------- Announcement + header ---------- */
.announce { background: var(--plum); color: #fff; text-align: center; font-size: .82rem; letter-spacing: .06em; padding: 8px 16px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 250, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--lilac); }
.brand span { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--plum-deep); letter-spacing: .08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--ink); font-size: .95rem; padding: 8px 14px; border-radius: 999px; transition: background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--lavender-soft); color: var(--plum); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; color: var(--plum); cursor: pointer; padding: 6px 10px; }
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .brand span { font-size: 1.2rem; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--sans); font-size: .95rem; font-weight: 500; letter-spacing: .04em; padding: 13px 28px; border-radius: 999px; border: 1.5px solid var(--plum); background: var(--plum); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { background: var(--plum-deep); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--plum); }
.btn.ghost:hover { background: var(--lavender-soft); }
.btn.small { padding: 9px 18px; font-size: .85rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Decorative ---------- */
.pattern-bg {
  /* 12-pointed rosette interlace (white lines, transparent ground), generated by tools/make_pattern.py */
  background-color: #ddd0f0;
  background-image: url("assets/pattern.svg");
  background-size: 190px auto;
}
/* Cream panels keep text readable on top of the pattern */
.hero-grid > div:first-child, .page-hero .container {
  background: rgba(255, 250, 247, .92);
  border-radius: 28px;
  padding: 36px 40px;
  box-shadow: var(--shadow);
}
.page-hero .container { max-width: 760px; }
@media (max-width: 600px) { .hero-grid > div:first-child, .page-hero .container { padding: 26px 20px; } }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--lavender); margin: 10px auto 26px; }
.divider::before, .divider::after { content: ""; height: 1px; width: 70px; background: currentColor; opacity: .6; }
.divider svg { width: 22px; height: 22px; }
.arch { border-radius: 999px 999px var(--radius) var(--radius); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.hero .bismillah { font-size: 1.7rem; color: var(--plum); margin-bottom: 8px; text-align: left; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-art { position: relative; justify-self: center; }
.hero-art .arch-frame { width: min(400px, 80vw); aspect-ratio: 4/5; background: var(--blush); border: 6px solid #fff; box-shadow: var(--shadow); overflow: hidden; display: grid; place-items: center; }
.hero-art .arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.float-dot { position: absolute; border-radius: 50%; }
.float-dot.a { width: 70px; height: 70px; background: var(--mint); top: 10%; left: -30px; }
.float-dot.b { width: 34px; height: 34px; background: var(--blush); bottom: 8%; right: -14px; }
.float-dot.c { width: 16px; height: 16px; background: var(--lavender); top: 4%; right: 18%; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; text-align: center; } .hero .bismillah { text-align: center; } .hero p.lead { margin-inline: auto; } .hero-actions { justify-content: center; } }

/* ---------- Page header (inner pages) ---------- */
.page-hero { padding: 64px 0 50px; text-align: center; }
.page-hero p { max-width: 620px; margin-inline: auto; color: var(--muted); font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.tint-blush { background: var(--blush-soft); }
.tint-mint { background: var(--mint-soft); }

/* Category tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.tile { text-decoration: none; color: inherit; background: #fff; border-radius: 999px 999px var(--radius) var(--radius); padding: 40px 24px 28px; text-align: center; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .icon { width: 74px; height: 74px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; }
.tile h3 { margin-bottom: 4px; }
.tile p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Products ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); font-family: var(--sans); font-size: .88rem; padding: 8px 18px; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--lavender); }
.chip.active { background: var(--plum); color: #fff; border-color: var(--plum); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
.card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media svg { height: 80%; width: auto; filter: drop-shadow(0 10px 14px rgba(75,58,140,.18)); }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; color: var(--plum); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; }
.type-tag { position: absolute; top: 14px; right: 14px; font-size: .72rem; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.8); color: var(--muted); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.35rem; margin-bottom: 6px; }
.card-body p { font-size: .9rem; color: var(--muted); flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.price { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--plum-deep); }
.swatches { display: flex; gap: 8px; margin: 4px 0 10px; }
.swatch { width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(75,58,140,.25); padding: 0; }
.swatches.big .swatch { width: 34px; height: 34px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.swatches.big .swatch:hover { transform: scale(1.08); }
.swatches.big .swatch.active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--plum); }

/* Spotlight (home page featured product) */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot-main { aspect-ratio: 4/5; overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow); background: var(--blush); }
.spot-main img { width: 100%; height: 100%; object-fit: cover; }
.spot-thumbs { display: flex; gap: 12px; justify-content: center; margin-top: 16px; }
.spot-thumb { width: 74px; height: 74px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.spot-thumb img { width: 100%; height: 100%; object-fit: cover; }
.spot-thumb.active, .spot-thumb:hover { border-color: var(--plum); opacity: 1; }
.spot-info .lead { font-family: var(--serif); font-size: 1.4rem; font-style: italic; color: var(--plum); }
.spot-list { list-style: none; padding: 0; margin: 0 0 22px; }
.spot-list li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.spot-list li::before { content: "✦"; position: absolute; left: 4px; color: var(--lavender); }
.spot-buy { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; }
.spot-buy .price { font-size: 2rem; }
@media (max-width: 860px) { .spotlight { grid-template-columns: 1fr; gap: 30px; } .spot-main { max-width: 420px; margin: 0 auto; } }

.secure-note { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-top: 34px; }

/* ---------- Features strip ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.feature .icon { font-size: 1.8rem; color: var(--plum); }
.feature h4 { font-size: 1.2rem; margin: 6px 0 2px; }
.feature p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Quote band ---------- */
.quote-band { text-align: center; padding: 80px 0; }
.quote-band .arabic { font-size: clamp(1.6rem, 3vw, 2.3rem); color: var(--plum); margin-bottom: 10px; }
.quote-band blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.5vw, 1.8rem); max-width: 760px; margin: 0 auto 8px; color: var(--plum-deep); }

/* ---------- Halaqat ---------- */
.event { display: grid; grid-template-columns: 110px 1fr auto; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 18px; }
.event-date { text-align: center; background: var(--lavender-soft); border-radius: 999px 999px 14px 14px; padding: 18px 8px 12px; }
.event-date .m { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.event-date .d { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--plum); line-height: 1; }
.event h3 { margin-bottom: 4px; }
.event .meta { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 8px; }
.event p { margin: 0; font-size: .95rem; }
@media (max-width: 720px) { .event { grid-template-columns: 1fr; text-align: center; } .event-date { width: 110px; margin: 0 auto; } .event .meta { justify-content: center; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 34px; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } .form-card { padding: 24px 20px; } }
label { display: block; font-size: .85rem; font-weight: 500; color: var(--plum-deep); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
input, select, textarea { width: 100%; font-family: var(--sans); font-size: 1rem; font-weight: 300; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lavender); box-shadow: 0 0 0 4px var(--lavender-soft); }
textarea { min-height: 100px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 300; font-size: .9rem; color: var(--ink); }
.check input { width: auto; margin-top: 5px; accent-color: var(--plum); }
.form-msg { margin-top: 14px; padding: 14px 18px; border-radius: 12px; font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: var(--mint-soft); color: #245a55; }
.form-msg.err { display: block; background: var(--blush-soft); color: #8a3354; }
.hp { position: absolute; left: -9999px; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(54, 40, 104, .45); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.modal.open { display: flex; }
.modal .form-card { position: relative; width: 100%; max-height: 90vh; overflow: auto; }
.modal-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 1.6rem; color: var(--muted); cursor: pointer; }

/* ---------- Notes ---------- */
.note-card { text-decoration: none; color: inherit; }
.note-card .card-media { aspect-ratio: 16/10; }
.note-topic { display: inline-block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--plum); background: var(--lavender-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.article { max-width: 720px; margin: 0 auto; background: #fff; padding: 50px clamp(22px, 5vw, 60px); border-radius: 999px 999px var(--radius) var(--radius); border: 1px solid var(--line); }
.article header { text-align: center; padding-top: 30px; margin-bottom: 30px; }
.article-body { font-size: 1.05rem; }
.article-body h3 { margin-top: 1.6em; }
.article-body blockquote { margin: 1.6em 0; padding: 22px 26px; background: var(--blush-soft); border-left: 4px solid var(--lavender); border-radius: 0 14px 14px 0; font-family: var(--serif); font-size: 1.3rem; font-style: italic; color: var(--plum-deep); }
.article-body blockquote cite { display: block; font-family: var(--sans); font-style: normal; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.article-body .arabic { font-size: 1.9rem; text-align: center; color: var(--plum); line-height: 2; }
.article-body ul { padding-left: 1.2em; }
.article-body li { margin-bottom: .4em; }
.article-body li::marker { color: var(--lavender); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-photo { aspect-ratio: 4/5; background: var(--mint); border: 6px solid #fff; box-shadow: var(--shadow); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.signature { font-family: var(--script); font-size: 2.4rem; color: var(--plum); }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.value { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } .about-photo { max-width: 380px; margin: 0 auto; } }

/* ---------- Newsletter + footer ---------- */
.newsletter { text-align: center; }
.newsletter form { display: flex; gap: 10px; max-width: 520px; margin: 20px auto 0; }
.newsletter input { border-radius: 999px; background: #fff; }
@media (max-width: 560px) { .newsletter form { flex-direction: column; } }
.site-footer { background: var(--plum-deep); color: #e7e0f7; padding: 60px 0 30px; font-size: .92rem; }
.site-footer a { color: #e7e0f7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h4 { color: #fff; font-size: 1.2rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-brand img { width: 70px; height: 70px; border-radius: 50%; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; text-align: center; font-size: .82rem; opacity: .8; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

.demo-banner { background: var(--peach); color: #7a4a2b; text-align: center; font-size: .85rem; padding: 10px 16px; border-radius: 12px; margin: 0 auto 24px; max-width: 640px; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
