/* =========================================================
   QCIC Masjid — "Open Doors, Open Hearts"
   A refined, jewel-toned design language drawn from the
   masjid's own navy/gold identity and mosaic-tile interiors.
   ========================================================= */
:root {
  --navy: #0d1f38;
  --navy-deep: #081121;
  --navy-mid: #16304f;
  --gold: #c8a24b;
  --gold-light: #e6c777;
  --gold-deep: #a3792c;
  --teal: #0f6d5c;
  --teal-light: #1b8a73;
  --cream: #faf6ec;
  --cream-deep: #f2ead8;
  --white: #ffffff;
  --ink: #16233a;
  --ink-soft: #4a5468;
  --shadow: 0 24px 60px -24px rgba(8, 17, 33, 0.35);
  --shadow-gold: 0 18px 40px -18px rgba(163, 121, 44, 0.45);
  --radius: 20px;
  --container: 1200px;
  --arch: 50% 50% 0 0 / 22% 22% 0 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: "Playfair Display", Georgia, serif; margin: 0 0 .5rem; line-height: 1.15; font-weight: 700; }
p { margin: 0 0 1rem; line-height: 1.7; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

/* ---- Repeating geometric texture, used as a subtle overlay ---- */
.pattern-overlay {
  position: absolute; inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 120px 120px;
  opacity: .5;
  pointer-events: none;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: 1rem 1.9rem; border-radius: 999px; font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 19px; height: 19px; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep);
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { filter: brightness(1.06); }
.btn--teal {
  background: linear-gradient(135deg, var(--teal-light), var(--teal));
  color: var(--white);
  box-shadow: 0 18px 40px -18px rgba(15, 109, 92, .55);
}
.btn--outline {
  background: rgba(255,255,255,.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(6px);
}
.btn--outline:hover { background: rgba(255,255,255,.16); }
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(13,31,56,.35);
}
.btn--outline-navy:hover { border-color: var(--navy); background: rgba(13,31,56,.04); }
.btn--lg { padding: 1.15rem 2.3rem; font-size: 1.08rem; }
.btn--sm { padding: .65rem 1.3rem; font-size: .88rem; }

/* ---- Top bar ---- */
.topbar {
  background: var(--navy-deep);
  color: var(--gold-light);
  font-size: .88rem; font-weight: 600;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(230,199,119,.15);
}
.topbar .container { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.topbar svg { width: 16px; height: 16px; flex: none; color: var(--gold); }
.topbar strong { color: var(--white); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(13,31,56,.07);
}
.site-header::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 246, 236, .92);
  backdrop-filter: blur(10px);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: .75rem 24px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 44px; width: 44px; border-radius: 10px; }
.brand-text strong { display: block; font-family: "Playfair Display", serif; font-size: 1.12rem; color: var(--navy); }
.brand-text span { font-size: .74rem; color: var(--teal); font-weight: 600; letter-spacing: .02em; }
.nav-links { list-style: none; display: flex; align-items: center; gap: 1.7rem; margin: 0; padding: 0; }
.nav-links a:not(.btn) { font-weight: 600; font-size: .95rem; color: var(--navy); position: relative; }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a:not(.btn):hover { color: var(--gold-deep); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 25px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 7rem 0 8.5rem;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(8,17,33,.72) 0%, rgba(8,17,33,.88) 55%, var(--navy-deep) 100%), url("../img/texture-bg.jpg");
  background-size: cover;
  background-position: center 30%;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 140px 140px;
  opacity: .18;
  mix-blend-mode: overlay;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-content--centered { grid-column: 1 / -1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-content--centered .lead { margin-left: auto; margin-right: auto; }
.hero-content--centered .hero-actions,
.hero-content--centered .hero-stats { justify-content: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(230,199,119,.12); border: 1px solid rgba(230,199,119,.4);
  padding: .5rem 1.1rem; border-radius: 999px; font-size: .84rem; font-weight: 700;
  letter-spacing: .02em; color: var(--gold-light);
  margin-bottom: 1.6rem;
}
.hero h1 { font-size: clamp(2.5rem, 4.8vw, 3.9rem); color: var(--white); }
.hero h1 .hl { color: var(--gold-light); font-style: italic; }
.hero .lead { font-size: 1.2rem; max-width: 560px; color: rgba(250,246,236,.85); }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 1.9rem 0 2.4rem; }
.hero-stats { display: flex; gap: 2.4rem; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-size: 1.65rem; font-family: "Playfair Display", serif; color: var(--gold-light); }
.hero-stats .stat span { font-size: .84rem; color: rgba(250,246,236,.75); }

