/* Christian in Action — site styles */

:root {
  --paper: #fbf8f3;
  --surface: #ffffff;
  --ink: #241c17;
  --muted: #5f544b;
  --line: #e8dfd3;
  --red: #9b1c1f;
  --red-dark: #7a1416;
  --red-soft: #f7ebe7;
  --night: #221a16;
  --night-2: #2f2520;
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.7 var(--sans);
}

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

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1.1em; }

:focus-visible { outline: 3px solid #d9822b; outline-offset: 2px; }

[id] { scroll-margin-top: 130px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.4em;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline:hover { background: var(--red); color: #fff; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 0;
}
.brand img { height: 52px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-actions .btn { padding: .6em 1.1em; font-size: .95rem; }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  background: none; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 12px; font: 600 .95rem var(--sans); color: var(--ink); cursor: pointer;
}
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -6px; }
.menu-toggle .bars::after { top: 6px; }

.site-nav { border-top: 1px solid var(--line); }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px;
}
.site-nav a {
  display: block; padding: 10px 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); border-bottom-color: var(--red); }

@media (max-width: 900px) {
  .brand img { height: 42px; }
  .menu-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 6px 0 14px; }
  .site-nav a { border-bottom: 0; border-left: 3px solid transparent; padding: 12px 14px; }
  .site-nav a[aria-current="page"] { border-left-color: var(--red); background: var(--red-soft); }
  .site-nav .nav-cta { display: block; padding: 8px 14px 0; }
  .site-nav .nav-cta .btn { width: 100%; }
}
@media (min-width: 901px) { .site-nav .nav-cta { display: none; } }

/* Home hero */
.hero {
  position: relative;
  color: #fff;
  background: var(--night) center / cover no-repeat;
  min-height: min(78vh, 640px);
  display: flex; align-items: center;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(24,16,12,.86) 0%, rgba(24,16,12,.6) 45%, rgba(24,16,12,.2) 100%);
}
.hero .wrap { position: relative; padding: 72px 0; }
.hero-copy { max-width: 620px; }
.eyebrow {
  display: inline-block;
  font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: #f3c6bd;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: .4em; }
.hero p { font-size: 1.22rem; color: #f4ede6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Inner page header */
.page-hero {
  position: relative;
  color: #fff;
  background: var(--night-2) center / cover no-repeat;
  padding: 72px 0 64px;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(24,16,12,.55), rgba(24,16,12,.78));
}
.page-hero.plain { background: linear-gradient(135deg, var(--red-dark), var(--night) 70%); }
.page-hero.plain::before { display: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { margin: 0; font-size: 1.2rem; color: #f1e7df; max-width: 640px; }

/* Sections */
.section { padding: 72px 0; }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { color: var(--muted); }
.kicker {
  font: 700 .8rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px; display: block;
}

.welcome-grid {
  display: grid; gap: 40px;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } }

.signature { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--red); margin-top: 8px; }

.need-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 30px rgba(60,30,20,.06);
}
.need-card h3 { margin-bottom: .4em; }
.need-card ul { margin: 0 0 20px; padding: 0; list-style: none; }
.need-card li { padding: 8px 0 8px 28px; border-bottom: 1px dashed var(--line); position: relative; }
.need-card li:last-child { border-bottom: 0; }
.need-card li::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px;
  background:
    linear-gradient(var(--red), var(--red)) center / 3px 12px no-repeat,
    linear-gradient(var(--red), var(--red)) center 3px / 10px 3px no-repeat;
}
.need-card .btn { width: 100%; }

.crisis {
  margin-top: 18px; padding: 14px 16px;
  background: var(--red-soft); border-radius: 10px;
  font-size: .98rem; line-height: 1.5;
}
.crisis strong { color: var(--red-dark); }

/* Cards */
.card-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
  text-decoration: none; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60,30,20,.1); border-color: #d9c7b6; color: var(--ink); }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); font-size: 1.02rem; margin-bottom: 1em; flex: 1; }
.card .more { color: var(--red); font-weight: 700; font-size: .98rem; }

