/* ===========================================================
   MKATOLIKI KIGANJANI — Sacred Editorial Stylesheet
   Aesthetic: Illuminated manuscript meets modern publication
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Cormorant+SC:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=Cinzel:wght@400;500;600;700&display=swap');

:root {
  /* Color system — sacred manuscript palette */
  --ink: #1a1410;
  --ink-soft: #2d241d;
  --parchment: #f5ecd9;
  --parchment-warm: #efe2c4;
  --parchment-deep: #e6d5b0;
  --burgundy: #6b1f2a;
  --burgundy-deep: #4a151d;
  --burgundy-soft: #8a2a37;
  --gold: #b8893a;
  --gold-bright: #d4a850;
  --gold-deep: #8a6622;
  --sage: #5c6b4a;
  --cream: #faf5e8;

  /* Typography */
  --font-display: 'Cinzel', 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-smallcaps: 'Cormorant SC', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Spacing */
  --max-width: 1280px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--parchment);
  background-image:
    radial-gradient(at 20% 10%, rgba(184, 137, 58, 0.06) 0%, transparent 50%),
    radial-gradient(at 80% 90%, rgba(107, 31, 42, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Parchment grain texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.3 0 0 0 0 0.2 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: 0.06em;
}

h3 {
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  letter-spacing: 0.04em;
}

.smallcaps {
  font-family: var(--font-smallcaps);
  text-transform: lowercase;
  letter-spacing: 0.1em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--burgundy);
}

p {
  margin-bottom: 1.1em;
}

a {
  color: var(--burgundy);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold-deep);
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
  z-index: 2;
}

.divider-ornate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
  color: var(--gold);
}

.divider-ornate::before,
.divider-ornate::after {
  content: '';
  height: 1px;
  flex: 1;
  max-width: 120px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.divider-ornate svg {
  width: 24px;
  height: 24px;
  color: var(--gold);
}

/* ===========================================================
   NAVIGATION
   =========================================================== */

.top-bar {
  background: var(--burgundy-deep);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.5rem 0;
  position: relative;
  z-index: 10;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar span {
  opacity: 0.85;
}

.top-bar a {
  color: var(--gold-bright);
  margin-left: 1rem;
}

.navbar {
  background: var(--parchment);
  border-bottom: 1px solid rgba(107, 31, 42, 0.15);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}

.navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold) 20%, var(--burgundy) 50%, var(--gold) 80%, transparent);
  opacity: 0.6;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--burgundy);
  color: var(--gold-bright);
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  border: 2px solid var(--gold);
  box-shadow: inset 0 0 0 2px var(--burgundy), 0 2px 8px rgba(74, 21, 29, 0.2);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.brand-tag {
  font-family: var(--font-smallcaps);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--burgundy);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.5rem 0.9rem;
  position: relative;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--burgundy);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 70%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--burgundy);
}

.nav-cta {
  background: var(--burgundy);
  color: var(--parchment) !important;
  padding: 0.65rem 1.4rem !important;
  border-radius: 2px;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
}

.nav-cta:hover {
  background: var(--burgundy-deep);
  color: var(--gold-bright) !important;
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
}

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

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 7vw, 6rem);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.hero-content .eyebrow {
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
  padding-left: 3rem;
}

.hero-content .eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2.25rem;
  height: 1px;
  background: var(--burgundy);
}

.hero-title {
  margin-bottom: 1.5rem;
  font-style: italic;
  font-weight: 400;
}

.hero-title .accent {
  display: block;
  font-style: normal;
  font-family: var(--font-smallcaps);
  color: var(--burgundy);
  font-size: 0.5em;
  letter-spacing: 0.3em;
  margin-bottom: 0.5rem;
}

.hero-lead {
  font-size: 1.25rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 540px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--burgundy);
  color: var(--parchment);
  border: 1px solid var(--burgundy);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--gold);
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary:hover {
  background: var(--burgundy-deep);
  color: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 21, 29, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 0.5rem 0;
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
  gap: 1rem;
}

