/* =====================================================================
   Theme — Sage Garden (light)
   Sage Green + White + Warm Beige + Deep Forest Green
   ===================================================================== */
:root {
  --bg: #ffffff;            /* white */
  --bg-2: #f6f0e6;          /* warm beige */
  --card: #ffffff;
  --card-2: #f3eee4;
  --line: #e4e2d8;
  --line-2: #cdd5c4;
  --text: #2e3430;
  --soft: #5f6a62;
  --heading: #1e3b2b;       /* deep forest green */
  --gold: #6f8f6a;          /* accent: sage green (icons, eyebrows, patterns) */
  --gold-2: #2f5d46;        /* links */
  --sage: #9db08f;
  --sage-tint: #e9efe2;
  --emerald: #e4ecdb;       /* light sage used in hero backgrounds */
  --btn: #1e4a34;           /* deep forest green buttons */
  --btn-hover: #2a6146;
  --btn-text: #ffffff;
  --danger: #b4442f;
  --ok: #2e7d4f;
  --warn: #9a6b12;
  --radius: 10px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --bangla: 'Noto Serif Bengali', 'Hind Siliguri', serif;
  --arabic: 'Amiri', 'Traditional Arabic', serif;
  --max: 1160px;
  color-scheme: light;
}
html[lang="bn"] body { font-family: var(--bangla), var(--body); }
html[lang="bn"] h1, html[lang="bn"] h2, html[lang="bn"] h3 { font-family: var(--bangla); font-weight: 600; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 var(--body);
       -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--heading); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; color: var(--heading); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(34px, 5.4vw, 60px); }
h2 { font-size: clamp(28px, 3.6vw, 40px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:-999px; top:8px; background:var(--btn); color:#111; padding:8px 14px; z-index:100; }
.skip:focus { left:8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; margin-bottom: 14px; display: block; }
.lead { font-size: 18px; color: var(--soft); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.tiny { font-size: 12px; }

/* ---------- pattern ---------- */
.pattern { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); opacity: .2; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
               border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 20px; color: var(--heading); }
.brand svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.brand img { height: 36px; width: auto; }
.menu { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.menu a { color: var(--soft); font-size: 14.5px; font-weight: 500; }
.menu a:hover, .menu a[aria-current="page"] { color: var(--heading); }
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; overflow: hidden; font-size: 12px; }
.lang-switch button { background: none; border: 0; color: var(--soft); padding: 5px 10px; cursor: pointer; font: inherit; }
.lang-switch button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); font-weight: 700; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); color: var(--heading); width: 42px; height: 38px;
               border-radius: var(--radius); cursor: pointer; margin-left: auto; }
.header-cta { margin-left: 4px; }

@media (max-width: 980px) {
  .menu-toggle { display: inline-grid; place-items: center; }
  .menu { position: fixed; inset: 70px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
          gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu .lang-switch { align-self: flex-start; margin-top: 14px; }
  .menu .header-cta { margin: 14px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 14.5px var(--body);
       padding: 14px 24px; border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
       transition: background .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-text); }
.btn-ghost { border-color: var(--line-2); color: var(--heading); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 120px 0 110px;
        background: linear-gradient(160deg, #e4ecdb 0%, #f6f0e6 100%); }
.hero h1 { max-width: 820px; }
.hero .lead { color: var(--soft); margin-bottom: 34px; }
.page-hero { position: relative; overflow: hidden; padding: 84px 0 64px;
             background: linear-gradient(160deg, #e4ecdb 0%, #f6f0e6 100%); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 50px); }
.breadcrumbs { font-size: 13px; color: var(--soft); margin-bottom: 14px; }
.breadcrumbs a { color: var(--soft); }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: 64px 0; } .hero { padding: 84px 0 72px; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(30,59,43,.04);
        transition: border-color .25s, transform .25s; }
a.card { color: inherit; display: block; }
a.card:hover, .card.hover:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(30,59,43,.08); }
.card h3 { margin: 14px 0 8px; }
.card p { color: var(--soft); font-size: 15px; }
.icon { width: 34px; height: 34px; color: var(--gold); }
.card-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
             border-top: 1px solid var(--line); margin-top: 18px; padding-top: 14px; font-size: 13.5px; color: var(--soft); }
.price { font-family: var(--body), var(--bangla); color: var(--heading); font-weight: 500; font-size: 16px; }
.tag { display: inline-block; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2);
       border-radius: 99px; padding: 3px 10px; color: var(--soft); }
.tag.gold { border-color: var(--sage); color: var(--gold-2); background: var(--sage-tint); }

.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }

