/* ==========================================================================
   MCSI — Mehdavia Community of Sydney
   Design system + site styles.  Single stylesheet, no build step.

   Palette is sampled directly from the MCSI crest (navy ring, sandstone
   Charminar, green dome, crimson calligraphy, Sydney Harbour Bridge).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — navy */
  --navy-900: #000E2B;
  --navy-800: #001640;
  --navy-700: #002060;          /* primary brand navy */
  --navy-600: #123A85;
  --navy-500: #2F528F;
  --navy-050: #EAF0FA;

  /* Brand — gold / sandstone */
  --gold-500: #C9AF7A;          /* crest sandstone */
  --gold-600: #B08F4F;
  --gold-700: #7E6329;          /* AA-safe gold-family text on light */
  --gold-200: #EADFC6;
  --gold-100: #F5EFE1;

  /* Brand — green (dome + wordmark) */
  --green-700: #245C28;
  --green-600: #2E7D32;
  --green-100: #E7F1E5;

  /* Accent — crimson (Urdu calligraphy). Use sparingly. */
  --crimson-600: #B0242A;

  /* Neutrals */
  --paper:      #FDFBF7;
  --paper-alt:  #F6F2EA;
  --white:      #FFFFFF;
  --ink:        #141827;
  --ink-soft:   #3A4055;
  --ink-muted:  #5F6678;
  --line:       #E5E0D5;
  --line-soft:  #F0ECE3;

  /* Semantic */
  --bg:            var(--paper);
  --surface:       var(--white);
  --text:          var(--ink);
  --text-muted:    var(--ink-muted);
  --border:        var(--line);
  --brand:         var(--navy-700);
  --accent:        var(--gold-500);
  --accent-text:   var(--gold-700);

  /* Type */
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Plus Jakarta Sans", "Open Sans", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;

  /* Fluid type scale */
  --fs-xs:   0.8125rem;                                  /* 13 */
  --fs-sm:   0.9063rem;                                  /* 14.5 */
  --fs-base: 1.0313rem;                                  /* 16.5 */
  --fs-md:   clamp(1.09rem, 0.4vw + 1rem, 1.1875rem);
  --fs-lg:   clamp(1.25rem, 0.6vw + 1.1rem, 1.5rem);
  --fs-xl:   clamp(1.5rem, 1.1vw + 1.2rem, 2rem);
  --fs-2xl:  clamp(1.85rem, 2vw + 1.3rem, 2.75rem);
  --fs-3xl:  clamp(2.25rem, 3.4vw + 1.3rem, 4rem);
  --fs-4xl:  clamp(2.6rem, 5vw + 1.2rem, 5rem);

  /* Spacing */
  --sp-1: 0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;   --sp-6: 2rem;     --sp-7: 3rem;     --sp-8: 4rem;
  --sp-9: 6rem;     --sp-10: 8rem;

  /* Shape */
  --r-sm: 6px;  --r-md: 12px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(0, 22, 64, .06), 0 2px 8px rgba(0, 22, 64, .05);
  --shadow-2: 0 4px 12px rgba(0, 22, 64, .08), 0 12px 32px rgba(0, 22, 64, .07);
  --shadow-3: 0 8px 24px rgba(0, 22, 64, .10), 0 24px 64px rgba(0, 22, 64, .12);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 240ms;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;
  --header-h: 74px;
}

/* Eight-point girih star — the site's recurring motif. */
:root {
  --pattern-gold: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23C9AF7A' stroke-width='1'%3E%3Cpath d='M36 2 L44.5 27.5 L70 36 L44.5 44.5 L36 70 L27.5 44.5 L2 36 L27.5 27.5 Z'/%3E%3Crect x='15' y='15' width='42' height='42' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-navy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23002060' stroke-width='1'%3E%3Cpath d='M36 2 L44.5 27.5 L70 36 L44.5 44.5 L36 70 L27.5 44.5 L2 36 L27.5 27.5 Z'/%3E%3Crect x='15' y='15' width='42' height='42' transform='rotate(45 36 36)'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.13;
  letter-spacing: -0.015em;
  color: var(--navy-800);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); font-family: var(--font-body); font-weight: 700; letter-spacing: 0; }