.hero-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius); padding: 1.9rem;
  box-shadow: 0 30px 70px -26px rgba(0,0,0,.55);
  border: 1px solid rgba(230,199,119,.4);
}
.hero-card h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.02rem; color: var(--navy); }
.hero-card .tag { background: var(--teal); color: #fff; font-size: .68rem; padding: .28rem .65rem; border-radius: 999px; font-family: "Inter"; font-weight: 700; letter-spacing: .03em; }
.next-prayer-time { font-size: 2.7rem; font-weight: 800; font-family: "Playfair Display", serif; color: var(--gold-deep); }
.next-prayer-sub { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.3rem; }
.mini-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; }
.mini-times div { background: var(--white); border: 1px solid rgba(13,31,56,.06); border-radius: 12px; padding: .6rem; text-align: center; }
.mini-times span { display: block; font-size: .7rem; color: #8a8f9c; font-weight: 600; }
.mini-times strong { font-size: 1.02rem; color: var(--navy); }

/* ---- Skyline divider (arcade of arches) ---- */
.skyline { position: relative; line-height: 0; }
.skyline svg { display: block; width: 100%; height: auto; }
.skyline.to-cream { background: var(--navy-deep); }
.skyline.to-cream svg path { fill: var(--cream); }
.skyline.to-navy { background: var(--cream); }
.skyline.to-navy svg path { fill: var(--navy-deep); }

/* ---- Section basics ---- */
.section { padding: 6rem 0; }
.section--tight { padding: 3.8rem 0; }
.bg-white { background: var(--white); }
.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-deep); color: rgba(250,246,236,.92); position: relative; }
.bg-navy p { color: rgba(250,246,236,.72); }
.bg-navy::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/pattern.svg"); background-size: 130px 130px; opacity: .12;
}
.section-head { max-width: 700px; margin: 0 auto 3rem; }
.section-head.center { text-align: center; }
.section-head.left { margin-left: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  font-size: .78rem; color: var(--teal); margin-bottom: .8rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); color: var(--navy); }
.bg-navy .eyebrow { color: var(--gold-light); }
.bg-navy .section-head h2 { color: var(--white); }

