/* =========================================================
   Ahmadiyya Muslim Jama'at — Public site styles
   ========================================================= */
:root {
  --green-950: #041c15;
  --green-900: #062a20;
  --green-800: #0b3d2e;
  --green-700: #10523d;
  --green-600: #17684d;
  --gold-300: #f3d58a;
  --gold-400: #e2b964;
  --gold-500: #c9973f;
  --gold-600: #a97a2c;
  --cream: #faf6ec;
  --cream-2: #f3ecdb;
  --ink: #14211c;
  --muted: #5d6b64;
  --line: rgba(11, 61, 46, .12);
  --white: #fff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 50px -20px rgba(4, 28, 21, .35);
  --shadow-sm: 0 6px 20px -8px rgba(4, 28, 21, .25);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", "Traditional Arabic", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); color: var(--green-800); }
sup { font-size: .6em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold-400); padding: 8px 14px; z-index: 999; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.6em; border-radius: 999px; font: 600 .95rem var(--sans);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--green-950); box-shadow: 0 10px 25px -10px rgba(201, 151, 63, .8); }
.btn--gold:hover { box-shadow: 0 16px 30px -10px rgba(201, 151, 63, .9); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, .14); }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: #fff; }
.btn--soft { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .15); }
.btn--soft:hover { background: rgba(255, 255, 255, .16); }
.btn--soft.is-on { background: rgba(243, 213, 138, .18); border-color: var(--gold-400); color: var(--gold-300); }
.btn--block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: .25s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }

.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .75rem; font-weight: 600; color: var(--gold-400); margin: 0 0 .9rem; }
.eyebrow--dark { color: var(--gold-600); }

/* ---------- Announcement ---------- */
.announce {
  position: relative; z-index: 60; background: linear-gradient(90deg, var(--gold-500), var(--gold-300), var(--gold-500));
  color: var(--green-950); font-weight: 600; font-size: .9rem; overflow: hidden; padding: 9px 44px 9px 0;
}
.announce__track { white-space: nowrap; display: inline-block; padding-left: 100%; animation: marquee 28s linear infinite; }
.announce:hover .announce__track { animation-play-state: paused; }
.announce__close { position: absolute; right: 8px; top: 50%; translate: 0 -50%; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--green-950); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: background .35s, box-shadow .35s; background: var(--green-900); }
.nav.is-scrolled { background: rgba(250, 246, 236, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand__logo { height: 52px; width: auto; }
.brand__logo--dark { display: none; }
.nav.is-scrolled .brand__logo--light { display: none; }
.nav.is-scrolled .brand__logo--dark { display: block; }
.nav__links { display: flex; gap: 6px; }
.nav__links a { text-decoration: none; color: rgba(255, 255, 255, .85); font-weight: 500; font-size: .93rem; padding: 8px 14px; border-radius: 999px; transition: .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--gold-300); background: rgba(255, 255, 255, .07); }
.nav.is-scrolled .nav__links a { color: var(--green-800); }
.nav.is-scrolled .nav__links a:hover, .nav.is-scrolled .nav__links a.is-active { color: var(--gold-600); background: rgba(11, 61, 46, .06); }
.nav.is-scrolled .icon-btn { color: var(--green-800); border-color: var(--line); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 10px; }
.burger span { height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav.is-scrolled .burger span { background: var(--green-800); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 76px); display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% 20%, var(--green-700), transparent 60%),
              linear-gradient(160deg, var(--green-900), var(--green-950));
  color: #fff; padding: 70px 0 100px;
}
.hero__pattern, .quotes__pattern, .display__pattern {
  position: absolute; inset: 0; opacity: .09; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23f3d58a' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3Cpath d='M40 18l6 16 16 6-16 6-6 16-6-16-16-6 16-6z'/%3E%3Ccircle cx='40' cy='40' r='6'/%3E%3Cpath d='M0 0l14 14M80 0L66 14M0 80l14-14M80 80L66 66'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.hero__stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__glow { position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(243, 213, 138, .25), transparent 65%); filter: blur(20px); animation: float 10s ease-in-out infinite; }
@keyframes float { 50% { transform: translate(-30px, 30px); } }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 60px; align-items: center; }
.bismillah { font-family: var(--arabic); font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-300); margin: 0 0 1rem; direction: rtl; text-align: left; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5rem); font-weight: 600; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0; }
.hero__dates { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: rgba(255, 255, 255, .7); font-size: .95rem; }
.hero__dates .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-400); }

