/* =====================================================================
   Osmanlı Camii Lelystad — stylesheet
   Concept: "İznik & Polder". Cream paper, Iznik cobalt, turquoise carpet,
   mint window frames, a touch of coral. Ottoman arches, 8-point stars.
   ===================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Palette: taken from the mosque itself (Iznik mihrab, carpet, window frames) */
  --cream: #f6f1e6;
  --ivory: #fbf8f1;
  --sand: #ece3d1;
  --sand-2: #dfd3bb;
  --ink: #15203a;
  --ink-2: #3a4560;
  --muted: #5f6780;
  --cobalt: #1a2f6d;
  --cobalt-2: #122354;
  --night: #0c1a42;
  --turquoise: #1e9fb1;
  --turquoise-2: #1f7382;
  --mint: #a9cdb9;
  --coral: #c2493b;
  --gold: #c9a961;
  --gold-2: #8c6a18;
  --line: rgba(21, 32, 58, 0.12);
  --line-strong: rgba(21, 32, 58, 0.22);

  /* Type */
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-arabic: "Amiri", "Scheherazade New", "Noto Naskh Arabic", serif;

  /* Fluid sizes */
  --fs-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --fs-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --fs-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.4vw, 1.35rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  --fs-3xl: clamp(2.6rem, 1.6rem + 4.4vw, 5.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.1rem, 4vw, 3rem);
  --section: clamp(4rem, 9vw, 8.5rem);
  --radius: 22px;
  --radius-sm: 12px;
  --nav-h: 76px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.7s;

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--turquoise); color: #fff; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 4px; }

/* Grain overlay on the cream paper */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: multiply;
}

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); font-weight: 500; }
.display em { font-style: italic; font-weight: 500; color: var(--turquoise-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--turquoise-2);
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 1.6rem; height: 1px; background: currentColor; opacity: 0.6; }
.lead { font-size: var(--fs-lg); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }
.arabic { font-family: var(--font-arabic); direction: rtl; unicode-bidi: isolate; }
.small { font-size: var(--fs-sm); }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.container.wide { --container: 1360px; }
.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.section-head h2 { font-size: var(--fs-2xl); margin-top: 0.9rem; }
.section-head .lead { margin-top: 1rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.grid { display: grid; gap: clamp(1.2rem, 3vw, 2.5rem); }
.grid > *, .split > *, .bento > *, .visit > *, .detail-layout > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.split.reverse > :first-child { order: 2; }

[id] { scroll-margin-top: calc(var(--nav-h) + 1rem); }
main:focus { outline: none; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 1000;
  background: var(--cobalt); color: #fff; padding: 0.7rem 1rem; border-radius: 8px; font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cobalt); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0.01em; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s, border-color 0.3s;
  will-change: transform;
}
.btn svg { width: 1.05em; height: 1.05em; transition: transform 0.35s var(--ease-out); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(26, 47, 109, 0.55); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn.ghost { --bg: transparent; --fg: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: rgba(21, 32, 58, 0.05); box-shadow: none; }
.btn.light { --bg: #fff; --fg: var(--cobalt); }
.btn.light:hover { box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.btn.outline-light { --bg: transparent; --fg: #fff; border-color: rgba(255, 255, 255, 0.4); }
.btn.outline-light:hover { background: rgba(255, 255, 255, 0.1); box-shadow: none; }
.btn.turquoise { --bg: var(--turquoise); }
.btn.turquoise:hover { box-shadow: 0 14px 30px -12px rgba(30, 159, 177, 0.6); }
.btn.sm { padding: 0.7rem 1.1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--cobalt);
  font-size: var(--fs-sm); position: relative;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform 0.35s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow::after {
  content: ""; position: absolute; left: 0; right: 1.4em; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }

/* ---------- Ornaments ---------- */
.star-pattern {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%231a2f6d' stroke-width='0.8'%3E%3Cpath d='M60 0 L120 60 L60 120 L0 60 Z'/%3E%3Cpath d='M17.6 17.6 L102.4 17.6 L102.4 102.4 L17.6 102.4 Z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  opacity: 0.09;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.star-pattern.light { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M60 0 L120 60 L60 120 L0 60 Z'/%3E%3Cpath d='M17.6 17.6 L102.4 17.6 L102.4 102.4 L17.6 102.4 Z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E"); opacity: 0.1; }

.rule-ornament {
  display: flex; align-items: center; justify-content: center; gap: 1rem; color: var(--gold);
  margin-block: 0.5rem;
}
.rule-ornament::before, .rule-ornament::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: currentColor; opacity: 0.5; }
.rule-ornament svg { width: 22px; height: 22px; }

/* Ottoman arch frame for images */
.arch {
  position: relative; overflow: hidden;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--sand);
  isolation: isolate;
}
.arch picture { height: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.arch:hover img { transform: scale(1.04); }
.arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35), inset 0 -60px 80px -40px rgba(12, 26, 66, 0.45);
  pointer-events: none;
}
.arch.frame { padding: 10px; background: var(--ivory); box-shadow: 0 30px 60px -30px rgba(21, 32, 58, 0.4), 0 0 0 1px var(--line); }
.arch.frame > img, .arch.frame > picture { border-radius: 999px 999px calc(var(--radius) - 8px) calc(var(--radius) - 8px); overflow: hidden; }
.arch.frame > picture img { border-radius: inherit; }
.arch.frame::after { inset: 10px; border-radius: 999px 999px calc(var(--radius) - 8px) calc(var(--radius) - 8px); }

.photo { overflow: hidden; border-radius: var(--radius); background: var(--sand); position: relative; }
.photo picture { height: 100%; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.photo:hover img { transform: scale(1.04); }

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
  background: linear-gradient(to bottom, rgba(246, 241, 230, 0.9), rgba(246, 241, 230, 0));
}
.site-header.scrolled {
  background: rgba(246, 241, 230, 0.82);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgba(21, 32, 58, 0.3);
}
.nav {
  height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem;
}
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-actions { justify-self: end; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; }
.brand-mark { width: 44px; height: 44px; flex: none; color: var(--cobalt); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(-6deg) scale(1.04); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: 0.005em; color: var(--ink); }
.brand-text .place { font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--turquoise-2); font-weight: 700; margin-top: 0.3rem; }

.nav-links { display: flex; align-items: center; gap: 0.2rem; position: relative; isolation: isolate; }
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; border-radius: 999px; background: rgba(21, 32, 58, 0.07);
  z-index: 0; pointer-events: none; opacity: 0;
  transition: left 0.5s var(--ease-out), width 0.5s var(--ease-out), opacity 0.3s;
  view-transition-name: nav-pill;
}
.nav-pill.ready { opacity: 1; }
.nav-pill.no-anim { transition: opacity 0.3s; }
.nav-links a {
  position: relative; padding: 0.55rem 0.85rem; border-radius: 999px; font-weight: 500; font-size: var(--fs-sm);
  color: var(--ink-2); transition: color 0.25s, background 0.25s;
  display: grid; text-align: center; white-space: nowrap;
}
/* Every language variant occupies the same grid cell, so a link is always as wide as its longest label */
.nav-links a > span { grid-area: 1 / 1; }
.nav-links a > .ghost { visibility: hidden; pointer-events: none; }
.nav-links a { z-index: 1; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"], .nav-links a[aria-current="location"] { color: var(--ink); }
.nav-links.no-pill a[aria-current] { background: rgba(21, 32, 58, 0.07); }
.nav-links a[aria-current="page"]::after, .nav-links a[aria-current="location"]::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--turquoise); transform: translateX(-50%);
}
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }
.next-pill { gap: 0.5rem; }
.next-pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 0 rgba(30,159,177,0.6); animation: pulse 2s infinite; }
.next-pill strong { font-weight: 700; }

