:root{
  --serif: "Cormorant Garamond", serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  --ink: #0b0c0c;
  --char: #121414;
  --cream: #fff7ea;
  --paper: #ffffff;

  --gold: #d7a236;
  --gold2: #c48e2a;
  --goldSoft: #d9a443;
  --brown: #4b3426;
  --creamSoft: #f7f1e6;

  --teal: #4aa091;
  --muted: rgba(16, 18, 18, .65);
  --mutedLight: rgba(255,255,255,.70);

  --radius: 18px;
  --shadow: 0 16px 40px rgba(0,0,0,.12);
  --line: rgba(20,22,22,.12);
}

*{ box-sizing:border-box; }
html, body{ margin:0; padding:0; }
body{
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
}
html{
  scroll-behavior: smooth;
}

img{ max-width:100%; display:block; }

.container{
  width:min(1140px, calc(100% - 40px));
  margin:0 auto;
}

.center{ text-align:center; }

/* Header */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 50;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
  padding: 18px 0;
}

.site-header.scrolled{
  background: rgba(10,12,12,.86);
  box-shadow: 0 12px 26px rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  padding: 12px 0;
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  text-decoration:none;
  color:#fff;
}
.brand-logo{
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.brand-name{
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .4px;
}

.nav{
  display:flex;
  gap: 22px;
  align-items:center;
}
.nav a{
  color: rgba(255,255,255,.90);
  text-decoration:none;
  font-weight: 500;
  letter-spacing: .06em;
  font-size: 13px;
  text-transform: uppercase;
  padding-bottom: 4px;
  position: relative;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0; right:0; bottom:0;
  height:2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin:left;
  transition: transform .2s ease;
}
.nav a:hover::after{ transform: scaleX(1); }
.nav a.active{
  color: #fff;
}
.nav a.active::after{
  transform: scaleX(1);
}

.nav-toggle{
  display:none;
  width:42px; height:42px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  cursor:pointer;
}
.nav-toggle span{
  display:block;
  width:18px;
  height:2px;
  margin:4px auto;
  background: rgba(255,255,255,.85);
}

@media (max-width: 980px){
  .nav-toggle{ display:block; }
  .nav{
    position: absolute;
    top: 78px;
    right: 20px;
    background: rgba(10,12,12,.92);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 16px;
    padding: 14px;
    display:none;
    flex-direction: column;
    gap: 12px;
    width: min(320px, calc(100% - 40px));
  }
  .nav.open{ display:flex; }
}

/* Hero */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  color: #fff;
  overflow:hidden;
}
.hero-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--parallax, 0px), 0) scale(1.02);
  will-change: transform;
}
.hero-pattern{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 30% 20%, rgba(215,162,54,.16), transparent 46%),
    radial-gradient(circle at 70% 60%, rgba(74,160,145,.10), transparent 48%),
    url("assets/pattern.png");
  background-size: auto, auto, 420px;
  opacity: .30;
  mix-blend-mode: screen;
  pointer-events:none;
}
.hero-inner{ position: relative; padding: 120px 0 70px; }
.hero-content{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}
.hero-kicker{
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: 13px;
  color: rgba(255,255,255,.78);
}
.hero-title{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .02em;
  font-size: clamp(50px, 6vw, 84px);
  line-height: 1.02;
  margin: 14px 0 12px;
  text-shadow: 0 16px 40px rgba(0,0,0,.45);
}
.hero-sub{
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  color: rgba(255,255,255,.78);
}
.hero-cta{
  display:flex;
  justify-content:center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}
