/* ==========================================================================
   How to Muslim — shared site chrome (header, footer, where-to-next, CTA)
   Loaded on every native page. Page-specific content keeps its own <style>
   block; this file only owns classes prefixed htm-/wtn-/cta- so nothing
   collides with per-page component classes like .card or .hero.
   ========================================================================== */

:root{
  --off-white:#FFFFF4;
  --light-gold:#EDD892;
  --green-tea:#C9D2C0;
  --linen:#B1B6B6;
  --golden-pollen:#FCCA46;
  --olive-tree:#A5AD7F;
  --olive-dark:#4D5231;
  --blue-slate:#646E78;
  --gold:#FFB900;
  --charcoal-blue:#233D4D;
}

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

/* ---------- Header ---------- */
.htm-header{
  font-family:Manrope,sans-serif;
  background:var(--off-white);
  border-bottom:1px solid rgba(35,61,77,0.08);
  position:relative;
  z-index:100;
}
.htm-header-inner{
  max-width:1280px;margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}
.htm-logo{display:flex;align-items:center;flex:none;}
.htm-logo svg{height:30px;width:auto;display:block;}
.htm-nav{display:flex;align-items:center;gap:2px;flex:1;justify-content:center;flex-wrap:nowrap;white-space:nowrap;}
.htm-nav-item{position:relative;}
.htm-nav-link{
  display:inline-flex;align-items:center;gap:3px;
  font-family:"Montserrat Alternates",sans-serif;font-weight:600;font-size:0.92rem;
  color:var(--charcoal-blue);text-decoration:none;white-space:nowrap;
  padding:9px 10px;border-radius:8px;
  background:none;border:none;cursor:pointer;
  transition:color .15s ease, background-color .15s ease;
}
.htm-nav-link:hover, .htm-nav-item.open .htm-nav-link{ color:var(--gold); background:rgba(255,185,0,0.08); }
.htm-nav-link.htm-has-sub{ padding-right:4px; }
/* caret is its own button so the label stays a real link to the hub page */
.htm-caret-btn{
  background:none;border:none;cursor:pointer;padding:9px 8px 9px 2px;
  display:inline-flex;align-items:center;color:var(--charcoal-blue);
  border-radius:8px;transition:color .15s ease;
}
.htm-caret-btn:hover{ color:var(--gold); }
.htm-caret-btn .caret{ width:9px;height:9px;flex:none;transition:transform .15s ease; }
.htm-nav-item.open .htm-caret-btn .caret{ transform:rotate(180deg); }
.htm-nav-item.open .htm-caret-btn{ color:var(--gold); }
.htm-nav-link.htm-pill{
  background:var(--charcoal-blue); color:#fff; padding:9px 16px; border-radius:999px; margin-left:4px;
}
.htm-nav-link.htm-pill:hover{ background:#1a2f3b; color:#fff; }

.htm-dropdown{
  position:absolute; top:100%; left:50%; transform:translateX(-50%);
  background:#fff; border:1px solid rgba(35,61,77,0.1); border-radius:12px;
  box-shadow:0 12px 32px rgba(35,61,77,0.14);
  padding:10px; min-width:240px;
  display:none; flex-direction:column; gap:2px;
  margin-top:6px;
}
.htm-nav-item.open .htm-dropdown{ display:flex; }
.htm-dropdown a{
  display:block; padding:9px 14px; border-radius:8px;
  color:var(--charcoal-blue); text-decoration:none; font-size:0.95rem; font-weight:500;
  transition:background-color .15s ease, color .15s ease;
}
.htm-dropdown a:hover{ background:var(--off-white); color:var(--gold); }
.htm-dropdown a.htm-dd-more{
  font-weight:700; border-top:1px solid rgba(35,61,77,0.08); margin-top:6px; padding-top:12px;
}

.htm-header-actions{ display:flex; align-items:center; gap:6px; flex:none; }
.htm-icon-btn{
  width:38px;height:38px;border-radius:50%;
  border:1.5px solid var(--gold); background:none; cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  color:var(--charcoal-blue); transition:background-color .15s ease;
}
.htm-icon-btn:hover{ background:rgba(255,185,0,0.1); }
.htm-icon-btn svg{ width:16px;height:16px; }

.htm-burger{ display:none; }

@media (max-width: 1220px){
  .htm-nav{ display:none; }
  .htm-burger{
    display:flex; width:38px;height:38px;border-radius:8px;border:1.5px solid var(--charcoal-blue);
    background:none; align-items:center;justify-content:center; cursor:pointer;
  }
  .htm-header-inner.mobile-open .htm-nav{
    display:flex; flex-direction:column; align-items:stretch;
    position:absolute; top:100%; left:0; right:0; background:#fff;
    padding:12px 20px 20px; box-shadow:0 12px 24px rgba(35,61,77,0.12);
    border-bottom-left-radius:16px; border-bottom-right-radius:16px;
  }
  /* In the burger menu each row is: section link (fills the row, tappable to
     the hub page) + caret button on the right that opens its sub-list. */
  .htm-header-inner.mobile-open .htm-nav-item{
    display:flex; flex-wrap:wrap; align-items:center; width:100%;
  }
  .htm-header-inner.mobile-open .htm-nav-link{ flex:1; justify-content:flex-start; }
  /* 44x44 minimum touch target: the caret sits right beside a link that
     navigates away, so an undersized target means a mis-tap leaves the
     page instead of opening the submenu. */
  .htm-header-inner.mobile-open .htm-caret-btn{
    min-width:44px; min-height:44px; justify-content:center; padding:0;
  }
  .htm-header-inner.mobile-open .htm-dropdown{ flex-basis:100%; }
  .htm-header-inner.mobile-open .htm-dropdown{
    position:static; transform:none; box-shadow:none; border:none; margin:0 0 6px 12px; display:none;
    width:calc(100% - 12px);
  }
  .htm-header-inner.mobile-open .htm-nav-item.open .htm-dropdown{ display:flex; }
}

/* ---------- Footer ---------- */
.htm-footer{
  background:var(--olive-dark); color:var(--off-white); font-family:Manrope,sans-serif;
  padding:64px 48px 0; margin-top:64px;
}
.htm-footer a{color:inherit;text-decoration:none;}
.htm-footer .footer-grid{
  max-width:1180px;margin:0 auto;display:grid;
  grid-template-columns:1.3fr 1fr 1fr 1fr;gap:40px;padding-bottom:48px;
  border-bottom:1px solid rgba(255,255,244,0.14);
}
.footer-brand .htm-logo-wordmark{ display:block;height:34px;width:auto;margin:0 0 16px; }
.footer-brand p{ font-size:0.92rem;line-height:1.6;color:var(--light-gold);max-width:280px;margin:0 0 22px; }
.social-row{display:flex;gap:10px;}
.social-row a{
  width:36px;height:36px;border-radius:50%;border:1.5px solid var(--olive-tree);
  display:flex;align-items:center;justify-content:center;
  transition:border-color .15s ease, background .15s ease;
}
.social-row a:hover{border-color:var(--golden-pollen);background:rgba(255,185,0,0.1);}
.social-row svg{width:16px;height:16px;fill:var(--off-white);}
.footer-col h4{
  font-family:"Montserrat Alternates",sans-serif;font-weight:600;font-size:0.82rem;
  letter-spacing:.04em;text-transform:uppercase;color:var(--golden-pollen);margin:4px 0 18px;
}
.footer-col ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;}
.footer-col li a{ font-size:0.95rem;color:var(--off-white);opacity:.88;position:relative; }
.footer-col li a:hover{opacity:1;color:var(--golden-pollen);}
.footer-col .external::after{
  content:"↗";font-size:0.75em;margin-left:5px;opacity:.6;position:relative;top:-1px;
}
.footer-bottom{
  max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;
  padding:22px 0;font-size:0.82rem;color:var(--olive-tree);flex-wrap:wrap;gap:10px;
}
.footer-bottom .crescent{width:14px;height:14px;fill:var(--golden-pollen);margin-right:6px;vertical-align:-2px;}
@media (max-width:860px){
  .htm-footer{padding:48px 24px 0;}
  .htm-footer .footer-grid{grid-template-columns:1fr 1fr;gap:32px 24px;}
  .htm-footer .footer-brand{grid-column:1 / -1;}
}
@media (max-width:520px){
  .htm-footer .footer-grid{grid-template-columns:1fr;}
  .htm-footer .footer-bottom{flex-direction:column;align-items:flex-start;}
}