.lang-switch {
  display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: rgba(255,255,255,0.4);
}
.lang-switch button {
  padding: 0.35rem 0.7rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  color: var(--muted); transition: background 0.3s, color 0.3s;
}
.lang-switch button[aria-pressed="true"] { background: var(--cobalt); color: #fff; }
.lang-switch button:not([aria-pressed="true"]):hover { color: var(--ink); background: rgba(21,32,58,0.06); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.4);
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform 0.3s, background 0.3s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.3s, top 0.3s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed; inset: 0; z-index: 90; background: var(--cream);
  display: flex; flex-direction: column; padding: calc(var(--nav-h) + 1rem) var(--gutter) 2rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s, transform 0.45s var(--ease-out), visibility 0.35s;
}
.mobile-menu.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu .star-pattern { opacity: 0.07; }
.mobile-menu nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.2rem; margin-top: 1rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 500; padding: 0.35rem 0;
  border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  transform: translateY(14px); opacity: 0; transition: transform 0.5s var(--ease-out), opacity 0.5s;
}
.mobile-menu nav a svg { width: 1.2rem; height: 1.2rem; color: var(--turquoise); }
.mobile-menu.open nav a { transform: none; opacity: 1; }
.mobile-menu.open nav a:nth-child(1) { transition-delay: 0.06s; }
.mobile-menu.open nav a:nth-child(2) { transition-delay: 0.11s; }
.mobile-menu.open nav a:nth-child(3) { transition-delay: 0.16s; }
.mobile-menu.open nav a:nth-child(4) { transition-delay: 0.21s; }
.mobile-menu.open nav a:nth-child(5) { transition-delay: 0.26s; }
.mobile-menu .mobile-foot { position: relative; z-index: 1; margin-top: auto; padding-top: 2rem; display: grid; gap: 1rem; }
.mobile-menu .mobile-foot .next-line { font-size: var(--fs-sm); color: var(--ink-2); }
.mobile-menu .mobile-foot .next-line strong { color: var(--cobalt); }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-top: clamp(1.5rem, 3vw, 2.5rem); padding-bottom: clamp(2rem, 4vw, 3rem);
  display: grid; align-items: center;
}
.hero .star-pattern { -webkit-mask-image: radial-gradient(ellipse 60% 80% at 75% 30%, #000 20%, transparent 100%); mask-image: radial-gradient(ellipse 60% 80% at 75% 30%, #000 20%, transparent 100%); }
.hero-glow {
  position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; filter: blur(80px); opacity: 0.55;
}
.hero-glow.a { width: 48vw; height: 48vw; max-width: 640px; max-height: 640px; right: -10vw; top: -10vw; background: radial-gradient(circle, rgba(30, 159, 177, 0.35), transparent 65%); }
.hero-glow.b { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; left: -12vw; bottom: -10vw; background: radial-gradient(circle, rgba(201, 169, 97, 0.35), transparent 65%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero > .container:last-of-type { position: relative; z-index: 1; margin-top: clamp(1.6rem, 3vw, 2.4rem); }
.hero-copy .arabic-line {
  font-family: var(--font-arabic); font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--gold-2); margin-bottom: 1.2rem;
  direction: rtl; text-align: left; display: inline-block;
}
.hero h1 { font-size: clamp(2.6rem, 1.6rem + 3.8vw, 4.9rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; max-width: 15ch; text-wrap: balance; }
.hero h1 em { font-style: italic; color: var(--turquoise-2); }
.hero .lead { margin-top: 1.2rem; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-meta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1.6rem 2.4rem; }
.hero-meta div { display: grid; gap: 0.15rem; }
.hero-meta .k { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.hero-meta .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); }

.hero-visual { position: relative; }
.hero-arch { aspect-ratio: 4 / 4.3; width: min(100%, 470px); margin-left: auto; }
.hero-arch img { height: 100%; }
.hero-card {
  position: absolute; left: -8%; bottom: 8%; width: min(320px, 82%);
  background: rgba(12, 26, 66, 0.92); color: #fff; border-radius: 18px; padding: 1.2rem 1.3rem;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 30px 60px -20px rgba(12, 26, 66, 0.6), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.hero-card .k { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; font-weight: 600; display: flex; align-items: center; gap: 0.5rem; }
.hero-card .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 0 rgba(30,159,177,0.7); animation: pulse 2s infinite; }
.hero-card .name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; margin-top: 0.4rem; line-height: 1; }
.hero-card .time { font-size: 1.05rem; opacity: 0.85; margin-top: 0.2rem; }
.hero-card .count { margin-top: 0.7rem; font-size: var(--fs-sm); opacity: 0.85; display: flex; align-items: baseline; gap: 0.4rem; }
.hero-card .count strong { font-variant-numeric: tabular-nums; font-size: 1.15rem; color: #fff; }
.hero-card a { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.9rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); }
.hero-card a svg { width: 0.9em; height: 0.9em; }

.hero-badge {
  position: absolute; right: -4%; top: 8%; width: 118px; height: 118px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cobalt);
  animation: spin 24s linear infinite;
}
.hero-badge svg { width: 100%; height: 100%; }
.hero-badge text { font-family: var(--font-body); font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; fill: var(--cobalt); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30,159,177,0.6); } 70% { box-shadow: 0 0 0 10px rgba(30,159,177,0); } 100% { box-shadow: 0 0 0 0 rgba(30,159,177,0); } }