/* Hero illustrated card */
.hero-visual {
  position: relative;
  aspect-ratio: 3/4;
  max-width: 460px;
  margin: 0 auto;
}

.hero-card {
  position: absolute;
  inset: 0;
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow:
    0 0 0 6px var(--parchment),
    0 0 0 7px var(--burgundy),
    0 20px 50px rgba(74, 21, 29, 0.2);
  transform: rotate(-1.5deg);
  transition: transform 0.5s ease;
}

.hero-card:hover {
  transform: rotate(0deg);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 137, 58, 0.3);
  pointer-events: none;
}

.hero-card-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--gold);
}

.hero-card-corner.tl { top: 18px; left: 18px; border-right: none; border-bottom: none; }
.hero-card-corner.tr { top: 18px; right: 18px; border-left: none; border-bottom: none; }
.hero-card-corner.bl { bottom: 18px; left: 18px; border-right: none; border-top: none; }
.hero-card-corner.br { bottom: 18px; right: 18px; border-left: none; border-top: none; }

.hero-card-content {
  text-align: center;
  margin: auto;
  padding: 2rem 1rem;
}

.hero-card-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  color: var(--burgundy);
}

.hero-card-label {
  font-family: var(--font-smallcaps);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.hero-card-verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-card-ref {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

/* ===========================================================
   QUICK ACCESS BAR (Saa & Tarehe)
   =========================================================== */

.quick-bar {
  background: linear-gradient(to right, var(--burgundy-deep), var(--burgundy), var(--burgundy-deep));
  color: var(--parchment);
  padding: 1.5rem 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  position: relative;
}

.quick-bar::before,
.quick-bar::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.quick-bar::before { top: 4px; }
.quick-bar::after { bottom: 4px; }

.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.quick-item {
  padding: 0 1rem;
  border-right: 1px solid rgba(212, 168, 80, 0.25);
}

.quick-item:last-child { border-right: none; }

.quick-label {
  font-family: var(--font-smallcaps);
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  margin-bottom: 0.35rem;
}

.quick-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--parchment);
}

/* ===========================================================
   SECTIONS
   =========================================================== */

section {
  padding: clamp(4rem, 9vw, 7rem) 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header .eyebrow {
  margin-bottom: 1rem;
  display: inline-block;
}

.section-header h2 {
  font-style: italic;
  font-weight: 400;
  max-width: 720px;
  margin: 0 auto 1rem;
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ===========================================================
   FEATURE GRID — Huduma Zetu
   =========================================================== */

.features {
  background: linear-gradient(180deg, transparent, rgba(184, 137, 58, 0.04), transparent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--cream);
  border: 1px solid rgba(107, 31, 42, 0.15);
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
}

.feature-card:hover {
  border-color: var(--burgundy);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -20px rgba(74, 21, 29, 0.25);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold-deep);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-num::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--burgundy);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  font-style: italic;
}

.feature-card p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  flex-grow: 1;
}

.feature-link {
  margin-top: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--burgundy);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.3s ease;
}

.feature-link:hover {
  gap: 1rem;
  color: var(--burgundy-deep);
}

.feature-link::after {
  content: '→';
  font-size: 1.1rem;
}

/* ===========================================================
   MASOMO YA LEO (Daily Readings)
   =========================================================== */

