/* ============================================================================
   The Muslimah Coaching Academy — landing page
   Mobile-first. Every colour is a token in :root, so a rebrand is one edit.
   ========================================================================= */

:root {
  /* Brand — #85034B sampled directly from the TMCA logo artwork. */
  --brand:        #85034B;
  --brand-dark:   #5E0235;
  --brand-deep:   #3D0123;
  --brand-tint:   #F9EFF4;

  --ink:          #14100F;
  --ink-soft:     #3F3A38;
  --ink-muted:    #6B6462;

  --surface:      #FFFFFF;
  --surface-alt:  #FAF6F7;
  --border:       #E8DFE3;

  --shadow-sm: 0 1px 3px rgba(20, 16, 15, .07);
  --shadow-md: 0 6px 20px rgba(20, 16, 15, .09);
  --shadow-lg: 0 18px 44px rgba(61, 1, 35, .16);

  /* Amiri sits second in each stack, not last: its @font-face is gated by a
     unicode-range covering Arabic and the Presentation Forms, so it is only
     ever used for those codepoints — but it has to come before the generic
     system fonts or glyphs like the honorific ﷺ (U+FDFA) get picked up by a
     system fallback and render as tofu. */
  --font-display: 'Playfair Display', 'Amiri', Georgia, 'Times New Roman', serif;
  --font-ui: 'Montserrat', 'Amiri', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-ar: 'Amiri', 'Traditional Arabic', serif;

  /* Fluid type — scales continuously between 375px and 1280px viewports. */
  --t-hero:   clamp(2.25rem, 1.30rem + 4.05vw, 4.5rem);
  --t-h2:     clamp(1.75rem, 1.24rem + 2.17vw, 3rem);
  --t-h3:     clamp(1.15rem, 1.03rem + 0.53vw, 1.45rem);
  --t-lede:   clamp(1.02rem, 0.96rem + 0.27vw, 1.18rem);
  --t-body:   clamp(0.95rem, 0.92rem + 0.13vw, 1.02rem);

  --gap:      clamp(1.5rem, 1.0rem + 2vw, 2.5rem);
  --section:  clamp(3.5rem, 2.2rem + 5.5vw, 7rem);
  --radius:   6px;
  --radius-lg: 12px;
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--font-ui);
  font-size: var(--t-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.18; margin: 0; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--brand); color: #fff; padding: .85rem 1.25rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* --- layout ------------------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, .8rem + 1.8vw, 2.5rem);
}
.wrap--narrow { max-width: 800px; }

.section { padding-block: var(--section); }
.section--alt { background: var(--surface-alt); }

.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.5vw, 3.5rem); }
.section__title { font-size: var(--t-h2); margin-bottom: .75rem; }
.section__lede { font-size: var(--t-lede); color: var(--ink-muted); margin: 0; }

/* Note: there is deliberately no repeating section "eyebrow" label. Those
   split her real headlines in two ("Life coaching" / "In numbers") to make
   room for a kicker, which is both an AI-scaffold tell and a corruption of
   her copy. The headings below carry her original wording intact. */

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .8rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-tint); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .14); border-color: #fff; }
.btn--sm { min-height: 44px; padding: .6rem 1.15rem; font-size: .72rem; }
.btn--lg { padding: 1.05rem 2.4rem; font-size: .88rem; }

/* --- nav --------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease, border-color .3s ease;
}
.nav.is-stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--border); }

.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }
.nav__brand { display: block; flex: 0 0 auto; }
.nav__brand img { width: clamp(160px, 34vw, 215px); height: auto; }

.nav__links {
  position: fixed;
  inset: 68px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  flex-direction: column;
  padding: .5rem 1.25rem 1.5rem;
  gap: .15rem;
  display: none;
}
.nav__links.is-open { display: flex; }
.nav__links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--ink);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--border);
}
.nav__links a:last-child { border-bottom: 0; }
.nav__cta { justify-content: center; color: #fff !important; margin-top: .9rem; }

.nav__toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 11px;
  background: none; border: 0; cursor: pointer; flex: 0 0 auto;
}
.nav__toggle span {
  display: block; height: 2px; width: 100%; background: var(--ink);
  border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 62rem) {
  .nav__toggle { display: none; }
  .nav__links {
    position: static; display: flex; flex-direction: row; align-items: center;
    gap: 1.9rem; padding: 0; border: 0; box-shadow: none; background: none;
  }
  /* Keep a real hit area on pointer devices too — WCAG 2.2 (2.5.8) sets a
     24px floor, and bare inline links were coming in at 22px. */
  .nav__links a { min-height: 44px; border-bottom: 0; font-size: .78rem; letter-spacing: .07em; position: relative; }
  .nav__links a:not(.nav__cta)::after {
    content: ""; position: absolute; left: 0; bottom: -6px;
    width: 100%; height: 2px; background: var(--brand);
    transform: scaleX(0); transform-origin: left; transition: transform .28s ease;
  }
  .nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }
  .nav__cta { margin-top: 0; }
}