/* Hero entrance */
.hero [data-stagger] { opacity: 0; transform: translateY(22px); animation: rise 1s var(--ease-out) forwards; }
.hero [data-stagger="1"] { animation-delay: 0.05s; }
.hero [data-stagger="2"] { animation-delay: 0.18s; }
.hero [data-stagger="3"] { animation-delay: 0.32s; }
.hero [data-stagger="4"] { animation-delay: 0.46s; }
.hero [data-stagger="5"] { animation-delay: 0.6s; }
.hero-visual[data-stagger] { transform: translateY(30px) scale(0.98); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Today bar (all of today's times inside the hero) */
.today-bar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem 1.6rem;
  padding: 0.9rem 1.2rem; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 160% at 0% 0%, #1d3a86 0%, var(--cobalt-2) 55%, var(--night) 100%);
  box-shadow: 0 30px 60px -35px rgba(12,26,66,0.7), inset 0 0 0 1px rgba(255,255,255,0.08);
}
.tb-head { display: grid; gap: 0.1rem; padding-right: 1.2rem; border-right: 1px solid rgba(255,255,255,0.14); min-width: 150px; }
.tb-head .k { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--mint); }
.tb-head .d { font-size: var(--fs-sm); font-weight: 600; }
.tb-head .h { font-size: var(--fs-xs); opacity: 0.7; }
.tb-times { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.4rem; }
.tb-times li { position: relative; display: grid; gap: 0.05rem; padding: 0.45rem 0.6rem; border-radius: 12px; border: 1px solid transparent; transition: background 0.3s, border-color 0.3s; }
.tb-times li .n { font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; opacity: 0.75; white-space: nowrap; }
.tb-times li .s { font-size: 0.66rem; opacity: 0.5; }
.tb-times li .t { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tb-times li.next { background: rgba(30,159,177,0.22); border-color: rgba(30,159,177,0.55); animation: breathe 4s ease-in-out infinite; }
.tb-times li.next .n { color: var(--mint); opacity: 1; }
.tb-times li.next::after { content: ""; position: absolute; top: 0.55rem; right: 0.6rem; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(169,205,185,0.6); animation: pulse 2s infinite; }
.tb-times li.past { opacity: 0.5; }
.tb-side { display: grid; gap: 0.35rem; justify-items: start; padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,0.14); }
.tb-side .j { font-size: var(--fs-sm); opacity: 0.9; white-space: nowrap; }
.tb-side .j strong { font-variant-numeric: tabular-nums; }
.tb-link { display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mint); white-space: nowrap; }
.tb-link svg { width: 0.95em; height: 0.95em; transition: transform 0.35s var(--ease-out); }
.tb-link:hover svg { transform: translateX(4px); }
.tb-status { font-size: var(--fs-xs); color: var(--muted); margin-top: 0.6rem; padding-left: 0.4rem; }
@media (max-width: 1100px) {
  .today-bar { grid-template-columns: 1fr; }
  .tb-head { border-right: 0; padding-right: 0; grid-template-columns: auto auto auto; gap: 0.8rem; align-items: baseline; }
  .tb-times { grid-template-columns: repeat(3, 1fr); }
  .tb-side { border-left: 0; padding-left: 0; grid-auto-flow: column; justify-content: space-between; width: 100%; align-items: center; }
}
@media (max-width: 600px) {
  .tb-head { grid-template-columns: 1fr; gap: 0.1rem; }
  .tb-times { grid-template-columns: repeat(3, 1fr); gap: 0.3rem; }
  .tb-times li { padding: 0.4rem 0.45rem; }
  .tb-times li .t { font-size: 1.3rem; }
  .tb-times li .n { font-size: 0.58rem; letter-spacing: 0.06em; }
  .tb-side { grid-auto-flow: row; gap: 0.5rem; }
}

