/* ============================================================
   Saint Expedite — devotional site stylesheet
   Folk-Catholic aesthetic: deep red, gold, parchment.
   Body text is set large (19px+) and high-contrast for readability.
   ============================================================ */

:root {
  --red-deep: #5e101d;
  --red: #7e1a28;
  --red-soft: #a93242;
  --gold: #c9a227;
  --gold-light: #ecd27a;
  --gold-pale: #f6e7bd;
  --parchment: #f8f0dd;
  --parchment-dark: #eee0c2;
  --ink: #2a1c10;
  --ink-soft: #54402c;
  --white: #fffdf7;
  --shadow: 0 4px 18px rgba(60, 20, 10, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: Georgia, 'Times New Roman', 'Nimbus Roman', serif;
  font-size: 19px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', 'Times New Roman', serif;
  color: var(--red-deep);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.4rem; margin: 0 0 0.6em; }
h2 { font-size: 1.7rem; margin: 1.6em 0 0.5em; }
h3 { font-size: 1.3rem; margin: 1.3em 0 0.4em; }

p { margin: 0 0 1.1em; }

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

img { max-width: 100%; height: auto; }

/* ---------- Header & navigation ---------- */

.site-header {
  background: linear-gradient(180deg, var(--red-deep), var(--red));
  color: var(--gold-pale);
  padding: 1.1rem 1rem 0.9rem;
  text-align: center;
  border-bottom: 4px solid var(--gold);
}

.site-header .brand {
  font-family: 'Cinzel', 'Times New Roman', serif;
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.15rem;
}

.site-header .tagline {
  font-style: italic;
  font-size: 1.02rem;
  color: #f3e3c2;
  margin: 0 0 0.7rem;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2rem 0.4rem;
  padding: 0.2rem 0 0.1rem;
}

.main-nav a {
  color: #f7ead0;
  text-decoration: none;
  font-size: 1.02rem;
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
}

.main-nav a:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: var(--gold);
  color: var(--gold-light);
}

.main-nav a.active {
  background: rgba(201, 162, 39, 0.18);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ---------- Layout ---------- */

.wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.wrap.wide { max-width: 1080px; }

.lead {
  font-size: 1.22rem;
  line-height: 1.8;
  color: var(--ink-soft);
}

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

.hero {
  position: relative;
  text-align: center;
  background: #1c0d08;
}

.hero img {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  background: linear-gradient(180deg, rgba(20,8,6,0.15), rgba(20,8,6,0.78));
  margin-top: -9rem;
  position: relative;
  padding: 2.2rem 1.25rem 2.4rem;
}

.hero-overlay h1 {
  color: var(--gold-light);
  font-size: 2.9rem;
  letter-spacing: 0.08em;
  margin: 0 0 0.2em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.6);
}

.hero-overlay .subtitle {
  color: #f7ead0;
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin: 0 0 0.9em;
}

.hero-overlay p {
  color: #f3e6cc;
  font-size: 1.15rem;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- Call-to-action cards ---------- */

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
  margin: 2.2rem 0;
}

.cta-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 5px solid var(--gold);
  border-radius: 10px;
  padding: 1.5rem 1.3rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 26px rgba(60, 20, 10, 0.22);
  color: var(--ink);
}

.cta-card .icon { font-size: 2rem; display: block; margin-bottom: 0.4rem; }
.cta-card h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.cta-card p { margin: 0; font-size: 1.02rem; color: var(--ink-soft); }

/* ---------- Prayer / quote blocks ---------- */

.prayer-block {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow);
  font-size: 1.12rem;
  line-height: 1.9;
}

.prayer-block .prayer-title {
  font-family: 'Cinzel', serif;
  color: var(--red-deep);
  font-size: 1.25rem;
  text-align: center;
  margin: 0 0 1rem;
}