p  { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { overflow-wrap: break-word; color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px;
    text-decoration-thickness: 1px; transition: color var(--dur) var(--ease); }
a:hover { color: var(--crimson-600); }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.25em; }
li { margin-bottom: var(--sp-2); }

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-7) 0; }

strong { font-weight: 700; color: var(--navy-800); }

::selection { background: var(--gold-200); color: var(--navy-800); }

/* Accessibility ---------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--gold-600);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 999;
  background: var(--navy-700); color: #fff; padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md); text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--sp-5); }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper-alt); }
.section--navy { background: var(--navy-800); color: #DCE4F2; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy a:not(.btn) { color: var(--gold-500); }
.section--navy a:not(.btn):hover { color: var(--gold-200); }
.section--navy .btn { color: var(--btn-fg); }
.cta-band a:not(.btn) { color: var(--gold-500); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); }

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.measure { max-width: 62ch; }
.measure-wide { max-width: 74ch; }
.mt-0 { margin-top: 0; }

/* Section heading block */
.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head.center { margin-inline: auto; }

.kicker {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: var(--sp-3);
}
.kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--gold-600); display: block;
}
.section--navy .kicker { color: var(--gold-500); }

.lede { font-size: var(--fs-md); color: var(--ink-soft); line-height: 1.6; }
.section--navy .lede { color: #C3CEE4; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--navy-700); --btn-fg: #fff; --btn-bd: var(--navy-700);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: .01em; line-height: 1;
  padding: .95em 1.6em; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); border: 1.5px solid var(--btn-bd);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }

