:root {
  --forest-950: #09251e;
  --forest-900: #10372d;
  --forest-800: #17483b;
  --forest-700: #245f4e;
  --gold-600: #a98b43;
  --gold-500: #bea35f;
  --gold-300: #d9c995;
  --cream-100: #f7f3e9;
  --cream-50: #fcfaf5;
  --white: #ffffff;
  --ink: #17231e;
  --muted: #68766f;
  --line: #dedfd8;
  --success: #2f7a55;
  --danger: #9f443b;
  --shadow-sm: 0 8px 24px rgba(10, 35, 29, 0.08);
  --shadow-lg: 0 24px 70px rgba(5, 24, 19, 0.22);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-50);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest-950);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 37, 30, 0.97);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--white);
  text-decoration: none;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid rgba(217, 201, 149, 0.75);
  border-radius: 50%;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-copy strong {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1rem;
}

.brand-copy small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

.primary-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--white);
}

.primary-nav .nav-directions {
  padding: 10px 16px;
  color: var(--forest-950);
  background: var(--gold-300);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 45px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: url("../assets/hayward-landscape.jpeg") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 28, 22, 0.92) 0%, rgba(7, 37, 29, 0.74) 43%, rgba(7, 37, 29, 0.30) 100%),
    linear-gradient(0deg, rgba(5, 27, 22, 0.52), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.68fr);
  align-items: center;
  gap: 72px;
  padding-top: 70px;
  padding-bottom: 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-300);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow-dark {
  color: var(--gold-600);
}

.hero h1,
.section-heading h2,
.feature-card h2,
.about-copy h2 {
  font-family: "Libre Baskerville", Georgia, serif;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.arabic-name {
  margin: 18px 0 0;
  color: var(--gold-300);
  font-family: "Amiri", serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1;
}

.hero-description {
  max-width: 680px;
  margin: 25px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--forest-950);
  background: var(--gold-300);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.42);
}

.button-dark {
  color: var(--white);
  background: var(--forest-900);
}

.hero-address {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.94rem;
  text-decoration: none;
}

.hero-address:hover {
  color: var(--white);
}

.next-prayer-card {
  padding: 32px;
  color: var(--ink);
  background: rgba(252, 250, 245, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px);
}

.card-kicker {
  margin: 0;
  color: var(--gold-600);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.next-prayer-card h2 {
  margin: 5px 0 22px;
  color: var(--forest-900);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.7rem;
}

.next-prayer-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.next-prayer-times div {
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.next-prayer-times span,
.countdown-wrap span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.next-prayer-times strong {
  color: var(--forest-900);
  font-size: 1.13rem;
}

.countdown-wrap {
  margin-top: 12px;
  padding: 18px;
  color: var(--white);
  background: var(--forest-900);
  border-radius: var(--radius-sm);
}

.countdown-wrap span {
  color: rgba(255, 255, 255, 0.66);
}

.countdown-wrap strong {
  display: block;
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.date-line {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.prayer-section {
  position: relative;
  background:
    radial-gradient(circle at top right, rgba(190, 163, 95, 0.13), transparent 32%),
    var(--cream-100);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2,
.feature-card h2,
.about-copy h2 {
  margin: 0;
  color: var(--forest-950);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.schedule-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.85rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--gold-600);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(169, 139, 67, 0.13);
}

.status-dot.is-live {
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(47, 122, 85, 0.12);
}

.status-dot.is-error {
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(159, 68, 59, 0.12);
}

.prayer-table-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.prayer-table-header,
.prayer-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  align-items: center;
}

.prayer-table-header {
  padding: 13px 28px;
  color: rgba(255, 255, 255, 0.66);
  background: var(--forest-900);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.prayer-row {
  min-height: 76px;
  padding: 15px 28px;
  border-bottom: 1px solid var(--line);
}

.prayer-row:last-child {
  border-bottom: 0;
}

.prayer-row.is-next {
  background: linear-gradient(90deg, rgba(190, 163, 95, 0.17), rgba(190, 163, 95, 0.04));
}

.prayer-name {
  display: flex;
  align-items: center;
  gap: 12px;
}

.prayer-name-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--gold-600);
  background: var(--cream-100);
  border-radius: 50%;
}

.prayer-name strong {
  color: var(--forest-950);
}

.prayer-time-cell {
  color: var(--forest-900);
  font-size: 1.05rem;
  font-weight: 700;
}

.prayer-time-cell span {
  display: none;
}

.loading-row {
  padding: 34px 28px;
  color: var(--muted);
}

.schedule-note {
  max-width: 770px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.info-grid-section {
  background: var(--cream-50);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-card {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--gold-300);
  background: var(--forest-900);
  border-radius: 50%;
  font-size: 1.35rem;
}

.feature-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.jummah-list {
  margin-top: 26px;
}

.jummah-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.jummah-row:last-child {
  border-bottom: 1px solid var(--line);
}

.jummah-row div {
  display: flex;
  flex-direction: column;
}

.jummah-row span {
  font-weight: 700;
}

.jummah-row small,
.feature-note {
  color: var(--muted);
}

.jummah-row strong {
  color: var(--forest-900);
  font-size: 1.1rem;
}

.feature-note {
  margin: 20px 0 0;
  font-size: 0.9rem;
}

.announcement {
  margin: 27px 0 24px;
  padding: 21px;
  background: var(--cream-100);
  border-left: 4px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.announcement-label {
  color: var(--gold-600);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.announcement h3 {
  margin: 8px 0 8px;
  color: var(--forest-950);
  font-size: 1.08rem;
}

.announcement p {
  margin: 0;
  color: var(--muted);
}

.text-link {
  color: var(--forest-800);
  font-weight: 800;
  text-underline-offset: 4px;
}

.about-section {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(9, 37, 30, 0.98), rgba(16, 55, 45, 0.96)),
    url("../assets/hayward-landscape.jpeg") center / cover;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(290px, 0.65fr);
  align-items: center;
  gap: 70px;
}

.about-copy h2 {
  color: var(--white);
}

.about-copy > p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.73);
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
}

.about-actions .button-dark {
  color: var(--forest-950);
  background: var(--gold-300);
}

.about-actions .text-link {
  color: var(--white);
}

.location-card {
  padding: 32px;
  color: var(--ink);
  background: var(--cream-100);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-md);
}

.location-label {
  color: var(--gold-600);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.location-card h3 {
  margin: 8px 0 16px;
  color: var(--forest-950);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.5rem;
}

.location-card a {
  color: var(--forest-800);
  font-weight: 700;
  text-underline-offset: 4px;
}

.location-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.68);
  background: var(--forest-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--white);
}