/* ==========================================================================
   Page hero — the standard opening band on every content page.
   Dark charcoal, full-bleed, sitting directly under the header; the page
   body below it is always cream. Deliberately not a flat fill: a soft
   off-centre warm wash plus the brand's own crescent mark at very low
   opacity give it depth, so it reads as designed rather than as a default
   dark rectangle.
   ========================================================================== */
.htm-hero-band{
  position:relative; overflow:hidden;
  background:var(--charcoal-blue);
  font-family:Manrope,sans-serif;
  isolation:isolate;
}
.htm-hero-band::before{
  /* warm light falling from the top-right, echoing the brand gold */
  content:""; position:absolute; inset:0; z-index:-2;
  background:
    radial-gradient(120% 90% at 88% 4%, rgba(255,185,0,0.13) 0%, rgba(255,185,0,0) 58%),
    radial-gradient(90% 70% at 0% 100%, rgba(165,173,127,0.16) 0%, rgba(165,173,127,0) 62%);
}
.htm-hero-band::after{
  /* the crescent-question-mark from the logo, used as a watermark */
  content:""; position:absolute; z-index:-1;
  right:-40px; bottom:-70px; width:340px; height:340px;
  background:url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 120'>\
<path d='M62 8C40 8 24 26 24 48c0 17 9 30 22 37-9-2-19-9-19-9 3 14 17 22 30 20-13 10-32 6-40-6 2 22 24 36 44 30-16 10-38 2-46-16C7 82 8 56 25 38 38 24 55 18 62 8Z' fill='%23FFFFF4'/>\
<circle cx='60' cy='98' r='7' fill='%23FFFFF4'/></svg>") no-repeat center/contain;
  opacity:.045; pointer-events:none;
}
.htm-hero-inner{
  max-width:1180px; margin:0 auto; padding:64px 24px 60px;
  position:relative;
}
.htm-hero-eyebrow{
  display:flex; align-items:center; gap:14px;
  font-family:"Montserrat Alternates",sans-serif; font-weight:700;
  font-size:0.76rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--gold); margin:0 0 20px;
}
.htm-hero-eyebrow::before{
  content:""; width:38px; height:2px; background:var(--gold); flex:none; border-radius:2px;
}
.htm-hero-band h1{
  font-family:"Montserrat Alternates",sans-serif; font-weight:700;
  color:var(--off-white);
  font-size:clamp(2.1rem, 5.2vw, 3.6rem);
  line-height:1.04; letter-spacing:-0.02em;
  margin:0 0 18px; max-width:17ch;
}
.htm-hero-lede{
  color:#BFCBD4; font-size:1.08rem; line-height:1.62;
  margin:0; max-width:52ch;
}
.htm-hero-lede a{ color:var(--light-gold); }
@media (max-width:600px){
  .htm-hero-inner{ padding:44px 20px 42px; }
  .htm-hero-band::after{ width:210px; height:210px; right:-56px; bottom:-56px; }
  .htm-hero-lede{ font-size:1rem; }
}

