/* ============================================
   Healing Scriptures — Stylesheet
   Palette: #Fb7F33 (orange), #252525 (charcoal), #009FB7 (teal)
   ============================================ */

:root {
  --orange: #Fb7F33;
  --charcoal: #252525;
  --teal: #009FB7;
  --orange-dark: #e2691f;
  --teal-dark: #007d90;
  --cream: #fffaf5;
  --white: #ffffff;
  --gray: #f2efec;
  --shadow: 0 4px 20px rgba(37, 37, 37, 0.10);
  --radius: 14px;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 1.05rem;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 20px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Logo bar ---------- */
.logo-bar {
  background: var(--white);
  text-align: center;
  padding: 1.4rem 1.5rem;
  border-bottom: 4px solid var(--orange);
}
.site-logo {
  max-width: 340px;
  width: 70%;
  height: auto;
}
@media (max-width: 600px) {
  .site-logo { width: 85%; max-width: 300px; }
  .logo-bar { padding: 1rem; }
}

/* ---------- Header ---------- */
header.hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 4rem 1.5rem 3.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
header.hero::after {
  content: "";
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 6px;
  background: var(--orange);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.hero p {
  font-size: clamp(1rem, 2.4vw, 1.3rem);
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.95;
  font-style: italic;
}
.hero .badge {
  display: inline-block;
  margin-top: 1.4rem;
  background: var(--orange);
  color: var(--charcoal);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  padding: 0.5rem 1.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
}

/* ---------- Sticky nav ---------- */
nav.topnav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}
nav.topnav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.5rem 1rem;
}
nav.topnav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
nav.topnav a:hover,
nav.topnav a:focus {
  background: var(--orange);
  color: var(--charcoal);
  outline: none;
}

/* ---------- Search box ---------- */
.search-wrap {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 3px solid var(--teal);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  box-shadow: var(--shadow);
}
.search-box svg { flex-shrink: 0; }
#searchInput {
  border: none;
  outline: none;
  flex: 1;
  font-size: 1.05rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding: 0.7rem 0.8rem;
  background: transparent;
  color: var(--charcoal);
}
#searchInput::placeholder { color: #8a8a8a; }
.search-note {
  text-align: center;
  font-size: 0.85rem;
  color: #777;
  margin-top: 0.6rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
#noResults {
  display: none;
  text-align: center;
  color: var(--orange-dark);
  font-weight: 700;
  padding: 2rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Main / sections ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}
section {
  margin-bottom: 3rem;
  scroll-margin-top: 80px;
}
h2.section-title {
  color: var(--teal-dark);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  border-bottom: 4px solid var(--orange);
  padding-bottom: 0.5rem;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
h2.section-title .num {
  background: var(--orange);
  color: var(--charcoal);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  width: 2rem; height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.section-intro {
  background: var(--gray);
  border-left: 6px solid var(--teal);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.6rem;
  font-style: italic;
}

/* ---------- Miracle / list cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.mini-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow);
  border-top: 5px solid var(--orange);
  transition: transform 0.18s, box-shadow 0.18s;
}
.mini-card:hover { transform: translateY(-4px); box-shadow: 0 8px 26px rgba(0,159,183,0.22); }
.mini-card strong { color: var(--teal-dark); display: block; margin-bottom: 0.2rem; }
.mini-card span.ref {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--orange-dark);
  font-weight: 700;
}

/* ---------- Scripture cards ---------- */
.scripture-list { display: flex; flex-direction: column; gap: 1.1rem; }
.scripture {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--teal);
  transition: transform 0.18s, border-color 0.18s;
}
.scripture:hover { transform: translateX(4px); border-left-color: var(--orange); }
.scripture .ref {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 1.05rem;
  letter-spacing: 0.3px;
}
.scripture .verse {
  font-style: italic;
  font-size: 1.12rem;
  margin: 0.5rem 0 0.7rem;
  color: var(--charcoal);
}
.scripture .theme {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
  color: #555;
}
.scripture .theme strong { color: var(--orange-dark); }

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.stat {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat .big {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}
.stat .lbl { font-size: 0.9rem; opacity: 0.95; }

/* ---------- Theme timeline ---------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; }
.timeline::before {
  content:""; position:absolute; left: 8px; top: 0; bottom: 0;
  width: 4px; background: var(--teal); border-radius: 4px;
}
.timeline li {
  position: relative;
  margin-bottom: 1.2rem;
  background: var(--white);
  padding: 1rem 1.3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.timeline li::before {
  content:""; position:absolute; left: -1.75rem; top: 1.3rem;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--cream);
}
.timeline li strong { color: var(--teal-dark); }

/* ---------- Back to top ---------- */
#backTop {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  background: var(--orange);
  color: var(--charcoal);
  border: none;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  transition: background 0.2s, transform 0.2s;
}
#backTop:hover, #backTop:focus { background: var(--teal); color: #fff; transform: scale(1.08); outline: none; }

/* ---------- Focus visibility (accessibility) ---------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Footer ---------- */
footer {
  background: var(--charcoal);
  color: #ddd;
  text-align: center;
  padding: 2.5rem 1.5rem;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 0.9rem;
}
footer .verse-foot {
  font-family: 'Georgia', serif;
  font-style: italic;
  color: var(--orange);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 1rem;
}
footer a { color: var(--teal); }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  header.hero { padding: 2.6rem 1rem 2.4rem; }
  .scripture { padding: 1.1rem 1.1rem; }
  main { padding: 1.6rem 1rem 3rem; }
}

/* ---------- Print friendly ---------- */
@media print {
  nav.topnav, .search-wrap, #backTop { display: none !important; }
  body { background: #fff; }
  .scripture, .mini-card, .timeline li { box-shadow: none; border-color: #999; }
}