.footer-address a {
  text-underline-offset: 4px;
}

.copyright {
  margin: 0;
}

.noscript-message {
  padding: 18px;
  color: var(--white);
  background: var(--danger);
  text-align: center;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 20px 20px;
    background: var(--forest-950);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 13px 4px;
  }

  .primary-nav .nav-directions {
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 12vw, 5.2rem);
  }

  .next-prayer-card {
    max-width: 580px;
  }

  .info-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    gap: 42px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .section {
    padding: 66px 0;
  }

  .brand-copy small {
    display: none;
  }

  .brand-logo {
    width: 51px;
    height: 51px;
  }

  .hero-content {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(5, 28, 22, 0.91), rgba(7, 37, 29, 0.70)),
      linear-gradient(0deg, rgba(5, 27, 22, 0.55), transparent);
  }

  .hero h1 {
    line-height: 1.03;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .next-prayer-card {
    padding: 24px;
    border-radius: 22px;
  }

  .next-prayer-card h2 {
    font-size: 2.2rem;
  }

  .next-prayer-times {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .prayer-table-header {
    display: none;
  }

  .prayer-row {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
    padding: 19px;
  }

  .prayer-name {
    grid-column: 1 / -1;
  }

  .prayer-time-cell {
    padding: 12px;
    background: var(--cream-100);
    border-radius: 10px;
    font-size: 1rem;
  }

  .prayer-time-cell span {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
  }

  .feature-card {
    padding: 27px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}
.nav-donate {
  padding: 0.68rem 1rem !important;
  border-radius: 999px;
  background: #c9a458;
  color: #18231f !important;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(155, 118, 47, 0.2);
}

.nav-donate:hover,
.nav-donate:focus-visible {
  background: #dfbd73;
  transform: translateY(-1px);
}

.home-donation-strip {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(21, 37, 31, 0.11);
  background: #f7f2e7;
}

.home-donation-inner {
  display: grid;
  grid-template-columns: minmax(240px, 1.15fr) minmax(260px, 1fr) auto;
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: center;
}

.home-donation-copy h2 {
  margin: .3rem 0 .45rem;
  font-family: "Libre Baskerville", serif;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
}

.home-donation-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: #5f6c65;
  line-height: 1.65;
}

.home-donation-stats {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .7rem;
  font-size: .9rem;
}

.home-donation-stats strong { color: #173f31; }
.home-donation-stats > span { color: #6d766f; }
.home-progress-track { height: 11px; overflow: hidden; border-radius: 999px; background: rgba(29, 75, 58, .12); }
.home-progress-fill { width: var(--progress, 50%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9b762f, #d7b96f); transition: width 1s ease; }
.home-donation-button { white-space: nowrap; }

.floating-donate {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.1rem;
  border-radius: 999px;
  background: #c9a458;
  color: #17231e;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 38px rgba(15, 45, 35, .25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
}

.floating-donate.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-donate:hover { background: #dfbd73; transform: translateY(-2px); }

@media (max-width: 880px) {
  .home-donation-inner { grid-template-columns: 1fr; }
  .home-donation-button { justify-self: start; }
}

@media (max-width: 560px) {
  .floating-donate span:last-child { display: none; }
  .floating-donate { width: 52px; height: 52px; justify-content: center; padding: 0; }
}