.feature { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.feature .icon { flex: none; }
.feature h3 { font-size: 18px; margin: 2px 0 6px; }
.feature p { margin: 0; color: var(--soft); font-size: 14.5px; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: step; padding: 24px; border-top: 2px solid var(--sage); background: var(--card); border-radius: 0 0 var(--radius) var(--radius); }
.step::before { content: counter(step, decimal-leading-zero); font-family: var(--display); color: var(--gold); font-size: 30px; display: block; }
.step h3 { font-size: 18px; margin: 8px 0 6px; }
.step p { color: var(--soft); font-size: 14.5px; margin: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.stat { padding: 30px 20px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(34px, 4vw, 46px); color: var(--heading); font-weight: 500; }
.stat span { font-size: 13px; color: var(--soft); letter-spacing: .04em; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- articles ---------- */
.cover { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); background: var(--emerald); border: 1px solid var(--line); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover svg.pattern { opacity: .28; }
.cover .cover-label { position: absolute; left: 16px; bottom: 14px; right: 16px; font-family: var(--display); color: var(--heading); font-size: 18px; }
.article-card h3 { font-size: 20px; margin: 16px 0 8px; }
.article-card .meta { font-size: 13px; color: var(--soft); display: flex; gap: 10px; flex-wrap: wrap; }
.prose { max-width: 720px; margin: 0 auto; font-size: 18px; line-height: 1.85; }
.prose h2 { font-size: 28px; margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose blockquote { border-left: 2px solid var(--gold); margin: 1.5em 0; padding: 4px 0 4px 20px; color: var(--heading); font-style: italic; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.chip { background: transparent; border: 1px solid var(--line-2); color: var(--soft); border-radius: 99px; padding: 7px 14px;
        font: 500 13px var(--body); cursor: pointer; }
html[lang="bn"] .chip { font-family: var(--bangla); }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }

/* ---------- Quran / Hadith reference block ---------- */
.ref-block { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-2); padding: 26px; margin: 26px 0; }
.ref-block .ar { font-family: var(--arabic); font-size: 28px; line-height: 2; direction: rtl; text-align: right; color: var(--heading); }
.ref-block .tr { color: var(--text); margin-top: 12px; }
.ref-block .tr-bn { font-family: var(--bangla); color: var(--text); margin-top: 8px; }
.ref-block .src { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--soft); margin-top: 14px; }
.grade { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
.grade.sahih, .grade.hasan { background: #e3f1e7; color: var(--ok); }
.grade.daif, .grade.disputed, .grade.not_graded { background: #f7ecd2; color: var(--warn); }
.grade.mawdu { background: #f8e1db; color: var(--danger); }

/* ---------- testimonials ---------- */
.quote { position: relative; }
.quote p { color: var(--text); font-size: 16px; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 15px; }
.quote .who { font-size: 13.5px; color: var(--soft); margin-top: 12px; }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-size: 13.5px; font-weight: 600; color: var(--heading); }
.field .hint { font-size: 12.5px; color: var(--soft); }
input, select, textarea { width: 100%; background: var(--bg); border: 1px solid var(--line-2); color: var(--heading);
                          border-radius: var(--radius); padding: 13px 14px; font: 400 15.5px var(--body); }
html[lang="bn"] input, html[lang="bn"] textarea, html[lang="bn"] select { font-family: var(--bangla); }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--gold); flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span { display: block; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px; cursor: pointer;
                   font-size: 14.5px; background: var(--card); height: 100%; }
.radio-card span small { display: block; color: var(--soft); font-size: 12.5px; margin-top: 3px; }
.radio-card input:checked + span { border-color: var(--gold); background: var(--sage-tint); box-shadow: inset 0 0 0 1px var(--gold); }
.radio-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.radio-card input:disabled + span { opacity: .4; cursor: not-allowed; }
.form-msg { padding: 14px 16px; border-radius: var(--radius); font-size: 14.5px; }
.form-msg.error { background: #fbeeea; border: 1px solid #efc9bf; color: var(--danger); }
.form-msg.success { background: #eaf4ed; border: 1px solid #bfdcc9; color: var(--ok); }
.form-msg.info { background: var(--sage-tint); border: 1px solid var(--line-2); color: var(--heading); }

/* ---------- booking ---------- */
.booking { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .booking { grid-template-columns: 1fr; } .summary { order: -1; position: static; } }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress span { flex: 1; height: 3px; background: var(--line-2); border-radius: 3px; }
.progress span.done { background: var(--gold); }
.step-title { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.step-title h2 { font-size: 26px; margin: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.day { flex: none; width: 74px; scroll-snap-align: start; text-align: center; border: 1px solid var(--line-2); border-radius: var(--radius);
       padding: 10px 4px; background: var(--card); color: var(--text); cursor: pointer; font: inherit; }
.day small { display: block; font-size: 11.5px; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.day b { display: block; font-family: var(--display); font-size: 22px; color: var(--heading); font-weight: 500; }
.day[aria-pressed="true"] { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.day[disabled] { opacity: .35; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 18px; }
.slot { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--card); color: var(--heading);
        padding: 11px 6px; cursor: pointer; font: 600 14.5px var(--body); }
.slot[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn); }
.summary { position: sticky; top: 92px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; margin: 0; font-size: 14.5px; }
.summary dt { color: var(--soft); }
.summary dd { margin: 0; color: var(--heading); text-align: right; }
.summary .total { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: flex; justify-content: space-between; }
.review dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin: 0; }
.review dt { color: var(--soft); font-size: 14px; }
.review dd { margin: 0; color: var(--heading); }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; gap: 2px; } .review dd { margin-bottom: 10px; } }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.status.pending, .status.initiated, .status.awaiting_verification { background: #f7ecd2; color: var(--warn); }
.status.confirmed, .status.paid, .status.completed { background: #e3f1e7; color: var(--ok); }
.status.cancelled, .status.failed, .status.refunded { background: #f8e1db; color: var(--danger); }

/* ---------- notices ---------- */
.notice { border: 1px solid var(--line-2); background: var(--bg-2); border-radius: var(--radius); padding: 18px 20px;
          color: var(--text); font-size: 14.5px; }
.notice strong { color: var(--gold-2); }
.demo-bar { background: #f3e7cf; color: #6b4e14; text-align: center; font-size: 13px; padding: 8px 16px; border-bottom: 1px solid #e3d1ad; }
.empty { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 34px; text-align: center; color: var(--soft); }
.skeleton { background: linear-gradient(90deg, var(--card) 0%, var(--card-2) 50%, var(--card) 100%); background-size: 200% 100%;
            animation: shimmer 1.4s infinite; border-radius: var(--radius); min-height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- footer ---------- */
.crisis { background: #fbefea; border-top: 1px solid #f0d3c8; color: #7a3b2e; font-size: 14px; }
.crisis .wrap { padding-top: 16px; padding-bottom: 16px; }
.crisis strong { color: #5c2a1f; }
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 30px; color: var(--soft); font-size: 14.5px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--body); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--soft); }
.site-footer a:hover { color: var(--heading); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; }

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- call button (opens phone dialler) ---------- */
.header-call svg { width: 16px; height: 16px; }
.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
            display: grid; place-items: center; background: var(--btn); color: var(--btn-text);
            box-shadow: 0 8px 24px rgba(30,59,43,.3); transition: transform .2s; }
.call-fab:hover { transform: scale(1.06); color: var(--btn-text); }
.call-fab svg { width: 24px; height: 24px; }
@media (min-width: 981px) { .call-fab { display: none; } }   /* desktop uses the header button */
@media (max-width: 980px) { .menu .header-call { margin: 10px 0 0; } }

/* header fit */
.brand span { white-space: nowrap; }
.menu .btn, .btn-sm { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1240px) { .menu { gap: 15px; } .menu a { font-size: 13.5px; } .brand { font-size: 17px; } }
.menu a.btn-primary, .menu a.btn-primary:hover { color: var(--btn-text); }
.menu a.btn-ghost { color: var(--heading); }

/* mobile header: keep the menu button visible, shorten long brand names */
@media (max-width: 980px) {
  .brand { min-width: 0; flex: 1; font-size: 17px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .menu-toggle { flex: none; }
}
@media (max-width: 420px) { .brand { font-size: 15px; } .brand svg { width: 24px; height: 24px; } }
/* Bangla letters must not be spaced apart */
html[lang="bn"] .eyebrow, html[lang="bn"] .tag, html[lang="bn"] .status, html[lang="bn"] .site-footer h4 { letter-spacing: 0; text-transform: none; }