/* Page body always sits on cream, whatever the embed brought with it. */
body{ background:var(--off-white); }

/* An embed hero whose title and lede moved into the band above keeps only its
   extras (pill chips, stat tiles, an Arabic line). It was padded for a full
   hero, so pull that back or it opens with a band of empty space. */
.hero--stripped{
  padding-top:22px !important; padding-bottom:22px !important;
  margin-top:0 !important; min-height:0 !important;
  background:transparent !important; border:none !important; box-shadow:none !important;
}
.hero--stripped > *:first-child{ margin-top:0 !important; }

/* ---------- footer newsletter (MailerLite) ---------- */
.htm-newsletter{
  display:grid; grid-template-columns:1fr minmax(280px,420px); gap:28px; align-items:center;
  padding:0 0 30px; margin-bottom:30px; border-bottom:1px solid rgba(255,255,244,.14);
}
.htm-newsletter .nl-copy h4{
  font-family:"Montserrat Alternates",sans-serif; font-weight:700; color:var(--gold);
  font-size:1.15rem; margin:0 0 6px;
}
.htm-newsletter .nl-copy p{ margin:0; color:rgba(255,255,244,.75); font-size:.95rem; line-height:1.55; }
.htm-newsletter .nl-row{ display:flex; gap:10px; }
.htm-newsletter input[type="email"]{
  flex:1; min-width:0; border:1.5px solid rgba(255,255,244,.24); background:rgba(255,255,244,.06);
  color:var(--off-white); border-radius:10px; padding:13px 16px;
  font-family:Manrope,sans-serif; font-size:.98rem;
}
.htm-newsletter input[type="email"]::placeholder{ color:rgba(255,255,244,.5); }
.htm-newsletter input[type="email"]:focus{ outline:none; border-color:var(--gold); }
.htm-newsletter button.primary{
  flex:none; background:var(--gold); color:var(--charcoal-blue); border:none; cursor:pointer;
  font-family:"Montserrat Alternates",sans-serif; font-weight:700; font-size:.95rem;
  padding:13px 22px; border-radius:10px; transition:filter .15s ease;
}
.htm-newsletter button.primary:hover{ filter:brightness(1.08); }
.htm-newsletter .row-success h4{
  font-family:"Montserrat Alternates",sans-serif; color:var(--gold); margin:0 0 4px; font-size:1.05rem;
}
.htm-newsletter .row-success p{ margin:0; color:rgba(255,255,244,.8); font-size:.95rem; }
@media (max-width:760px){
  .htm-newsletter{ grid-template-columns:1fr; gap:16px; }
  .htm-newsletter .nl-row{ flex-direction:column; }
  .htm-newsletter button.primary{ width:100%; }
}