.btn--gold  { --btn-bg: var(--gold-500); --btn-fg: var(--navy-800); --btn-bd: var(--gold-500); }
.btn--green { --btn-bg: var(--green-600); --btn-fg: #fff; --btn-bd: var(--green-600); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy-700); --btn-bd: var(--navy-700); }
.btn--ghost:hover { --btn-bg: var(--navy-700); --btn-fg: #fff; }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --btn-bg: #fff; --btn-fg: var(--navy-800); --btn-bd: #fff; }
.btn--sm { font-size: var(--fs-xs); padding: .75em 1.25em; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* Text link with arrow */
.arrow-link {
  display: inline-flex; align-items: center; gap: .45em; font-weight: 700;
  font-size: var(--fs-sm); text-decoration: none; color: var(--navy-600);
  flex-wrap: wrap; overflow-wrap: anywhere; max-width: 100%;
}
.arrow-link::after { content: "→"; transition: transform var(--dur) var(--ease); }
.arrow-link:hover::after { transform: translateX(4px); }
.arrow-link:hover { color: var(--crimson-600); }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900); color: #A9B8D4;
  font-size: var(--fs-xs); letter-spacing: .01em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 38px; flex-wrap: wrap;
}
.topbar a { color: #CBD6EC; text-decoration: none; }
.topbar a:hover { color: var(--gold-500); }
/* Keep the top bar one line on phones so the nav drawer sits flush under the header. */
@media (max-width: 900px) {
  .topbar__inner > .topbar__meta:last-child { display: none; }
  .topbar__inner { justify-content: center; }
}
.topbar__meta { display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.topbar__next { display: inline-flex; align-items: center; gap: .5em; color: #E7EDF8; }
.topbar__next b { color: var(--gold-500); font-weight: 700; }
.dot-live {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500);
  box-shadow: 0 0 0 0 rgba(201,175,122,.7); animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(201,175,122,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(201,175,122,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,175,122,0); }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,247,.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
/* The header needs more room than the text container so the nav stays one line. */
.site-header > .container, .topbar > .container { max-width: 1340px; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: var(--sp-3); text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--font-display); font-size: 1.28rem; font-weight: 600;
  color: var(--navy-700); letter-spacing: -.01em;
}
.brand__sub {
  font-size: 0.6875rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted); font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 430px) {
  .site-header__inner { gap: var(--sp-3); }
  .brand img { width: 40px; height: 40px; }
  .brand__sub { font-size: 0.625rem; letter-spacing: .08em; }
  .brand__name { font-size: 1.15rem; }
}
@media (max-width: 360px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: var(--sp-2); }
.nav a {
  white-space: nowrap;
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft);
  text-decoration: none; padding: .55em .8em; border-radius: var(--r-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav a:hover { color: var(--navy-700); background: var(--navy-050); }
.nav a[aria-current="page"] { color: var(--navy-700); }
.nav a[aria-current="page"]::after {
  content: ""; display: block; height: 2px; background: var(--gold-500);
  border-radius: 2px; margin-top: 3px;
}
.nav > .btn { display: none; }
.header__cta { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: transparent; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; color: var(--navy-700);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header__cta .btn { display: none; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: var(--sp-4) var(--sp-5) var(--sp-6);
    box-shadow: var(--shadow-3);
    max-height: calc(100dvh - var(--header-h) - 2rem); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  }
  .nav[data-open="true"] { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav a { padding: var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--line-soft);
           font-size: var(--fs-md); white-space: normal; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav a[aria-current="page"] { border-left: 3px solid var(--gold-500); padding-left: var(--sp-3); }
  .nav .btn { margin-top: var(--sp-5); }
  .nav .btn, .nav a.btn { display: inline-flex; border-bottom: 0; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at 82% 8%, rgba(47,82,143,.55) 0%, rgba(0,32,96,0) 58%),
    linear-gradient(168deg, var(--navy-800) 0%, var(--navy-900) 55%, #000A20 100%);
  color: #E8EDF8;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(6rem, 10vw, 9rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold); background-size: 72px 72px;
  opacity: .10;
  -webkit-mask-image: radial-gradient(75% 65% at 78% 25%, #000 0%, transparent 72%);
  mask-image: radial-gradient(75% 65% at 78% 25%, #000 0%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1;
  width: 42rem; height: 42rem; right: -12rem; top: -14rem; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,175,122,.20) 0%, rgba(201,175,122,0) 68%);
}
.hero__grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero__kicker {
  display: inline-flex; align-items: center; gap: var(--sp-3);
  border: 1px solid rgba(201,175,122,.4); border-radius: var(--r-pill);
  padding: .45em 1.1em; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--gold-500);
  background: rgba(201,175,122,.07); margin-bottom: var(--sp-5);
}
.hero h1 {
  color: #fff; font-size: var(--fs-4xl); font-weight: 400;
  letter-spacing: -.028em; line-height: 1.04; margin-bottom: var(--sp-5);
}
.hero h1 em {
  font-style: italic; color: var(--gold-500);
}
.hero__lede {
  font-size: var(--fs-md); color: #BFCCE4; max-width: 46ch; margin-bottom: var(--sp-6);
}
.hero__motto {
  font-family: var(--font-urdu); font-size: 1.35rem; line-height: 2.4;
  color: var(--gold-500); direction: rtl; margin-bottom: var(--sp-2);
}
.hero__motto-tr {
  font-size: var(--fs-xs); letter-spacing: .06em; color: #8DA0C4; font-style: italic;
  margin-bottom: var(--sp-6);
}
.hero__stats {
  display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: var(--sp-7); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,.12);
}
@media (max-width: 560px) { .hero__stats { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
.hero__stat b {
  display: block; font-family: var(--font-display); font-size: var(--fs-xl);
  font-weight: 500; color: #fff; line-height: 1;
}
.hero__stat span {
  font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase; color: #8DA0C4;
}

/* Crest medallion */
.hero__crest { display: grid; place-items: center; position: relative; }
.hero__crest img { width: min(340px, 78%); filter: drop-shadow(0 18px 46px rgba(0,0,0,.45)); }
.hero__crest::before {
  content: ""; position: absolute; width: min(420px, 96%); aspect-ratio: 1;
  border-radius: 50%; border: 1px dashed rgba(201,175,122,.32);
  animation: spin 90s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .hero__crest { display: none; } }

/* --------------------------------------------------------------------------
   7. Prayer times band — the signature element
   -------------------------------------------------------------------------- */
.prayer-band { position: relative; margin-top: clamp(-5.5rem, -7vw, -4rem); z-index: 5; }
.prayer-card {
  background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-3);
  border: 1px solid var(--line-soft); overflow: hidden;
}
.prayer-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap; padding: var(--sp-5) var(--sp-6) var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.prayer-card__title {
  font-family: var(--font-display); font-size: var(--fs-lg); color: var(--navy-800); margin: 0;
}
.prayer-card__date { font-size: var(--fs-sm); color: var(--ink-muted); margin: 0; }
.prayer-card__date b { color: var(--gold-700); }

.prayer-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
}
.prayer-cell {
  padding: var(--sp-5) var(--sp-3); text-align: center;
  border-right: 1px solid var(--line-soft); position: relative;
  transition: background var(--dur) var(--ease);
}
.prayer-cell:last-child { border-right: 0; }
.prayer-cell__name {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--sp-2);
}
.prayer-cell__time {
  font-family: var(--font-display); font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 500; color: var(--navy-800); line-height: 1; font-variant-numeric: tabular-nums;
}
.prayer-cell__suffix { font-size: .55em; color: var(--ink-muted); margin-left: .15em; }
.prayer-cell[data-state="current"] { background: var(--gold-100); }
.prayer-cell[data-state="current"]::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: var(--gold-600);
}
.prayer-cell[data-state="current"] .prayer-cell__name { color: var(--gold-700); }
.prayer-cell[data-state="passed"] { opacity: .55; }

.prayer-card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  flex-wrap: wrap; padding: var(--sp-4) var(--sp-6);
  background: var(--paper-alt); font-size: var(--fs-sm); color: var(--ink-muted);
}
.prayer-card__foot strong { color: var(--navy-700); }