/* Marquee ribbon */
.ribbon { position: relative; border-block: 1px solid var(--line); background: var(--ivory); }
.ribbon-clip {
  overflow: hidden; padding: 0.9rem 0;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ribbon-track { display: flex; width: max-content; gap: 3rem; animation: marquee 48s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-track span { display: inline-flex; align-items: center; gap: 3rem; font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.ribbon-track span i { font-style: normal; color: var(--gold); font-size: 0.9rem; }
.ribbon.paused .ribbon-track { animation-play-state: paused; }
.ribbon-pause { position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ivory); display: grid; place-items: center; color: var(--ink-2); }
.ribbon-pause svg { width: 12px; height: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Prayer band ---------- */
.prayer-band {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(120% 140% at 10% 0%, #1d3a86 0%, var(--cobalt-2) 45%, var(--night) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
}
.prayer-band .star-pattern { -webkit-mask-image: radial-gradient(ellipse 60% 100% at 90% 50%, #000 10%, transparent 100%); mask-image: radial-gradient(ellipse 60% 100% at 90% 50%, #000 10%, transparent 100%); }
.prayer-band .container { position: relative; z-index: 1; }
.prayer-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 2rem; margin-bottom: 2rem; }
.prayer-head h2 { font-size: var(--fs-xl); }
.prayer-head .eyebrow { color: var(--mint); }
.prayer-head .dates { text-align: right; display: grid; gap: 0.1rem; font-size: var(--fs-sm); opacity: 0.85; }
.prayer-head .dates .hijri { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; opacity: 1; }
.prayer-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.prayer-cell {
  position: relative; border-radius: 16px; padding: 1.1rem 1rem 1rem; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1); transition: transform 0.4s var(--ease-out), background 0.3s, border-color 0.3s;
  overflow: hidden;
}
.prayer-cell:hover { transform: translateY(-3px); background: rgba(255,255,255,0.09); }
.prayer-cell .n { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; opacity: 0.75; }
.prayer-cell .tr { font-size: var(--fs-xs); opacity: 0.55; margin-top: 0.1rem; }
.prayer-cell .t { font-family: var(--font-display); font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; margin-top: 0.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.prayer-cell.next { background: rgba(30,159,177,0.22); border-color: rgba(30,159,177,0.6); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(30,159,177,0); } 50% { box-shadow: 0 0 0 6px rgba(30,159,177,0.12); } }
[data-pt].updated, [data-next-time].updated, [data-countdown].updated, [data-jumuah].updated { animation: numIn 0.6s var(--ease-out); }
@keyframes numIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.prayer-cell.next::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.12), transparent 60%); }
.prayer-cell.next .n { color: var(--mint); opacity: 1; }
.prayer-cell { display: flex; flex-direction: column; align-items: flex-start; }
.prayer-cell .tag { display: none; }
.prayer-cell.next .tag { display: inline-block; position: static; margin: -0.25rem 0 0.55rem; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 800; padding: 0.22rem 0.5rem; border-radius: 999px; background: var(--mint); color: var(--night); white-space: nowrap; }
.prayer-cell .t { margin-top: auto; padding-top: 0.5rem; }
.prayer-cell.past { opacity: 0.55; }
.prayer-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 1.6rem; font-size: var(--fs-sm); opacity: 0.9; }
.prayer-foot .jumuah { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.9rem 0.5rem 0.6rem; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.prayer-foot .jumuah svg { width: 1.1em; height: 1.1em; color: var(--mint); }
.prayer-foot .jumuah strong { font-variant-numeric: tabular-nums; }
.prayer-foot a { color: var(--mint); font-weight: 600; }
.prayer-status { font-size: var(--fs-xs); opacity: 0.6; margin-top: 0.8rem; }

/* ---------- Welcome / intro ---------- */
.intro-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem 1.6rem; margin-top: 2.2rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.intro-facts > div { display: grid; gap: 0.35rem; align-content: start; }
.intro-facts .k { display: block; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.intro-facts .v { display: block; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.intro-visual { position: relative; }
.intro-visual .arch { aspect-ratio: 4/5; width: min(100%, 460px); margin-inline: auto; }
.intro-visual .arch img { height: 100%; }
.intro-visual .caption {
  position: absolute; left: 50%; bottom: -1.2rem; transform: translateX(-50%); width: max-content; max-width: 90%;
  background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 0.55rem 1rem;
  font-size: var(--fs-xs); letter-spacing: 0.06em; color: var(--ink-2); box-shadow: 0 10px 30px -18px rgba(21,32,58,0.4);
}
.intro-visual .caption b { color: var(--turquoise-2); }

/* ---------- Bento activities ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(190px, auto); gap: 1rem; }
.bento > * { grid-column: span 2; }
.bento > .span-3 { grid-column: span 3; }
.bento > .span-4 { grid-column: span 4; }
.bento > .span-6 { grid-column: span 6; }
.bento > .row-2 { grid-row: span 2; }
.card.link-card { justify-content: center; align-items: flex-start; background: var(--sand); border-color: transparent; }
.card.link-card h3 { font-size: 1.7rem; }
.card.link-card .link-arrow { margin-top: 0.4rem; }
.card .more { margin-top: auto; display: inline-flex; align-items: center; gap: 0.4rem; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--turquoise-2); }
.card .more svg { width: 0.95em; height: 0.95em; transition: transform 0.35s var(--ease-out); }
.card:hover .more svg { transform: translateX(4px); }
.card.cobalt .more, .card.turq .more, .card.photo-card .more { color: var(--mint); }
.card .meta + .more { margin-top: 0.6rem; }
.card.photo-card .overlay .more { margin-top: 0.6rem; }
a.card { color: inherit; }
a.card:focus-visible { outline-offset: 4px; }
.card {
  position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ivory);
  border: 1px solid var(--line); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.8rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.3s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(21,32,58,0.35); border-color: var(--line-strong); }
.card .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(30,159,177,0.1); color: var(--turquoise-2);
  transition: transform 0.45s var(--ease-out), background 0.3s, color 0.3s;
}
.card:hover .icon { transform: translateY(-2px) rotate(-5deg); background: var(--turquoise-2); color: #fff; }
.card.cobalt:hover .icon, .card.turq:hover .icon { background: rgba(255,255,255,0.22); color: #fff; }
.card .icon svg { width: 22px; height: 22px; }
.card h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.card p { color: var(--ink-2); font-size: var(--fs-sm); }
.card .meta { margin-top: auto; font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; display: flex; gap: 0.5rem; align-items: center; }
.card .meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--turquoise); }
.card.cobalt { background: var(--cobalt); color: #fff; border-color: transparent; }
.card.cobalt p { color: rgba(255,255,255,0.8); }
.card.cobalt .icon { background: rgba(255,255,255,0.12); color: var(--mint); }
.card.cobalt .meta { color: rgba(255,255,255,0.65); }
.card.cobalt .star-pattern { opacity: 0.12; }
.card.photo-card { padding: 0; }
.card.photo-card picture { position: absolute; inset: 0; }
.card.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease-out); }
.card.photo-card:hover img { transform: scale(1.05); }
.card.photo-card .overlay { position: relative; z-index: 1; margin-top: auto; padding: 1.5rem; color: #fff; background: linear-gradient(to top, rgba(12,26,66,0.85), rgba(12,26,66,0)); }
.card.photo-card .overlay h3 { color: #fff; }
.card.photo-card .overlay p { color: rgba(255,255,255,0.85); }
.card.sand { background: var(--sand); }
.card.turq { background: linear-gradient(135deg, #1f7382, #17606d); color: #fff; border-color: transparent; }
.card.turq p { color: rgba(255,255,255,0.92); }
.card.turq .icon { background: rgba(255,255,255,0.15); color: #fff; }
.card.turq .meta { color: rgba(255,255,255,0.7); }
.card.turq .meta::before { background: #fff; }
.card .big-arabic { font-family: var(--font-arabic); font-size: 3.2rem; line-height: 1; color: rgba(255,255,255,0.18); position: absolute; right: 1rem; bottom: 0.6rem; direction: rtl; pointer-events: none; }

/* ---------- Schedule table ---------- */
.schedule { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ivory); }
.schedule-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 1rem; padding: 1.1rem 1.4rem; border-top: 1px solid var(--line); align-items: center; transition: background 0.25s; }
.schedule-row:first-child { border-top: 0; }
.schedule-row:hover { background: rgba(30,159,177,0.05); }
.schedule-row .when { transition: transform 0.35s var(--ease-out), color 0.3s; }
.schedule-row:hover .when { transform: translateX(-3px); color: var(--turquoise-2); }
.schedule-row .day { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--turquoise-2); }
.schedule-row .what { font-weight: 600; }
.schedule-row .what small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.schedule-row .when { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 1rem; }
.gallery .photo:first-child { grid-row: span 2; }
.gallery .photo { transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.gallery .photo:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(21,32,58,0.5); }
.gallery .photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; color: #fff; font-size: var(--fs-sm);
  background: linear-gradient(to top, rgba(12,26,66,0.75), transparent); opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.gallery .photo:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .gallery .photo { transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.gallery .photo:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(21,32,58,0.5); }
.gallery .photo figcaption { opacity: 1; transform: none; } }

/* ---------- Photo grid (detailpagina's, In beeld) ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.photo-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.photo-grid .photo { aspect-ratio: 4 / 3; transition: transform 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.photo-grid .photo.tall { grid-row: span 2; aspect-ratio: auto; }
.photo-grid .photo:hover { transform: translateY(-3px); box-shadow: 0 30px 50px -30px rgba(21,32,58,0.5); }
.photo-grid .photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1rem 1.2rem; color: #fff; font-size: var(--fs-sm);
  background: linear-gradient(to top, rgba(12,26,66,0.75), transparent); opacity: 0; transform: translateY(8px);
  transition: opacity 0.4s, transform 0.5s var(--ease-out);
}
.photo-grid .photo:hover figcaption { opacity: 1; transform: none; }
@media (hover: none) { .photo-grid .photo figcaption { opacity: 1; transform: none; } }
.detail-section .photo-grid { margin-top: 0.4rem; }
.detail-section .photo-grid + .link-arrow { margin-top: 1.2rem; }
@media (max-width: 800px) { .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .photo-grid, .photo-grid.two { grid-template-columns: 1fr; } .photo-grid .photo.tall { grid-row: auto; aspect-ratio: 4 / 3; } }

/* ---------- In beeld: momenten ---------- */
.moment + .moment { margin-top: clamp(3.5rem, 8vw, 6.5rem); padding-top: clamp(3rem, 6vw, 5rem); border-top: 1px solid var(--line); }
.moment-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); }
.moment-head h2 { font-size: var(--fs-2xl); margin-top: 0.9rem; }
.moment-head .lead { margin-top: 1rem; }
.moment-head .link-arrow { margin-top: 1.1rem; }

/* ---------- Quote block ---------- */
.quote {
  position: relative; text-align: center; padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  border-block: 1px solid var(--line); background: var(--ivory); overflow: hidden;
}
.quote .arabic { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--cobalt); line-height: 1.8; }
.quote .translation { font-family: var(--font-display); font-size: var(--fs-xl); font-style: italic; max-width: 32ch; margin: 1.2rem auto 0; color: var(--ink); text-wrap: balance; }
.quote .source { margin-top: 1rem; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; }