.hero-fade{
  position:absolute;
  left:0; right:0; bottom:0;
  height: 120px;
  background: linear-gradient(transparent, #fff);
  opacity: .95;
}

/* Arabic mark */
.arabic-mark{
  font-family: var(--serif);
  color: var(--gold);
  font-weight: 700;
  letter-spacing: .08em;
  font-size: 20px;
  margin-bottom: 8px;
}
.arabic-mark.small{ font-size: 18px; margin-bottom: 6px; }
.arabic-mark.gold{ color: var(--gold); }

/* Sections */
.section{ padding: 84px 0; position: relative; }
.section-cream{ background: var(--cream); }
.section-head{
  margin-bottom: 26px;
}
.section-head.center{ text-align:center; }
.section-title{
  font-family: var(--serif);
  font-size: clamp(38px, 4.2vw, 54px);
  margin: 6px 0 10px;
  letter-spacing: .02em;
}
.section-title.light{ color:#fff; }
.section-sub{
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
}
.rule{
  height:1px;
  background: rgba(20,22,22,.12);
  width: 100%;
  max-width: 720px;
  margin-top: 18px;
}
.rule.center{ margin-left:auto; margin-right:auto; }
.rule.light{ background: rgba(255,255,255,.18); }

.section-kicker{
  display:flex;
  align-items:center;
  gap: 12px;
  color: var(--gold2);
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 12px;
}
.kicker-line{
  display:inline-block;
  width: 44px;
  height: 2px;
  background: var(--gold2);
  border-radius: 999px;
}
.kicker-text{ color: var(--gold2); }

.title-serif{
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: .02em;
}
.title-serif.big{ font-size: clamp(36px, 4.2vw, 54px); }

.text-muted{ color: var(--muted); }
.text-muted.small{ font-size: 13px; }
.tiny{ font-size: 12px; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  user-select:none;
  position: relative;
  overflow: hidden;
}
.btn::after{
  content:"";
  position:absolute;
  inset:-120% auto -120% -120%;
  width: 120%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events:none;
}
.btn:hover{ transform: translateY(-1px); }
.btn:hover::after{ transform: translateX(220%); }
.btn:active{ transform: translateY(0) scale(.98); }
.btn.full{ width:100%; }

.btn-gold{
  background: var(--gold);
  color: #1a1410;
  border-color: rgba(0,0,0,.08);
}
.btn-gold:hover{ background: var(--gold2); }
.btn-gold-soft{
  background: var(--goldSoft);
  color: #fff;
  border-color: rgba(0,0,0,.08);
}
.btn-gold-soft:hover{ background: var(--gold2); }

.btn-outline{
  background: transparent;
  color: rgba(255,255,255,.90);
  border-color: rgba(255,255,255,.22);
}
.btn-outline:hover{ border-color: rgba(255,255,255,.44); }
.btn-outline-gold{
  background: transparent;
  color: var(--gold2);
  border-color: rgba(215,162,54,.45);
}
.btn-outline-gold:hover{
  background: rgba(215,162,54,.10);
  border-color: rgba(215,162,54,.65);
}

.btn-dark{
  background: #101212;
  color:#fff;
  border-color: rgba(255,255,255,.08);
}
.btn-outline-dark{
  background: transparent;
  border-color: rgba(0,0,0,.18);
  color:#101212;
}
.btn-teal{
  background: var(--teal);
  color:#fff;
  border-color: rgba(0,0,0,.08);
}

.btn.small{ padding: 9px 14px; border-radius: 10px; font-size: 14px; }

.link{
  color: #1a1410;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Intro */
.intro-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: start;
}
.intro-media img{
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  height: 420px;
  width: 100%;
  object-fit: cover;
}
.intro-body{
  background: rgba(255,255,255,.70);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 18px 40px rgba(0,0,0,.06);
}
.mini-cta{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 980px){
  .intro-grid{ grid-template-columns: 1fr; }
  .intro-media img{ height: 280px; }
}

/* Cards 3 */
.cards-3{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 980px){
  .cards-3{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px){
  .cards-3{ grid-template-columns: 1fr; }
}
.card{
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(0,0,0,.12);
}
.card-img{
  height: 190px;
  width: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.card:hover .card-img{ transform: scale(1.03); }
.card-body{ padding: 18px; }
.badge{
  display:inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(0,0,0,.70);
  background: rgba(215,162,54,.20);
  border: 1px solid rgba(215,162,54,.28);
  padding: 6px 10px;
  border-radius: 999px;
}
.card-title{
  font-family: var(--serif);
  font-size: 30px;
  margin: 10px 0 8px;
}
.card-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.times{
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.times-title{
  font-weight: 800;
  margin-bottom: 8px;
}
.times-row{
  display:flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(0,0,0,.10);
  color: rgba(16,18,18,.78);
}
.times-row:last-child{ border-bottom:0; }

/* Prayer block */
.prayer-wrap{
  display:grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 22px;
  align-items: stretch;
}
@media (max-width: 980px){
  .prayer-wrap{ grid-template-columns: 1fr; }
}
.prayer-panel{
  position: relative;
  background: linear-gradient(180deg, #d9a443, #c88b2d);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  color: #fff;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.prayer-panel:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(0,0,0,.22);
}
.prayer-panel::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(255,255,255,.10) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(225deg, rgba(255,255,255,.08) 25%, transparent 25%) -20px 0/40px 40px,
    linear-gradient(315deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0/40px 40px,
    linear-gradient(45deg, rgba(255,255,255,.06) 25%, transparent 25%) 0 0/40px 40px;
  opacity: .35;
  pointer-events:none;
  animation: prayerPattern 18s linear infinite;
}
.prayer-panel > *{ position: relative; z-index: 1; }
.prayer-panel .arabic-mark{ color:#fff; opacity:.85; }
.prayer-title{
  font-family: var(--serif);
  font-size: 34px;
  margin: 10px 0 8px;
  line-height: 1.15;
}
.prayer-date{ opacity:.85; font-weight: 700; margin-bottom: 16px; }
.prayer-table{ margin-top: 14px; }
.prayer-row{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,.28);
  font-weight: 700;
}
.prayer-row.next{
  padding: 12px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
  animation: prayerPulse 2.4s ease-in-out infinite;
}
.prayer-row span:nth-child(2),
.prayer-row span:nth-child(3){ text-align:right; }
.prayer-row.head{
  border-bottom: 1px solid rgba(255,255,255,.38);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .18em;
  opacity:.9;
}
.prayer-card{
  position: relative;
  overflow: hidden;  
}

.prayer-card::before{
  content:"";
  position:absolute;
  inset:0;
 
  opacity: .8;
  pointer-events:none;
}
.prayer-card-inner{
  position: relative;
  padding: 36px;
  max-width: 680px;
}
.prayer-kicker{
  display:flex;
  align-items:center;
  gap: 12px;
  text-transform: uppercase;
  letter-spacing: .2em;
  font-weight: 700;
  font-size: 12px;
  color: var(--gold2);
  margin-bottom: 8px;
}
.prayer-cta{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
@media (max-width: 980px){
  .prayer-card-inner{ padding: 26px; }
}

/* Upcoming Events */
.events-list{
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.event-item{
  display:grid;
  grid-template-columns: 120px 1fr 180px;
  gap: 18px;
  align-items:center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  transition: background .25s ease;
}
.event-item:hover{
  background: rgba(0,0,0,.015);
}
.event-date{
  text-align:center;
  line-height: 1.1;
}
.event-day{
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 700;
  color: rgba(0,0,0,.18);
}
.event-month{
  text-transform: uppercase;
  letter-spacing: .16em;
  font-weight: 700;
  font-size: 12px;
  color: var(--brown);
}
.event-weekday{
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}
.event-title{
  font-family: var(--serif);
  font-size: 30px;
  color: var(--brown);
  margin: 0 0 6px;
}
.event-time{
  color: var(--muted);
  font-weight: 600;
}
.event-location{
  color: var(--gold2);
  font-weight: 700;
  margin-top: 6px;
}
.event-action{
  display:flex;
  justify-content:flex-end;
}
@media (max-width: 900px){
  .event-item{
    grid-template-columns: 100px 1fr;
  }
  .event-action{
    grid-column: 1 / -1;
    justify-content:flex-start;
  }
}
@media (max-width: 640px){
  .event-item{
    grid-template-columns: 1fr;
    text-align:left;
  }
  .event-date{
    display:flex;
    align-items:center;
    gap: 12px;
    text-align:left;
  }
}

/* Support */
.support{
  background: #fff;
}
.support-grid{
  display:grid;
  grid-template-columns: minmax(280px, 1fr) 1.2fr;
  gap: 24px;
  align-items:start;
  margin-top: 24px;
}
@media (max-width: 980px){
  .support-grid{ grid-template-columns: 1fr; }
}
.support-photo{
  height: 240px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(0,0,0,.04), rgba(0,0,0,.10)),
    linear-gradient(120deg, #f1f1f1, #e7e4df);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(0,0,0,.08);
  margin-bottom: 18px;
}
.support-right .support-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.support-right .support-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(0,0,0,.12);
}
.donation-progress{
  height: 10px;
  border-radius: 999px;
  background: #eee7db;
  border: 1px solid #e2d4c2;
  overflow:hidden;
  margin-bottom: 14px;
}
.donation-progress span{
  display:block;
  height:100%;
  background: linear-gradient(90deg, #d9a443, #c88b2d);
  width: 0;
  transition: width 1.4s ease;
}
.donation-meta{
  display:flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 12px;
}
.donation-amount{
  font-weight: 700;
  color: var(--brown);
  font-size: 18px;
}
.donation-count{ text-align:right; }
.support-list{
  margin: 10px 0 14px;
  padding-left: 18px;
  color: var(--muted);
}
.support-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* Publications */
.pub-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
@media (max-width: 980px){ .pub-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 640px){ .pub-grid{ grid-template-columns: 1fr; } }

.pub-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.pub-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 24px 54px rgba(0,0,0,.12);
}
.pub-cover{ height: 190px; width:100%; object-fit: cover; }
.pub-body{ padding: 16px; }
.pub-title{
  font-family: var(--serif);
  font-size: 26px;
  margin: 0 0 10px;
}
.pub-actions{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 12px;
}

/* Audio card */
.audio-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.audio-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 24px 54px rgba(0,0,0,.12);
}
.audio-card-head{
  display:flex;
  align-items:flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.audio-list{ margin-top: 12px; }
.audio-row{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.audio-row:last-child{ border-bottom: 0; }
.audio-play{
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(215,162,54,.45);
  background: rgba(215,162,54,.14);
  font-weight: 900;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.audio-play:hover{
  transform: translateY(-2px);
  background: rgba(215,162,54,.22);
  border-color: rgba(215,162,54,.65);
}
.audio-meta{ flex: 1; min-width: 0; }
.audio-title{ font-weight: 800; }
.audio-dl{
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(0,0,0,.03);
  text-decoration:none;
  color: #101212;
  font-weight: 800;
}
.audio-player{ margin-top: 12px; }

/* Gallery */
.gallery-phase{
  margin-top: 12px;
}
.gallery-phase-title{
  font-family: var(--serif);
  font-size: 28px;
  margin: 4px 0 6px;
  color: var(--brown);
}
.gallery-row{
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  margin-top: 12px;
}
@media (max-width: 980px){
  .gallery-row{ grid-template-columns: 1fr; }
}
.gallery-row img{
  height: 220px;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .35s ease, box-shadow .35s ease;
  cursor: zoom-in;
}
.gallery-row img:hover{
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 26px 60px rgba(0,0,0,.16);
}

/* Gallery lightbox */
.lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 0;
}
.lightbox.open{ display:flex; }
.lightbox-backdrop{
  position: absolute;
  inset: 0;
  background: rgba(8,9,9,.72);
}
.lightbox-inner{
  position: relative;
  z-index: 1;
  width: min(92vw, 1200px);
  height: min(86vh, 900px);
  display:flex;
  align-items:center;
  justify-content:center;
  margin: auto;
}
.lightbox-img{
  display:block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.18);
}
.lightbox-close{
  position: absolute;
  top: -16px;
  right: -16px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(12,12,12,.85);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(12,12,12,.72);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.lightbox-nav.prev{ left: -64px; }
.lightbox-nav.next{ right: -64px; }
body.lightbox-open{ overflow: hidden; }
@media (max-width: 720px){
  .lightbox-nav.prev{ left: 10px; }
  .lightbox-nav.next{ right: 10px; }
  .lightbox-close{
    top: 10px;
    right: 10px;
  }
  .lightbox-inner{
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }
}

/* Dark section */
.section-dark{
  position: relative;
  color:#fff;
  overflow:hidden;
}
.section-dark-bg{
  position:absolute;
  inset:0;
  background-size: cover;
  background-position: center;
}
.section-dark-pattern{
  position:absolute;
  inset:0;
  background: url("assets/pattern.png");
  background-size: 520px;
  opacity: .18;
  pointer-events:none;
}
.dark-box{
  position: relative;
  background: rgba(0,0,0,.30);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 22px 60px rgba(0,0,0,.35);
}
.light-muted{ color: var(--mutedLight); }
.dark-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,.78);
}
.dark-cta{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 18px;
  margin-top: 20px;
}
@media (max-width: 980px){
  .contact-grid{ grid-template-columns: 1fr; }
}
.contact-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(0,0,0,.12);
}
.contact-lines{
  margin: 12px 0 14px;
  color: var(--muted);
  display:flex;
  flex-direction: column;
  gap: 8px;
}
.map-embed{
  margin-top: 14px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f7f3ea;
}
.map-embed iframe{
  display:block;
  width: 100%;
  height: 300px;
  border: 0;
}
.contact-form{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 18px 46px rgba(0,0,0,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.contact-form:hover{
  transform: translateY(-4px);
  box-shadow: 0 26px 54px rgba(0,0,0,.12);
}
.contact-form label{
  display:block;
  margin-bottom: 12px;
}
.contact-form span{
  display:block;
  font-weight: 700;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.16);
  outline: none;
  font-family: var(--sans);
}
.contact-form input:focus,
.contact-form textarea:focus{
  border-color: rgba(215,162,54,.65);
  box-shadow: 0 0 0 4px rgba(215,162,54,.18);
}

/* Footer */
.footer{
  position: relative;
  color:#fff;
  overflow:hidden;
  padding: 56px 0 72px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.footer-bg{
  position:absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-size: cover;
  background-position: center;
}
.footer-pattern{
  position:absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url("assets/pattern.png");
  background-size: 520px;
  opacity: .14;
  pointer-events:none;
}
.footer-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 18px;
  padding-bottom: 0;
}
@media (max-width: 980px){
  .footer-inner{ grid-template-columns: 1fr; }
}
.footer-col a{
  display:block;
  color: rgba(255,255,255,.80);
  text-decoration:none;
  margin: 8px 0;
}
.footer-title{
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-bottom{
  position: relative;
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 12px 0 0;
  margin-bottom: 0;
}

/* To top button */
.to-top{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.12);
  background: rgba(215,162,54,.92);
  cursor:pointer;
  box-shadow: 0 18px 46px rgba(0,0,0,.18);
  display:none;
  z-index: 200;
  transition: transform .2s ease, box-shadow .2s ease;
}
.to-top.show{ display:block; }
.to-top:hover{
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(0,0,0,.25);
}

/* Reveal animations */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}
.reveal.in-view{
  opacity: 1;
  transform: translateY(0);
}

.gallery-phase.just-revealed{
  animation: galleryRise .55s ease;
}

@keyframes prayerPattern{
  0%{
    background-position: -20px 0, -20px 0, 0 0, 0 0;
  }
  100%{
    background-position: 20px 40px, 20px 40px, 40px 40px, 40px 40px;
  }
}

@keyframes prayerPulse{
  0%, 100%{ transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
  50%{ transform: scale(1.01); box-shadow: inset 0 0 0 1px rgba(255,255,255,.75); }
}

@keyframes galleryRise{
  0%{ opacity: 0; transform: translateY(10px); }
  100%{ opacity: 1; transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
