/* Rediscovering Church — Jubilee Trust branded microsite */
:root {
  --burgundy: #8B1B1B;
  --burgundy-dark: #6E1516;
  --navy: #0F2847;
  --navy-light: #1A3A5C;
  --blue: #2B5D8E;
  --cream: #FAF8F5;
  --gold: #C5963A;
  --white: #FFFFFF;
  --grey-100: #F5F5F5;
  --grey-200: #E8E8E8;
  --grey-300: #D0D0D0;
  --grey-500: #888888;
  --grey-700: #4A4A4A;
  --ink: #1A1A1A;
  --ink-soft: #5A6B82;
  --radius: 12px;
  --wrap: 1120px;
  --transition: .25s ease;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  font-family: 'Source Sans 3', 'Source Sans Pro', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--burgundy); transition: color var(--transition); }
a:hover { color: var(--burgundy-dark); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--grey-200);
}
.nav-bar { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 18px; }
.brand-logo { height: 32px; width: auto; }
.brand span small { display: block; font-weight: 500; font-size: 10.5px; color: var(--grey-500); letter-spacing: .12em; text-transform: uppercase; }
.nav-links { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--navy); text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 2px; border-bottom: 2px solid transparent; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { border-bottom-color: var(--burgundy); color: var(--burgundy); }
.nav-cta { background: var(--burgundy) !important; color: var(--white) !important; padding: 10px 22px !important; border-radius: 999px; border: none !important; }
.nav-cta:hover { background: var(--burgundy-dark) !important; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--grey-200); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; color: var(--navy); }
@media (max-width: 860px) {
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--grey-200); flex-direction: column; align-items: stretch; padding: 12px 24px 20px; gap: 6px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 4px; }
  .menu-btn { display: block; }
}

/* ---------- Typography ---------- */
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--burgundy); margin-bottom: 14px; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; line-height: 1.15; color: var(--navy); }
h1 { font-size: clamp(36px, 5.5vw, 64px); font-weight: 700; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 600; margin-bottom: 18px; }
h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
h4 { font-family: 'Source Sans 3', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }
section { padding: 80px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* Scripture */
.scripture {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: clamp(19px, 2.2vw, 25px); line-height: 1.65; color: var(--navy);
  border-left: 4px solid var(--burgundy); padding: 6px 0 6px 28px; max-width: 66ch;
}
.scripture .ref { display: block; margin-top: 14px; font-style: normal; font-family: 'Source Sans 3', sans-serif;
  font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--grey-500); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 14px 28px; border-radius: 999px; border: 2px solid var(--burgundy); transition: all var(--transition); font-family: 'Source Sans 3', sans-serif; }
.btn-solid { background: var(--burgundy); color: var(--white); border-color: var(--burgundy); }
.btn-solid:hover { background: var(--burgundy-dark); border-color: var(--burgundy-dark); color: var(--white); }
.btn-ghost { color: var(--burgundy); background: transparent; }
.btn-ghost:hover { background: var(--burgundy); color: var(--white); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); border-color: var(--navy-light); color: var(--white); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* On dark backgrounds */
.on-dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,.6); }
.on-dark .btn-ghost:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); transition: box-shadow var(--transition); }
.card:hover { box-shadow: var(--shadow-md); }
.card p { color: var(--ink-soft); font-size: 15.5px; }
.card ul { margin: 12px 0 0 18px; color: var(--ink-soft); font-size: 15.5px; }
.card li { margin-bottom: 5px; }

/* Accent cards */
.quarter { border-top: 4px solid var(--navy); position: relative; }
.q-burgundy { border-top-color: var(--burgundy); }
.q-blue { border-top-color: var(--blue); }
.q-navy { border-top-color: var(--navy); }
.q-gold { border-top-color: var(--gold); }
.q-link { font-weight: 700; font-size: 15px; text-decoration: none; display: inline-block; margin-top: 14px; }

/* Cream section */
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy strong { color: var(--white); }
.section--navy .card h3,
.section--navy .card strong { color: var(--navy) !important; }
.section--navy .eyebrow { color: var(--gold); }
.section--navy .lead { color: rgba(255,255,255,.85); }
.section--navy .card { color: var(--ink); }
.section--navy .card p { color: var(--ink-soft); }

/* ---------- Numbered Elements ---------- */
.element { display: grid; grid-template-columns: 64px 1fr; gap: 22px; padding: 32px 0; border-top: 1px solid var(--grey-200); }
.element:last-child { border-bottom: 1px solid var(--grey-200); }
.el-num { font-family: 'Cormorant Garamond', serif; font-size: 38px; font-weight: 600; color: var(--burgundy); line-height: 1; }
.element h3 { margin-bottom: 4px; }
.el-verse { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 10px; }
.el-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 16px; }
@media (max-width: 760px) { .el-cols { grid-template-columns: 1fr; } .element { grid-template-columns: 44px 1fr; } }
.el-cols h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--grey-500); margin-bottom: 8px; }
.el-cols ul { margin-left: 18px; color: var(--ink-soft); font-size: 15.5px; }
.el-cols li { margin-bottom: 4px; }