.readings {
  background: var(--burgundy-deep);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

.readings::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(212, 168, 80, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(212, 168, 80, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.readings .section-header h2,
.readings .section-header p {
  color: var(--parchment);
}

.readings .section-header .eyebrow {
  color: var(--gold-bright);
}

.readings-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.reading-tabs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(212, 168, 80, 0.2);
  padding-bottom: 1rem;
}

.reading-tab {
  background: none;
  border: none;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.65rem 1.25rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.3s ease;
  position: relative;
}

.reading-tab.active {
  opacity: 1;
  color: var(--gold-bright);
}

.reading-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background: var(--gold-bright);
}

.reading-tab:hover {
  opacity: 1;
}

.reading-content {
  display: none;
  animation: fadeIn 0.6s ease;
}

.reading-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.reading-source {
  text-align: center;
  font-family: var(--font-smallcaps);
  letter-spacing: 0.25em;
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
}

.reading-title {
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 2rem;
  color: var(--parchment);
}

.reading-body {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  line-height: 1.85;
  color: var(--parchment);
  opacity: 0.92;
}

.reading-body p {
  margin-bottom: 1.4rem;
}

.reading-body p:first-letter {
  font-family: var(--font-display);
  font-size: 3.5rem;
  float: left;
  line-height: 1;
  padding: 0.25rem 0.75rem 0 0;
  color: var(--gold-bright);
  font-weight: 700;
}

.reading-footer {
  text-align: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(212, 168, 80, 0.2);
}

.reading-amen {
  font-family: var(--font-display);
  font-style: italic;
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  font-size: 1.1rem;
}

/* ===========================================================
   SALA (Prayers) — Manuscript-style cards
   =========================================================== */

.prayers {
  background: var(--parchment-warm);
}

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

.prayer-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.prayer-card::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(184, 137, 58, 0.25);
  pointer-events: none;
}

.prayer-card::after {
  content: '';
  position: absolute;
  top: -10px;
  right: -10px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0.15;
  border-radius: 50%;
}

.prayer-ornament {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 1.5rem;
  letter-spacing: 0.5em;
}

.prayer-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
  color: var(--burgundy);
}

.prayer-text {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ink-soft);
  text-align: center;
}

.prayer-button {
  margin-top: 1.5rem;
  text-align: center;
}

.prayer-button a {
  font-family: var(--font-smallcaps);
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--burgundy);
  border-bottom: 1px solid var(--burgundy);
  padding-bottom: 2px;
}

/* ===========================================================
   LITURGICAL CALENDAR
   =========================================================== */

.calendar-section {
  background: var(--parchment);
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.calendar-info h2 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.calendar-info p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.calendar-list {
  list-style: none;
  border-top: 1px solid rgba(107, 31, 42, 0.2);
}

.calendar-list li {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(107, 31, 42, 0.12);
  align-items: center;
  transition: background 0.2s ease;
}

.calendar-list li:hover {
  background: rgba(184, 137, 58, 0.05);
  padding-left: 0.5rem;
}

.cal-date {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--burgundy);
  letter-spacing: 0.08em;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--burgundy);
  border-radius: 2px;
}

.cal-date strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
}

.cal-feast {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink);
}

.cal-feast small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-style: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 4px;
}

.cal-tag {
  font-family: var(--font-smallcaps);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--sage);
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--sage);
  border-radius: 2px;
}

/* ===========================================================
   QUOTE BLOCK — Saints
   =========================================================== */

.saint-quote {
  background: var(--ink);
  color: var(--parchment);
  position: relative;
  overflow: hidden;
}

.saint-quote::before {
  content: '"';
  position: absolute;
  top: -2rem;
  left: 5%;
  font-family: var(--font-display);
  font-size: 22rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.08;
  pointer-events: none;
}

.saint-quote-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.saint-quote blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.4;
  margin-bottom: 2rem;
  color: var(--parchment);
}

.saint-attribution {
  font-family: var(--font-smallcaps);
  letter-spacing: 0.3em;
  color: var(--gold-bright);
  font-size: 0.9rem;
}

.saint-attribution::before {
  content: '— ';
}

/* ===========================================================
   COMMUNITY / NEWSLETTER
   =========================================================== */

.community {
  background: var(--cream);
  position: relative;
}

.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.community-content h2 {
  font-style: italic;
  margin-bottom: 1.5rem;
}