/* ---------- Visit / contact ---------- */
.visit { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.visit-info { display: flex; flex-direction: column; gap: 1.6rem; }
.info-list { display: grid; gap: 1rem; }
.info-item { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start; padding: 1.1rem 1.2rem; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), box-shadow 0.4s; }
.info-item:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -30px rgba(21,32,58,0.4); }
.info-item .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(26,47,109,0.07); color: var(--cobalt); display: grid; place-items: center; transition: background 0.3s, color 0.3s, transform 0.4s var(--ease-out); }
.info-item:hover .icon { background: var(--cobalt); color: #fff; transform: rotate(-4deg); }
.info-item .icon svg { width: 20px; height: 20px; }
.info-item .k { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-item .v { font-weight: 600; margin-top: 0.15rem; }
.info-item .v a { color: var(--cobalt); text-decoration: underline; text-decoration-color: rgba(26,47,109,0.3); text-underline-offset: 3px; }
.info-item .v a:hover { text-decoration-color: currentColor; }
.info-item .s { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 0.15rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 420px; position: relative; background: var(--sand); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(0.85) contrast(1.02); }
.map .map-pin {
  position: absolute; left: 1rem; bottom: 1rem; z-index: 2; background: var(--ivory); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 1rem;
  font-size: var(--fs-sm); box-shadow: 0 20px 40px -20px rgba(21,32,58,0.4); display: flex; gap: 0.8rem; align-items: center; max-width: calc(100% - 2rem);
}
.map .map-pin svg { width: 20px; height: 20px; color: var(--coral); flex: none; }
.map .map-pin a { font-weight: 700; color: var(--cobalt); }

/* ---------- Donate / support CTA ---------- */
.support {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 8px);
  background: linear-gradient(120deg, var(--cobalt) 0%, var(--cobalt-2) 55%, var(--night) 100%); color: #fff;
  padding: clamp(2.5rem, 6vw, 4.5rem); display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 2rem; align-items: center;
}
.support .star-pattern { opacity: 0.12; }
.support h2 { font-size: var(--fs-2xl); position: relative; }
.support p { position: relative; color: rgba(255,255,255,0.82); margin-top: 1rem; max-width: 50ch; }
.support .btn-row { margin-top: 1.8rem; position: relative; }
.support .side { position: relative; display: grid; gap: 0.8rem; }
.support .side .box { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; padding: 1.1rem 1.2rem; }
.support .side .k { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; font-weight: 700; }
.support .side .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-top: 0.25rem; }
.support .side .s { font-size: var(--fs-sm); opacity: 0.8; margin-top: 0.2rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--section); background: var(--night); color: rgba(255,255,255,0.8); overflow: hidden; }
.site-footer .star-pattern { opacity: 0.07; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
.footer-top { position: relative; z-index: 1; padding: clamp(3rem, 6vw, 5rem) 0 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; }
.footer-brand .brand-text .name { color: #fff; }
.footer-brand .brand-text .place { color: var(--mint); }
.footer-brand .brand-mark { color: #fff; }
.footer-brand p { margin-top: 1.2rem; font-size: var(--fs-sm); max-width: 38ch; color: rgba(255,255,255,0.65); }
.footer-col h4 { font-size: var(--fs-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--mint); font-weight: 700; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.78); font-size: var(--fs-sm); transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-col address { font-size: var(--fs-sm); line-height: 1.7; color: rgba(255,255,255,0.78); }
.footer-bottom { position: relative; z-index: 1; border-top: 1px solid rgba(255,255,255,0.1); padding: 1.4rem 0 2rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem 2rem; font-size: var(--fs-xs); color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.7); }
.footer-arabic { font-family: var(--font-arabic); font-size: 1.15rem; color: var(--gold); }

/* ---------- Page hero (subpages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.page-hero h1 { font-size: var(--fs-3xl); font-weight: 500; letter-spacing: -0.02em; max-width: 14ch; margin-top: 0.8rem; text-wrap: balance; }
.page-hero h1 em { font-style: italic; color: var(--turquoise-2); }
.page-hero .lead { margin-top: 1.4rem; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .container > * { opacity: 0; transform: translateY(16px); animation: rise 0.9s var(--ease-out) forwards; }
.page-hero .container > :nth-child(1) { animation-delay: 0.02s; }
.page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
.page-hero .container > :nth-child(4) { animation-delay: 0.3s; }
.page-hero .container > :nth-child(5) { animation-delay: 0.4s; }
.page-hero .container > :nth-child(n+6) { animation-delay: 0.5s; }
.page-hero.with-image { display: grid; }
.page-hero .banner { margin-top: clamp(2rem, 5vw, 3.5rem); border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 5; position: relative; }
.page-hero .banner picture { height: 100%; }
.page-hero .banner img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .banner::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3); border-radius: inherit; pointer-events: none; }

/* Prose */
.prose { max-width: 66ch; }
.prose p + p { margin-top: 1.1rem; }
.prose h3 { font-family: var(--font-display); font-size: var(--fs-xl); margin: 2.2rem 0 0.7rem; }
.prose ul { display: grid; gap: 0.5rem; margin-top: 1rem; padding-left: 0; }
.prose li { position: relative; padding-left: 1.5rem; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--turquoise); }
.prose strong { color: var(--ink); }

/* Timeline */
.timeline { position: relative; display: grid; gap: 1.5rem; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(to bottom, var(--turquoise), var(--line)); }
.timeline li { position: relative; transition: transform 0.4s var(--ease-out); }
.timeline li:hover { transform: translateX(3px); }
.timeline li::before { transition: transform 0.35s var(--ease-out), background 0.3s; }
.timeline li:hover::before { transform: scale(1.4); background: var(--cobalt); }
.timeline li::before { content: ""; position: absolute; left: calc(-2rem + 3px); top: 0.45em; width: 9px; height: 9px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 4px var(--cream); }
.timeline .when { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--turquoise-2); font-weight: 700; }
.timeline .what { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; margin-top: 0.2rem; }
.timeline .desc { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.25rem; max-width: 52ch; }

/* Values grid */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.value { padding: 1.6rem; border-radius: var(--radius); background: var(--ivory); border: 1px solid var(--line); transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.value:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(21,32,58,0.4); }
.value .num { transition: transform 0.5s var(--ease-out), color 0.3s; display: inline-block; }
.value:hover .num { transform: translateY(-2px) rotate(-4deg); color: var(--turquoise-2); }
.value .num { font-family: var(--font-display); font-size: 2.4rem; color: var(--gold); line-height: 1; font-weight: 500; }
.value h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-top: 0.8rem; }
.value p { color: var(--ink-2); font-size: var(--fs-sm); margin-top: 0.5rem; }