/* ---------- Hero ---------- */
.cover-hero {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
  padding: 80px 0 0;
}
.cover-hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--blue) 100%);
  opacity: .9;
}
.cover-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-bottom: 80px; }
@media (max-width: 900px) { .cover-inner { grid-template-columns: 1fr; text-align: center; padding-bottom: 56px; } }
.cover-hero .eyebrow { color: var(--gold); }
.cover-title { font-weight: 700; line-height: 1.05; }
.cover-title .r1 { display: block; font-size: clamp(22px, 4vw, 48px); font-weight: 500; color: rgba(255,255,255,.7); }
.cover-title .r2 { display: block; font-size: clamp(36px, 9vw, 110px); font-weight: 700; color: var(--white); }
.cover-sub { font-size: clamp(18px, 2vw, 24px); color: rgba(255,255,255,.85); font-weight: 400; margin-top: 14px; max-width: 24ch; font-family: 'Cormorant Garamond', serif; }
@media (max-width: 900px) { .cover-sub { margin-left: auto; margin-right: auto; } }
.cover-hero .lead { color: rgba(255,255,255,.85); margin-top: 22px; max-width: 52ch; }
@media (max-width: 900px) { .cover-hero .lead { margin-left: auto; margin-right: auto; } }
.cover-book { justify-self: center; position: relative; z-index: 2; width: 100%; }
.cover-book figure { background: var(--white); padding: 14px; border-radius: var(--radius); box-shadow: 0 24px 54px rgba(0,0,0,.3); }
.cover-book img { border-radius: 6px; width: 100%; display: block; }
.cover-accent { position: relative; z-index: 2; height: 6px; background: var(--burgundy); }

/* ---------- Page Banner ---------- */
.page-banner {
  background: var(--navy); color: var(--white); position: relative; overflow: hidden;
  padding: 80px 0 64px;
}
.page-banner::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  opacity: .6;
}
.page-banner .wrap { position: relative; z-index: 2; }
.page-banner h1 { color: var(--white); }
.page-banner .lead { color: rgba(255,255,255,.85); }
.page-banner .eyebrow { color: var(--gold); }

/* ---------- Book Strip ---------- */
.book-strip { background: var(--white); border-top: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200); }
.book-grid { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
@media (max-width: 760px) { .book-grid { grid-template-columns: 1fr; } }
.book-frame img { border-radius: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); padding: 56px 0 40px; font-size: 15px; }
.site-footer .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .site-footer .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--white); margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.65); text-decoration: none; display: block; padding: 3px 0; transition: color var(--transition); }
.site-footer a:hover { color: var(--gold); }
.foot-verse { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: rgba(255,255,255,.8); max-width: 44ch; line-height: 1.6; }
.copyright { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 22px; font-size: 13px; color: rgba(255,255,255,.4); }
.copyright a { display: inline; color: rgba(255,255,255,.5); }
.copyright a:hover { color: var(--gold); }

/* ---------- Misc ---------- */
.pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; border: 1px solid var(--grey-200); color: var(--grey-500); margin-bottom: 14px; }
.section--navy .pill { border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.8); }

/* ---------- Fade in animation ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.fade-in { opacity: 0; animation: fadeUp .6s ease forwards; }

/* ---------- Card Icons ---------- */
.card__icon {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--cream); border-radius: 8px; color: var(--burgundy); flex-shrink: 0;
}
.section--navy .card__icon { background: var(--cream); color: var(--burgundy); }

/* Compact cards — icon beside heading */
.card--compact { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.card--compact h3 { font-size: 17px; margin-bottom: 0; }
.card--compact p { font-size: 14.5px; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .cover-hero { padding: 48px 0 0; }
  .cover-inner { padding-bottom: 40px; gap: 32px; }
  .cover-sub { max-width: none; }
  .cover-hero .lead { max-width: none; }
  .btn-row { justify-content: center; }
  .cover-book figure { max-width: 320px; margin: 0 auto; }
}
@media (max-width: 640px) {
  section { padding: 56px 0; }
  .page-banner { padding: 56px 0 44px; }
  .page-banner h1 { font-size: 28px; }
  h1 { font-size: 28px; }
  h2 { font-size: 24px; }
  .lead { font-size: 16px; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { text-align: center; }
  .book-grid { gap: 28px; }
  .book-frame { max-width: 220px; margin: 0 auto; }
  .cover-inner { overflow: hidden; }
}