/* ============================================
   9:15 Devotional — Stylesheet
   Clean, faith-focused, mobile-first.
   ============================================ */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #f1ebdf;
  --color-surface: #ffffff;
  --color-text: #1f2933;
  --color-text-soft: #52606d;
  --color-muted: #8a94a0;
  --color-accent: #1a4870;        /* deep navy — trustworthy, devotional */
  --color-accent-dark: #123354;
  --color-gold: #b8893d;           /* warm scripture gold */
  --color-gold-soft: #d8b370;
  --color-border: #e6e0d2;
  --shadow-sm: 0 2px 6px rgba(31, 41, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(31, 41, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(31, 41, 51, 0.12);
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1100px;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 720px;
}

/* ---------- Header ---------- */

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--color-accent);
}

.logo-mark {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-text);
  font-weight: 600;
  letter-spacing: 0.5px;
}

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

.nav a {
  color: var(--color-text-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

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

.nav a.active {
  color: var(--color-accent);
  border-bottom-color: var(--color-gold);
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 60px;
  text-align: center;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--color-gold);
  font-weight: 600;
  margin: 0 0 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 20px;
  color: var(--color-accent);
  letter-spacing: -0.5px;
}

.lede {
  font-size: 19px;
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto 32px;
  line-height: 1.55;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Page hero (other pages) ---------- */

.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(34px, 5vw, 50px);
  font-weight: 600;
  margin: 0 0 16px;
  color: var(--color-accent);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  font-family: var(--font-sans);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-dark);
  color: white;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: var(--color-accent);
}

.btn-ghost:hover {
  background: var(--color-accent);
  color: white;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ---------- Join Live card ---------- */

.join-live {
  padding: 60px 0;
}

.join-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  overflow: hidden;
}

.join-card-body {
  padding: 48px 40px;
  text-align: center;
}

.join-card h2 {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--color-accent);
}

.join-card p {
  color: var(--color-text-soft);
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto 16px;
}

.schedule-note {
  font-size: 15px !important;
  color: var(--color-gold) !important;
  font-weight: 500;
  margin-bottom: 28px !important;
}

.meeting-id {
  font-size: 14px !important;
  color: var(--color-muted) !important;
  margin-top: 18px !important;
  font-family: var(--font-sans);
}

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}

.section-head h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: var(--color-accent);
}

.view-all {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-accent);
}

/* ---------- Latest devotional (featured) ---------- */

.latest {
  padding: 30px 0 50px;
}

.latest-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
}

@media (max-width: 760px) {
  .latest-card {
    grid-template-columns: 1fr;
  }
}

.latest-card .video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
}

.latest-card .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.latest-card .latest-meta {
  padding: 36px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.latest-card .latest-date {
  font-size: 13px;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.latest-card h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--color-accent);
  line-height: 1.2;
}

.latest-card .scriptures {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 0 0 16px;
}

.scriptures-label {
  font-weight: 600;
  color: var(--color-text);
}

.latest-card .summary {
  color: var(--color-text-soft);
  font-size: 15px;
  margin: 0;
}

/* ---------- Card grid ---------- */

.recent {
  padding: 30px 0 70px;
}

.archive {
  padding: 40px 0 80px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 920px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .card-grid { grid-template-columns: 1fr; }
}

.devo-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.devo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.devo-card .video-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.devo-card .video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.devo-card .card-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.devo-card .card-date {
  font-size: 12px;
  color: var(--color-gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 6px;
}

.devo-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--color-accent);
  line-height: 1.25;
}

.devo-card .scriptures {
  font-size: 13.5px;
  color: var(--color-text-soft);
  margin: 0;
}

.devo-card .summary {
  font-size: 14px;
  color: var(--color-text-soft);
  margin: 10px 0 0;
}

/* ---------- Search bar ---------- */

.search-bar {
  margin: 24px auto 0;
  max-width: 540px;
  position: relative;
}

.search-bar input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-family: var(--font-sans);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-bar input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 72, 112, 0.12);
}

.search-count {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--color-muted);
}

/* ---------- Prayer CTA ---------- */

.prayer-cta {
  background: var(--color-accent);
  color: white;
  padding: 70px 0;
  text-align: center;
}

.prayer-cta-inner h2 {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 600;
  margin: 0 0 14px;
  color: white;
}

.prayer-cta-inner p {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(255, 255, 255, 0.85);
  font-style: italic;
  margin: 0 0 26px;
}

.prayer-cta .btn-primary {
  background: var(--color-gold);
  color: white;
}
.prayer-cta .btn-primary:hover {
  background: var(--color-gold-soft);
}

/* ---------- Prayer form ---------- */

.prayer-form-section {
  padding: 50px 0 80px;
}

.form-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  padding: 44px 40px;
}

@media (max-width: 600px) {
  .form-card { padding: 28px 22px; }
}

.field {
  margin-bottom: 22px;
}

.field label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14.5px;
  color: var(--color-text);
}

.optional {
  font-weight: 400;
  color: var(--color-muted);
  font-size: 13px;
}

.field input[type="text"],
.field input[type="email"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-family: var(--font-sans);
  color: var(--color-text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(26, 72, 112, 0.12);
  background: white;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.checkbox-field label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
  font-size: 14.5px;
  color: var(--color-text-soft);
}

.checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--color-accent);
}

.form-note {
  text-align: center;
  margin: 18px 0 0;
  font-size: 13.5px;
  color: var(--color-muted);
}

.form-card button[type="submit"] {
  width: 100%;
  margin-top: 6px;
}

.form-success {
  text-align: center;
  padding: 30px 0;
}

.form-success h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  color: var(--color-accent);
  margin: 0 0 14px;
}

.form-success p {
  font-size: 16px;
  color: var(--color-text-soft);
  margin: 8px 0;
}

.hidden {
  display: none;
}

/* ---------- Loading & empty states ---------- */

.loading,
.empty-state {
  color: var(--color-muted);
  font-style: italic;
  font-size: 15px;
  text-align: center;
  padding: 30px;
  grid-column: 1 / -1;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-accent-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 36px 0;
  margin-top: 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner p {
  margin: 0;
  font-size: 14px;
}

.footer-note {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 15px !important;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Mobile nav ---------- */

@media (max-width: 580px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px;
  }
  .nav {
    gap: 18px;
    font-size: 14px;
  }
  .hero {
    padding: 50px 0 40px;
  }
  .join-card-body {
    padding: 32px 24px;
  }
  .join-card h2 {
    font-size: 28px;
  }
  .latest-card .latest-meta {
    padding: 24px;
  }
}
