/* Muslimahs For The Nation — site styles.
   Colours are the original Wix palette. */
:root {
  --dark: #2f2f2e;
  --slate: #303c42;
  --grey: #5e5e5d;
  --mid: #8c8c8b;
  --light: #eaeae8;
  --white: #fff;
  --yellow: #f4ce50;
  --green: #45b269;
  --green-dark: #2e7746;
  --red: #d55342;
  --body-font: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --head-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: 980px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body-font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: var(--dark);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--head-font);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 1.2;
  margin: 0 0 0.6em;
}
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */
.site-header { background: var(--light); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 76px; padding: 0 0 0 10px; }
.logo img { width: 300px; max-width: 60vw; }
.site-nav { display: flex; align-items: stretch; gap: 18px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.site-nav > ul > li { position: relative; border-right: 1px solid var(--yellow); }
.site-nav > ul > li:last-child { border-right: 0; }
.site-nav a { display: block; padding: 6px 18px; font-size: 12px; text-decoration: none; white-space: nowrap; transition: background .2s, color .2s; }
.site-nav > ul > li > a:hover,
.site-nav a[aria-current="page"] { background: var(--dark); color: var(--white); }
.site-nav .sub { display: none; position: absolute; top: 100%; left: 0; flex-direction: column; align-items: stretch; background: var(--light); min-width: 160px; padding: 6px 0; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.site-nav .has-sub:hover .sub, .site-nav .has-sub:focus-within .sub { display: flex; }
.site-nav .sub a:hover { background: var(--yellow); }
.site-nav .donate-btn { display: flex; align-items: center; background: var(--yellow); padding: 0 34px; min-height: 76px; font-size: 13px; letter-spacing: .08em; }
.site-nav .donate-btn:hover { background: var(--dark); color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; padding: 14px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--dark); margin: 6px 0; }

/* ---------- floating social bar ---------- */
.social-bar { position: fixed; right: 0; top: 30%; z-index: 40; background: var(--yellow); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.social-bar a { display: block; width: 28px; height: 28px; color: #000; transition: transform .15s; }
.social-bar a:hover { transform: scale(1.15); }
.social-bar svg { width: 100%; height: 100%; }

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 34px; border-radius: 30px; text-decoration: none; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; background: var(--white); color: var(--red); border: 1px solid transparent; transition: background .2s, color .2s; }
.btn:hover { background: var(--dark); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--outline { background: transparent; color: var(--white); border-color: var(--white); }
.text-link { color: var(--green); text-decoration: none; font-size: 14px; }
.text-link:hover { text-decoration: underline; }
.pill { display: inline-block; background: var(--slate); color: var(--white); padding: 6px 26px; border-radius: 20px; text-decoration: none; font-size: 13px; }
.pill:hover { background: var(--green); }

/* ---------- home: hero ---------- */
.hero { position: relative; background: var(--dark); color: var(--white); min-height: 78vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 20px; overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero > * { position: relative; }
.hero h1 { font-size: clamp(42px, 7vw, 80px); letter-spacing: -0.08em; margin-bottom: 1.6em; }
.hero p { color: var(--yellow); font-family: var(--head-font); font-weight: 400; font-size: clamp(14px, 2vw, 20px); margin: 0; }

/* ---------- home: mission / get involved ---------- */
.split { display: grid; grid-template-columns: 1.7fr 1fr; }
.panel { padding: 70px 50px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.panel > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.panel > * { position: relative; }
.panel h2 { font-size: 32px; text-transform: uppercase; margin-bottom: 1.2em; }
.panel p { max-width: 560px; margin: 0 auto 1.6em; font-size: 15px; }
.panel--light { background: var(--light); }
.panel--dark { background: var(--dark); color: var(--white); }
.panel--green { background: var(--green); color: var(--white); }
.panel--slate { background: var(--slate); color: var(--white); }
.panel--slate .text-link { color: var(--mid); }
.whatsapp-link { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: var(--white); font-size: 14px; margin-top: 14px; }
.whatsapp-link svg { width: 54px; height: 54px; }

.subscribe-form { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.subscribe-form input { background: transparent; border: 0; border-bottom: 1px solid currentColor; color: inherit; padding: 8px 4px; font: inherit; font-size: 14px; text-align: center; width: 220px; }
.subscribe-form input::placeholder { color: inherit; opacity: .85; }
.subscribe-form button { background: none; border: 0; color: inherit; font: inherit; font-size: 14px; cursor: pointer; padding: 6px 20px; }
.subscribe-form button:hover { text-decoration: underline; }
.subscribe-form--footer { flex-direction: row; }
.subscribe-form--footer input { text-align: left; width: 170px; }
.subscribe-form--footer button { background: var(--slate); color: var(--white); border-radius: 20px; padding: 6px 26px; }

/* ---------- section headings ---------- */
.section { padding: 70px 0; }
.section-title { text-align: center; font-size: 34px; margin-bottom: 1.4em; }

/* ---------- our work cards ---------- */
.work-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); max-width: var(--wrap); margin: 0 auto; }
.work-card { padding: 40px 20px; text-align: center; text-decoration: none; display: flex; flex-direction: column; min-height: 260px; transition: filter .2s; }
.work-card:hover { filter: brightness(1.08); }
.work-card h3 { font-size: 26px; margin-bottom: .8em; }
.work-card p { margin: 0 0 1.2em; font-size: 15px; line-height: 1.5; flex: 1; font-family: var(--head-font); }
.work-card span { font-weight: 700; font-size: 13px; font-family: var(--head-font); }
.c-green { background: var(--green); color: var(--white); }
.c-yellow { background: var(--yellow); color: #000; }
.c-red { background: var(--red); color: #000; }
.c-grey { background: var(--grey); color: var(--white); }
.c-slate { background: var(--slate); color: var(--white); }

/* our work page: image rows */
.work-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.work-row { position: relative; min-height: 320px; display: flex; flex-direction: column; justify-content: flex-end; padding: 30px; color: var(--white); text-decoration: none; overflow: hidden; background: var(--dark); }
.work-row img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; transition: transform .4s, opacity .3s; }
.work-row:hover img { transform: scale(1.05); opacity: .4; }
.work-row > :not(img) { position: relative; }
.work-row h2 { font-size: 34px; margin-bottom: .3em; }
.work-row p { margin: 0 0 .8em; font-size: 15px; line-height: 1.5; }
.work-row span { font-weight: 700; font-size: 13px; color: var(--yellow); }
.work-row .stripe { position: absolute; left: 0; top: 0; bottom: 0; width: 8px; }

/* ---------- donate band ---------- */
.band { position: relative; background: var(--red); color: var(--white); overflow: hidden; }
.band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-top: 60px; padding-bottom: 60px; }
.band h2 { font-size: 24px; text-transform: uppercase; margin: 0; }

/* ---------- news cards ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.news-card { border: 1px solid #e0e0e0; background: var(--white); text-decoration: none; display: flex; flex-direction: column; transition: box-shadow .2s; }
.news-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .12); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--light); }
.news-card .body { padding: 24px; }
.news-card h3 { font-family: var(--head-font); font-weight: 400; letter-spacing: 0; font-size: 19px; line-height: 1.4; margin-bottom: .5em; }
.news-card:hover h3 { color: var(--green-dark); }
.news-card p { margin: 0 0 .8em; font-size: 14px; line-height: 1.6; }
.news-card time { font-size: 12px; color: var(--mid); }

/* ---------- inner page header ---------- */
.page-hero { position: relative; background: var(--dark); color: var(--white); min-height: 340px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero h1 { position: relative; font-size: clamp(40px, 6vw, 64px); margin: 0; }
.page-title { text-align: center; font-size: clamp(34px, 5vw, 46px); padding: 60px 20px 0; margin: 0; }
.page-title--upper { text-transform: uppercase; }

/* ---------- written content (pages + posts) ---------- */
.prose { max-width: 760px; margin: 0 auto; padding: 50px 20px 70px; }
.prose h2 { font-family: var(--head-font); font-weight: 700; letter-spacing: .02em; font-size: 17px; text-transform: uppercase; margin: 2.2em 0 .8em; padding-left: 12px; border-left: 5px solid var(--yellow); }
.prose h3 { font-size: 24px; margin: 2em 0 .6em; }
.prose p { margin: 0 0 1.2em; }
.prose a { color: var(--green-dark); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .3em; }
.prose img { margin: 0 auto; cursor: zoom-in; }
.prose p > img:only-child, .prose p > img:first-child:nth-last-child(2) { width: 100%; }
.prose p > img + em { display: block; text-align: center; font-size: 13px; color: var(--grey); margin-top: 8px; }
/* several photos in a row in a post become a photo grid */
.prose p:has(> img ~ img) { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; font-size: 0; }
.prose p:has(> img ~ img) img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; }
.prose p:has(> img ~ img) br { display: none; }
.prose blockquote { margin: 1.5em 0; padding: 4px 20px; border-left: 5px solid var(--green); background: var(--light); }

.post-header { max-width: 760px; margin: 0 auto; padding: 60px 20px 0; }
.post-header h1 { font-family: var(--head-font); font-weight: 400; letter-spacing: -0.02em; font-size: clamp(28px, 4.5vw, 40px); }
.post-header .meta { font-size: 13px; color: var(--mid); }
.post-cover { max-width: 760px; margin: 30px auto 0; padding: 0 20px; }
.post-cover img { width: 100%; }
.post-footer { max-width: 760px; margin: 0 auto; padding: 0 20px 70px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--light); padding-top: 24px; }

/* ---------- gallery ---------- */
.gallery { background: var(--light); padding: 60px 0; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.gallery-grid a { display: block; overflow: hidden; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; cursor: zoom-in; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 90vh; }
.lightbox button { position: absolute; background: none; border: 0; color: var(--white); font-size: 48px; line-height: 1; cursor: pointer; padding: 10px 18px; }
.lightbox-close { top: 6px; right: 10px; }
.lightbox-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- support + contact ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col img { width: 100%; }
.contact-block { text-align: center; padding: 70px 20px; }
.contact-block p { font-size: 20px; margin: 0 0 .4em; }
.contact-block a { text-decoration: none; }
.contact-block a:hover { color: var(--green-dark); }
.cta-center { text-align: center; padding: 0 20px 70px; }

/* ---------- footer ---------- */
.site-footer { background: var(--light); font-size: 13px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; padding: 50px 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.site-footer h2 { font-size: 16px; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0; }
.footer-bar { background: var(--slate); color: var(--white); text-align: center; padding: 12px; font-size: 12px; }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--light); flex-direction: column; gap: 0; box-shadow: 0 10px 14px rgba(0, 0, 0, .15); max-height: calc(100vh - 76px); overflow: auto; }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav > ul > li { border-right: 0; border-top: 1px solid #d6d6d4; }
  .site-nav a { padding: 14px 24px; font-size: 15px; }
  .site-nav .sub { display: flex; position: static; box-shadow: none; padding: 0 0 8px 20px; }
  .site-nav .sub a { padding: 8px 24px; font-size: 14px; }
  .site-nav .donate-btn { min-height: 56px; justify-content: center; }
  .split, .two-col { grid-template-columns: 1fr; }
  .panel { padding: 50px 24px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .subscribe-form--footer { justify-content: center; }
  .social-bar { top: auto; bottom: 16px; padding: 8px 10px; gap: 8px; }
  .social-bar a { width: 24px; height: 24px; }
  .band .wrap { justify-content: center; text-align: center; }
}

/* ---------- small helpers ---------- */
.split--even { grid-template-columns: 1.7fr 1fr; }
.cta-center--top { padding-top: 50px; }
.contact-cta { margin-top: 1.4em !important; }
.prose--tight { padding-top: 0; }
.empty { text-align: center; }
