/* ==========================================================================
   eQuran — Tafsir Al-Quran | Marketing site styles
   Published by BUFIB (e-Quran)
   ========================================================================== */

:root {
  --teal: #244D4E;
  --teal-dark: #223F40;
  --gold: #C6A56B;
  --gold-soft: #d8bd8b;
  --bg: #F7F7F5;
  --surface: #ffffff;
  --ink: #1c2626;
  --ink-soft: #4b5959;
  --line: #e4e5e0;
  --shadow-sm: 0 1px 3px rgba(34, 63, 64, 0.06), 0 1px 2px rgba(34, 63, 64, 0.08);
  --shadow-md: 0 6px 20px rgba(34, 63, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(34, 63, 64, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-head: 'Poppins', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }

.btn-primary { background: var(--gold); color: var(--teal-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--gold-soft); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--teal); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); }

/* Store buttons */
.stores { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--teal-dark);
  color: #fff;
  padding: 11px 20px;
  border-radius: 14px;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.store-btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.store-btn svg { flex-shrink: 0; }
.store-btn .store-text { line-height: 1.15; }
.store-btn .store-text small { display: block; font-size: 0.68rem; opacity: 0.8; letter-spacing: 0.04em; }
.store-btn .store-text strong { font-family: var(--font-head); font-size: 1.05rem; font-weight: 600; }

/* --------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 245, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--teal-dark);
}
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand small {
  display: block;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--teal-dark);
  padding: 8px 14px;
  border-radius: 10px;
}
.nav-links a:hover { background: rgba(36, 77, 78, 0.07); text-decoration: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--teal-dark); border-radius: 2px; }

/* --------------------------------------------------------------- Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(198, 165, 107, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg), #eef0ec);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  padding-block: 84px 92px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); }
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; margin-top: 14px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal-dark);
  background: rgba(36, 77, 78, 0.08);
  border: 1px solid rgba(36, 77, 78, 0.12);
  padding: 6px 13px;
  border-radius: 999px;
}

/* Phone mockup */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 18.5;
  background: var(--teal-dark);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 22px;
  background: var(--teal-dark);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: linear-gradient(165deg, #2c5c5d, #1c3536);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px 22px;
  overflow: hidden;
}
.phone-screen img { width: 96px; height: 96px; border-radius: 22px; box-shadow: var(--shadow-md); }
.phone-screen .ar {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-soft);
  font-family: 'Poppins', serif;
  direction: rtl;
}
.phone-screen .verse {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.7;
}
.phone-screen .divider { width: 46px; height: 2px; background: var(--gold); border-radius: 2px; opacity: 0.8; }

/* --------------------------------------------------------------- Sections */
section { padding-block: 76px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
.section-head p { color: var(--ink-soft); font-size: 1.06rem; }

/* Feature grid */
.features { background: var(--surface); border-block: 1px solid var(--line); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card .ico {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(36, 77, 78, 0.09);
  color: var(--teal);
  margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.96rem; }

/* About / Made by BUFIB strip */
.about {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
}
.about h2 { color: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.about p { color: rgba(255,255,255,0.86); font-size: 1.05rem; }
.about a { color: var(--gold-soft); }
.about .about-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.about .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.3); }
.about .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.about-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius);
  padding: 26px;
}
.about-card dl { margin: 0; display: grid; gap: 14px; }
.about-card dt { font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); }
.about-card dd { margin: 2px 0 0; font-size: 1.02rem; }

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--teal-dark);
  color: rgba(255,255,255,0.72);
  padding-block: 46px 30px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 26px;
  align-items: flex-start;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.footer-brand img { width: 38px; height: 38px; border-radius: 9px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.82); font-weight: 500; font-size: 0.96rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 22px;
  font-size: 0.86rem;
  color: rgba(255,255,255,0.6);
}
.footer-bottom a { color: rgba(255,255,255,0.78); }

/* --------------------------------------------------------------- Legal pages */
.legal {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.legal-hero {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff;
  padding-block: 60px;
}
.legal-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.legal-hero p { color: rgba(255,255,255,0.82); margin: 6px 0 0; }
.legal-body { max-width: 800px; margin-inline: auto; padding-block: 56px 72px; }
.legal-body h2 {
  font-size: 1.4rem;
  margin-top: 2em;
  padding-top: 0.4em;
}
.legal-body h2:first-of-type { margin-top: 0.4em; }
.legal-body h3 { font-size: 1.1rem; margin-top: 1.4em; color: var(--teal); }
.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 1.02rem; }
.legal-body ul { padding-left: 1.25em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { font-weight: 500; }
.legal-toc {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 40px;
}
.legal-toc strong { font-family: var(--font-head); color: var(--teal-dark); display: block; margin-bottom: 10px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 30px; }
.legal-toc li { margin-bottom: 6px; }
.note {
  background: rgba(198, 165, 107, 0.12);
  border: 1px solid rgba(198, 165, 107, 0.4);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 30px 0;
  font-size: 0.95rem;
  color: var(--ink);
}
.updated { font-size: 0.9rem; color: var(--ink-soft); margin-top: 6px; }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 12px 22px 20px;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-block: 56px 64px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .legal-toc ol { columns: 1; }
}

@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .store-btn { min-width: 0; flex: 1 1 100%; }
  section { padding-block: 56px; }
  .brand small { display: none; }
}