@media (max-width: 860px) {
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .prayer-cell:nth-child(3n) { border-right: 0; }
  .prayer-cell:nth-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
}
@media (max-width: 420px) {
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .prayer-cell { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
  .prayer-cell:nth-child(2n) { border-right: 0; }
}

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-6); box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  display: flex; flex-direction: column;
}
a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--link:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--gold-200); }
.card h3 { margin-bottom: var(--sp-3); }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }
.card .arrow-link { margin-top: auto; padding-top: var(--sp-4); }

.card__icon {
  width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--navy-050); color: var(--navy-700); margin-bottom: var(--sp-4);
  flex-shrink: 0;
}
.card__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.card--gold .card__icon  { background: var(--gold-100); color: var(--gold-700); }
.card--green .card__icon { background: var(--green-100); color: var(--green-700); }

/* Numbered "path" card */
.path-card { position: relative; overflow: hidden; }
.path-card__num {
  position: absolute; top: -.35em; right: .1em; font-family: var(--font-display);
  font-size: 6rem; line-height: 1; color: var(--gold-100); font-weight: 500; z-index: 0;
  pointer-events: none;
}
.path-card > * { position: relative; z-index: 1; }

/* Feature panel */
.feature {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.feature--reverse > :first-child { order: 2; }
@media (max-width: 780px) { .feature--reverse > :first-child { order: 0; } }

/* Image placeholder — until real community photos are supplied */
.photo-ph {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(155deg, var(--navy-700) 0%, var(--navy-900) 100%);
  display: grid; place-items: center; text-align: center; padding: var(--sp-6);
  border: 1px solid var(--line-soft);
}
.photo-ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--pattern-gold); background-size: 64px 64px; opacity: .14;
}
.photo-ph__label {
  position: relative; color: var(--gold-500); font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; line-height: 1.8;
}
.photo-ph__label span { display: block; color: #7E90B4; letter-spacing: .04em;
  text-transform: none; font-weight: 500; font-size: var(--fs-xs); margin-top: var(--sp-2); }
