/* ==========================================================================
   Seniors SA — site stylesheet
   Palette taken from the original brand: crimson #c12243, navy #2f2d61
   ========================================================================== */

:root {
  --ink:        #221f45;
  --navy:       #2f2d61;
  --navy-deep:  #262450;
  --crimson:    #c12243;
  --crimson-dk: #9e1936;
  --gold:       #a9803c;
  --rose:       #f8eff0;
  --rose-deep:  #f1e2e4;
  --paper:      #fffdfc;
  --line:       #e6dadc;
  --muted:      #6b6785;

  --display: "Newsreader", Georgia, "Times New Roman", serif;
  --body:    "Libre Franklin", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --script:  "Amiri", "Newsreader", Georgia, serif;

  --wrap: 1140px;
  --gut: 1.5rem;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.1875rem;      /* 19px — the audience skews older; keep it generous */
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson-dk); }
a:hover { color: var(--crimson); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .75rem 1.25rem; z-index: 200;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.16;
  color: var(--navy);
  margin: 0 0 .6em;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
p { margin: 0 0 1.35em; }
.lead {
  font-size: clamp(1.2rem, 2vw, 1.42rem);
  line-height: 1.6;
  color: var(--navy);
}

.eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  max-width: 90px;
}

/* ---------- the khatam ornament — the site's recurring mark ---------- */
.khatam { width: 34px; height: 34px; flex: none; color: var(--gold); }
.khatam-lg { width: 54px; height: 54px; }