.scripture-note {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  padding: 1rem 1.3rem;
  border-radius: 0 8px 8px 0;
  margin: 1.6rem 0;
  font-size: 1.05rem;
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 1.6rem 0; }
.steps li {
  counter-increment: step;
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: 10px;
  padding: 1.2rem 1.3rem 1.2rem 4.2rem;
  margin-bottom: 1rem;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.steps li strong { color: var(--red-deep); }

/* ---------- Novena days ---------- */

.novena-day {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.novena-day h3 { margin-top: 0; }
.novena-day .day-label {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  background: var(--red-deep);
  display: inline-block;
  padding: 0.15rem 0.9rem;
  border-radius: 20px;
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

/* ---------- Forms ---------- */

.devout-form {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
}
.devout-form h2, .devout-form h3 { margin-top: 0; }

.field { margin-bottom: 1.2rem; }
.field label {
  display: block;
  font-weight: bold;
  margin-bottom: 0.35rem;
  color: var(--red-deep);
  font-size: 1.05rem;
}
.field .hint { font-size: 0.98rem; color: var(--ink-soft); margin-top: 0.25rem; }

input[type="text"], textarea, select {
  width: 100%;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  padding: 0.7rem 0.8rem;
  border: 2px solid #d8c49a;
  border-radius: 8px;
  background: #fffdf7;
  color: var(--ink);
}
input[type="text"]:focus, textarea:focus, select:focus {
  outline: 3px solid var(--gold-light);
  border-color: var(--gold);
}
textarea { min-height: 130px; resize: vertical; }

.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--red), var(--red-deep));
  color: var(--gold-light);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  padding: 0.8rem 2rem;
  border: 2px solid var(--gold);
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease;
}
.btn:hover { transform: translateY(-2px); color: var(--gold-pale); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }
.btn.secondary {
  background: var(--white);
  color: var(--red-deep);
  border-color: var(--red);
}

/* ---------- Petition & testimony walls ---------- */

.wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.2rem;
  margin: 1.8rem 0;
}

