/* ============================================
   MAKING MUSLIMS MONEY — Shared Stylesheet
   Aesthetic: Refined Islamic Editorial
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Lora:ital,wght@0,400;0,500;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --green-deep:   #0D4A2A;
  --green-mid:    #1A7A4A;
  --green-light:  #E8F5EE;
  --green-pale:   #F2FAF6;
  --gold:         #C8973A;
  --gold-light:   #F7EDD8;
  --gold-pale:    #FDF9F3;
  --cream:        #FAF7F0;
  --cream-dark:   #F0EBE0;
  --dark:         #1A1A1A;
  --text:         #2D2D2D;
  --text-muted:   #6B6B6B;
  --text-light:   #9A9A9A;
  --white:        #FFFFFF;
  --border:       #E2DDD5;
  --border-dark:  #C8C0B4;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lora', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;

  --radius:       4px;
  --radius-lg:    10px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 6px 24px rgba(0,0,0,0.10);
  --shadow-lg:    0 16px 48px rgba(0,0,0,0.14);
  --transition:   all 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, textarea, select { font-family: inherit; }

/* ── Islamic Geometric Pattern ── */
.geo-bg {
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23C8973A' fill-opacity='0.06'%3E%3Cpath d='M30 0l8.66 5v10L30 20l-8.66-5V5L30 0zm0 40l8.66 5v10L30 60l-8.66-5V45L30 40zM0 20l8.66 5v10L0 40l-8.66-5V25L0 20zm60 0l8.66 5v10L60 40l-8.66-5V25L60 20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--dark);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; font-family: var(--font-sans); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-weight: 400;
}

.arabic {
  font-family: 'Traditional Arabic', 'Arial Unicode MS', serif;
  font-size: 1.6rem;
  line-height: 2;
  direction: rtl;
  color: var(--green-deep);
}

/* ── Layout ── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1320px; }

.section { padding: 80px 0; }
.section--sm { padding: 48px 0; }
.section--lg { padding: 120px 0; }

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--green-deep);
  border-bottom: 2px solid var(--gold);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.nav__logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav__logo-main {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.nav__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  letter-spacing: 0.02em;
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav__link--active { color: var(--gold); }
.nav__cta {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green-deep);
  background: var(--gold);
  padding: 9px 20px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.nav__cta:hover { background: #e0a840; transform: translateY(-1px); }
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--white); display: block; border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
}
.btn--primary {
  background: var(--gold);
  color: var(--green-deep);
}
.btn--primary:hover { background: #e0a840; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--large {
  font-size: 1.15rem;
  padding: 18px 44px;
}
.btn--green {
  background: var(--green-deep);
  color: var(--white);
}
.btn--green:hover { background: var(--green-mid); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--outline {
  background: transparent;
  color: var(--green-deep);
  border: 2px solid var(--green-deep);
}
.btn--outline:hover { background: var(--green-deep); color: var(--white); }
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover { background: rgba(255,255,255,0.2); }
.btn--full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card__tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-light);
  padding: 4px 10px;
  border-radius: 2px;
  margin-bottom: 10px;
}
.card__tag--green {
  color: var(--green-mid);
  background: var(--green-light);
}
.card__body { padding: 24px; }
.card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--dark);
}
.card__excerpt {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.card__read-more {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green-mid);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.card__read-more:hover { gap: 10px; }

/* ── Dividers & Ornaments ── */
.ornament {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 16px 0;
}
.ornament::before, .ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-dark);
}
.ornament span {
  color: var(--gold);
  font-size: 1.2rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* ── Quote / Verse block ── */
.verse-block {
  background: var(--green-deep);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  position: relative;
  overflow: hidden;
}
.verse-block::before {
  content: '❝';
  position: absolute;
  top: -10px;
  left: 24px;
  font-size: 8rem;
  color: rgba(200,151,58,0.15);
  font-family: Georgia, serif;
  line-height: 1;
}
.verse-block__arabic {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 16px;
  direction: rtl;
  text-align: right;
  font-family: 'Traditional Arabic', serif;
}
.verse-block__text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.7;
  color: rgba(255,255,255,0.92);
  margin-bottom: 12px;
}
.verse-block__ref {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
}

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(26,122,74,0.1);
}

.inline-form {
  display: flex;
  gap: 10px;
  max-width: 520px;
}
.inline-form .form-input { flex: 1; }
.inline-form .btn { flex-shrink: 0; }

/* ── Badges / Trust signals ── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 40px;
  padding: 20px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}
.trust-item__icon { font-size: 1.1rem; }

/* ── Urgency / Banner ── */
.urgency-bar {
  background: linear-gradient(135deg, var(--green-deep), #1a5c34);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
}
.urgency-bar strong { color: var(--gold); }

/* ── Footer ── */
.footer {
  background: var(--green-deep);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
  border-top: 3px solid var(--gold);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer__logo-main {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}
.footer__logo-sub {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 3px;
  margin-bottom: 14px;
}
.footer__desc {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}
.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer__links li { margin-bottom: 10px; }
.footer__links a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  transition: var(--transition);
}
.footer__links a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__copy {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}
.footer__disclaimer {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  max-width: 480px;
  text-align: right;
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-gold    { color: var(--gold); }
.text-green   { color: var(--green-mid); }
.text-muted   { color: var(--text-muted); }
.font-sans    { font-family: var(--font-sans); }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 32px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 32px; }
.mb-lg { margin-bottom: 48px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(24px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes shimmer {
  0%,100% { opacity:1; }
  50%      { opacity:0.7; }
}
.fade-up { animation: fadeUp 0.6s ease both; }
.fade-up-2 { animation: fadeUp 0.6s 0.15s ease both; }
.fade-up-3 { animation: fadeUp 0.6s 0.30s ease both; }
.fade-up-4 { animation: fadeUp 0.6s 0.45s ease both; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: absolute; top: 68px; left:0; right:0; background:var(--green-deep); padding:16px; border-top:1px solid rgba(255,255,255,0.1); }
  .nav__mobile-toggle { display: flex; }
  .nav__cta { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap:32px; }
  .footer__disclaimer { text-align: left; }
  .inline-form { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .verse-block { padding: 28px 24px; }
  .section { padding: 48px 0; }
  h1 { font-size: 2rem; }
}