/* ---- Everyone-welcome band ---- */
.welcome-band { position: relative; overflow: hidden; }
.welcome-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.welcome-card {
  background: rgba(250,246,236,.04);
  border: 1px solid rgba(230,199,119,.22);
  border-radius: var(--radius);
  padding: 2rem 1.6rem;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.welcome-card:hover { transform: translateY(-6px); border-color: rgba(230,199,119,.55); background: rgba(250,246,236,.07); }
.welcome-card .ic {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.2rem;
  color: var(--navy-deep);
}
.welcome-card .ic svg { width: 24px; height: 24px; }
.welcome-card h3 { font-size: 1.12rem; color: var(--white); }
.welcome-card p { font-size: .93rem; margin-bottom: 0; }
.welcome-quote {
  margin-top: 3.2rem; padding-top: 3rem; border-top: 1px solid rgba(230,199,119,.18);
  text-align: center; position: relative;
}
.welcome-quote blockquote {
  font-family: "Playfair Display", serif; font-style: italic; font-size: 1.35rem;
  color: var(--gold-light); max-width: 760px; margin: 0 auto 1rem; line-height: 1.55;
}
.welcome-quote cite { color: rgba(250,246,236,.65); font-style: normal; font-size: .88rem; }

/* ---- Prayer grid ---- */
.prayer-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.prayer-card {
  background: var(--white); border-radius: 18px; padding: 1.5rem 1rem; text-align: center;
  box-shadow: 0 14px 34px -20px rgba(13,31,56,.22);
  border: 2px solid transparent;
  transition: transform .2s ease, border-color .2s ease;
}
.prayer-card:hover { transform: translateY(-6px); }
.prayer-card img { width: 42px; height: 42px; margin: 0 auto .7rem; }
.prayer-card h4 { font-size: 1.02rem; margin-bottom: .3rem; color: var(--navy); }
.prayer-card .iqamah { font-weight: 800; font-size: 1.2rem; color: var(--teal); }
.prayer-card .adhan { font-size: .78rem; color: #8a8f9c; }
.prayer-card.is-next { border-color: var(--gold); background: linear-gradient(160deg, #fff, #fff8e8); }
.prayer-note { text-align: center; font-size: .85rem; color: #8a8f9c; margin-top: 1.6rem; }

/* ---- Highlights / cards ---- */
.grid { display: grid; gap: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---- Event / program cards ---- */
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.event-card {
  background: var(--white); border-radius: var(--radius); padding: 2rem 1.8rem;
  box-shadow: 0 16px 40px -22px rgba(13,31,56,.25);
  border-bottom: 4px solid var(--gold);
  transition: transform .22s ease, box-shadow .22s ease;
  position: relative;
}
.event-card:hover { transform: translateY(-7px); box-shadow: 0 24px 50px -20px rgba(13,31,56,.3); }
.event-card .cadence {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); background: rgba(15,109,92,.08); padding: .3rem .7rem; border-radius: 999px; margin-bottom: 1rem;
}
.event-card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center; color: var(--gold-light); margin-bottom: 1.1rem;
}
.event-card .ic svg { width: 25px; height: 25px; }
.event-card h3 { font-size: 1.2rem; color: var(--navy); }
.event-card p { font-size: .95rem; margin-bottom: 0; }

/* ---- Community snapshots (flyer scrapbook) ---- */
.snap-strip {
  display: flex; gap: 1.6rem; overflow-x: auto; padding: 1rem .4rem 1.6rem;
  scroll-snap-type: x proximity;
}
.snap-strip::-webkit-scrollbar { height: 8px; }
.snap-strip::-webkit-scrollbar-thumb { background: rgba(13,31,56,.18); border-radius: 999px; }
.snap-card {
  flex: 0 0 auto; width: 250px; scroll-snap-align: start;
  background: var(--white); padding: .7rem .7rem 1.1rem; border-radius: 10px;
  box-shadow: 0 16px 34px -18px rgba(13,31,56,.3);
  transform: rotate(var(--tilt, -2deg));
  transition: transform .25s ease, box-shadow .25s ease;
  cursor: pointer;
}
.snap-card:hover { transform: rotate(0deg) translateY(-6px) scale(1.02); box-shadow: 0 26px 46px -18px rgba(13,31,56,.4); }
.snap-card:nth-child(3n+1) { --tilt: -2.5deg; }
.snap-card:nth-child(3n+2) { --tilt: 1.8deg; }
.snap-card:nth-child(3n+3) { --tilt: -1deg; }
.snap-card .frame { border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; background: var(--cream-deep); }
.snap-card img { width: 100%; height: 100%; object-fit: cover; }
.snap-card figcaption { margin: 0; padding-top: .7rem; font-size: .82rem; font-weight: 600; color: var(--navy); text-align: center; }

/* ---- Lightbox ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; padding: 4vh 4vw;
  background: rgba(8,17,33,.88); backdrop-filter: blur(6px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(900px, 92vw); max-height: 88vh; border-radius: 10px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
.lightbox-close {
  position: absolute; top: 22px; right: 26px; width: 44px; height: 44px; border-radius: 50%;
  background: rgba(250,246,236,.1); border: 1px solid rgba(250,246,236,.3); color: var(--white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-close svg { width: 20px; height: 20px; }

/* ---- Split / about ---- */
.split { display: grid; grid-template-columns: .95fr 1.05fr; gap: 3.5rem; align-items: center; }
.split-media { position: relative; }
.arch-frame {
  border-radius: var(--arch);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/5;
}
.arch-frame img { width: 100%; height: 100%; object-fit: cover; }
.arch-frame--square { aspect-ratio: 1/1; }
.badge-float {
  position: absolute; bottom: -1.5rem; right: -1.2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-deep));
  color: var(--navy-deep); border-radius: 16px; padding: 1.1rem 1.4rem; text-align: center;
  box-shadow: var(--shadow-gold);
}
.badge-float .n { display: block; font-size: 1.8rem; font-weight: 800; font-family: "Playfair Display", serif; }
.badge-float small { font-size: .72rem; font-weight: 700; }
.checklist { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: .9rem; }
.checklist li { display: flex; gap: .8rem; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--teal); flex: none; margin-top: 2px; }
.checklist span { color: var(--ink); font-weight: 500; }

/* ---- Services ---- */
.feature {
  background: var(--white); border-radius: var(--radius); padding: 1.9rem;
  box-shadow: 0 16px 36px -20px rgba(13,31,56,.2);
  border-top: 3px solid var(--gold);
  transition: transform .2s ease;
}
.feature:nth-child(2) { border-top-color: var(--teal); }
.feature:nth-child(3) { border-top-color: var(--navy); }
.feature:nth-child(4) { border-top-color: var(--gold-deep); }
.feature:hover { transform: translateY(-6px); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  display: flex; align-items: center; justify-content: center; color: var(--gold-light); margin-bottom: 1rem;
}
.feature .ic svg { width: 25px; height: 25px; }
.feature h3 { font-size: 1.1rem; color: var(--navy); }
.feature p { font-size: .93rem; margin-bottom: 0; }

/* ---- Quote band ---- */
.quote-band { text-align: center; position: relative; }
.quote-band .arabic { font-family: "Amiri", serif; font-size: 2rem; color: var(--gold-light); margin-bottom: 1.2rem; direction: rtl; }
.quote-band blockquote { max-width: 740px; margin: 0 auto 1rem; font-size: 1.3rem; font-style: italic; color: rgba(250,246,236,.92); }
.quote-band cite { color: var(--gold-light); font-weight: 700; font-style: normal; }

/* ---- CTA / Visit ---- */
.visit-section { position: relative; color: var(--white); overflow: hidden; }
.visit-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(8,17,33,.55), rgba(8,17,33,.92)), url("../img/texture-bg.jpg");
  background-size: cover; background-position: center 60%;
}
.visit-inner { position: relative; text-align: center; padding: 5.5rem 0; }
.visit-inner .eyebrow { color: var(--gold-light); }
.visit-inner h2 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.8rem); max-width: 760px; margin-left: auto; margin-right: auto; }
.visit-inner p { max-width: 620px; margin-left: auto; margin-right: auto; color: rgba(250,246,236,.8); }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }
.visit-details {
  display: flex; justify-content: center; gap: 2.8rem; flex-wrap: wrap; margin-top: 3rem;
  padding-top: 2.4rem; border-top: 1px solid rgba(230,199,119,.2);
}
.visit-details div { display: flex; align-items: center; gap: .6rem; font-size: .92rem; color: rgba(250,246,236,.85); }
.visit-details svg { width: 19px; height: 19px; color: var(--gold-light); flex: none; }

