:root{
  --green-950:#0c1f16;
  --green-900:#123521;
  --green-700:#1c6b3f;
  --green-600:#227a49;
  --gold-600:#c9932c;
  --gold-500:#d9a53e;
  --cream:#f6f4ef;
  --cream-2:#eef2ec;
  --sand:#faf1de;
  --ink:#16211b;
  --muted:#6b756e;
  --line:#e5e2d9;
  --white:#ffffff;
  --radius-lg:18px;
  --radius-md:12px;
  --radius-sm:8px;
  --shadow:0 18px 40px -18px rgba(12,31,22,.25);
  --maxw:1220px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'Inter',system-ui,sans-serif;
  color:var(--ink);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Poppins',sans-serif;
  margin:0;
  line-height:1.15;
}
p{margin:0;}
a{color:inherit;text-decoration:none;}
img{max-width:100%;display:block;}
ul{list-style:none;margin:0;padding:0;}
button{font-family:inherit;cursor:pointer;border:none;background:none;}

.hidden{display:none !important;}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:13px 22px;border-radius:9px;font-weight:600;font-size:.95rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:hover{transform:translateY(-2px);}
.btn-small{padding:9px 16px;font-size:.85rem;}
.btn-primary{background:var(--green-700);color:#fff;}
.btn-primary:hover{background:var(--green-600);box-shadow:0 10px 24px -8px rgba(28,107,63,.55);}
.btn-outline-light{background:transparent;color:#fff;border:1.5px solid rgba(255,255,255,.55);}
.btn-outline-light:hover{background:rgba(255,255,255,.12);}
.btn-white{background:#fff;color:var(--ink);}
.btn-white:hover{background:var(--cream);}
.btn-ghost-green{background:transparent;color:var(--green-700);border:1.5px solid var(--green-700);}
.btn-ghost-green:hover{background:var(--green-700);color:#fff;}
.btn-solid-green{background:var(--green-700);color:#fff;}
.btn-solid-green:hover{background:var(--green-600);}
.btn-solid-gold{background:var(--gold-600);color:#241a06;}
.btn-solid-gold:hover{background:var(--gold-500);}

/* ---------- Header ---------- */
.site-header{
  position:sticky;top:0;z-index:100;
  background:var(--green-950);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.header-inner{
  max-width:var(--maxw);margin:0 auto;padding:14px 24px;
  display:flex;align-items:center;gap:28px;
}
.brand{display:flex;align-items:center;gap:12px;flex-shrink:0;}
.brand-badge{
  width:50px;height:50px;border-radius:12px;background:var(--cream);
  display:flex;align-items:center;justify-content:center;padding:7px;flex-shrink:0;
  box-shadow:0 4px 10px -4px rgba(0,0,0,.35);
}
.brand-badge.footer-badge{width:42px;height:42px;border-radius:10px;padding:6px;}
.brand-mark{width:100%;height:100%;object-fit:contain;display:block;}
.brand-text{display:flex;flex-direction:column;color:#fff;}
.brand-text strong{font-family:'Poppins',sans-serif;font-size:1.2rem;font-weight:700;letter-spacing:.01em;}
.brand-text small{font-size:.72rem;color:var(--gold-600);letter-spacing:.02em;}

.main-nav{display:flex;gap:26px;margin-left:8px;flex:1;}
.main-nav a{color:rgba(255,255,255,.82);font-size:.92rem;font-weight:500;}
.main-nav a:hover{color:var(--gold-600);}

.nav-toggle{display:none;flex-direction:column;gap:5px;width:26px;}
.nav-toggle span{height:2px;background:#fff;border-radius:2px;}

/* ---------- Hero ---------- */
.hero{position:relative;color:#fff;padding:170px 24px 190px;overflow:hidden;min-height:680px;}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-media img{width:100%;height:100%;object-fit:cover;}
.hero-scrim{
  position:absolute;inset:0;
  background:linear-gradient(100deg, rgba(6,16,11,.94) 8%, rgba(6,16,11,.7) 40%, rgba(6,16,11,.35) 65%, rgba(6,16,11,.55) 100%),
             linear-gradient(to bottom, rgba(6,16,11,.55), rgba(6,16,11,.85));
}
.hero-content{position:relative;z-index:1;max-width:var(--maxw);margin:0 auto;}
.live-pill{
  display:inline-flex;align-items:center;gap:7px;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.25);
  padding:6px 14px;border-radius:999px;font-size:.78rem;font-weight:600;
  margin-bottom:22px;
}
.dot{width:7px;height:7px;border-radius:50%;background:#3ecf72;box-shadow:0 0 0 0 rgba(62,207,114,.6);animation:pulse 1.8s infinite;}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(62,207,114,.55);}
  70%{box-shadow:0 0 0 9px rgba(62,207,114,0);}
  100%{box-shadow:0 0 0 0 rgba(62,207,114,0);}
}
.hero h1{font-size:clamp(2rem,4.4vw,3.1rem);font-weight:700;max-width:680px;margin-bottom:20px;}
.hero-content p{max-width:580px;color:rgba(255,255,255,.82);font-size:1.02rem;line-height:1.6;margin-bottom:30px;}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;}
.hero-live-tag{
  position:absolute;z-index:1;right:32px;bottom:190px;
  display:flex;align-items:center;gap:7px;color:#fff;font-size:.82rem;font-weight:500;
  background:rgba(0,0,0,.35);padding:6px 12px;border-radius:999px;
}
.hero-live-tag .dot{background:#ff4b4b;box-shadow:none;}

/* ---------- Prayer card ---------- */
.prayer-card{
  position:relative;z-index:2;max-width:var(--maxw);margin:56px auto 0;
  background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow);
  padding:26px 30px;
  display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:26px;
}
.prayer-card-loc{display:flex;align-items:center;gap:12px;}
.loc-icon{
  width:44px;height:44px;border-radius:50%;background:var(--cream-2);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.loc-label{font-size:.78rem;color:var(--muted);margin-bottom:2px;}
.loc-name{font-weight:600;font-size:.95rem;}
.edit-loc{color:var(--muted);font-size:.9rem;margin-left:4px;}
.edit-loc:hover{color:var(--green-700);}

.prayer-card-next .next-name{color:var(--green-700);font-family:'Poppins',sans-serif;font-weight:700;font-size:1.35rem;}
.prayer-card-next .next-remaining{font-size:.82rem;color:var(--muted);margin:4px 0;}
.prayer-card-next .next-label{font-size:.78rem;color:var(--muted);}

.prayer-card-times{display:flex;gap:26px;}
.time-item{text-align:center;min-width:52px;}
.time-item .t-name{font-size:.74rem;color:var(--muted);margin-bottom:6px;font-weight:500;}
.time-item .t-icon{font-size:1.1rem;margin-bottom:4px;}
.time-item .t-val{font-size:.86rem;font-weight:600;}
.time-item.active .t-name{color:var(--green-700);font-weight:700;}

.view-full-times{justify-self:end;}

/* ---------- Live cards ---------- */
.live-cards{
  max-width:var(--maxw);margin:0 auto;padding:64px 24px 20px;
}
.live-cards-heading{font-size:1.5rem;margin-bottom:22px;}
.live-cards-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:22px;
}
.live-card{
  position:relative;border-radius:var(--radius-lg);overflow:hidden;
  min-height:420px;display:flex;align-items:flex-end;box-shadow:var(--shadow);
}
.live-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.live-card-svg-bg{position:absolute;inset:0;width:100%;height:100%;}
.live-card-scrim{position:absolute;inset:0;background:linear-gradient(to top, rgba(4,10,7,.92) 5%, rgba(4,10,7,.35) 55%, rgba(4,10,7,.15) 100%);}
.tag-live{
  position:absolute;top:20px;left:20px;z-index:2;
  display:flex;align-items:center;gap:6px;background:#e63b3b;color:#fff;
  font-size:.72rem;font-weight:700;padding:5px 12px;border-radius:999px;letter-spacing:.02em;
}
.tag-live .dot{background:#fff;box-shadow:none;}
.live-card-body{position:relative;z-index:2;padding:28px;color:#fff;}
.live-icon{
  display:inline-flex;align-items:center;justify-content:center;
  width:52px;height:52px;border-radius:50%;background:#fff;font-size:1.5rem;margin-bottom:16px;
}
.live-card-body h3{font-size:1.5rem;margin-bottom:4px;margin-top:0;}
.live-card-body .subtitle{color:rgba(255,255,255,.7);font-size:.85rem;margin-bottom:10px;}
.live-card-body .desc{color:rgba(255,255,255,.85);font-size:.92rem;margin-bottom:18px;max-width:320px;}

/* ---------- Promo cards ---------- */
.promo-cards{
  max-width:var(--maxw);margin:0 auto;padding:22px 24px 0;
  display:grid;grid-template-columns:1fr 1fr;gap:22px;
}
.promo-card{
  border-radius:var(--radius-lg);padding:30px 32px;position:relative;overflow:hidden;
}
.promo-green{background:var(--cream-2);}
.promo-gold{background:var(--sand);}
.promo-icon{
  width:48px;height:48px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;margin-bottom:16px;
}
.promo-card h3{font-size:1.2rem;margin-bottom:8px;}
.promo-card p{color:var(--muted);font-size:.92rem;max-width:340px;margin-bottom:20px;line-height:1.55;}

/* ---------- Qibla result ---------- */
.qibla-result{max-width:var(--maxw);margin:20px auto 0;padding:0 24px;}
.qibla-result-inner{
  background:var(--sand);border:1px solid #eddcb2;border-radius:var(--radius-lg);
  padding:26px 30px;display:flex;align-items:center;gap:26px;
}
.qibla-compass{
  width:70px;height:70px;border-radius:50%;background:#fff;border:2px solid var(--gold-600);
  display:flex;align-items:center;justify-content:center;position:relative;flex-shrink:0;
}
.compass-needle{font-size:1.6rem;color:var(--gold-600);transition:transform .4s ease;}
.qibla-degrees{font-family:'Poppins',sans-serif;font-weight:700;font-size:1.3rem;color:#241a06;}
.qibla-sub{color:var(--muted);font-size:.88rem;margin-top:3px;}

/* ---------- Stay connected ---------- */
.stay-connected{
  max-width:var(--maxw);margin:64px auto 0;padding:0 24px;
}
.stay-connected{
  display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:28px;
  background:var(--cream-2);border-radius:var(--radius-lg);padding:38px 40px;
}
.sc-icon{
  width:60px;height:60px;border-radius:16px;background:#fff;
  display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.sc-text h2{font-size:1.5rem;margin-bottom:12px;}
.sc-text p{color:var(--muted);font-size:.95rem;line-height:1.6;max-width:640px;}
.sc-photo{width:180px;height:110px;object-fit:cover;border-radius:12px;filter:grayscale(.15) brightness(1.05);}

/* ---------- About ---------- */
.about{
  max-width:var(--maxw);margin:56px auto 0;padding:0 24px;
  display:grid;grid-template-columns:1fr 1.2fr;gap:34px;align-items:start;
}
.about img{border-radius:var(--radius-lg);width:100%;height:320px;object-fit:cover;box-shadow:var(--shadow);position:sticky;top:100px;}
.about-text h2{font-size:1.6rem;margin-bottom:16px;}
.about-text p{color:var(--muted);font-size:.96rem;line-height:1.65;margin-bottom:26px;}
.about-badges{display:flex;flex-direction:column;gap:14px;}
.badge{display:flex;align-items:center;gap:12px;}
.badge-dot{width:20px;height:20px;border-radius:50%;flex-shrink:0;position:relative;}
.badge-dot.green{background:var(--green-700);}
.badge-dot.green::after{content:"✓";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:#fff;font-size:.62rem;}
.badge strong{display:block;font-size:.92rem;}
.badge small{color:var(--muted);font-size:.8rem;}

/* ---------- Quick links ---------- */
.quick-links{
  max-width:var(--maxw);margin:56px auto 0;padding:0 24px;
  display:grid;grid-template-columns:repeat(4,1fr);
  background:var(--green-950);border-radius:var(--radius-lg);overflow:hidden;
}
.quick-links a{
  display:flex;align-items:center;gap:14px;padding:26px 24px;color:#fff;
  border-right:1px solid rgba(255,255,255,.08);
}
.quick-links a:last-child{border-right:none;}
.quick-links a:hover{background:rgba(255,255,255,.05);}
.ql-icon{
  width:42px;height:42px;border-radius:50%;background:#fff;
  display:flex;align-items:center;justify-content:center;font-size:1.2rem;flex-shrink:0;
}
.quick-links strong{color:var(--gold-600);display:block;font-size:.95rem;}
.quick-links small{color:rgba(255,255,255,.7);font-size:.78rem;}

/* ---------- Why choose ---------- */
.why-choose{max-width:var(--maxw);margin:70px auto 0;padding:0 24px;text-align:center;}
.why-choose h2{font-size:1.7rem;margin-bottom:44px;}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:26px;}
.why-grid-6{grid-template-columns:repeat(3,1fr);}
.why-item{padding:0 10px;}
.why-icon{
  width:56px;height:56px;border-radius:50%;background:var(--green-700);color:#fff;
  display:flex;align-items:center;justify-content:center;margin:0 auto 16px;
  font-weight:700;font-size:1.5rem;
}
.why-item h4{font-size:1.02rem;margin-bottom:8px;}
.why-item p{color:var(--muted);font-size:.86rem;line-height:1.55;}

/* ---------- CTA banner ---------- */
.cta-banner{
  max-width:var(--maxw);margin:70px auto 0;padding:44px 40px;
  background:linear-gradient(120deg, var(--green-950), var(--green-900));
  border-radius:var(--radius-lg);color:#fff;
  display:flex;justify-content:space-between;align-items:center;gap:30px;flex-wrap:wrap;
  position:relative;overflow:hidden;
}
.cta-banner h2{font-size:1.5rem;margin-bottom:8px;}
.cta-banner p{color:rgba(255,255,255,.75);font-size:.94rem;}
.cta-actions{display:flex;gap:14px;flex-wrap:wrap;}

/* ---------- FAQ ---------- */
.faq-section{max-width:var(--maxw);margin:70px auto 0;padding:0 24px 20px;}
.faq-section h2{font-size:1.6rem;margin-bottom:24px;text-align:center;}
.faq-list{display:flex;flex-direction:column;gap:10px;}
.faq-item{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;}
.faq-q{
  width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;
  padding:16px 18px;font-weight:600;font-size:.94rem;text-align:left;
}
.faq-chev{transition:transform .2s ease;flex-shrink:0;color:var(--muted);}
.faq-item.open .faq-chev{transform:rotate(180deg);color:var(--green-700);}
.faq-a{max-height:0;overflow:hidden;transition:max-height .25s ease;}
.faq-item.open .faq-a{max-height:200px;}
.faq-a p{padding:0 18px 16px;color:var(--muted);font-size:.9rem;line-height:1.6;}

/* ---------- Footer ---------- */
.site-footer{background:var(--green-950);color:rgba(255,255,255,.85);margin-top:70px;}
.footer-top{
  max-width:var(--maxw);margin:0 auto;padding:56px 24px 30px;
  display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr 1.4fr;gap:30px;
}
.footer-brand p{color:rgba(255,255,255,.6);font-size:.86rem;line-height:1.6;margin:14px 0 18px;max-width:260px;}
.socials{display:flex;gap:10px;}
.socials a{
  width:32px;height:32px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;font-size:.8rem;
}
.socials a:hover{background:var(--green-700);}
.footer-col h5{color:#fff;font-size:.92rem;margin-bottom:16px;font-family:'Poppins',sans-serif;}
.footer-col a{display:block;color:rgba(255,255,255,.65);font-size:.86rem;margin-bottom:10px;}
.footer-col a:hover{color:var(--gold-600);}
.footer-newsletter p{color:rgba(255,255,255,.6);font-size:.84rem;margin-bottom:14px;line-height:1.5;}
.subscribe-form{display:flex;gap:8px;}
.subscribe-form input{
  flex:1;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.06);color:#fff;font-size:.86rem;
}
.subscribe-form input::placeholder{color:rgba(255,255,255,.45);}
.subscribe-form button{
  background:var(--green-700);color:#fff;padding:10px 16px;border-radius:8px;font-weight:600;font-size:.86rem;
}
.subscribe-form button:hover{background:var(--green-600);}
.subscribe-msg{font-size:.8rem;color:var(--gold-600);margin-top:8px;min-height:1em;}
.footer-bottom{
  text-align:center;padding:20px 24px;border-top:1px solid rgba(255,255,255,.08);
  font-size:.8rem;color:rgba(255,255,255,.5);
}

/* ---------- Toast ---------- */
.toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--green-950);color:#fff;padding:12px 22px;border-radius:999px;
  font-size:.88rem;box-shadow:var(--shadow);opacity:0;pointer-events:none;
  transition:opacity .25s ease, transform .25s ease;z-index:999;
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0);}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width:1080px){
  .prayer-card{grid-template-columns:1fr;justify-items:start;gap:18px;}
  .prayer-card-times{flex-wrap:wrap;}
  .view-full-times{justify-self:start;}
  .footer-top{grid-template-columns:1fr 1fr 1fr;}
  .footer-newsletter{grid-column:1 / -1;}
}

@media (max-width:900px){
  .main-nav{display:none;}
  
  .nav-toggle{display:flex;}
  .live-cards-grid,.promo-cards{grid-template-columns:1fr;}
  .about{grid-template-columns:1fr;}
  .about img{height:240px;position:static;}
  .stay-connected{grid-template-columns:1fr;text-align:left;}
  .sc-photo{display:none;}
  .why-grid,.why-grid-6{grid-template-columns:1fr 1fr;}
  .quick-links{grid-template-columns:1fr 1fr;}
  .quick-links a{border-bottom:1px solid rgba(255,255,255,.08);}
  .footer-top{grid-template-columns:1fr 1fr;}
}

@media (max-width:560px){
  .hero{padding:110px 18px 160px;min-height:560px;}
  .hero-live-tag{display:none;}
  .prayer-card{padding:22px;margin-top:34px;}
  .why-grid,.why-grid-6{grid-template-columns:1fr;}
  .quick-links{grid-template-columns:1fr;}
  .cta-banner{flex-direction:column;align-items:flex-start;}
  .footer-top{grid-template-columns:1fr;}
  .prayer-card-times{gap:14px;justify-content:space-between;width:100%;}
  .time-item{min-width:40px;}
}

/* ---------- Nav active state ---------- */
.main-nav a.active{color:var(--gold-600);position:relative;}
.main-nav a.active::after{
  content:"";position:absolute;left:0;right:0;bottom:-6px;height:2px;background:var(--gold-600);
}
.main-nav.open-mobile a.active::after{display:none;}
.header-cta{flex-shrink:0;}
@media (max-width:900px){ .header-cta{display:none;} }

/* ---------- Prayer card: Saudi clock line ---------- */
.loc-name .saudi-clock{color:var(--green-700);font-weight:600;}
.prayer-unavailable{color:var(--muted);font-size:.86rem;}

/* Prayer card sits inside the white-text hero; reset text colour so times and labels are readable */
.prayer-card{color:var(--ink);}
/* Keep the "Live from Masjid al-Haram" tag clear of the prayer card */
.hero-live-tag{bottom:auto;top:110px;}