/* Beliefs */
.beliefs { display: grid; gap: 12px; max-width: 860px; }
.beliefs details {
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 0 22px;
}
.beliefs summary {
  cursor: pointer; list-style: none;
  padding: 18px 0;
  font: 600 1.15rem/1.35 var(--serif);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.beliefs summary::-webkit-details-marker { display: none; }
.beliefs summary::after { content: "+"; font: 400 1.6rem/1 var(--sans); color: var(--red); }
.beliefs details[open] summary::after { content: "–"; }
.beliefs details > div { padding-bottom: 8px; }
.beliefs h4 { font-size: 1.05rem; margin: 1em 0 .3em; }

/* Article / prose */
.content { padding: 64px 0 72px; }
.prose { max-width: 720px; }
.prose.center { margin-inline: auto; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose .float-right { float: right; width: min(42%, 260px); margin: 6px 0 16px 28px; border-radius: var(--radius); }
@media (max-width: 600px) { .prose .float-right { float: none; width: 100%; margin: 0 0 20px; } }
.lead { font-size: 1.28rem; color: var(--muted); }

.scripture {
  margin: 1.4em 0;
  padding: 18px 22px;
  background: var(--red-soft);
  border-left: 4px solid var(--red);
  border-radius: 0 12px 12px 0;
  font-family: var(--serif); font-style: italic; font-size: 1.12rem;
}
.scripture cite { display: block; margin-top: 8px; font: 700 .9rem var(--sans); font-style: normal; color: var(--red-dark); }

.prayer-box {
  margin: 2.2em 0;
  padding: 36px clamp(22px, 5vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(60,30,20,.08);
  font-family: var(--serif); font-size: 1.22rem; line-height: 1.75;
}
.prayer-box h2 { font-size: 1.5rem; margin-top: 0; }
.prayer-box p:last-child { margin-bottom: 0; }

.note {
  padding: 16px 20px; border-radius: 12px; background: #fff7e6; border: 1px solid #f0dcb0;
  font-size: 1.02rem;
}

/* Numbered lists that look nice */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li {
  counter-increment: step;
  position: relative; padding: 18px 20px 18px 70px !important; margin-bottom: 12px !important;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: 18px; top: 16px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--red); color: #fff;
  font: 700 1rem/36px var(--sans); text-align: center;
}

.qa { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.qa h2 { font-size: 1.45rem; margin-top: 0; }
.qa h2 .num { color: var(--red); margin-right: .35em; }

/* Post meta */
.post-meta { color: #f1e7df; font-size: 1rem; margin-top: 10px !important; }
.post-list { display: grid; gap: 24px; max-width: 860px; }
.post-card {
  display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
}
.post-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.post-card div { padding: 20px 24px 20px 0; }
.post-card time { color: var(--muted); font-size: .95rem; }
.post-card h2 { font-size: 1.35rem; margin: .2em 0 .4em; }
.post-card p { color: var(--muted); margin: 0; }
@media (max-width: 640px) {
  .post-card { grid-template-columns: 1fr; gap: 0; }
  .post-card div { padding: 20px; }
}

/* Prayer request call to action */
.cta {
  background: var(--night);
  color: #f1e7df;
  padding: 64px 0;
}
.cta .wrap { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; max-width: 620px; }

/* Form */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: 0 14px 34px rgba(60,30,20,.06);
}
.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 700; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: .95rem; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 1.05rem;
  color: var(--ink); background: #fff;
  border: 1px solid #cdbfb0; border-radius: 10px;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(155,28,31,.25); border-color: var(--red); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.check input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--red); }
.req { color: var(--red); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error {
  display: none;
  padding: 14px 18px; margin-bottom: 22px; border-radius: 10px;
  background: #fde8e8; border: 1px solid #f3b9b9; color: #7a1416; font-weight: 600;
}
.form-error.show { display: block; }
.privacy { color: var(--muted); font-size: .95rem; margin-top: 14px; }

.two-col { display: grid; gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: #17110e; color: #cbbfb5; padding: 56px 0 28px; font-size: 1rem; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #e9ddd3; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-name { font: 600 1.4rem var(--serif); color: #fff; margin-bottom: .3em; }
.footer-bottom { border-top: 1px solid #2f2520; margin-top: 40px; padding-top: 20px; font-size: .92rem; color: #9d9088; }