.community-content p {
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.newsletter-form {
  display: flex;
  gap: 0;
  border: 1px solid var(--burgundy);
  background: var(--parchment);
}

.newsletter-form input {
  flex: 1;
  padding: 1.1rem 1.2rem;
  border: none;
  background: transparent;
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
}

.newsletter-form input::placeholder {
  color: rgba(45, 36, 29, 0.4);
  font-style: italic;
}

.newsletter-form button {
  background: var(--burgundy);
  color: var(--parchment);
  border: none;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter-form button:hover {
  background: var(--burgundy-deep);
}

.community-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.stats-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  width: 100%;
}

.stat-box {
  background: var(--parchment);
  border: 1px solid var(--gold);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

.stat-box:nth-child(odd) {
  transform: translateY(-1rem);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--burgundy);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.stat-label {
  font-family: var(--font-smallcaps);
  letter-spacing: 0.2em;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

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

footer {
  background: var(--ink);
  color: var(--parchment);
  padding: 5rem 0 1rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, var(--burgundy), var(--gold), var(--burgundy));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-brand .brand-mark {
  border-color: var(--gold);
}

.footer-brand .brand-name { color: var(--parchment); }

.footer-about {
  color: rgba(245, 236, 217, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.social-list {
  display: flex;
  gap: 0.75rem;
}

.social-list a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-bright);
  transition: all 0.3s ease;
}

.social-list a:hover {
  background: var(--gold);
  color: var(--ink);
}

.social-list svg {
  width: 18px;
  height: 18px;
}

.footer-col h4 {
  font-family: var(--font-smallcaps);
  color: var(--gold-bright);
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(245, 236, 217, 0.7);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--gold-bright);
}

.footer-bottom {
  border-top: 1px solid rgba(245, 236, 217, 0.15);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(245, 236, 217, 0.5);
  font-family: var(--font-body);
}

.footer-verse {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--gold-bright);
}

/* ===========================================================
   PAGE HEADERS (interior pages)
   =========================================================== */

.page-header {
  background: var(--burgundy-deep);
  color: var(--parchment);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(212, 168, 80, 0.3);
  pointer-events: none;
}

.page-header .eyebrow {
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.page-header h1 {
  color: var(--parchment);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1rem;
}

.page-header p {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(245, 236, 217, 0.85);
  font-size: 1.15rem;
}

.breadcrumb {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 2rem;
}

.breadcrumb a { color: var(--gold-bright); }
.breadcrumb span { opacity: 0.6; }

/* ===========================================================
   ARTICLE / LONG-FORM CONTENT
   =========================================================== */

.content-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

.content-main h2 {
  font-style: italic;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gold);
}

.content-main h2:first-child { margin-top: 0; }

.content-main h3 {
  font-family: var(--font-smallcaps);
  letter-spacing: 0.15em;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--burgundy);
}

.content-main p {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--ink-soft);
}

.content-main ul, .content-main ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: var(--ink-soft);
}

.content-main li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.content-main blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 2rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--ink);
  background: rgba(184, 137, 58, 0.08);
}

.sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.sidebar-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}

.sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--burgundy);
  font-style: italic;
}

.sidebar-card ul {
  list-style: none;
}

.sidebar-card li {
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(107, 31, 42, 0.15);
}

.sidebar-card li:last-child { border-bottom: none; }

