/*
Theme Name: JazakAllah
Theme URI: https://jazakallah.site
Author: JazakAllah
Description: A green and gold WordPress theme for the JazakAllah Islamic companion app.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: jazakallah
*/

:root {
  --deep: #043d33;
  --forest: #075e4b;
  --emerald: #0e8a67;
  --gold: #e5ad18;
  --gold-dark: #a86f00;
  --gold-pale: #ffebb0;
  --ivory: #fffdf4;
  --canvas: #f3f5ec;
  --ink: #173c33;
  --muted: #5d746c;
  --line: #d5dccf;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.site-shell { min-height: 100vh; }
.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; top: 0; z-index: 20; background: #043d33f2; color: white; border-bottom: 1px solid #e5ad1855; backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-link { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 22px; font-weight: 800; }
.custom-logo { width: 48px; height: 48px; object-fit: cover; border: 2px solid var(--gold); border-radius: 50%; box-shadow: 0 5px 0 #0006; }
.site-nav ul { display: flex; align-items: center; gap: 24px; padding: 0; margin: 0; list-style: none; }
.site-nav a { color: #e8f2ed; text-decoration: none; font-weight: 650; }
.site-nav a:hover { color: var(--gold-pale); }

.hero { min-height: min(760px, calc(100vh - 72px)); display: grid; align-items: end; color: white; background: linear-gradient(90deg, #021e19e8 0%, #043d33b8 48%, #043d3333 100%), url("assets/hero.png") center/cover no-repeat; border-bottom: 4px solid var(--gold); }
.hero-content { max-width: 700px; padding: 110px 0 92px; }
.eyebrow { color: var(--gold-pale); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.hero h1 { margin: 12px 0 18px; font-size: clamp(48px, 8vw, 88px); line-height: .96; letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0 0 30px; color: #eef7f2; font-size: 20px; line-height: 1.65; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid var(--gold-dark); background: linear-gradient(#ffe89a, var(--gold)); color: var(--deep); text-decoration: none; font-weight: 850; box-shadow: 0 5px 0 var(--gold-dark); }
.button.secondary { border-color: #ffffff88; background: #ffffff12; color: white; box-shadow: none; }

.band { padding: 78px 0; }
.band.ivory { background: var(--ivory); }
.band.green { color: white; background: var(--deep); }
.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 52px); letter-spacing: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.green .section-heading p { color: #c9ddd5; }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feature { min-height: 210px; padding: 28px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 18px; }
.feature h3 { margin: 0 0 9px; font-size: 22px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; }

.quran-band { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; }
.quran-image { max-height: 520px; margin-inline: auto; filter: drop-shadow(0 24px 28px #0008); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 30px; border-top: 1px solid #ffffff2b; border-bottom: 1px solid #ffffff2b; }
.stat { padding: 20px 8px; }
.stat strong, .stat span { display: block; }
.stat strong { color: var(--gold); font-size: 30px; }
.stat span { margin-top: 5px; color: #c9ddd5; }

.site-footer { padding: 34px 0; color: #c9ddd5; background: #022b24; border-top: 1px solid #e5ad1844; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; }
.footer-inner a { color: var(--gold-pale); }

.page-content { max-width: 820px; margin: 0 auto; padding: 72px 22px 90px; }
.page-content h1 { font-size: clamp(38px, 6vw, 58px); }
.page-content h2 { margin-top: 34px; color: var(--forest); }
.page-content p, .page-content li { font-size: 17px; line-height: 1.75; }

@media (max-width: 820px) {
  .site-nav { display: none; }
  .hero { min-height: 700px; background-position: 62% center; }
  .hero-content { padding: 90px 0 70px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .quran-band { grid-template-columns: 1fr; gap: 34px; }
  .quran-image { max-height: 390px; }
}

@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero h1 { font-size: 52px; }
  .hero p { font-size: 17px; }
  .band { padding: 58px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .stat-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