.photo-ph--wide { aspect-ratio: 16 / 9; }
.photo-ph--square { aspect-ratio: 1; }
.photo-ph--light { background: var(--gold-100); border: 1px dashed var(--gold-600); }
.photo-ph--light::before { background-image: var(--pattern-navy); opacity: .07; }
.photo-ph--light .photo-ph__label { color: var(--gold-700); }
.photo-ph--light .photo-ph__label span { color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   9. Callouts, notes, placeholders
   -------------------------------------------------------------------------- */
.callout {
  border-left: 4px solid var(--gold-600); background: var(--gold-100);
  padding: var(--sp-5) var(--sp-6); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout h3 { color: var(--gold-700); font-family: var(--font-body); font-size: var(--fs-md);
  font-weight: 700; letter-spacing: 0; margin-bottom: var(--sp-2); }
.callout--green { border-left-color: var(--green-600); background: var(--green-100); }
.callout--green h3 { color: var(--green-700); }
.callout--navy { border-left-color: var(--navy-600); background: var(--navy-050); }
.callout--navy h3 { color: var(--navy-700); }

/* Content the committee still has to supply */
.tbc {
  border: 1.5px dashed var(--gold-600); background: repeating-linear-gradient(
    45deg, var(--gold-100), var(--gold-100) 12px, #FBF6EA 12px, #FBF6EA 24px);
  padding: var(--sp-5) var(--sp-6); border-radius: var(--r-md); color: var(--gold-700);
}
.tbc__tag {
  display: inline-block; background: var(--gold-600); color: #fff; font-size: var(--fs-xs);
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .25em .8em; border-radius: var(--r-pill); margin-bottom: var(--sp-3);
}
.tbc p { color: #6B551F; font-size: var(--fs-sm); }
.tbc p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   10. Lists, timeline, tables
   -------------------------------------------------------------------------- */
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding-left: 2rem; margin-bottom: var(--sp-3); }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1.1rem; height: 1.1rem;
  border-radius: 50%; background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E7D32' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}

.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: .6rem; bottom: .6rem; width: 2px;
  background: linear-gradient(var(--gold-500), var(--gold-200));
}
.timeline li { position: relative; padding-left: 2.75rem; margin-bottom: var(--sp-6); }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: .45rem; width: 16px; height: 16px;
  border-radius: 50%; background: var(--white); border: 3px solid var(--gold-600);
}
.timeline__year {
  display: inline-block; font-family: var(--font-body); font-size: var(--fs-xs);
  font-weight: 800; letter-spacing: .12em; color: var(--gold-700); margin-bottom: var(--sp-1);
}
.timeline h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.timeline p { font-size: var(--fs-sm); color: var(--ink-soft); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); background: var(--white); }
th, td { padding: var(--sp-3) var(--sp-4); text-align: left; border-bottom: 1px solid var(--line-soft); }
th {
  background: var(--navy-700); color: #fff; font-weight: 700; font-size: var(--fs-xs);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper); }

/* Team roster */
.roster { list-style: none; padding: 0; display: grid; gap: var(--sp-3);
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.roster li {
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); margin: 0;
}
.roster b { display: block; color: var(--navy-800); font-size: var(--fs-base); }
.roster span { font-size: var(--fs-xs); letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-700); font-weight: 700; }

/* --------------------------------------------------------------------------
   11. Events
   -------------------------------------------------------------------------- */
.event-card {
  display: grid; grid-template-columns: 96px 1fr; gap: var(--sp-5); align-items: start;
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--shadow-1);
}
.event-card__date {
  background: var(--navy-700); color: #fff; border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-2); text-align: center; line-height: 1.15;
}
.event-card__date b { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; }
.event-card__date span { font-size: var(--fs-xs); letter-spacing: .1em; text-transform: uppercase; }
.event-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-2); }
.event-card p { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--sp-3); }
.event-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-xs);
  color: var(--ink-muted); }
@media (max-width: 520px) {
  .event-card { grid-template-columns: 1fr; }
  .event-card__date { display: inline-flex; gap: .5em; align-items: baseline; padding: .4em 1em; }
  .event-card__date b { font-size: 1.25rem; }
}

.badge {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .25em .75em; border-radius: var(--r-pill);
  background: var(--navy-050); color: var(--navy-700);
}
.badge--gold  { background: var(--gold-100);  color: var(--gold-700); }
.badge--green { background: var(--green-100); color: var(--green-700); }