/* ---- Footer ---- */
.site-footer { background: var(--navy-deep); color: rgba(250,246,236,.78); padding: 4rem 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 1.15fr; gap: 2.4rem; }
.footer-brand img { height: 46px; margin-bottom: 1rem; border-radius: 10px; }
.footer-brand p { font-size: .89rem; color: rgba(250,246,236,.6); }
.socials { display: flex; gap: .8rem; margin-top: 1rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; background: rgba(250,246,236,.08); display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.socials a:hover { background: var(--gold); color: var(--navy-deep); }
.socials svg { width: 18px; height: 18px; }
.site-footer h4 { color: var(--gold-light); font-size: .98rem; margin-bottom: 1.1rem; letter-spacing: .02em; }
.footer-links { display: flex; flex-direction: column; gap: .65rem; font-size: .91rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-light); }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; font-size: .89rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--gold-light); margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(250,246,236,.1); margin-top: 2.8rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .8rem; color: rgba(250,246,236,.5);
}

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.reveal[data-delay="4"] { transition-delay: .4s; }

/* ---- Inner page hero (About, Donate, Gallery, Contact, Programs...) ---- */
.page-hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  color: var(--white);
  overflow: hidden;
  background: var(--navy-deep);
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(180deg, rgba(8,17,33,.78) 0%, rgba(8,17,33,.94) 100%), url("../img/banner-img.png");
  background-size: cover;
  background-position: center 45%;
}
.page-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("../img/pattern.svg");
  background-size: 130px 130px;
  opacity: .15;
  mix-blend-mode: overlay;
}
.page-hero-inner { position: relative; max-width: 720px; margin: 0 auto; }
.page-hero .eyebrow { justify-content: center; color: var(--gold-light); }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--white); margin-bottom: .7rem; }
.page-hero p { color: rgba(250,246,236,.82); font-size: 1.05rem; margin-bottom: 0; }
.breadcrumb { display: flex; gap: .5rem; justify-content: center; font-size: .84rem; color: rgba(250,246,236,.6); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--gold-light); font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---- Reversible split (image on right instead of left) ---- */
.split--reverse .split-media { order: 2; }

