/* ===========================================================
   Al-Rehman Islamic — design tokens
   Palette: deep emerald + warm gold on soft cream
   Display: Cormorant Garamond (Latin) / Amiri (Arabic)
   Body:    Inter / Noto Naskh Arabic (verses)
   Signature: 8-point khatam star, used as icon/motif/divider
=========================================================== */

:root{
  --ink:        #17241D;
  --emerald:    #0E4B3B;
  --emerald-2:  #123F33;
  --emerald-lt: #1F6E56;
  --gold:       #C6A15B;
  --gold-lt:    #E4C888;
  --cream:      #FBF6EC;
  --sand:       #F1E9D8;
  --line:       rgba(23,36,29,0.12);
  --line-lt:    rgba(255,255,255,0.18);

  --f-display: 'Cormorant Garamond', serif;
  --f-arabic:  'Amiri', serif;
  --f-arabic-body: 'Noto Naskh Arabic', serif;
  --f-body:    'Inter', sans-serif;

  --radius: 14px;
  --shadow: 0 12px 32px rgba(14,75,59,0.12);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--f-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img,svg{ display:block; max-width:100%; }
a{ color: inherit; text-decoration:none; }
.wrap{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }
use, path { fill: currentColor; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html{ scroll-behavior:auto; }
}

/* ===================== HEADER ===================== */
.site-header{
  position: sticky; top:0; z-index: 50;
  background: rgba(251,246,236,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  height: 74px;
}
.brand{ display:flex; align-items:center; gap:10px; color: var(--emerald); }
.brand-mark{ display:flex; }
.brand-mark img{
  width: 42px; height: 42px; border-radius: 10px; object-fit: cover;
  box-shadow: 0 2px 8px rgba(23,36,29,0.25);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text strong{ font-family: var(--f-display); font-size: 1.35rem; font-weight:700; }
.brand-text em{ font-style:normal; font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }

.main-nav{ display:flex; align-items:center; gap: 30px; }
.main-nav a{ font-size: 0.94rem; font-weight:500; color: var(--ink); position:relative; padding: 4px 0; }
.main-nav a:not(.nav-cta):hover{ color: var(--emerald); }
.main-nav a:not(.nav-cta)::after{
  content:''; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--gold);
  transition: width .25s ease;
}
.main-nav a:not(.nav-cta):hover::after{ width:100%; }
.nav-cta{
  background: var(--emerald); color: var(--cream) !important;
  padding: 9px 20px; border-radius: 999px; font-weight:600;
}
.nav-cta:hover{ background: var(--emerald-lt); }

.nav-toggle{
  display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:8px;
}
.nav-toggle span{ width:22px; height:2px; background: var(--emerald); border-radius:2px; }

/* ===================== HERO ===================== */
.hero{
  position:relative; overflow:hidden;
  background: radial-gradient(120% 140% at 15% -10%, var(--emerald-lt) 0%, var(--emerald) 42%, var(--emerald-2) 100%);
  color: var(--cream);
  padding: 108px 0 150px;
}
.hero-pattern{
  position:absolute; inset:0; opacity:0.14; pointer-events:none;
  background-image:
    repeating-linear-gradient(45deg, transparent 0 38px, var(--gold-lt) 38px 39px),
    repeating-linear-gradient(-45deg, transparent 0 38px, var(--gold-lt) 38px 39px);
}
.hero-inner{ position:relative; text-align:center; max-width: 760px; }
.bismillah{
  font-family: var(--f-arabic); font-size: 1.9rem; color: var(--gold-lt);
  margin: 0 0 18px;
}
.hero h1{
  font-family: var(--f-display); font-weight:600; font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 20px; letter-spacing: 0.01em;
}
.hero-sub{
  font-size: 1.08rem; color: rgba(251,246,236,0.82); max-width: 560px; margin: 0 auto 38px;
}
.hero-actions{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; }

.btn{
  display:inline-block; padding: 14px 30px; border-radius: 999px; font-weight:600; font-size:0.95rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-gold{ background: var(--gold); color: var(--emerald-2); }
.btn-gold:hover{ background: var(--gold-lt); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(198,161,91,0.35); }
.btn-ghost{ border: 1.5px solid var(--line-lt); color: var(--cream); }
.btn-ghost:hover{ background: rgba(255,255,255,0.08); transform: translateY(-2px); }

.hero-divider{ position:absolute; left:0; right:0; bottom:-1px; color: var(--cream); line-height:0; }
.hero-divider svg{ width:100%; height:40px; }

/* ===================== VERSE OF THE DAY ===================== */
.verse-section{ padding: 0 0 10px; margin-top:-70px; position:relative; z-index:2; }
.verse-card{
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 44px 40px; text-align:center; border: 1px solid var(--line);
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.78rem; letter-spacing:0.14em; text-transform:uppercase; color: var(--gold);
  font-weight:700; margin-bottom: 16px;
}
.eyebrow svg{ color: var(--gold); }
.verse-arabic{
  font-family: var(--f-arabic-body); font-size: 1.9rem; color: var(--emerald); margin: 0 0 14px; direction: rtl;
}
.verse-en{ font-size:1rem; color:#4b5a52; max-width:520px; margin:0 auto 18px; }
.link-btn{
  background:none; border:none; cursor:pointer; color: var(--emerald); font-weight:600; font-size:0.92rem;
  border-bottom: 1.5px solid var(--gold); padding-bottom:2px;
}
.link-btn.light{ color: var(--cream); }

/* ===================== FEATURES ===================== */
.features{ padding: 100px 0 70px; }
.section-title{
  font-family: var(--f-display); font-weight:600; font-size: clamp(1.7rem, 3vw, 2.3rem);
  text-align:center; color: var(--emerald); margin: 0 0 50px;
}
.section-title.light{ color: var(--cream); }

.feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feature-card{
  background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.feature-icon{
  width:44px; height:44px; color: var(--gold); margin-bottom:18px;
}
.feature-card h3{ font-family: var(--f-display); font-size:1.3rem; margin: 0 0 8px; color: var(--emerald); }
.feature-card p{ font-size: 0.92rem; color:#5a655e; margin:0; }

/* ===================== QURAN APP ===================== */
.quran-app{ background: var(--sand); padding: 100px 0; }

.app-intro{ text-align:center; max-width: 640px; margin: 0 auto 60px; }
.app-logo{
  border-radius: 20px; margin: 0 auto 20px;
  box-shadow: var(--shadow);
}
.app-intro-text{ color:#4b5a52; margin: 0 0 34px; font-size:1.02rem; }

.app-cta{ display:flex; gap:16px; justify-content:center; flex-wrap:wrap; margin-bottom: 12px; }
.app-btn{ display:inline-flex; align-items:center; gap:8px; }
.btn-icon{ font-size: 0.9em; }

.btn-store{
  display:inline-flex; align-items:center; gap:8px;
  padding: 14px 30px; border-radius: 999px; font-weight:600; font-size:0.95rem;
  background: #dcd3ba; color: #8c8264;
  cursor: not-allowed; pointer-events: none; user-select:none;
  border: 1.5px solid var(--line);
}
.btn-store.is-live{
  background: var(--emerald); color: var(--cream);
  cursor:pointer; pointer-events:auto;
  border-color: transparent;
}
.btn-store.is-live:hover{ background: var(--emerald-lt); transform: translateY(-2px); }

.app-cta-note{ font-size:0.85rem; color:#7a8579; margin:0; }

/* screenshots */
.app-screens{
  display:flex; gap: 26px; justify-content:center; flex-wrap:wrap;
  margin-bottom: 80px;
}
.phone-frame{
  width: 200px; border-radius: 26px; padding: 8px;
  background: var(--ink); box-shadow: var(--shadow);
  transition: transform .25s ease;
}
.phone-frame:hover{ transform: translateY(-6px); }
.phone-frame img{
  width:100%; border-radius: 20px; display:block;
}

.app-features-title{
  font-family: var(--f-display); font-weight:600; font-size: 1.5rem;
  text-align:center; color: var(--emerald); margin: 0 0 36px;
}
.app-feature-grid{
  display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.app-feature-grid .feature-card{ background:#fff; }

/* ===================== PRAYER TIMES ===================== */
.prayer{
  position:relative; overflow:hidden;
  background: var(--emerald-2); color: var(--cream); padding: 90px 0;
  text-align:center;
}
.prayer-pattern{
  position:absolute; inset:0; opacity:0.08; pointer-events:none;
  background-image: repeating-linear-gradient(60deg, transparent 0 34px, var(--gold) 34px 35px);
}
.prayer .wrap{ position:relative; }
.prayer-city{ color: rgba(251,246,236,0.7); margin-bottom: 40px; }
.prayer-grid{
  display:grid; grid-template-columns: repeat(6, 1fr); gap:16px; margin-bottom: 30px;
}
.prayer-tile{
  background: rgba(255,255,255,0.06); border: 1px solid var(--line-lt); border-radius: 12px;
  padding: 22px 10px;
}
.prayer-tile span{ display:block; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; color: var(--gold-lt); margin-bottom:8px; }
.prayer-tile strong{ font-family: var(--f-display); font-size:1.5rem; font-weight:600; }
.prayer-note{ font-size:0.85rem; color: rgba(251,246,236,0.6); margin-top:16px; min-height: 1.2em; }

/* ===================== ABOUT ===================== */
.about{ padding: 100px 0; }
.about-inner{ display:grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items:center; }
.about-visual{
  aspect-ratio: 1; background: var(--sand); border-radius: var(--radius);
  display:flex; align-items:center; justify-content:center; color: var(--gold);
}
.about-star{ width: 55%; height:55%; }
.about-text h2{ font-family: var(--f-display); font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--emerald); margin: 0 0 18px; font-weight:600; }
.about-text p{ color:#4b5a52; margin: 0 0 14px; }

/* ===================== CONTACT ===================== */
.contact{ background: var(--sand); padding: 90px 0; text-align:center; }
.contact-inner{ max-width: 520px; }
.contact p{ color:#5a655e; margin: 0 0 30px; }
.contact-form{ display:flex; gap:12px; }
.contact-form input{
  flex:1; padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line);
  font-family: var(--f-body); font-size:0.95rem; background:#fff;
}
.contact-form input:focus{ border-color: var(--gold); outline:none; }
.form-msg{ margin-top:14px; font-size:0.88rem; color: var(--emerald-lt); font-weight:600; min-height:1.2em; }

/* ===================== FOOTER ===================== */
.site-footer{ background: var(--emerald); color: rgba(251,246,236,0.85); padding: 40px 0; }
.footer-inner{ display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:18px; }
.footer-brand{ display:flex; align-items:center; gap:9px; color: var(--gold-lt); font-family: var(--f-display); font-size:1.1rem; }
.footer-brand img{ width:30px; height:30px; border-radius:8px; object-fit:cover; }
.footer-nav{ display:flex; gap:22px; flex-wrap:wrap; }
.footer-nav a{ font-size:0.88rem; opacity:0.85; }
.footer-nav a:hover{ opacity:1; color: var(--gold-lt); }
.footer-copy{ font-size:0.82rem; opacity:0.65; margin:0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 880px){
  .main-nav{
    position:absolute; top:74px; left:0; right:0; background: var(--cream);
    flex-direction:column; align-items:flex-start; gap:0;
    border-bottom: 1px solid var(--line);
    max-height:0; overflow:hidden; transition: max-height .3s ease;
  }
  .main-nav.open{ max-height: 420px; }
  .main-nav a{ width:100%; padding: 16px 24px; border-bottom: 1px solid var(--line); }
  .main-nav a::after{ display:none; }
  .nav-cta{ border-radius:0; text-align:center; }
  .nav-toggle{ display:flex; }

  .feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .app-feature-grid{ grid-template-columns: repeat(2, 1fr); }
  .prayer-grid{ grid-template-columns: repeat(3, 1fr); }
  .about-inner{ grid-template-columns: 1fr; }
  .about-visual{ max-width: 260px; margin: 0 auto; }
  .contact-form{ flex-direction:column; }
  .phone-frame{ width: 42vw; max-width: 200px; }
}
@media (max-width: 520px){
  .feature-grid{ grid-template-columns: 1fr; }
  .app-feature-grid{ grid-template-columns: 1fr; }
  .prayer-grid{ grid-template-columns: repeat(2, 1fr); }
  .verse-card{ padding: 34px 22px; }
  .app-cta{ flex-direction:column; align-items:stretch; }
  .app-cta .btn, .app-cta .btn-store{ justify-content:center; }
  .phone-frame{ width: 70vw; }
}
