:root {
  --blue-900: #0a3a75;
  --blue-700: #0d4f9c;
  --blue-500: #1f6fd1;
  --blue-100: #e6f0fb;
  --blue-50:  #f3f8fd;
  --green: #1e8e4e;
  --green-bg: #e3f5ea;
  --red: #c62828;
  --red-bg: #fdeaea;
  --text: #1b2533;
  --muted: #64748b;
  --bg: #f4f7fb;
  --card: #ffffff;
  --border: #e3e9f1;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 42, 84, 0.06), 0 8px 24px rgba(16, 42, 84, 0.08);
  --shadow-hover: 0 2px 4px rgba(16, 42, 84, 0.08), 0 14px 32px rgba(16, 42, 84, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Heebo", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.14), transparent 40%),
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.10), transparent 35%),
    linear-gradient(160deg, var(--blue-500) 0%, var(--blue-700) 55%, var(--blue-900) 100%);
  padding: 2.5rem 1rem 4.5rem;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }

.logo-badge {
  width: 112px;
  height: 112px;
  margin: 0 auto 1rem;
  padding: 12px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
}
.logo-badge img { width: 100%; height: 100%; object-fit: contain; }

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.subtitle { margin: 0.25rem 0 0; font-size: 1.15rem; opacity: 0.9; }

.today-chip {
  display: inline-block;
  margin: 1rem 0 0;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  font-size: 0.95rem;
  font-weight: 500;
}
.today-chip:empty { display: none; }

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
}
.wave path { fill: var(--bg); }

/* ---------- Nav ---------- */
.quick-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.7rem;
  background: rgba(244, 247, 251, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.quick-nav a {
  color: var(--blue-700);
  text-decoration: none;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}
.quick-nav a:hover { background: var(--blue-700); color: #fff; transform: translateY(-1px); }

/* ---------- Layout ---------- */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 1rem 0;
}

section { margin-bottom: 2.5rem; scroll-margin-top: 4.5rem; }

.section-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0.5rem 0 1.1rem;
}
.section-head h2 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--blue-900);
}
.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-100);
  font-size: 1.3rem;
}

/* ---------- Business cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.4rem 1.2rem;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-500), var(--blue-900));
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }

.card-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}
.card-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  font-size: 1.6rem;
}
.card h3 { margin: 0; font-size: 1.3rem; font-weight: 700; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status.open { color: var(--green); background: var(--green-bg); }
.status.open::before { animation: pulse 1.8s infinite; }
.status.closed { color: var(--red); background: var(--red-bg); }

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(30, 142, 78, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(30, 142, 78, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 142, 78, 0); }
}

table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.6rem; text-align: right; }

.hours { font-variant-numeric: tabular-nums; }
.hours th { font-weight: 500; color: var(--muted); width: 38%; }
.hours tr + tr td, .hours tr + tr th { border-top: 1px dashed var(--border); }
.hours tr.today th, .hours tr.today td {
  background: var(--blue-100);
  color: var(--blue-900);
  font-weight: 700;
  border-top-color: transparent;
}
.hours tr.today th { border-radius: 0 10px 10px 0; }
.hours tr.today td { border-radius: 10px 0 0 10px; }
.hours tr.today + tr th, .hours tr.today + tr td { border-top-color: transparent; }
.hours td.closed { color: var(--muted); }

.card .note {
  margin: 0.9rem 0 0;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: var(--blue-50);
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------- Prayer table ---------- */
.table-wrap {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.prayers thead th {
  background: linear-gradient(160deg, var(--blue-700), var(--blue-900));
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1rem;
}
.prayers tbody th, .prayers tbody td { padding: 0.85rem 1rem; }
.prayers tbody th { font-weight: 700; color: var(--blue-900); }
.prayers tbody tr + tr { border-top: 1px solid var(--border); }
.prayers tbody tr:hover { background: var(--blue-50); }
.prayers td { font-variant-numeric: tabular-nums; font-weight: 500; }

.note { color: var(--muted); font-size: 0.95rem; }

/* ---------- Footer ---------- */
footer {
  margin-top: 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--border);
}
footer p { margin: 0.2rem 0; }

/* ---------- Mobile ---------- */
@media (max-width: 560px) {
  .hero { padding-top: 2rem; }
  .logo-badge { width: 96px; height: 96px; }

  .table-wrap { background: none; box-shadow: none; overflow: visible; }
  .prayers thead { display: none; }
  .prayers tbody { display: grid; gap: 0.9rem; }
  .prayers tbody tr {
    display: block;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem 1.1rem;
    border-top: 0 !important;
  }
  .prayers tbody th {
    display: block;
    padding: 0 0 0.5rem;
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
    border-bottom: 1px solid var(--border);
  }
  .prayers tbody td {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
  }
  .prayers td::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