/* --- hero -------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 82vh, 860px);
  padding-block: clamp(4rem, 2rem + 9vw, 8rem);
  overflow: hidden;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(61,1,35,.34) 0%, rgba(61,1,35,.52) 55%, rgba(61,1,35,.78) 100%),
    linear-gradient(90deg, rgba(61,1,35,.55) 0%, rgba(61,1,35,.12) 70%);
}
/* .hero__body carries .wrap, so it must stay full width for the container to
   align with every section below it. Constrain the children instead, or the
   block centres itself as a flex item and the hero drifts out of alignment. */
.hero__body { position: relative; width: 100%; }
.hero__body > * { max-width: 46rem; }
.hero__title { font-size: var(--t-hero); color: #fff; margin-bottom: 1.1rem; text-wrap: balance; }
.hero__lede {
  font-size: clamp(1.05rem, .96rem + .4vw, 1.3rem);
  color: rgba(255, 255, 255, .93);
  max-width: 38rem;
  margin-bottom: 2.1rem;
}
.hero__lede em { font-style: italic; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.75rem; translate: -50% 0;
  width: 22px; height: 36px; border: 2px solid rgba(255,255,255,.5); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 7px; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: rgba(255,255,255,.85);
  animation: scrollhint 1.9s ease-in-out infinite;
}
@keyframes scrollhint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(9px); opacity: .35; }
}

/* --- brand band (mission) ---------------------------------------------- */
.band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: rgba(255, 255, 255, .93);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  text-align: center;
}
.band__head {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.15rem);
  color: #fff;
  margin-bottom: 1.25rem;
}
.band__text { font-size: var(--t-lede); margin-bottom: 1.1rem; }
.band__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  color: #fff;
  margin: 1.75rem 0 0;
  line-height: 1.35;
}

/* --- three keys -------------------------------------------------------- */
.keys { display: grid; gap: var(--gap); }
@media (min-width: 48rem) { .keys { grid-template-columns: repeat(3, 1fr); } }

.key {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}
.key__title {
  font-size: var(--t-h3);
  margin-bottom: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--border);
}
.key__quote {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  border-left: 2px solid var(--brand-tint);
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.55;
}
.key__quote cite {
  display: block; margin-top: .6rem;
  font-family: var(--font-ui); font-size: .72rem; font-style: normal;
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
}
.key__trans { color: var(--ink); }
.key__trans--lead { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; }
.key__ref { font-size: .82rem; font-weight: 700; color: var(--brand); margin: 0; }

/* --- arabic ------------------------------------------------------------ */
/* The ﷺ ligature is dense; Amiri sets it small next to Latin text. */
.honorific { font-size: 1.3em; line-height: 1; }

.ayah {
  font-family: var(--font-ar);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.85rem);
  line-height: 2.1;
  color: var(--ink);
  margin: 0 0 1rem;
}
.ayah--lg {
  font-size: clamp(1.6rem, 1.15rem + 2.1vw, 2.9rem);
  color: #fff;
  line-height: 2;
  margin-bottom: 1.75rem;
}

.ayah-band {
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand) 100%);
  padding-block: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);
  text-align: center;
  color: #fff;
}
.ayah-band__trans {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  color: rgba(255, 255, 255, .93);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.ayah-band__ref {
  font-size: .85rem; font-weight: 700; color: rgba(255, 255, 255, .78); margin: 0;
}

/* --- service cards ----------------------------------------------------- */
.cards { display: grid; gap: var(--gap); }
@media (min-width: 40rem) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .3s ease;
}
.card:hover { box-shadow: var(--shadow-md); }
.card__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); }
.card__title { font-size: var(--t-h3); margin-bottom: .65rem; }
.card__body p { margin: 0; color: var(--ink-muted); font-size: .93rem; }

/* --- stats ------------------------------------------------------------- */
.stats { display: grid; gap: var(--gap); }
@media (min-width: 34rem) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .stats { grid-template-columns: repeat(4, 1fr); } }

.stat { border-top: 2px solid var(--border); padding-top: 1.4rem; }
.stat__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.9rem);
  font-weight: 700;
  line-height: 1;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  margin-bottom: .6rem;
}
.stat__label { font-family: var(--font-ui); font-size: .9rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; line-height: 1.45; }
.stat p { margin: 0; font-size: .88rem; color: var(--ink-muted); }

