:root {
  --green-950: #12372a;
  --green-800: #1d5a43;
  --green-700: #287257;
  --cream: #f7f3e8;
  --gold: #b78b34;
  --ink: #1d2723;
  --muted: #637069;
  --white: #ffffff;
  --border: #dce3df;
  --shadow: 0 18px 45px rgba(18, 55, 42, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.announcement-banner {
  background: var(--gold);
  color: #1f1b10;
  font-weight: 600;
}
.announcement-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
}
.announcement-inner a { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo {
  display: block;
  width: clamp(230px, 25vw, 355px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  object-position: left center;
}

nav { display: flex; align-items: center; gap: 24px; }
nav a { text-decoration: none; font-weight: 600; font-size: .94rem; }
.menu-button { display: none; font-size: 1.5rem; border: 0; background: transparent; }

.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(183,139,52,.22), transparent 28%),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  color: white;
  padding: 90px 0;
}
.hero-grid { display: grid; grid-template-columns: 1.4fr .7fr; align-items: center; gap: 58px; }
.arabic-banner {
  margin: 0 0 18px;
  color: var(--gold);
  font-family: "Amiri", "Noto Naskh Arabic", Georgia, serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0,0,0,.18);
}
.eyebrow { text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .76rem; color: var(--gold); margin: 0 0 10px; }
.hero h1, h2 { font-family: "Playfair Display", serif; line-height: 1.1; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.8rem); margin: 0; max-width: 760px; }
.hero-copy { font-size: 1.12rem; max-width: 640px; color: rgba(255,255,255,.84); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #17140d;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.button-small { min-height: 40px; padding: 0 18px; }
.button-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,.55); }