/* ---------- Where to next ---------- */
.wtn-section{
  max-width:1180px;margin:0 auto;padding:56px 24px 64px;
  font-family:Manrope,sans-serif;
}
.wtn-title{
  display:flex;align-items:center;gap:16px;
  font-family:"Montserrat Alternates",sans-serif;font-weight:700;
  font-size:1.9rem;color:var(--charcoal-blue);margin:0 0 24px;
}
.wtn-title::after{ content:"";flex:1;height:2px;background:var(--gold); }

.wtn-next{
  background:var(--charcoal-blue); border-radius:20px; padding:32px 36px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  margin-bottom:24px; text-decoration:none;
}
.wtn-next-text{ color:#fff; }
.wtn-eyebrow{
  display:block; font-family:"Montserrat Alternates",sans-serif;font-weight:700;
  font-size:0.85rem; color:var(--golden-pollen); margin-bottom:8px;
}
.wtn-next h3{
  font-family:"Montserrat Alternates",sans-serif;font-weight:700;color:#fff;
  font-size:1.6rem;margin:0 0 10px;
}
.wtn-next p{ color:var(--green-tea); font-size:1rem; margin:0; max-width:640px; }
.wtn-arrow{
  flex:none; width:52px;height:52px;border-radius:14px;background:var(--light-gold);
  display:flex;align-items:center;justify-content:center; transition:transform .15s ease;
}
.wtn-next:hover .wtn-arrow{ transform:translateX(4px); }
.wtn-arrow svg{ width:20px;height:20px;color:var(--charcoal-blue); }

.wtn-grid{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:28px;
}
.wtn-card{
  background:#fff; border:1.5px solid var(--gold); border-radius:16px; padding:24px;
  display:flex; flex-direction:column; gap:14px;
}
.wtn-card-icon{
  width:48px;height:48px;border-radius:10px;background:var(--green-tea);
  display:flex;align-items:center;justify-content:center; color:var(--charcoal-blue);
}
.wtn-card-icon svg{ width:22px;height:22px; }
.wtn-card h4{ font-family:"Montserrat Alternates",sans-serif;font-weight:700;color:var(--charcoal-blue);
  font-size:1.15rem;margin:0; }
.wtn-card p{ color:var(--blue-slate); font-size:0.95rem; margin:0; flex:1; line-height:1.5; }
.wtn-card a.wtn-explore{
  align-self:flex-start; border:1.5px solid var(--gold); border-radius:999px;
  padding:8px 18px; font-family:"Montserrat Alternates",sans-serif;font-weight:700;
  font-size:0.9rem; color:var(--charcoal-blue); text-decoration:none;
  transition:background-color .15s ease;
}
.wtn-card a.wtn-explore:hover{ background:var(--off-white); }

.wtn-start-over{ text-align:center; font-size:0.98rem; color:var(--blue-slate); }
.wtn-start-over a{ background:var(--golden-pollen); color:var(--charcoal-blue); font-weight:700;
  text-decoration:underline; padding:1px 4px; }

@media (max-width:860px){
  .wtn-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width:600px){
  .wtn-grid{ grid-template-columns:1fr; }
  .wtn-next{ flex-direction:column; align-items:flex-start; }
  .wtn-arrow{ align-self:flex-end; }
}

/* ---------- CTA banner ("Begin Your Journey Today") ---------- */
.cta-journey{
  max-width:1180px;margin:0 auto 64px;padding:56px 24px;text-align:center;
  background:var(--green-tea); border-radius:24px; font-family:Manrope,sans-serif;
}
.cta-journey h2{
  font-family:"Montserrat Alternates",sans-serif;font-weight:700;color:var(--charcoal-blue);
  font-size:2.1rem; margin:0 0 14px;
}
.cta-journey p{ color:#3f4a3f; max-width:620px;margin:0 auto 26px; font-size:1.05rem; }
.cta-journey-actions{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta-btn-primary{
  background:var(--gold); color:var(--charcoal-blue); border:none;
  font-family:"Montserrat Alternates",sans-serif;font-weight:700;font-size:1rem;
  padding:13px 26px; border-radius:10px; text-decoration:none; transition:background-color .15s ease;
}
.cta-btn-primary:hover{ background:var(--golden-pollen); }
.cta-btn-secondary{
  background:transparent; color:var(--charcoal-blue); border:1.5px solid var(--gold);
  font-family:"Montserrat Alternates",sans-serif;font-weight:700;font-size:1rem;
  padding:13px 26px; border-radius:10px; text-decoration:none; transition:background-color .15s ease;
}
.cta-btn-secondary:hover{ background:rgba(255,185,0,0.12); }

/* ---------- Search overlay ---------- */
.htm-search-overlay{
  position:fixed; inset:0; background:rgba(35,61,77,0.5);
  display:none; align-items:flex-start; justify-content:center;
  padding:12vh 20px 20px; z-index:1000;
}
.htm-search-overlay.open{ display:flex; }
.htm-search-box{
  background:#fff; border-radius:16px; width:100%; max-width:560px;
  box-shadow:0 20px 60px rgba(35,61,77,0.25); overflow:hidden;
  font-family:Manrope,sans-serif;
}
.htm-search-input-row{ display:flex; align-items:center; gap:10px; padding:16px 20px; border-bottom:1px solid rgba(35,61,77,0.1); }
.htm-search-input-row svg{ width:20px;height:20px; color:var(--blue-slate); flex:none; }
.htm-search-input-row input{
  border:none; outline:none; font-size:1.05rem; font-family:Manrope,sans-serif; flex:1; color:var(--charcoal-blue); background:transparent;
}
.htm-search-close{ background:none;border:none;cursor:pointer;color:var(--blue-slate);font-size:0.85rem;font-family:Manrope,sans-serif; flex:none; }
.htm-search-results{ max-height:60vh; overflow-y:auto; padding:8px; }
.htm-search-result{
  display:block; padding:11px 14px; border-radius:10px; text-decoration:none;
  color:var(--charcoal-blue); font-weight:600; font-size:0.98rem;
}
.htm-search-result:hover, .htm-search-result.active{ background:var(--off-white); color:var(--gold); }
.htm-search-empty{ padding:24px 20px; color:var(--blue-slate); font-size:0.95rem; text-align:center; }

/* ---------- Want to Learn More ---------- */
.wtlm-section{
  max-width:1180px; margin:0 auto 64px; padding:0 24px; font-family:Manrope,sans-serif;
}
.wtlm-panel{
  background:linear-gradient(135deg, #DEE2F0 0%, #E9ECE0 100%);
  border-radius:24px; padding:44px 40px;
}
.wtlm-head{ display:flex; align-items:center; gap:20px; margin-bottom:8px; }
.wtlm-head-icon{
  flex:none; width:64px;height:64px; border-radius:16px; background:var(--charcoal-blue);
  display:flex; align-items:center; justify-content:center;
}
.wtlm-head-icon svg{ width:30px;height:30px; color:var(--gold); }
.wtlm-head h2{
  font-family:"Montserrat Alternates",sans-serif; font-weight:700; color:var(--charcoal-blue);
  font-size:2.1rem; margin:0;
}
.wtlm-sub{ color:var(--charcoal-blue); opacity:.75; font-size:1.05rem; margin:0 0 28px; }
.wtlm-grid{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.wtlm-card{ background:#fff; border-radius:16px; padding:24px; }
.wtlm-card-top{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.wtlm-card-icon{
  flex:none; width:44px;height:44px; border-radius:10px; background:var(--light-gold);
  display:flex; align-items:center; justify-content:center;
}
.wtlm-card-icon svg{ width:20px;height:20px; color:var(--charcoal-blue); }
.wtlm-tag{
  background:var(--light-gold); color:var(--charcoal-blue); font-family:"Montserrat Alternates",sans-serif;
  font-weight:700; font-size:0.7rem; letter-spacing:.03em; text-transform:uppercase;
  padding:6px 12px; border-radius:999px; white-space:nowrap;
}
.wtlm-card h3{ font-family:"Montserrat Alternates",sans-serif;font-weight:700;color:var(--charcoal-blue); font-size:1.2rem; margin:0 0 8px; }
.wtlm-card p{ color:var(--blue-slate); font-size:0.95rem; line-height:1.5; margin:0 0 10px; }
.wtlm-card a.wtlm-link{ color:var(--charcoal-blue); font-weight:600; font-size:0.92rem; text-decoration:underline; }
.wtlm-meta{ color:var(--blue-slate); font-size:0.92rem; }
@media (max-width:700px){
  .wtlm-panel{ padding:32px 24px; }
  .wtlm-grid{ grid-template-columns:1fr; }
  .wtlm-head h2{ font-size:1.6rem; }
}