/* ---------- Prayer page ---------- */
.today-card {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 0; border-radius: calc(var(--radius) + 6px); overflow: hidden;
  background: var(--ivory); border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(21,32,58,0.5);
}
.today-card > .next {
  background: radial-gradient(120% 120% at 0% 0%, #1d3a86, var(--night)); color: #fff; padding: clamp(1.6rem, 3vw, 2.4rem); position: relative; overflow: hidden;
}
.today-card > .next .star-pattern { opacity: 0.12; }
.today-card > .next > * { position: relative; }
.today-card > .next .k { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.7; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; }
.today-card > .next .name { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 600; margin-top: 0.6rem; line-height: 1; }
.today-card > .next .tr { opacity: 0.7; font-size: var(--fs-sm); margin-top: 0.3rem; }
.today-card > .next .time { font-family: var(--font-display); font-size: clamp(2rem, 3vw, 2.6rem); margin-top: 1rem; font-variant-numeric: tabular-nums; }
.today-card > .next .count { margin-top: 0.4rem; font-size: var(--fs-sm); opacity: 0.85; }
.today-card > .next .count strong { font-variant-numeric: tabular-nums; font-size: 1.2rem; color: #fff; }
.today-card > .next .dates { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: var(--fs-sm); opacity: 0.85; display: grid; gap: 0.15rem; }
.today-card .list { padding: clamp(1rem, 2vw, 1.6rem) clamp(1.2rem, 3vw, 2.2rem); display: grid; }
.today-card .row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 0.9rem 0.6rem; border-top: 1px solid var(--line); border-radius: 10px; transition: background 0.25s, transform 0.3s var(--ease-out); }
.today-card .row:hover { background: rgba(21,32,58,0.03); transform: translateX(2px); }
.today-card .row:first-child { border-top: 0; }
.today-card .row .n { font-weight: 600; display: flex; align-items: center; gap: 0.7rem; }
.today-card .row .n small { font-weight: 500; color: var(--muted); font-size: var(--fs-xs); }
.today-card .row .t { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.today-card .row.next { background: rgba(30,159,177,0.1); }
.today-card .row.next .n::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turquoise); box-shadow: 0 0 0 0 rgba(30,159,177,0.6); animation: pulse 2s infinite; }
.today-card .row.past { opacity: 0.5; }

.month-nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.month-nav h3 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; }
.month-nav .controls { display: flex; gap: 0.5rem; }
.month-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; background: var(--ivory); transition: background 0.25s, transform 0.3s var(--ease-out); }
.month-nav button:hover { background: var(--sand); transform: translateY(-1px); }
.month-nav button svg { width: 18px; height: 18px; }
.month-nav button.today-btn { width: auto; padding: 0 1rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cobalt); transition: background 0.25s, transform 0.3s var(--ease-out), opacity 0.3s, color 0.25s; }
.month-nav button.today-btn:hover { background: var(--cobalt); color: #fff; }
.month-nav button.today-btn[disabled] { opacity: 0.35; pointer-events: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); -webkit-overflow-scrolling: touch; }
table.times { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 640px; }
table.times th, table.times td { padding: 0.75rem 0.9rem; text-align: center; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
table.times th { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; background: var(--cream); position: sticky; top: 0; }
table.times td:first-child, table.times th:first-child { text-align: left; font-weight: 600; white-space: nowrap; }
table.times td:first-child small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
table.times tr.today td { background: rgba(30,159,177,0.12); font-weight: 700; }
table.times tr.today td:first-child { color: var(--turquoise-2); }
table.times tr.friday th { color: var(--cobalt); }
table.times th[scope="row"] { text-align: left; font-weight: 600; white-space: nowrap; background: transparent; position: static; font-size: var(--fs-sm); letter-spacing: 0; text-transform: none; color: var(--ink); }
table.times th[scope="row"] small { display: block; font-weight: 400; color: var(--muted); font-size: 0.72rem; }
table.times tr.today th { color: var(--turquoise-2); background: rgba(30,159,177,0.12); }
table.times thead th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); font-size: 0.7rem; margin-top: 0.15rem; }
table.times tr:hover td { background: rgba(21,32,58,0.03); }
table.times tr.today:hover td { background: rgba(30,159,177,0.16); }
.note { display: grid; grid-template-columns: 20px 1fr; gap: 0.7rem; align-items: start; padding: 1rem 1.2rem; border-radius: 14px; background: rgba(201,169,97,0.12); border: 1px solid rgba(201,169,97,0.4); font-size: var(--fs-sm); color: var(--ink-2); }
.note svg { width: 20px; height: 20px; color: var(--gold-2); }

/* ---------- Contact form ---------- */
.form { display: grid; gap: 1rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--ink-2); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--ink); background: var(--ivory); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0.85rem 1rem;
  transition: border-color 0.25s, box-shadow 0.25s; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; border-color: var(--turquoise); box-shadow: 0 0 0 4px rgba(30,159,177,0.15); }
.field textarea { min-height: 150px; resize: vertical; }
.form-hint { font-size: var(--fs-xs); color: var(--muted); }

/* FAQ */
.faq { display: grid; gap: 0.6rem; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--ivory); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--turquoise); transition: transform 0.35s var(--ease-out); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary { transition: background 0.25s, color 0.25s; }
.faq summary:hover { background: rgba(30,159,177,0.06); }
.faq details[open] summary { color: var(--cobalt); }
.faq .answer { padding: 0 1.3rem 1.2rem; color: var(--ink-2); font-size: var(--fs-sm); max-width: 70ch; }
.faq details.animating { overflow: hidden; }
.faq .answer > .answer-inner { opacity: 0; transform: translateY(-4px); transition: opacity 0.35s ease 0.08s, transform 0.4s var(--ease-out) 0.08s; }
.faq details[open] .answer > .answer-inner { opacity: 1; transform: none; }