.next-prayer-card {
  background: rgba(255,255,255,.11);
  border: 1px solid rgba(255,255,255,.26);
  padding: 30px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
}
.next-prayer-card span, .next-prayer-card small { display: block; color: rgba(255,255,255,.75); }
.next-prayer-card strong { display: block; font-size: 2rem; margin-top: 8px; }
.next-prayer-card div { font-size: 2.7rem; font-weight: 700; color: #f2d89a; }

.section { padding: 78px 0; }
.section-alt { background: var(--cream); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 0; color: var(--green-950); }
h3 { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.prayer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.6fr .7fr;
}
.prayer-table-wrap { overflow-x: auto; }
.prayer-table { width: 100%; border-collapse: collapse; }
.prayer-table th, .prayer-table td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--border); }
.prayer-table th { background: #f7faf8; color: var(--green-950); }
.prayer-table tr:last-child td { border-bottom: 0; }
.prayer-table tr.next-row { background: #fff8e7; }
.jumuah-box { background: var(--green-950); color: white; padding: 28px; }
.jumuah-box h3 { color: #f2d89a; font-family: "Playfair Display", serif; font-size: 1.8rem; }
.jumuah-time { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.jumuah-time:last-child { border-bottom: 0; }
.update-note { margin-top: 14px; color: var(--muted); font-size: .9rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(18,55,42,.07);
}
.card-date { color: var(--green-700); font-weight: 700; }
.card h3 { margin: 8px 0; font-size: 1.25rem; color: var(--green-950); }
.card-meta { color: var(--muted); font-size: .9rem; }

.announcement-list { display: grid; gap: 14px; }
.announcement-item {
  padding: 20px 22px;
  border-left: 5px solid var(--gold);
  background: #fbfcfb;
  border-radius: 0 12px 12px 0;
}
.announcement-item h3 { margin-bottom: 4px; }
.announcement-item p { margin: 0; }

.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: start; }
.contact-form {
  background: white;
  border: 1px solid var(--border);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-form label { display: block; font-weight: 600; margin-bottom: 16px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 12px 13px;
  font: inherit;
  border: 1px solid #bac6c0;
  border-radius: 10px;
  background: white;
}
.checkbox-row { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; }
.checkbox-row input { width: auto; margin-top: 5px; }

.donate-section { background: var(--green-950); color: white; }
.donate-card { display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.donate-card h2 { color: white; }
.map-placeholder {
  min-height: 250px;
  border-radius: var(--radius);
  background: #e8eeeb;
  display: grid;
  place-items: center;
  color: var(--muted);
}
footer { background: #0f291f; color: rgba(255,255,255,.72); padding: 24px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 820px) {
  .menu-button { display: block; }
  nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }
  nav.open { display: flex; }
  .hero-grid, .two-column, .prayer-card { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .next-prayer-card { max-width: 420px; }
  .donate-card, .section-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
}

.donation-qr-wrap {
  background: white;
  padding: 12px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 330px;
}
.donation-qr {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.button-map {
  margin-top: 8px;
  background: var(--green-700);
  color: white;
}
.map-card {
  padding: 32px;
  align-content: center;
  gap: 12px;
  text-align: center;
}
.map-card strong {
  color: var(--green-950);
  font-size: 1.25rem;
}
.map-card a {
  color: var(--green-700);
  font-weight: 700;
}


@media (max-width: 640px) {
  .nav-wrap { min-height: 68px; }
  .site-logo { width: 210px; max-height: 58px; }
}

.map-embed{margin:1rem 0;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px rgba(0,0,0,.12)}
.map-embed iframe{display:block}

.map-embed {
  padding: 0;
  overflow: hidden;
  min-height: 390px;
  background: #f4f1e8;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.map-directions-link {
  display: block;
  padding: 14px 18px;
  text-align: center;
  font-weight: 700;
  text-decoration: none;
  color: var(--green-800);
  background: #fff;
  border-top: 1px solid rgba(13, 78, 53, 0.14);
}

.map-directions-link:hover {
  background: #f7faf8;
}

@media (max-width: 720px) {
  .map-embed {
    min-height: 340px;
  }

  .map-embed iframe {
    height: 290px;
  }
}


/* Refined contact section */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: stretch;
}

.contact-card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(247,244,235,.98));
  border: 1px solid rgba(16,88,59,.14);
  box-shadow: 0 18px 45px rgba(20,59,44,.10);
  overflow: hidden;
}

.contact-card::after {
  content: "";
  position: absolute;
  right: -55px;
  top: -55px;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(201,162,39,.10);
}

.contact-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(16,88,59,.10);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin: .2rem 0 1.15rem;
  color: var(--green-900, #0d4e35);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

.contact-details {
  display: grid;
  gap: .9rem;
}

.contact-details p {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin: 0;
  line-height: 1.55;
}

.contact-details a {
  color: var(--green-800, #145c40);
  font-weight: 700;
  text-decoration: none;
}

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

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.contact-actions .button {
  min-width: 150px;
  text-align: center;
}

.contact-donate {
  border-color: var(--green-800, #145c40);
  color: var(--green-800, #145c40);
}

.button,
.button-small {
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.button:hover,
.button-small:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(20,59,44,.14);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Refined footer */
.site-footer {
  margin-top: 4rem;
  color: #f7f3e8;
  background:
    radial-gradient(circle at top right, rgba(201,162,39,.18), transparent 34%),
    #0d4e35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .8fr 1fr;
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 2.5rem;
}

.footer-logo {
  width: min(300px, 100%);
  height: auto;
  margin-bottom: .8rem;
}

.site-footer h3 {
  color: #f5d778;
  margin: 0 0 .85rem;
}

.site-footer a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin: .4rem 0;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer p {
  color: rgba(255,255,255,.86);
  line-height: 1.6;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  text-align: center;
  padding: 1rem;
}

.footer-bottom p {
  margin: 0;
  font-size: .92rem;
}

/* Slightly richer card treatment */
.prayer-card,
.next-prayer-card,
.contact-form,
.donate-card {
  box-shadow: 0 20px 50px rgba(20,59,44,.11);
}

@media (max-width: 820px) {
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions .button {
    flex: 1 1 160px;
  }
}

.nav-donate{
margin-left:1rem;
background:#c9a227;
color:#fff!important;
padding:.65rem 1rem;
border-radius:999px;
font-weight:700;
text-decoration:none;
}
.nav-donate:hover{filter:brightness(.95);}
@media(max-width:768px){.nav-donate{margin:.5rem 0;display:inline-block;}}