/* ---- Notice / disclaimer box ---- */
.notice {
  display: flex; gap: .9rem; align-items: flex-start;
  background: rgba(200,162,75,.1); border: 1px solid rgba(200,162,75,.35);
  border-radius: 16px; padding: 1.3rem 1.5rem;
}
.notice svg { width: 22px; height: 22px; color: var(--gold-deep); flex: none; margin-top: 2px; }
.notice p { margin: 0; font-size: .92rem; color: var(--ink); }
.notice strong { color: var(--navy); }

/* ---- Card link (feature/welcome card acting as a link to a full page) ---- */
.card-link {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .9rem; font-weight: 700; font-size: .87rem; color: var(--teal);
}
.card-link svg { width: 15px; height: 15px; transition: transform .2s ease; }
.card-link:hover svg { transform: translateX(3px); }

/* ---- Full gallery grid (reuses .snap-card styling, no tilt/scroll) ---- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.gallery-grid .snap-card { width: auto; transform: none; }
.gallery-grid .snap-card:hover { transform: translateY(-6px); }

/* ---- Contact info cards + map ---- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-bottom: 3rem; }
.contact-card { background: var(--white); border-radius: var(--radius); padding: 1.9rem; text-align: center; box-shadow: 0 16px 36px -22px rgba(13,31,56,.2); border-top: 3px solid var(--gold); }
.contact-card .ic { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-light), var(--gold-deep)); display: flex; align-items: center; justify-content: center; color: var(--navy-deep); margin: 0 auto 1rem; }
.contact-card .ic svg { width: 24px; height: 24px; }
.contact-card h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: .4rem; }
.contact-card p, .contact-card a { font-size: .92rem; margin: 0; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/7; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---- Forms (Contact, Ask an Imam) ---- */
.site-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .88rem; color: var(--navy); }
.field input, .field textarea, .field select {
  font-family: "Inter", sans-serif; font-size: .95rem; padding: .85rem 1.1rem; border-radius: 12px;
  border: 1.5px solid rgba(13,31,56,.15); background: var(--white); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,162,75,.18);
}
.field textarea { resize: vertical; min-height: 130px; font-family: inherit; }
.site-form .btn { grid-column: 1 / -1; justify-self: start; }

/* ---- FAQ accordion ---- */
.faq-list { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.faq-item { background: var(--white); border: 1px solid rgba(13,31,56,.08); border-radius: 14px; padding: 1.2rem 1.5rem; box-shadow: 0 12px 28px -20px rgba(13,31,56,.18); }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--gold-deep); transition: transform .2s ease; flex: none; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: .9rem 0 0; }

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .welcome-grid { grid-template-columns: repeat(2, 1fr); }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 1.15rem; }
  .nav-links a:not(.btn) { font-size: .89rem; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero { padding: 6rem 0 7rem; }
  .hero-inner { grid-template-columns: 1fr; }
  .prayer-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split-media { max-width: 420px; margin: 0 auto; }
  .split--reverse .split-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .visit-details { gap: 1.6rem 2.2rem; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; inset: 0; z-index: 60;
    background: var(--cream);
    flex-direction: column; justify-content: center; align-items: center;
    gap: 1.4rem;
    opacity: 0; visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s ease, opacity .3s ease, visibility 0s linear .3s;
    overflow-y: auto; padding: 5rem 0 2rem;
  }
  body.nav-open .nav-links {
    opacity: 1; visibility: visible;
    transform: translateX(0);
    transition: transform .3s ease, opacity .3s ease;
  }
  .nav-links a:not(.btn) { font-size: 1.3rem; }
  .nav-toggle { display: block; position: relative; z-index: 61; }
  .nav-toggle span { transition: transform .25s ease, opacity .25s ease; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  body.nav-open { overflow: hidden; }
  .section { padding: 4rem 0; }
  .prayer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4, .welcome-grid, .event-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .visit-details { flex-direction: column; gap: 1rem; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .site-form { grid-template-columns: 1fr; }
  .page-hero { padding: 3.6rem 0 3.2rem; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
