/* =========================
   GLOBAL DESIGN SYSTEM
   ========================= */

:root {
  --dark: #0f2430;
  --primary: #1f3c4f;
  --accent: #cfa44a;
  --light: #f4f6f8;
}

/* Reset & smoothing */
* {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--light);
  color: #333;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.2px;
  text-rendering: optimizeLegibility; /* Lighthouse boost */
}

/* =========================
   TYPOGRAPHY
   ========================= */

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
  margin-top: 0;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

p {
  margin-bottom: 16px;
  color: #444;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15,36,48,0.95);
}

.nav-container {
  max-width: 1200px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-links a {
  color: #fff;
  margin-left: 22px;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent);
}

/* =========================
   LAYOUT
   ========================= */

.section {
  padding: 90px 20px;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* =========================
   HERO
   ========================= */

.hero {
  min-height: 90vh; /* CLS safe */
  background:
    linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
    url("/assets/hero.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero p {
  max-width: 720px;
  margin: auto;
}

.hero-btn {
  display: inline-block;
  margin-top: 18px;
  background: var(--accent);
  color: var(--dark);
  padding: 14px 34px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
}

/* =========================
   CARDS & GRID
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 35px;
}

.card {
  background: #fff;
  padding: 44px 40px;
  border-radius: 20px;
  box-shadow: 0 22px 45px rgba(0,0,0,0.08);
  text-align: center;
}

.card span {
  font-size: 2.6rem;
  margin-bottom: 18px;
  display: inline-block;
}

/* =========================
   PRAYER WALL (POLISH)
   ========================= */

.prayer-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 30px;
}

.prayer-card {
  border-left: 5px solid var(--accent);
  text-align: left;
}

.prayer-card strong {
  font-size: 1.05rem;
}

.prayer-meta {
  font-size: 0.8rem;
  color: #777;
  margin-top: 10px;
}

.prayer-empty {
  text-align: center;
  color: #666;
  font-style: italic;
}

/* =========================
   TABLES
   ========================= */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

th {
  background: var(--primary);
  color: #fff;
  padding: 14px;
}

td {
  padding: 14px;
}

tr:nth-child(even) {
  background: var(--light);
}

/* =========================
   ANIMATIONS
   ========================= */

.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   FOOTER
   ========================= */

footer {
  background: var(--dark);
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

/* =========================
   FLOATING CROSS
   ========================= */

#crossBtn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--accent);
  color: var(--dark);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  z-index: 2000;
}

/* =========================
   POPUP
   ========================= */

#welcomePopup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 3000;
}

.popup-content {
  background: #fff;
  max-width: 420px;
  margin: 15% auto;
  padding: 35px;
  border-radius: 18px;
  text-align: center;
}

.popup-content h3 {
  color: var(--primary);
}

.popup-content button {
  margin-top: 20px;
  background: var(--accent);
  border: none;
  padding: 10px 24px;
  border-radius: 25px;
  cursor: pointer;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px) {
  h1 { font-size: 2.3rem; }
  h2 { font-size: 1.7rem; }
  .card { padding: 34px 28px; }
}
/* =========================
   PRAYER WALL – ENHANCED
   ========================= */

.prayer-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px,1fr));
  gap: 30px;
}

.prayer-card {
  background: #fff;
  padding: 26px 28px;
  border-radius: 16px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.06);
  border-left: 5px solid var(--accent);
}

.prayer-card p {
  margin-bottom: 12px;
}

.prayer-author {
  font-weight: 600;
  color: var(--primary);
}

.prayer-meta {
  font-size: 0.8rem;
  color: #777;
}

/* =========================
   SCRIPTURE PANEL
   ========================= */

.scripture-box {
  background: linear-gradient(
    rgba(255,255,255,0.95),
    rgba(255,255,255,0.95)
  );
  border-radius: 18px;
  padding: 32px 30px;
  box-shadow: 0 18px 35px rgba(0,0,0,0.06);
  text-align: center;
}

.scripture-box h4 {
  margin-bottom: 14px;
  color: var(--primary);
}

.scripture-text {
  font-style: italic;
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.scripture-ref {
  font-weight: 600;
  color: #666;
}

/* =========================
   SUCCESS ANIMATION
   ========================= */

.success-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 8px;
  animation: popIn 0.5s ease forwards;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