/* ---------- header ---------- */
.topbar {
  background: var(--navy-deep);
  color: #dcd9ee;
  font-size: .875rem;
  line-height: 1.4;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 2rem;
  align-items: center;
  justify-content: flex-end;
  padding-block: .6rem;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #ffd9df; text-decoration: underline; }
.topbar span { display: inline-flex; align-items: center; gap: .45rem; }
.topbar svg { width: 15px; height: 15px; opacity: .75; }

.masthead {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 60;
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: .9rem;
}
.brand { display: block; flex: none; }
.brand img { width: clamp(210px, 30vw, 310px); }

.navtoggle {
  display: none;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: .55rem .8rem;
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  align-items: center;
  gap: .5rem;
  cursor: pointer;
}
.navtoggle svg { width: 20px; height: 20px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: block;
  padding: .55rem .8rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  border-radius: 3px;
  white-space: nowrap;
}
.nav a:hover { color: var(--crimson); background: var(--rose); }
.nav a[aria-current="page"] { color: var(--crimson); box-shadow: inset 0 -3px 0 var(--crimson); border-radius: 0; }

.has-sub { position: relative; }
.has-sub > a::after {
  content: "";
  display: inline-block;
  width: .4em; height: .4em;
  margin-left: .5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.nav .sub {
  position: absolute;
  top: 100%; left: 0;
  min-width: 288px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  box-shadow: 0 14px 34px rgba(34,31,69,.13);
  padding: .4rem;
  display: none;
  flex-direction: column;
  gap: 0;
}
.nav .has-sub:hover .sub, .nav .has-sub:focus-within .sub { display: flex; }
.sub a { font-weight: 500; padding: .6rem .8rem; white-space: normal; }

.nav .cta-nav a {
  background: var(--crimson);
  color: #fff;
  padding: .6rem 1.3rem;
  border-radius: 3px;
  margin-left: .5rem;
}
.nav .cta-nav a:hover { background: var(--crimson-dk); color: #fff; }
.nav .cta-nav a[aria-current="page"] { box-shadow: none; background: var(--crimson-dk); }

@media (max-width: 940px) {
  .navtoggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(34,31,69,.12);
    padding: .6rem var(--gut) 1.4rem;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .has-sub > a::after { display: none; }
  .nav .sub {
    position: static;
    display: flex;
    border: 0;
    box-shadow: none;
    padding: 0 0 0 1.1rem;
    min-width: 0;
  }
  .sub a { font-size: .97rem; color: var(--muted); }
  .nav .cta-nav a { margin: .9rem 0 0; text-align: center; padding: .85rem; }
  .nav .cta-nav a { border-bottom: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  padding: .95rem 1.7rem;
  border-radius: 3px;
  border: 2px solid var(--crimson);
  background: var(--crimson);
  color: #fff;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { background: var(--crimson-dk); border-color: var(--crimson-dk); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: var(--crimson-dk); }
.btn-light:hover { background: var(--rose); border-color: var(--rose); color: var(--crimson-dk); }
.btn svg { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-rose { background: var(--rose); }
.section-navy { background: var(--navy); color: #e8e6f4; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: #ffb3c0; }
.section-navy .eyebrow::after { background: rgba(255,255,255,.22); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 4rem); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1100px 460px at 82% -12%, var(--rose-deep) 0%, rgba(248,239,240,0) 62%),
    var(--paper);
  padding-block: clamp(3.2rem, 7vw, 5.6rem);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.14fr .86fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; font-size: clamp(2.3rem, 4.4vw, 3.35rem); text-wrap: balance; }
.hero h1 em {
  font-style: italic;
  font-weight: 400;
  color: var(--crimson);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- page banner (interior pages) ---------- */
.banner {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(2.8rem, 5.5vw, 4.2rem);
  position: relative;
  overflow: hidden;
}
.banner::after {
  content: "";
  position: absolute;
  right: -70px; top: 50%;
  width: 300px; height: 300px;
  transform: translateY(-50%) rotate(15deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.4'%3E%3Crect x='22' y='22' width='56' height='56'/%3E%3Crect x='22' y='22' width='56' height='56' transform='rotate(45 50 50)'/%3E%3C/g%3E%3C/svg%3E") no-repeat center/contain;
  opacity: .1;
  pointer-events: none;
}
.banner h1 { color: #fff; margin-bottom: .25em; }
.banner .eyebrow { color: #ffb3c0; }
.banner .eyebrow::after { background: rgba(255,255,255,.25); }
.banner p { color: #d3d0e8; margin: 0; max-width: 62ch; }
.banner .wrap { position: relative; z-index: 1; }

.crumbs {
  font-size: .9rem;
  color: var(--muted);
  padding-block: .9rem;
  border-bottom: 1px solid var(--line);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--crimson); text-decoration: underline; }
.crumbs span { margin-inline: .5rem; opacity: .5; }

/* ---------- scripture — the signature element ---------- */
.scripture {
  margin: 2.6rem 0;
  padding: 0 0 0 clamp(1.2rem, 3vw, 2.2rem);
  border-left: 2px solid var(--gold);
  position: relative;
}
.scripture .khatam {
  position: absolute;
  left: -18px;
  top: 0;
  background: var(--paper);
  padding: 3px 0;
}
.section-rose .scripture .khatam { background: var(--rose); }
.section-navy .scripture { border-left-color: rgba(255,255,255,.4); }
.section-navy .scripture .khatam { background: var(--navy); color: #f3c88a; }
.scripture blockquote {
  margin: 0;
  font-family: var(--script);
  font-size: clamp(1.24rem, 2.5vw, 1.62rem);
  line-height: 1.62;
  color: var(--navy);
}
.section-navy .scripture blockquote { color: #fff; }
.scripture figcaption {
  margin-top: 1rem;
  font-family: var(--body);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--crimson);
}
.section-navy .scripture figcaption { color: #ffb3c0; }

.scripture-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  padding: clamp(1.7rem, 3.5vw, 2.6rem);
}
.scripture-card .scripture { margin: 0; border-left: 0; padding-left: 0; }
.scripture-card .scripture .khatam { position: static; margin-bottom: 1.1rem; }

/* ---------- prose ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.2em; }
.prose h2:first-child { margin-top: 0; }
.prose strong { color: var(--navy); font-weight: 700; }
.prose ul { padding-left: 0; list-style: none; margin: 0 0 1.6em; }
.prose ul li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: .55em;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: .25rem; top: .72em;
  width: 7px; height: 7px;
  background: var(--crimson);
  transform: rotate(45deg);
}
.prose .callout-head {
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin: 2.2rem 0 1rem;
  padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}

/* ---------- media band ---------- */
.band img {
  width: 100%;
  aspect-ratio: 21 / 7;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 760px) { .band img { aspect-ratio: 16 / 10; } }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 1.5rem;
  margin-top: 2.8rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--rose-deep);
  box-shadow: 0 16px 34px rgba(34,31,69,.10);
}
.card .khatam { margin-bottom: 1.1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: 1.02rem; color: var(--muted); line-height: 1.62; }
.card .more {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .95rem;
  font-weight: 700;
  color: var(--crimson-dk);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
}
.card .more::after { content: "\2192"; transition: transform .18s ease; }
.card:hover .more::after { transform: translateX(4px); }
.card a.more:hover { color: var(--crimson); }

/* ---------- split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* ---------- bank details table ---------- */
.details {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}
.details th, .details td {
  text-align: left;
  padding: .95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.details th {
  font-family: var(--body);
  font-weight: 700;
  color: var(--muted);
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  width: 42%;
  white-space: nowrap;
}
.details td { font-weight: 600; color: var(--navy); }
.details tr:last-child th, .details tr:last-child td { border-bottom: 0; }
.details .acct {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 1.14rem;
  letter-spacing: .06em;
  color: var(--crimson-dk);
}
.details-note {
  font-size: .93rem;
  color: var(--muted);
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

/* ---------- contact list ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  gap: 1.05rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.contact-list li:first-child { padding-top: 0; }
.contact-list svg { width: 22px; height: 22px; color: var(--crimson); flex: none; margin-top: .35rem; }
.contact-list .lbl {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .2rem;
}
.contact-list .val { font-size: 1.14rem; font-weight: 600; color: var(--navy); text-decoration: none; }
a.val:hover { color: var(--crimson); }

/* ---------- form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--crimson);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  margin-bottom: .4rem;
}
.field .req { color: var(--crimson); }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 1.02rem;
  color: var(--ink);
  padding: .8rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
}
.field textarea { min-height: 165px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--crimson);
  background: #fff;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--muted); margin: 1rem 0 0; }
.form-status { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 3px; font-size: 1rem; display: none; }
.form-status.ok { display: block; background: #e9f5ec; border-left: 3px solid #2e7d4f; color: #1d5637; }
.form-status.err { display: block; background: var(--rose); border-left: 3px solid var(--crimson); color: var(--crimson-dk); }

/* ---------- cta band ---------- */
.cta-band { background: var(--crimson); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #ffe3e8; }
.cta-band .wrap {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2.5rem;
  align-items: center;
}
@media (max-width: 820px) {
  .cta-band .wrap { grid-template-columns: 1fr; }
}

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); color: #b9b6d2; font-size: 1rem; }
.footer .wrap { padding-block: clamp(3rem, 5vw, 4rem); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.2fr;
  gap: 2.5rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer img.flogo { width: 250px; margin-bottom: 1.25rem; }
.footer h4 {
  font-family: var(--body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 1.1rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: .55rem; }
.footer a { color: #d5d2e8; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
/* buttons inside the footer must keep their own colours */
.footer a.btn-light { color: var(--crimson-dk); text-decoration: none; }
.footer a.btn-light:hover { color: var(--crimson-dk); background: var(--rose); border-color: var(--rose); text-decoration: none; }
.footer p { line-height: 1.65; }
.colophon {
  border-top: 1px solid rgba(255,255,255,.13);
  padding-block: 1.4rem;
  font-size: .88rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  color: #9d99bd;
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: clamp(4rem, 10vw, 8rem); }
.notfound .khatam-lg { margin: 0 auto 1.5rem; }
.notfound .btns { justify-content: center; }