.sidebar-card a {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.sidebar-card a:hover { color: var(--burgundy); }

/* ===========================================================
   CONTACT FORM
   =========================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-card {
  background: var(--cream);
  border: 1px solid var(--gold);
  padding: 2.5rem;
}

.contact-info-card h3 {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--burgundy);
}

.contact-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(107, 31, 42, 0.12);
  align-items: flex-start;
}

.contact-item:last-child { border-bottom: none; }

.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--burgundy);
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-label {
  font-family: var(--font-smallcaps);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gold-deep);
  margin-bottom: 0.25rem;
}

.contact-value {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
}

.contact-form {
  background: var(--parchment);
  border: 1px solid rgba(107, 31, 42, 0.2);
  padding: 2.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-smallcaps);
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--burgundy);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border: 1px solid rgba(107, 31, 42, 0.2);
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--burgundy);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 960px) {
  .hero-grid,
  .calendar-wrapper,
  .community-grid,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sidebar { position: static; }

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--parchment);
    flex-direction: column;
    padding: 1.5rem;
    border-bottom: 2px solid var(--burgundy);
    gap: 0.5rem;
    box-shadow: 0 12px 28px rgba(0,0,0,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.9rem 1rem;
    width: 100%;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }
}

@media (max-width: 600px) {
  body { font-size: 17px; }

  .top-bar { font-size: 0.7rem; }
  .top-bar .container { justify-content: center; }

  .form-row { grid-template-columns: 1fr; }

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

  .calendar-list li {
    grid-template-columns: 60px 1fr;
  }

  .cal-tag {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.5rem;
  }

  .hero-card { transform: rotate(0); }

  .reading-body p:first-letter {
    font-size: 2.8rem;
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   PHP additions — source badge, alerts, forms
   ============================================ */

.source-badge {
  display: inline-block;
  padding: 4px 10px;
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #f5ecd9;
  border-radius: 2px;
  margin-top: 0.5rem;
}

.alert {
  padding: 1rem 1.25rem;
  border-left: 3px solid;
  margin-bottom: 1.5rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}

.alert-success {
  background: rgba(74, 107, 58, 0.08);
  border-color: #4a6b3a;
  color: #1a1410;
}

.alert-error {
  background: rgba(107, 31, 42, 0.08);
  border-color: #6b1f2a;
  color: #6b1f2a;
}

.alert ul {
  margin: 0.5rem 0 0 1.2rem;
  padding: 0;
}

.calendar-filter {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  font-family: 'Cormorant Garamond', serif;
}

.calendar-filter label {
  font-family: 'Cormorant SC', serif;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.calendar-filter input[type="month"] {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(107, 31, 42, 0.3);
  background: #fdf9ee;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
}

.filter-clear {
  color: #6b1f2a;
  text-decoration: none;
  font-size: 0.9rem;
  border-bottom: 1px dotted;
}

.rank-pill,
.color-pill {
  display: inline-block;
  padding: 2px 8px;
  font-family: 'Cormorant SC', serif;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(107, 31, 42, 0.3);
  border-radius: 2px;
  margin-right: 0.4rem;
}

.rank-sherehe-kuu {
  background: rgba(184, 137, 58, 0.15);
  border-color: #b8893a;
  color: #6b1f2a;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: rgba(26, 20, 16, 0.6);
  font-size: 1.2rem;
}

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

@media (max-width: 768px) {
  .prayer-grid-full {
    grid-template-columns: 1fr;
  }
}

.prayer-card-full {
  background: #fdf9ee;
  scroll-margin-top: 100px;
}

.prayer-card-full .prayer-text {
  font-size: 1.1rem;
  line-height: 1.85;
}

.teaching-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.teaching-card {
  padding: 2rem;
  background: #fdf9ee;
  border-left: 2px solid #b8893a;
}

.teaching-category {
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: #6b1f2a;
  margin: 0 0 0.5rem;
}

.teaching-title {
  font-family: 'Cinzel', serif;
  font-size: 1.3rem;
  color: #1a1410;
  margin: 0 0 0.75rem;
}

.teaching-excerpt {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(26, 20, 16, 0.85);
  margin: 0 0 1rem;
}

.teaching-meta {
  display: flex;
  justify-content: space-between;
  font-family: 'Cormorant SC', serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: rgba(26, 20, 16, 0.6);
  padding-top: 1rem;
  border-top: 1px solid rgba(107, 31, 42, 0.15);
}

.category-title {
  font-family: 'Cinzel', serif;
  font-size: 1.8rem;
  color: #6b1f2a;
  text-align: center;
  margin: 3rem 0 0;
}

.prayer-category:first-of-type .category-title {
  margin-top: 0;
}

.prose h2 {
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  color: #6b1f2a;
  margin: 2rem 0 1rem;
}

.prose p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(26, 20, 16, 0.88);
  margin-bottom: 1.25rem;
}
