/* ===============================
   ALSAHABI Mosque Donation – Styles
   Fonts: Inter (UI), Cairo (Arabic captions)
   Palette: Green #0E5A3B, Dark #0A3F2A, Gold #D4AF37, Light #F6F9F7
   =============================== */
:root {
  --green: #0E5A3B;
  --green-600: #0f5132;
  --green-700: #0a3f2a;
  --gold: #D4AF37;
  --light: #F6F9F7;
  --ink: #0d1512;
  --muted: #5a6a62;
  --ring: rgba(13, 21, 18, 0.15);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(13, 21, 18, 0.12);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--light);
  line-height: 1.6;
}

/* Background Islamic geometric pattern */
.bg-pattern {
  position: fixed;
  inset: -20vmax;
  z-index: -1;
  background-image:
    radial-gradient(circle at 25px 25px, rgba(212, 175, 55, 0.08) 2px, transparent 3px),
    radial-gradient(circle at 50px 50px, rgba(14, 90, 59, 0.08) 2px, transparent 3px),
    radial-gradient(circle at 75px 75px, rgba(212, 175, 55, 0.06) 1.5px, transparent 3px);
  background-size: 100px 100px;
  filter: saturate(1) contrast(1.05);
}

/* Layout utilities */
.container {
  width: min(1140px, 92%);
  margin-inline: auto
}

.container.narrow {
  width: min(820px, 92%)
}

.section {
  padding: 64px 0
}

.section.alt {
  background: #ffffffaa;
  backdrop-filter: blur(4px)
}

.section-header {
  margin-bottom: 28px;
  text-align: center
}

.section-title {
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.2rem);
  margin: 0 0 4px;
  color: var(--green-700);
  letter-spacing: .2px;
}

.section-subtitle {
  margin: 0;
  color: var(--muted)
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, #ffffffcc, #ffffffdd);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

.section,
.site-header {
  scroll-margin-top: 80px;
}


.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none
}

.brand-mark {
  font-family: Cairo, sans-serif;
  color: var(--gold);
  font-size: 24px
}

.brand-text {
  font-weight: 700;
  color: var(--green-700);
  font-size: 15px
}

/* Nav */
.site-nav .nav-toggle {
  display: none;
  background: var(--green-700);
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav-menu {
  display: flex;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0
}

.nav-menu a {
  display: inline-block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--green-700);
  border-radius: 10px;
}

.nav-menu a:hover {
  background: #0a3f2a0d
}

/* Hero */
.hero {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(212, 175, 55, 0.10), transparent),
    radial-gradient(900px 500px at 90% -20%, rgba(14, 90, 59, 0.08), transparent);
  padding: 64px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  color: var(--green-700);
}

.hero-copy p {
  margin: 0 0 18px;
  color: #1b2a24
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
  border: 1px solid transparent;
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: var(--shadow)
}

.btn-primary:hover {
  background: var(--green-600)
}

.btn-outline {
  background: white;
  border-color: #d6e2dc;
  color: var(--green-700)
}

.btn-outline:hover {
  border-color: var(--green)
}

.btn-small {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: .9rem
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  /* makes them stack on mobile */
  margin-top: 14px;
}

.contact-chip {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.contact-chip {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #e6eee9;
  border-radius: 12px;
  background: #fdfdfd;
}

.chip-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chip-icon {
  font-size: 20px;
  color: var(--green-700);
}

.chip-logo {
  height: 22px;
  width: auto;
  display: block;
}

/* Cards */
.card {
  background: white;
  border: 1px solid #e6eee9;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.card-title {
  margin: 0 0 8px;
  color: var(--green-700)
}

.card-grid.two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

.card-grid.three {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media (min-width:820px) {
  .card-grid.two {
    grid-template-columns: 1fr 1fr
  }

  .card-grid.three {
    grid-template-columns: repeat(3, 1fr)
  }
}

/* Donation */
.donation-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px
}

@media (min-width:900px) {
  .donation-wrap {
    grid-template-columns: 1.2fr .8fr
  }
}

.donation-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px
}

.amount {
  background: #f3f7f5;
  border: 1px solid #d6e2dc;
  color: #0a3f2a;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: .2s;
}

.amount:hover {
  border-color: var(--green);
  background: #eef5f1
}

.amount.is-selected {
  background: #0a3f2a;
  color: white;
  border-color: #0a3f2a
}

.donation-custom {
  display: grid;
  gap: 6px;
  margin: 12px 0
}

.donation-custom input {
  padding: 12px 12px;
  border: 1px solid #d6e2dc;
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.02);
}

.donation-custom input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--ring)
}

.donation-summary {
  border-top: 1px dashed #e1e9e4;
  margin-top: 14px;
  padding-top: 12px
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 6px 0
}

.donation-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap
}

.fine {
  color: var(--muted);
  font-size: .92rem;
  margin: 8px 0 0
}

.stats-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px
}

.stats-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed #edf1ee
}

.progress {
  height: 12px;
  background: #eef4f1;
  border-radius: 99px;
  overflow: hidden;
  border: 1px solid #d6e2dc
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #e7c968)
}

.note.arabic,
.hadith.arabic {
  direction: rtl;
  font-family: Cairo, Inter, system-ui, sans-serif;
  background: #fff;
  border: 1px solid #e6eee9;
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-top: 18px;
  color: #10221a
}

.hadith {
  font-size: 1.05rem;
}


/* Contact Cards */
.contact-grid {
  display: grid;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid #e6eee9;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.contact-icon {
  font-size: 26px;
  color: var(--green-700);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 4px;
}

.contact-card h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--green-700);
}

.contact-card p {
  margin: 0;
}

.contact-card a {
  color: var(--green-700);
  text-decoration: none;
  font-weight: 600;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  padding: 40px 0 20px;
  background: var(--green-700);
  color: #f9f9f9;
  text-align: center;
  border-top: 3px solid var(--gold);
}

.footer-inner {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand .brand-mark {
  font-size: 28px;
  color: var(--gold);
}

.footer-title {
  margin: 0;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-subtitle {
  margin: 0;
  color: #e0e0e0;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-nav a {
  color: #f9f9f9;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.footer-nav a::after {
  content: "";
  display: block;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.3s ease;
  margin-top: 4px;
}

.footer-nav a:hover {
  color: var(--gold);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-meta {
  font-size: 0.9rem;
  color: #d0d0d0;
}

/* Responsive Nav */
@media (max-width: 900px) {
  .site-nav .nav-toggle {
    display: inline-flex
  }

  .nav-menu {
    position: absolute;
    right: 4%;
    top: 58px;
    width: min(280px, 92%);
    background: white;
    border: 1px solid #e6eee9;
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    display: none;
    flex-direction: column;
  }

  .nav-menu.is-open {
    display: flex
  }
}

/* Accessibility focus */
a:focus,
button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 4px var(--ring)
}