/* ---------- Detail pages (activities) ---------- */
.detail-facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.8rem; margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.detail-facts .fact { padding: 1rem 1.1rem; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); display: grid; gap: 0.3rem; align-content: start; transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s; }
.detail-facts .fact:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -28px rgba(21,32,58,0.45); border-color: var(--line-strong); }
.detail-facts .fact .k { font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; color: var(--turquoise-2); font-weight: 700; display: flex; align-items: center; gap: 0.4rem; }
.detail-facts .fact .k svg { width: 14px; height: 14px; }
.detail-facts .fact .v { font-weight: 600; line-height: 1.35; }
.detail-facts .fact .s { font-size: var(--fs-xs); color: var(--muted); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.detail-aside { position: sticky; top: calc(var(--nav-h) + 1.2rem); display: grid; gap: 1rem; }
.aside-card { border-radius: var(--radius); padding: 1.5rem; background: var(--cobalt); color: #fff; position: relative; overflow: hidden; }
.aside-card .star-pattern { opacity: 0.12; }
.aside-card > * { position: relative; }
.aside-card h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.aside-card p { margin-top: 0.6rem; color: rgba(255,255,255,0.82); font-size: var(--fs-sm); }
.aside-card .btn-row { margin-top: 1.2rem; }
.aside-card .line { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: var(--fs-sm); display: grid; gap: 0.3rem; }
.aside-card .line a { color: var(--mint); font-weight: 600; }
.related { border-radius: var(--radius); padding: 1.3rem 1.5rem; background: var(--ivory); border: 1px solid var(--line); }
.related h4 { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 0.7rem; }
.related ul { display: grid; gap: 0.45rem; }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; font-weight: 600; font-size: var(--fs-sm); color: var(--cobalt); padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.related li:last-child a { border-bottom: 0; }
.related a svg { width: 0.9em; height: 0.9em; flex: none; transition: transform 0.3s var(--ease-out); }
.related a:hover svg { transform: translateX(3px); }
.steps { counter-reset: step; display: grid; gap: 0.9rem; margin-top: 1.2rem; }
.steps li { position: relative; padding: 1.1rem 1.2rem 1.1rem 4rem; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); transition: transform 0.4s var(--ease-out), border-color 0.3s, background 0.3s; }
.steps li:hover { transform: translateX(4px); border-color: var(--line-strong); background: #fff; }
.steps li::before { transition: transform 0.4s var(--ease-out), background 0.3s; }
.steps li:hover::before { transform: scale(1.08); background: var(--turquoise-2); }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 1.1rem; top: 1rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--cobalt); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: grid; place-items: center; }
.steps li strong { display: block; margin-bottom: 0.15rem; }
.steps li p { color: var(--ink-2); font-size: var(--fs-sm); }
.detail-section + .detail-section { margin-top: clamp(2.2rem, 5vw, 3.2rem); }
.detail-section h2 { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 600; margin-bottom: 0.8rem; }
.detail-section .prose { max-width: none; }
.hadith { position: relative; padding: 1.4rem 1.6rem; border-radius: var(--radius); background: var(--cobalt); color: #fff; overflow: hidden; text-align: center; }
.hadith::before { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='0.8'%3E%3Cpath d='M60 0 L120 60 L60 120 L0 60 Z'/%3E%3Cpath d='M17.6 17.6 L102.4 17.6 L102.4 102.4 L17.6 102.4 Z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3C/g%3E%3C/svg%3E"); background-size: 120px; opacity: 0.1; }
.hadith > * { position: relative; }
.hadith .arabic { font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.9; color: #fff; }
.hadith .tr { font-family: var(--font-display); font-style: italic; font-size: var(--fs-lg); margin-top: 0.5rem; color: rgba(255,255,255,0.92); }
.hadith .src { margin-top: 0.5rem; font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--mint); }
/* Friday sunnah timeline */
.sunnah-timeline { position: relative; margin-top: 1.6rem; padding-block: 0.5rem; }
.sunnah-timeline .spine { position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: var(--line); border-radius: 3px; }
.sunnah-timeline .spine-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0; border-radius: 3px; background: linear-gradient(to bottom, var(--turquoise), var(--gold)); }
.sunnah-timeline .spine-sun { position: absolute; left: 50%; top: 0; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: radial-gradient(circle, #fff 0 28%, var(--gold) 30% 62%, transparent 64%); box-shadow: 0 0 0 7px rgba(201,169,97,0.16), 0 0 28px 4px rgba(201,169,97,0.55); z-index: 2; }
.sunnah-timeline .spine-sun::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px dashed rgba(201,169,97,0.6); animation: spin 18s linear infinite; }
.sunnah-timeline ol { display: grid; gap: 1.1rem; position: relative; }
.st-phase { display: flex; justify-content: center; padding: 0.4rem 0; }
.st-phase span { position: relative; z-index: 3; background: var(--cobalt); color: #fff; font-size: var(--fs-xs); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; padding: 0.45rem 1rem; border-radius: 999px; box-shadow: 0 0 0 5px var(--cream); }
.st-step { display: grid; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); align-items: center; gap: 0.6rem; }
.st-step .icon { grid-column: 2; grid-row: 1; justify-self: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ivory); border: 2px solid var(--gold); color: var(--cobalt); display: grid; place-items: center; position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--cream), 0 14px 30px -16px rgba(21,32,58,0.5); transition: transform 0.6s var(--ease-out), background 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.st-step .icon svg { width: 32px; height: 32px; }
.st-step .icon .glyph { font-family: var(--font-arabic); font-size: 2rem; line-height: 1; }
.st-step .icon.lit { background: var(--cobalt); color: var(--mint); border-color: var(--gold); transform: scale(1.08); box-shadow: 0 0 0 6px var(--cream), 0 0 0 9px rgba(201,169,97,0.35), 0 18px 34px -16px rgba(26,47,109,0.6); }
.st-step .icon svg { stroke: var(--cobalt); transition: stroke 0.5s; }
.st-step .icon .glyph { color: var(--cobalt); transition: color 0.5s; }
.st-step .icon.lit svg { stroke: var(--mint); }
.st-step .icon.lit .glyph { color: var(--mint); }
.st-step .sunnah { grid-row: 1; margin: 0; }
.st-step.left .sunnah { grid-column: 1; text-align: right; }
.st-step.left .sunnah h3 { padding-right: 0; }
.st-step.right .sunnah { grid-column: 3; }
.st-step .sunnah::before { content: ""; position: absolute; top: 50%; width: 22px; height: 2px; background: var(--gold); opacity: 0.6; }
.st-step.left .sunnah::before { right: -24px; }
.st-step.right .sunnah::before { left: -24px; }
.sunnah { position: relative; padding: 1.1rem 1.2rem 1rem; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); display: grid; gap: 0.35rem; transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.3s; }
.sunnah:hover { transform: translateY(-3px); box-shadow: 0 24px 44px -30px rgba(21,32,58,0.4); border-color: var(--line-strong); }
.sunnah h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.sunnah p { color: var(--ink-2); font-size: var(--fs-sm); }
.sunnah .src { margin-top: 0.3rem; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--turquoise-2); }
@media (max-width: 800px) {
  .sunnah-timeline .spine { left: 32px; margin-left: -1.5px; }
  .st-phase { justify-content: flex-start; padding-left: 0; }
  .st-phase span { box-shadow: 0 0 0 5px var(--cream); }
  .st-step { grid-template-columns: 64px minmax(0, 1fr); }
  .st-step .icon { grid-column: 1; width: 56px; height: 56px; }
  .st-step .icon svg { width: 28px; height: 28px; }
  .st-step.left .sunnah, .st-step.right .sunnah { grid-column: 2; text-align: left; }
  .st-step.left .sunnah::before, .st-step.right .sunnah::before { left: -18px; right: auto; width: 16px; }
}
.checklist { display: grid; gap: 0.5rem; margin-top: 0.8rem; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 0.6rem; align-items: start; color: var(--ink-2); font-size: var(--fs-sm); }
.checklist li svg { width: 20px; height: 20px; color: var(--turquoise); margin-top: 0.1rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--turquoise-2); }
.breadcrumb svg { width: 12px; height: 12px; }
@media (max-width: 1100px) { .detail-facts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 920px) { .detail-layout { grid-template-columns: 1fr; } .detail-aside { position: static; } }
@media (max-width: 600px) { .detail-facts { grid-template-columns: 1fr 1fr; } }