/* --- programmes -------------------------------------------------------- */
.progs { display: grid; gap: var(--gap); }
@media (min-width: 46rem) { .progs { grid-template-columns: repeat(2, 1fr); } }

/* Tinted surface rather than an accent border — differentiates these from
   the .key cards without a side tab. */
.prog {
  background: var(--brand-tint);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem);
}
.prog__eyebrow {
  font-size: .82rem; font-weight: 600; color: var(--brand); margin-bottom: .35rem;
}
.prog__title { font-size: var(--t-h3); margin-bottom: .8rem; }
.prog p:last-child { margin: 0; color: var(--ink-muted); font-size: .93rem; }

/* --- coaches ----------------------------------------------------------- */
.coaches { display: grid; gap: var(--gap); }
@media (min-width: 52rem) { .coaches { grid-template-columns: repeat(2, 1fr); } }

/* Both cards carry the same circular slot so the pair stays balanced: Coach
   Athar's holds his portrait, Coach Tahmina's holds the TMCA mark because she
   has chosen not to be photographed. The monogram is a deliberate brand
   device, not a placeholder. */
.coach__portrait {
  width: clamp(96px, 21vw, 132px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 1.35rem;
  background: #fff;
  border: 1px solid var(--border);
  flex: 0 0 auto;
}
.coach__portrait img { width: 100%; height: 100%; object-fit: cover; }
.coach__portrait--monogram { display: grid; place-items: center; }
.coach__portrait--monogram img {
  width: 54%; height: auto; object-fit: contain; opacity: .55;
}

.coach {
  display: flex; flex-direction: column;
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem);
}
.coach__body { display: flex; flex-direction: column; }
.coach__name {
  font-size: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  margin-bottom: .5rem;
  padding-bottom: .85rem;
  border-bottom: 1px solid var(--border);
}
.coach__role {
  font-size: .84rem; font-weight: 600; color: var(--brand);
  margin-bottom: 1rem; line-height: 1.6;
}
.coach__body p:last-child { margin: 0; color: var(--ink-muted); font-size: .93rem; }

/* --- testimonials ------------------------------------------------------ */
.quotes { display: grid; gap: var(--gap); }
@media (min-width: 44rem) { .quotes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  position: relative;
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.quote::before {
  content: "\201C";
  position: absolute; top: .1em; right: .35rem;
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: 1; color: var(--brand); opacity: .13;
}
.quote blockquote {
  position: relative; margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: 1.04rem; line-height: 1.6; color: var(--ink);
}
.quote figcaption { font-size: .85rem; font-weight: 700; color: var(--brand); }

/* --- final cta --------------------------------------------------------- */
.cta {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  padding-block: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);
  text-align: center;
  color: rgba(255, 255, 255, .92);
}
.cta__title { font-size: var(--t-h2); color: #fff; margin-bottom: 1rem; }
.cta__lede { font-size: var(--t-lede); margin-bottom: 2rem; }

/* --- footer ------------------------------------------------------------ */
.footer { background: #17110F; color: rgba(255, 255, 255, .72); font-size: .9rem; }
.footer__grid {
  display: grid; gap: clamp(2rem, 1.4rem + 2vw, 3rem);
  padding-block: clamp(3rem, 2rem + 3.5vw, 4.5rem);
}
@media (min-width: 40rem) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

.footer__logo { width: clamp(120px, 22vw, 150px); height: auto; margin-bottom: 1.1rem; }
.footer__blurb { color: rgba(255, 255, 255, .6); margin: 0; font-size: .88rem; }
.footer__head {
  font-family: var(--font-ui); font-size: .92rem; font-weight: 700;
  color: #fff; margin-bottom: .85rem;
}
.footer__list { list-style: none; margin: 0 0 1.1rem; padding: 0; }
.footer__list li { margin-bottom: .3rem; }
.footer__list a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: rgba(255, 255, 255, .72); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color .2s ease, border-color .2s ease;
  overflow-wrap: break-word;
}
.footer__list a:hover { color: #fff; border-bottom-color: var(--brand); }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.4rem; }
.footer__bar p { margin: 0; font-size: .8rem; color: rgba(255, 255, 255, .5); }
.footer__bar strong { color: rgba(255, 255, 255, .78); font-weight: 600; }

/* --- motion ------------------------------------------------------------
   Elements start hidden ONLY when JS is driving the reveal. The .js-motion
   class is set by main.js, so with JS disabled or broken everything is
   visible by default — content never depends on an animation to appear.
   --------------------------------------------------------------------- */
.js-motion [data-reveal],
.js-motion [data-hero] { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js-motion [data-reveal],
  .js-motion [data-hero] { opacity: 1 !important; transform: none !important; }
  .hero__scroll { display: none; }
}