/* Archive list */
.archive { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.archive li { margin: 0; border-bottom: 1px solid var(--line); }
.archive a {
  display: flex; align-items: baseline; gap: var(--sp-4); flex-wrap: wrap;
  padding: var(--sp-4) var(--sp-2); text-decoration: none; color: var(--navy-800);
  transition: background var(--dur) var(--ease), padding-left var(--dur) var(--ease);
}
.archive a:hover { background: var(--paper-alt); padding-left: var(--sp-4); }
.archive__year { font-family: var(--font-display); font-size: var(--fs-md); color: var(--gold-700); min-width: 3.5em; }
.archive__title { font-weight: 600; flex: 1 1 14rem; }
.archive__note { font-size: var(--fs-sm); color: var(--ink-muted); }

/* --------------------------------------------------------------------------
   12. FAQ / accordion  (AEO — answer engines read these)
   -------------------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: var(--sp-5) 2.5rem var(--sp-5) 0;
  font-family: var(--font-display); font-size: var(--fs-md); font-weight: 500;
  color: var(--navy-800); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.6rem; font-weight: 300; color: var(--gold-600);
  transition: transform var(--dur) var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--crimson-600); }
.faq__body { padding: 0 2.5rem var(--sp-5) 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.faq__body p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   13. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: var(--sp-2); }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--navy-800); }
.field .hint { font-size: var(--fs-xs); color: var(--ink-muted); font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: var(--fs-base); color: var(--ink);
  padding: .8em 1em; border: 1.5px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); width: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--gold-600); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px var(--navy-050);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold-600); outline-offset: 2px;
}
.req { color: var(--crimson-600); }

/* --------------------------------------------------------------------------
   14. Page header (interior pages)
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; isolation: isolate; overflow: hidden; color: #E8EDF8;
  background: linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold); background-size: 72px 72px; opacity: .09;
  -webkit-mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
  mask-image: linear-gradient(100deg, transparent 20%, #000 100%);
}
.page-head h1 { color: #fff; margin-bottom: var(--sp-4); }
.page-head p { color: #BCC9E2; font-size: var(--fs-md); max-width: 60ch; margin-bottom: 0; }
.breadcrumb { font-size: var(--fs-xs); color: #8DA0C4; margin-bottom: var(--sp-4); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .5em; padding: 0; margin: 0; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5em; color: rgba(255,255,255,.3); }
.breadcrumb a { color: #A9B8D4; text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }

/* Anchor offset so sticky header doesn't cover jump targets */
[id] { scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }

/* On-page sub-navigation */
.subnav {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(253,251,247,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin;
}
.subnav ul { display: flex; gap: var(--sp-2); list-style: none; margin: 0; padding: 0;
  white-space: nowrap; }
.subnav li { margin: 0; }
.subnav a {
  display: block; padding: var(--sp-4) var(--sp-3); font-size: var(--fs-sm); font-weight: 600;
  color: var(--ink-muted); text-decoration: none; border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--navy-700); border-bottom-color: var(--gold-500); }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden; text-align: center;
  background: linear-gradient(140deg, var(--navy-700), var(--navy-900));
  color: #E8EDF8; border-radius: var(--r-xl); padding: clamp(2.5rem, 6vw, 4.5rem) var(--sp-6);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--pattern-gold); background-size: 72px 72px; opacity: .10;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #BCC9E2; max-width: 54ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: var(--sp-6); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #93A4C4; font-size: var(--fs-sm);
  padding-block: var(--sp-8) var(--sp-5); }
.site-footer h2 {
  color: #fff; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--sp-4);
}
.site-footer a { color: #B9C6DE; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); text-decoration: underline; }
.footer__grid {
  display: grid; gap: var(--sp-6); grid-template-columns: 1.5fr 1fr 1fr 1.3fr; min-width: 0;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.footer__brand img { width: 54px; }
.footer__brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--sp-2); }
.social { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12);
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social a:hover { background: var(--gold-500); color: var(--navy-900); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; }
.footer__bottom {
  margin-top: var(--sp-7); padding-top: var(--sp-5); border-top: 1px solid rgba(255,255,255,.10);
  display: flex; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  font-size: var(--fs-xs); color: #7487A9;
}
.footer__motto { font-style: italic; color: var(--gold-500); }

/* --------------------------------------------------------------------------
   17. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .topbar, .site-footer, .cta-band, .subnav, .nav-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero, .page-head { background: #fff !important; color: #000; }
  .hero h1, .page-head h1 { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