/* ---------- Lightbox ---------- */
[data-lightbox] { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem); background: rgba(12, 26, 66, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); max-height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.8rem; transform: scale(0.96) translateY(10px); transition: transform 0.45s var(--ease-out); }
.lightbox.open figure { transform: none; }
.lightbox img { max-width: 100%; max-height: min(84vh, 84svh); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); background: #000; justify-self: center; }
.lightbox figcaption { color: rgba(255,255,255,0.85); font-size: var(--fs-sm); text-align: center; display: flex; justify-content: center; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lightbox figcaption .count { font-variant-numeric: tabular-nums; opacity: 0.6; font-size: var(--fs-xs); letter-spacing: 0.1em; }
.lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,0.1); color: #fff; display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.18); transition: background 0.25s, transform 0.3s var(--ease-out); }
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.22); transform: scale(1.06); }
.lightbox .lb-btn svg { width: 22px; height: 22px; }
.lightbox .lb-close { top: 1rem; right: 1rem; }
.lightbox .lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: translateY(-50%) scale(1.06); }
.lightbox .lb-btn[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 1rem; transform: none; } .lightbox .lb-prev:hover, .lightbox .lb-next:hover { transform: scale(1.06); } .lightbox .lb-prev { left: 1rem; } .lightbox .lb-next { right: 1rem; } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-26px); }
[data-reveal="right"] { transform: translateX(26px); }
[data-reveal="scale"] { transform: scale(0.96); }

/* Language switch: brief crossfade so the re-layout never looks like a jump */
main, .site-footer { transition: opacity 0.18s ease; }
body.lang-switching main, body.lang-switching .site-footer { opacity: 0; }

/* ---------- Toast for language / status ---------- */
.toast { position: fixed; left: 50%; bottom: 1.4rem; transform: translate(-50%, 20px); z-index: 200; background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: 999px; font-size: var(--fs-sm); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.4s var(--ease-out); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-top .footer-col:last-child { grid-column: span 3; }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .bento > .span-3, .bento > .span-4, .bento > .span-6 { grid-column: span 4; }
  .bento > .span-3.mid { grid-column: span 2; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 920px) {
  :root { --nav-h: 68px; }
  .nav { grid-template-columns: minmax(0, 1fr) auto; }
  .nav .nav-actions { grid-column: 2; }
  .nav-links, .nav-actions .btn { display: none; }
  .brand-text .name { white-space: nowrap; }
  .nav-toggle { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-arch { aspect-ratio: 16 / 11; width: 100%; }
  .hero-card { left: auto; right: 4%; bottom: -1.2rem; width: min(300px, 78%); }
  .hero-badge { display: none; }
  .hero-copy { padding-top: 1.5rem; }
  .split, .visit, .support, .today-card, .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .split.reverse > :first-child { order: 0; }
  .intro-visual { order: -1; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 220px 220px; }
  .gallery .photo:first-child { grid-column: span 2; grid-row: span 1; }
  .values { grid-template-columns: 1fr; }
  .prayer-head .dates { text-align: left; }
  .intro-facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --radius: 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .lang-switch button { padding: 0.35rem 0.55rem; font-size: 0.7rem; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text .name { font-size: 1.15rem; }
  .brand-text .place { font-size: 0.6rem; letter-spacing: 0.22em; }
  .card { padding: 1.25rem; }
  .card.photo-card { min-height: 300px; }
  .support { padding: 1.6rem 1.3rem; }
  .today-card .list { padding: 0.8rem 1rem; }
  .st-step .sunnah { padding: 1rem; }
  .hero-meta .v { font-size: 1.15rem; }
  .brand-text .name { font-size: 1.25rem; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento > * { grid-column: auto !important; grid-row: auto !important; min-width: 0; }
  .card.photo-card { min-height: 260px; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-cell .t { font-size: 1.6rem; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: repeat(4, 220px); }
  .gallery .photo:first-child { grid-column: span 1; }
  .schedule-row { grid-template-columns: 1fr; gap: 0.3rem; }
  .form .row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-top .footer-col:last-child { grid-column: span 1; }
  .hero-meta { gap: 1rem 1.6rem; }
  .hero-card { position: relative; left: auto; right: auto; bottom: auto; width: calc(100% - 1.2rem); margin: -2.2rem auto 0; }
  .hero-arch { aspect-ratio: 4 / 3; }
  .intro-facts { grid-template-columns: 1fr; }
  .lang-switch button { padding: 0.35rem 0.6rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .hero [data-stagger] { opacity: 1; transform: none; animation: none; }
  .page-hero .container > * { opacity: 1; transform: none; animation: none; }
  .prayer-cell.next { animation: none; }
  .sunnah-timeline .spine-sun::after { animation: none; }
  [data-reveal] { opacity: 1; transform: none; }
  .ribbon-track { animation: none; }
  .nav-pill { transition: none; }
  .lightbox, .lightbox figure { transition: none; }
  .hero-badge { animation: none; }
}

/* View transitions between pages (progressive) */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.35s; }
::view-transition-group(nav-pill) { animation-duration: 0.5s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
.site-header { view-transition-name: site-header; }
::view-transition-old(site-header), ::view-transition-new(site-header) { animation: none; }

/* ---------- Print ---------- */
.print-head { display: none; }
@media print {
  @page { size: A4 portrait; margin: 12mm 12mm 14mm; }
  body::before, .site-header, .site-footer, .mobile-menu, .ribbon, .hero-card, .hero-badge, .btn, .month-nav .controls, .toast, .star-pattern, .hero-glow, .skip-link { display: none !important; }
  body { background: #fff !important; color: #000; font-size: 10.5pt; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .section { padding-block: 0; }
  .container { width: 100%; max-width: none; }
  a { color: inherit; text-decoration: none; }

  /* Prayer-times page: print only the month table as a clean one-page calendar */
  body:has(#month-section) main > *:not(#month-section) { display: none !important; }
  .print-head { display: grid; gap: 1px; margin-bottom: 6pt; padding-bottom: 5pt; border-bottom: 1.5pt solid #000; font-size: 8.5pt; color: #000; }
  .print-head strong { font-family: var(--font-display); font-size: 16pt; font-weight: 600; }
  .month-nav { margin-bottom: 6pt; }
  .month-nav .eyebrow { display: none; }
  .month-nav h3 { font-size: 14pt; margin: 0; }
  .table-wrap { border: 0; border-radius: 0; overflow: visible; background: none; }
  table.times { min-width: 0; width: 100%; border: 1pt solid #000; font-size: 9.5pt; page-break-inside: auto; }
  table.times th, table.times td { padding: 1.5pt 5pt; border: 0.5pt solid #777; text-align: center; color: #000; background: none !important; font-size: 9pt; line-height: 1.3; }
  table.times thead th { position: static; background: #e8e8e8 !important; font-size: 7.5pt; letter-spacing: 0.06em; color: #000; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.times thead th small { font-size: 7pt; color: #333; margin-top: 1pt; }
  table.times th[scope="row"] { text-align: left; font-weight: 600; font-size: 9pt; color: #000; white-space: nowrap; }
  table.times th[scope="row"] small { display: inline; margin-left: 5pt; font-size: 6.5pt; color: #444; font-weight: 400; }
  table.times tr.today td, table.times tr.today th { background: #ddd !important; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  table.times tr.friday th, table.times tr.friday td { font-weight: 700; }
  table.times tr { page-break-inside: avoid; }
  #month-status { font-size: 7.5pt; color: #333; margin-top: 6pt; }
}