.wall-card {
  background: var(--white);
  border: 1px solid var(--parchment-dark);
  border-top: 5px solid var(--red);
  border-radius: 10px;
  padding: 1.3rem 1.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.wall-card .who {
  font-family: 'Cinzel', serif;
  color: var(--red-deep);
  font-size: 1.05rem;
  margin-bottom: 0.15rem;
}
.wall-card .when {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-bottom: 0.7rem;
}
.wall-card .text {
  font-size: 1.08rem;
  flex-grow: 1;
  white-space: pre-wrap;
}
.wall-card .card-actions {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.pray-btn {
  background: var(--gold-pale);
  border: 2px solid var(--gold);
  color: var(--red-deep);
  border-radius: 24px;
  padding: 0.45rem 1.1rem;
  font-size: 1.02rem;
  font-family: Georgia, serif;
  cursor: pointer;
}
.pray-btn:hover:not(:disabled) { background: var(--gold-light); }
.pray-btn:disabled { opacity: 0.6; cursor: default; }
.pray-count { font-size: 1rem; color: var(--ink-soft); }

.empty-state {
  text-align: center;
  background: var(--white);
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 2.4rem 1.6rem;
  margin: 1.8rem 0;
  color: var(--ink-soft);
}
.empty-state .big { font-size: 2.4rem; display: block; margin-bottom: 0.6rem; }
.empty-state p { font-size: 1.12rem; max-width: 560px; margin-left: auto; margin-right: auto; }

.featured-testimony {
  background: linear-gradient(180deg, #fffdf7, var(--gold-pale));
  border: 3px solid var(--gold);
  border-radius: 14px;
  padding: 2rem 1.8rem;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  text-align: center;
}
.featured-testimony h2 { margin-top: 0; }
.featured-testimony .placeholder-note {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Virtual chapel ---------- */

.chapel-intro {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.6rem;
  align-items: center;
  margin: 1.6rem 0 2rem;
}
.chapel-intro img {
  border-radius: 12px;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow);
}

.candle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1.6rem 1rem;
  margin: 2rem 0;
  padding: 2rem 1rem;
  background: radial-gradient(ellipse at center, #2a1410 0%, #170b08 75%);
  border-radius: 14px;
  border: 2px solid var(--gold);
}

.candle {
  text-align: center;
  color: #f3e6cc;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.candle .flame-wrap { height: 64px; display: flex; align-items: flex-end; justify-content: center; }

.flame {
  width: 26px;
  height: 52px;
  background: radial-gradient(ellipse at 50% 75%, #fff6c8 0%, #ffd23e 30%, #ff9a1f 60%, #e2571b 82%, rgba(226,87,27,0) 100%);
  border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%;
  transform-origin: 50% 100%;
  animation: flicker 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 14px rgba(255, 180, 60, 0.85));
}
.flame::after {
  content: "";
  display: block;
  width: 10px;
  height: 22px;
  margin: 20px auto 0;
  background: radial-gradient(ellipse at center, #ffffff 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}

@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(-1.5deg); }
  25% { transform: scale(1.06, 0.94) rotate(2deg); }
  50% { transform: scale(0.95, 1.05) rotate(-2.5deg); }
  75% { transform: scale(1.03, 0.97) rotate(1deg); }
}

.candle .wick {
  width: 4px;
  height: 10px;
  background: #2b1a10;
  margin: 0 auto;
}

.candle .wax {
  width: 54px;
  margin: 0 auto;
  background: linear-gradient(90deg, #b8323f 0%, #e0575f 35%, #f2837f 50%, #e0575f 65%, #b8323f 100%);
  border-radius: 7px 7px 4px 4px;
  min-height: 14px;
  transition: height 1s linear;
  box-shadow: inset -6px 0 10px rgba(0,0,0,0.18);
}

.candle .dish {
  width: 76px;
  height: 12px;
  margin: 0 auto;
  background: radial-gradient(ellipse at center, var(--gold-light) 0%, #8a6d1f 70%);
  border-radius: 50%;
}

.candle .candle-label {
  margin-top: 0.7rem;
  font-size: 0.98rem;
  line-height: 1.45;
  color: #f3e6cc;
}
.candle .candle-label .cname { font-weight: bold; color: var(--gold-light); display: block; }
.candle .candle-label .cintent { font-style: italic; font-size: 0.92rem; display: block; }
.candle .candle-label .ctime { font-size: 0.85rem; color: #c9b48a; display: block; margin-top: 0.2rem; }

.candle.burned-out .flame { display: none; }
.candle.burned-out .wax { background: linear-gradient(90deg, #6d6d6d 0%, #9a9a9a 50%, #6d6d6d 100%); }
.candle.burned-out .candle-label .ctime { color: #9db38a; }

/* ---------- Donate ---------- */

.donate-box {
  background: var(--white);
  border: 2px solid var(--gold);
  border-radius: 12px;
  padding: 1.8rem 1.6rem;
  margin: 1.8rem 0;
  box-shadow: var(--shadow);
}
.donate-box ul { font-size: 1.08rem; }
.donate-box li { margin-bottom: 0.5rem; }

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

.site-footer {
  background: var(--red-deep);
  color: #e9d9b8;
  text-align: center;
  padding: 2rem 1.25rem;
  border-top: 4px solid var(--gold);
  font-size: 1.02rem;
}
.site-footer .footer-brand {
  font-family: 'Cinzel', serif;
  color: var(--gold-light);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}
.site-footer nav { margin: 0.8rem 0; }
.site-footer nav a { color: #f3e6cc; margin: 0 0.55rem; text-decoration: none; font-size: 1rem; }
.site-footer nav a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer .fine { font-size: 0.92rem; color: #c9b48a; font-style: italic; margin-top: 0.8rem; }

/* ---------- Responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 18px; }
  h1 { font-size: 1.9rem; }
  .hero-overlay h1 { font-size: 2.1rem; }
  .hero-overlay .subtitle { font-size: 1rem; letter-spacing: 0.18em; }
  .chapel-intro { grid-template-columns: 1fr; text-align: center; }
  .chapel-intro img { max-width: 220px; margin: 0 auto; }
  .main-nav a { font-size: 0.98rem; padding: 0.4rem 0.6rem; }
  .prayer-block { padding: 1.3rem 1.1rem; }
}