.next-card {
  background: linear-gradient(160deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 28px; padding: 26px;
  backdrop-filter: blur(18px); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.next-card__top { display: flex; justify-content: space-between; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); letter-spacing: .05em; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.clock { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 1.05rem; color: var(--gold-300); }
.ring { position: relative; width: min(260px, 100%); aspect-ratio: 1; margin: 18px auto 10px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__bg { stroke: rgba(255, 255, 255, .08); stroke-width: 10; }
.ring__fg { stroke: url(#ringGrad); stroke-width: 10; stroke-dasharray: 553; stroke-dashoffset: 553; transition: stroke-dashoffset 1s linear; filter: drop-shadow(0 0 8px rgba(243, 213, 138, .5)); }
.ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring__label { font-size: .72rem; text-transform: uppercase; letter-spacing: .2em; color: rgba(255, 255, 255, .6); }
.ring__name { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; line-height: 1.05; }
.ring__arabic { font-family: var(--arabic); color: var(--gold-300); font-size: 1.3rem; line-height: 1.2; }
.ring__time { font-weight: 600; opacity: .85; margin-top: 2px; }
.countdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 18px; }
.countdown div { background: rgba(0, 0, 0, .2); border-radius: 14px; padding: 10px 6px; text-align: center; border: 1px solid rgba(255, 255, 255, .06); }
.countdown b { display: block; font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.countdown small { font-size: .7rem; text-transform: uppercase; letter-spacing: .15em; opacity: .6; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .4); border-radius: 20px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-300); animation: cue 1.8s infinite; }
@keyframes cue { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.section__head--light h2 { color: #fff; }

/* ---------- Sun path ---------- */
.sunpath { background: #fff; border-radius: var(--radius); padding: 26px 26px 18px; box-shadow: var(--shadow-sm); margin-bottom: 34px; border: 1px solid var(--line); }
.sunpath__chart { position: relative; height: 190px; }
.sunpath__chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sunpath__night { fill: #22406b; opacity: .05; }
.sunpath__arc { fill: none; stroke: var(--gold-500); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.sunpath__horizon { stroke: rgba(11, 61, 46, .25); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 4 5; }
.sunpath__tags { position: absolute; inset: 0; }
.sp-dot { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--green-700); z-index: 2; transition: transform .3s var(--ease); }
.sp-dot.is-night { border-color: #5b6f86; }
.sp-dot.is-next { background: var(--gold-400); border-color: var(--green-800); transform: scale(1.35); box-shadow: 0 0 0 6px rgba(226, 185, 100, .25); }
.sp-stem { position: absolute; bottom: -14px; width: 0; border-left: 1.5px dotted rgba(11, 61, 46, .3); z-index: 1; }
.sp-stem.is-next { border-left: 2px solid var(--gold-500); }
.sunpath__sun { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; z-index: 3; pointer-events: auto;
  background: radial-gradient(circle at 35% 35%, #fff4c9, var(--gold-400) 60%, var(--gold-500));
  box-shadow: 0 0 0 6px rgba(243, 213, 138, .35), 0 0 26px 6px rgba(226, 185, 100, .6); transition: left 1s, top 1s; }
.sunpath__sun.is-night { background: radial-gradient(circle at 60% 40%, #fff, #cfd8e3 70%); box-shadow: inset -6px -2px 0 0 #9fb0c4, 0 0 18px 2px rgba(180, 200, 230, .6); }
.sunpath__labels { position: relative; height: 54px; margin-top: 16px; }
.sp-label { position: absolute; top: 0; min-width: 78px; box-sizing: border-box; overflow: hidden; text-overflow: ellipsis; padding: 6px 12px; border-radius: 12px; background: var(--cream); border: 1px solid var(--line); text-align: center; line-height: 1.2; white-space: nowrap; }
.sp-label::before { content: ""; position: absolute; top: -6px; left: var(--tick, 50%); width: 10px; height: 10px; margin-left: -5px; background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.sp-label b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--green-800); }
.sp-label span { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-label.is-next { background: var(--green-800); border-color: var(--green-800); }
.sp-label.is-next b { color: #fff; }
.sp-label.is-next span { color: var(--gold-300); }
.sunpath__legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 28px; font-size: .88rem; color: var(--muted); padding-top: 14px; margin-top: 8px; border-top: 1px solid var(--line); }
.sunpath__legend span { display: inline-flex; align-items: center; gap: 7px; }
.sunpath__legend b { color: var(--green-800); }
.lg { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.lg--rise { background: #f3d58a; } .lg--noon { background: var(--gold-500); } .lg--set { background: #d07a3a; }

/* ---------- Prayer cards ---------- */
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.p-card {
  position: relative; background: #fff; border-radius: var(--radius); padding: 24px 18px 22px; text-align: center;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.p-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.p-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--green-600), var(--gold-400)); opacity: .5; }
.p-card__icon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--cream-2); color: var(--green-700); }
.p-card__icon svg { width: 26px; height: 26px; }
.p-card__ar { font-family: var(--arabic); color: var(--gold-600); font-size: 1.35rem; line-height: 1; }
.p-card__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--green-800); margin: 4px 0; }
.p-card__time { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.p-card__sub { font-size: .78rem; color: var(--muted); min-height: 1.2em; margin-top: 4px; }
.p-card.is-past { opacity: .62; }
.p-card.is-next { background: linear-gradient(160deg, var(--green-700), var(--green-900)); color: #fff; transform: translateY(-8px) scale(1.03); box-shadow: 0 30px 60px -20px rgba(6, 42, 32, .6); border-color: transparent; }
.p-card.is-next::before { opacity: 1; background: linear-gradient(90deg, var(--gold-300), var(--gold-500)); }
.p-card.is-next .p-card__name { color: #fff; }
.p-card.is-next .p-card__ar { color: var(--gold-300); }
.p-card.is-next .p-card__icon { background: rgba(255, 255, 255, .1); color: var(--gold-300); }
.p-card.is-next .p-card__sub { color: var(--gold-300); }
.p-card__badge { position: absolute; top: 12px; right: 12px; font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--gold-400); color: var(--green-950); }
.p-card--jumuah { background: linear-gradient(160deg, #fff, var(--cream-2)); }

.changes { margin-top: 40px; background: #fff; border: 1px dashed rgba(201, 151, 63, .6); border-radius: var(--radius); padding: 22px 24px; }
.changes h3 { font-family: var(--sans); font-size: 1rem; display: flex; gap: 8px; align-items: center; color: var(--green-800); }
.changes h3 svg { width: 20px; height: 20px; color: var(--gold-600); }
.changes__list { display: flex; flex-wrap: wrap; gap: 12px; }
.change { display: flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.change__date { text-align: center; background: var(--green-800); color: #fff; border-radius: 10px; padding: 4px 10px; line-height: 1.1; }
.change__date b { display: block; font-size: 1.2rem; }
.change__date small { font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
.change__txt { font-size: .92rem; }
.change__txt s { color: var(--muted); }
.prayer-actions { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Quotes ---------- */
.quotes { background: linear-gradient(170deg, var(--green-800), var(--green-950)); color: #fff; overflow: hidden; }
.quotes__pattern { opacity: .07; }
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.tab { border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: rgba(255, 255, 255, .8); padding: 9px 18px; border-radius: 999px; cursor: pointer; font: 500 .9rem var(--sans); transition: .25s; }
.tab:hover { border-color: var(--gold-400); color: #fff; }
.tab.is-active { background: var(--gold-400); border-color: var(--gold-400); color: var(--green-950); }
.quote-stage { display: grid; grid-template-columns: 300px 1fr; align-items: center; gap: 60px; max-width: 1040px; margin: 0 auto; }
.portrait { text-align: center; position: relative; transition: opacity .3s, transform .3s var(--ease); }
.portrait.is-switching { opacity: 0; transform: scale(.96); }
.portrait__ring { position: absolute; left: 50%; top: 0; width: 280px; height: 280px; margin-left: -140px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--gold-300), var(--gold-600), var(--gold-300), var(--gold-600), var(--gold-300)); animation: spin 18s linear infinite; }
.portrait__ring::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--green-900); }
.portrait__frame { position: relative; width: 256px; height: 256px; margin: 12px auto 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, var(--green-600), var(--green-950)); display: grid; place-items: center; box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .6); }
.portrait__frame > img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait__ph { width: 100%; height: 100%; display: grid; place-items: center; }
.portrait__ph img { width: 62%; border-radius: 50%; background: #fff; padding: 6%; }
.portrait__ph svg { width: 50%; color: var(--gold-300); stroke-width: 1.4; }
.portrait__name { margin-top: 24px; }
.portrait__name b { display: block; font-family: var(--serif); font-size: 1.45rem; color: #fff; line-height: 1.2; }
.portrait__name span { font-size: .85rem; color: var(--gold-300); letter-spacing: .04em; }
.quote { margin: 0; text-align: left; position: relative; min-height: 250px; display: flex; flex-direction: column; justify-content: center; transition: opacity .45s, transform .45s var(--ease); }
.quote.is-out { opacity: 0; transform: translateY(14px); }
.quote__mark { font-family: var(--serif); font-size: 8rem; line-height: .6; color: var(--gold-400); opacity: .4; height: 50px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.4rem, 2.6vw, 2.05rem); line-height: 1.38; font-weight: 500; font-style: italic; }
.quote figcaption { margin-top: 24px; color: var(--gold-300); font-size: .92rem; letter-spacing: .02em; }
.quote figcaption::before { content: ""; display: block; width: 50px; height: 2px; background: var(--gold-400); margin: 0 0 14px; }
.quote-ctrl { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.qnav { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .05); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: .25s; }
.qnav:hover { background: var(--gold-400); color: var(--green-950); border-color: var(--gold-400); }
.qdots { display: flex; gap: 8px; flex-wrap: wrap; }
.qdots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .25); cursor: pointer; padding: 0; transition: .35s var(--ease); }
.qdots button.is-active { width: 34px; background: var(--gold-400); }

/* ---------- Events ---------- */
.chips { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip { border: 1px solid var(--line); background: #fff; padding: 8px 16px; border-radius: 999px; font: 500 .88rem var(--sans); cursor: pointer; color: var(--green-800); transition: .2s; }
.chip:hover { border-color: var(--green-700); }
.chip.is-active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.featured {
  display: grid; grid-template-columns: 1.1fr 1fr; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow);
  margin-bottom: 30px; cursor: pointer; border: 1px solid var(--line); transition: transform .35s var(--ease);
}
.featured:hover { transform: translateY(-4px); }
.featured__media { min-height: 320px; position: relative; }
.featured__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured__body h3 { font-size: 2.2rem; color: var(--green-800); }
.ev-media { background-size: cover; background-position: center; position: relative; }
.ev-media--art { background: linear-gradient(135deg, var(--green-700), var(--green-950)); overflow: hidden; }
.ev-art { position: absolute; inset: 0; display: grid; place-items: center; }
.ev-art svg { width: 45%; max-width: 160px; color: var(--gold-300); opacity: .9; stroke-width: 1.2; }
.ev-date { position: absolute; left: 16px; top: 16px; background: #fff; color: var(--green-900); border-radius: 14px; padding: 8px 12px; text-align: center; line-height: 1; box-shadow: var(--shadow-sm); z-index: 2; }
.ev-date b { display: block; font-size: 1.6rem; font-family: var(--serif); }
.ev-date small { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: var(--gold-600); }
.tag { display: inline-block; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--gold-600); margin-bottom: 8px; }
.meta { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .92rem; }
.meta li { display: flex; gap: 8px; align-items: center; }
.meta svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }
.mini-cd { display: flex; gap: 8px; margin-top: 16px; }
.mini-cd span { background: var(--cream); border-radius: 10px; padding: 6px 10px; font-size: .78rem; color: var(--muted); }
.mini-cd b { color: var(--green-800); font-size: 1.05rem; margin-right: 2px; font-variant-numeric: tabular-nums; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ev-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s var(--ease); text-align: left; font: inherit; padding: 0; color: inherit; }
.ev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ev-card .ev-media { height: 190px; }
.ev-card__body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.ev-card h3 { font-size: 1.5rem; color: var(--green-800); }
.ev-card p { color: var(--muted); font-size: .92rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-card__more { margin-top: auto; padding-top: 14px; color: var(--gold-600); font-weight: 600; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 30px; }

/* ---------- Band ---------- */
.band { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); padding: 44px 0; }
.band__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.band h3 { font-size: 1.9rem; color: var(--green-950); margin-bottom: .2em; }
.band p { margin: 0; color: var(--green-900); }
.band__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.band .btn--gold { background: var(--green-900); color: #fff; box-shadow: none; }
.band .btn--ghost { color: var(--green-900); border-color: var(--green-900); background: transparent; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.about__art { position: relative; aspect-ratio: 1; display: grid; place-items: center; }
.about__emblem { width: 58%; aspect-ratio: 1; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow); position: relative; z-index: 1; }
.about__emblem img { width: 78%; }
.about__orbit { position: absolute; inset: 4%; border-radius: 50%; border: 1.5px dashed rgba(201, 151, 63, .5); animation: spin 60s linear infinite; }
.about__orbit::before, .about__orbit::after { content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-400); top: -8px; left: 50%; }
.about__orbit::after { top: auto; bottom: 10%; left: 6%; width: 10px; height: 10px; background: var(--green-600); }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text { font-size: 1.08rem; color: #34423c; white-space: pre-line; }
.pillars { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pillars li { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.pillars b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--green-800); }
.pillars span { font-size: .85rem; color: var(--muted); }

/* ---------- Visit ---------- */
.visit { padding-top: 0; }
.visit__card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: linear-gradient(150deg, var(--green-800), var(--green-950)); color: #fff; border-radius: 30px; padding: 54px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.visit__card h2 { color: #fff; }
.contact { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 14px; }
.contact li { display: flex; gap: 12px; align-items: flex-start; color: rgba(255, 255, 255, .85); }
.contact svg { width: 22px; height: 22px; color: var(--gold-300); flex: none; margin-top: 1px; }
.contact a { text-decoration: none; }
.contact a:hover { color: var(--gold-300); }
.visit__times { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 24px 28px; align-self: center; }
.visit__times h3 { font-size: 1.5rem; color: var(--gold-300); }
.vt-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-variant-numeric: tabular-nums; }
.vt-row:last-child { border: 0; }
.vt-row.is-next { color: var(--gold-300); font-weight: 700; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(255, 255, 255, .65); padding: 50px 0 40px; text-align: center; font-size: .9rem; }
.footer__logo { height: 56px; margin: 0 auto 16px; }
.footer__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--gold-300); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 28, 21, .7); backdrop-filter: blur(6px); animation: fade .3s; }
.modal__panel { position: relative; background: #fff; border-radius: 26px; width: min(640px, 100%); max-height: 90vh; overflow: auto; animation: pop .4s var(--ease); }
.modal__media { height: 230px; }
.modal__body { padding: 28px 32px 32px; }
.modal__body h3 { font-size: 2rem; color: var(--green-800); }
.modal__body p { white-space: pre-line; color: #34423c; }
.modal__close { position: absolute; right: 14px; top: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.5rem; cursor: pointer; }
.modal__cd { margin: 16px 0 22px; }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .35s var(--ease); z-index: 200; box-shadow: var(--shadow); font-size: .92rem; }
.toast.is-show { opacity: 1; translate: -50% 0; }

/* ---------- TV display ---------- */
.display { position: fixed; inset: 0; z-index: 300; background: radial-gradient(1000px 600px at 50% 0%, var(--green-700), var(--green-950)); color: #fff; padding: 4vh 4vw; display: flex; flex-direction: column; gap: 3vh; overflow: hidden; }
.display[hidden] { display: none; }
.display__pattern { opacity: .06; }
.display__exit { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: #fff; font-size: 1.6rem; cursor: pointer; z-index: 2; }
.display__top { display: flex; justify-content: space-between; align-items: center; position: relative; }
.display__top img { height: 9vh; }
.display__clock { text-align: right; padding-right: 50px; }
.display__clock span { display: block; font-size: 9vh; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; color: var(--gold-300); }
.display__clock small { font-size: 2.2vh; opacity: .75; }
.display__next { font-size: 3.4vh; text-align: center; position: relative; }
.display__next b { color: var(--gold-300); }
.display__grid { flex: 1; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5vw; position: relative; }
.d-card { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 2vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1vh; }
.d-card .ar { font-family: var(--arabic); font-size: 4vh; color: var(--gold-300); }
.d-card .nm { font-family: var(--serif); font-size: min(4.5vh, 2.6vw); font-weight: 700; }
.d-card .tm { white-space: nowrap; font-size: min(5vh, 2.5vw); font-weight: 700; font-variant-numeric: tabular-nums; }
.d-card.is-next { background: linear-gradient(160deg, var(--gold-400), var(--gold-600)); color: var(--green-950); border-color: transparent; }
.d-card.is-next .ar { color: var(--green-900); }
.display__quote { text-align: center; position: relative; max-width: 80vw; margin: 0 auto; min-height: 14vh; }
.display__quote p { font-family: var(--serif); font-style: italic; font-size: 3.4vh; margin: 0 0 1vh; }
.display__quote small { color: var(--gold-300); font-size: 2vh; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .quote-stage { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .portrait__ring { width: 210px; height: 210px; margin-left: -105px; }
  .portrait__frame { width: 190px; height: 190px; margin-top: 10px; }
  .quote { text-align: center; min-height: 0; }
  .quote figcaption::before { margin: 0 auto 14px; }
  .quote-ctrl { justify-content: center; }
  .hero__grid, .about__grid, .visit__card, .featured { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding: 50px 0 90px; }
  .hero__grid { gap: 40px; }
  .about__art { max-width: 320px; margin: 0 auto; }
  .visit__card { padding: 34px 24px; }
  .featured__media { min-height: 220px; }
  .featured__body { padding: 28px; }
  .burger { display: flex; }
  .nav__links {
    position: fixed; inset: 76px 0 auto; flex-direction: column; background: var(--green-900); padding: 12px 16px 20px;
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: -1; box-shadow: var(--shadow);
  }
  .nav__links.is-open { transform: none; }
  .nav__links a, .nav.is-scrolled .nav__links a { color: #fff; padding: 14px; }
  .display__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .p-card.is-next { transform: none; }
  .event-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .brand__logo { height: 42px; }
  .sunpath { padding: 18px 14px 14px; }
  .sunpath__chart { height: 140px; }
  .sp-label { min-width: 0; padding: 5px 2px; }
  .sp-label b { font-size: .86rem; }
  .sp-label span { font-size: .68rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .nav, .hero, .quotes, .events, .band, .about, .footer, .announce, .prayer-actions, .sunpath, .toast, .visit { display: none !important; }
  body { background: #fff; }
  .section { padding: 0; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .p-card { box-shadow: none; break-inside: avoid; }
  .p-card.is-next { background: #fff; color: #000; transform: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- Publications dropdown & donate ---------- */
.dropdown { position: relative; }
.dropdown__btn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; cursor: pointer; font: 500 .93rem var(--sans); color: rgba(255, 255, 255, .85); padding: 8px 14px; border-radius: 999px; transition: .2s; }
.dropdown__btn svg { width: 16px; height: 16px; transition: transform .25s; }
.dropdown__btn:hover, .dropdown.is-open .dropdown__btn { color: var(--gold-300); background: rgba(255, 255, 255, .07); }
.dropdown.is-open .dropdown__btn svg { transform: rotate(180deg); }
.nav.is-scrolled .dropdown__btn { color: var(--green-800); }
.dropdown__menu { position: absolute; top: calc(100% + 12px); left: 50%; min-width: 290px; padding: 10px; background: #fcfbf6; border-radius: 16px; border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(4, 28, 21, .45); opacity: 0; visibility: hidden; transform: translate(-50%, -8px); transition: .25s var(--ease); z-index: 70; }
.dropdown__menu::before { content: ""; position: absolute; top: -7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; background: inherit; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 901px) { .dropdown:hover .dropdown__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); } }
.nav .dropdown__menu a, .nav.is-scrolled .dropdown__menu a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 10px; color: var(--green-900);
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase; background: none; white-space: nowrap; }
.nav .dropdown__menu a::after { content: "↗"; font-family: var(--sans); color: var(--gold-500); opacity: 0; transform: translateX(-4px); transition: .2s; }
.nav .dropdown__menu a:hover { background: rgba(11, 61, 46, .07); color: var(--green-700); }
.nav .dropdown__menu a:hover::after { opacity: 1; transform: none; }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }
.nav__donate { border-radius: 10px; }
.nav__donate svg { width: 16px; height: 16px; }
.nav__donate-mobile { display: none; }

/* ---------- Event art themes ---------- */
.ev-media--art { background: var(--ev-bg); }
.ev-theme--emerald { --ev-bg: linear-gradient(135deg, #17684d, #062a20); --ev-ic: #f3d58a; }
.ev-theme--forest  { --ev-bg: linear-gradient(135deg, #3f7d3a, #173d1f); --ev-ic: #e3f2c1; }
.ev-theme--navy    { --ev-bg: linear-gradient(135deg, #22406b, #0c1c33); --ev-ic: #f3d58a; }
.ev-theme--crimson { --ev-bg: linear-gradient(135deg, #8e2b2b, #3d0f14); --ev-ic: #ffd9c7; }
.ev-theme--indigo  { --ev-bg: linear-gradient(135deg, #3a2f7a, #140f36); --ev-ic: #f3d58a; }
.ev-theme--amber   { --ev-bg: linear-gradient(135deg, #b97a24, #5a3408); --ev-ic: #fff1cf; }
.ev-theme--teal    { --ev-bg: linear-gradient(135deg, #1f7a7a, #0b3337); --ev-ic: #d5f5ef; }
.ev-theme--plum    { --ev-bg: linear-gradient(135deg, #7a2f63, #2d0e25); --ev-ic: #ffd6ec; }
.ev-media--art::before { content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23fff' stroke-width='1'%3E%3Cpath d='M40 4l10 26 26 10-26 10-10 26-10-26L4 40l26-10z'/%3E%3C/g%3E%3C/svg%3E"); background-size: 60px 60px; }
.ev-art svg { color: var(--ev-ic); position: relative; transition: transform .5s var(--ease); }
.ev-art__halo { position: absolute; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 70%); }
.ev-card:hover .ev-art svg, .featured:hover .ev-art svg { transform: scale(1.08) rotate(-3deg); }
.ev-icon-chip { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .92); display: none; place-items: center; color: var(--green-800); z-index: 2; box-shadow: var(--shadow-sm); }
.ev-icon-chip svg { width: 24px; height: 24px; stroke-width: 3; }
.ev-media--photo .ev-icon-chip { display: grid; }
.ev-media--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), transparent 40%); }

/* ---------- Footer publications ---------- */
.footer__pubs { margin: 6px auto 26px; }
.footer__pubs h4 { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-300); margin: 0 0 12px; font-weight: 600; }
.footer__pubs div { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; }
.footer__pubs a { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; transition: .2s; }
.footer__pubs a:hover { border-color: var(--gold-400); color: var(--gold-300); }
.footer__donate { margin-bottom: 24px; }

@media (max-width: 900px) {
  .nav__donate { display: none; }
  .dropdown__btn { color: #fff !important; padding: 14px; width: 100%; justify-content: space-between; }
  .dropdown__menu { position: static; transform: none !important; opacity: 1; visibility: visible; box-shadow: none; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); display: none; min-width: 0; }
  .dropdown__menu::before { display: none; }
  .dropdown.is-open .dropdown__menu { display: block; }
  .nav .dropdown__menu a, .nav.is-scrolled .dropdown__menu a { color: #fff; }
  .nav__donate-mobile { display: block; margin-top: 8px; text-align: center; background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--green-950) !important; font-weight: 700 !important; border-radius: 12px !important; }
  .nav__links { max-height: calc(100vh - 76px); overflow: auto; }
}
