/* ============================================================
   RED LETTER HOUSE — Site Styles
   ============================================================ */

:root {
  --red: #a51d20;
  --red-deep: #7a1517;
  --red-soft: #c93a3d;
  --ink: #1a1a1a;
  --charcoal: #2d2d2d;
  --slate: #4a4a4a;
  --stone: #6b6b6b;
  --bone: #f5f1ec;
  --paper: #faf7f2;
  --white: #ffffff;
  --gold: #d4a847;
  --blue: #2b6cb0;
  --green: #2f7a3e;

  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Cormorant Garamond', Georgia, serif;

  --container: 1180px;
  --container-narrow: 880px;

  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-deep: 0 20px 60px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

.section-tight {
  padding: 70px 0;
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .section-tight { padding: 50px 0; }
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 52px;
  width: auto;
}

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

.nav-links a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
}

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

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-soft);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-links a {
    font-size: 1.05rem;
  }
  .nav-cta {
    margin-top: 6px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-deep);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(165, 29, 32, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
}

.btn-ghost {
  background: transparent;
  color: var(--red);
  padding: 10px 0;
  border-bottom: 1.5px solid var(--red);
  border-radius: 0;
}

.btn-ghost:hover {
  color: var(--red-deep);
  border-color: var(--red-deep);
}

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

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(15, 15, 15, 0.92) 0%,
    rgba(15, 15, 15, 0.7) 50%,
    rgba(15, 15, 15, 0.4) 100%
  );
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 28px;
}

.hero-eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--red-soft);
}

.hero h1 {
  color: var(--paper);
  max-width: 18ch;
  margin-bottom: 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--red-soft);
  font-weight: 500;
}

.hero-lede {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 55ch;
  color: rgba(245, 241, 236, 0.88);
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta .btn-outline {
  color: var(--paper);
  border-color: var(--paper);
}

.hero-cta .btn-outline:hover {
  background: var(--paper);
  color: var(--ink);
}

.hero-scripture {
  position: absolute;
  bottom: 30px;
  right: 30px;
  z-index: 3;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(245, 241, 236, 0.65);
  text-align: right;
  max-width: 280px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .hero-scripture { display: none; }
  .hero { min-height: 70vh; }
}

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

.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--red);
}

.page-header h1 {
  color: var(--paper);
  margin-bottom: 18px;
}

.page-header-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 20px;
}

.page-header p {
  font-size: 1.15rem;
  color: rgba(245, 241, 236, 0.85);
  max-width: 60ch;
}

/* ============================================================
   PILLAR CARDS (CASA)
   ============================================================ */

.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  margin-top: 60px;
}

.pillar {
  background: var(--white);
  padding: 40px 32px;
  border-radius: 2px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--red);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar:nth-child(2) { border-top-color: var(--gold); }
.pillar:nth-child(3) { border-top-color: var(--blue); }
.pillar:nth-child(4) { border-top-color: var(--green); }

.pillar:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-deep);
}

.pillar-letter {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--red);
  margin-bottom: 16px;
}

.pillar:nth-child(2) .pillar-letter { color: var(--gold); }
.pillar:nth-child(3) .pillar-letter { color: var(--blue); }
.pillar:nth-child(4) .pillar-letter { color: var(--green); }

.pillar h3 {
  font-size: 1.6rem;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}

.pillar p {
  color: var(--slate);
  font-size: 0.98rem;
  line-height: 1.65;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */

.section-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 24px;
  max-width: 24ch;
}

.section-intro {
  font-size: 1.15rem;
  color: var(--slate);
  max-width: 60ch;
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 50px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-title,
.section-header.centered .section-intro {
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   SPLIT IMAGE/TEXT
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split.reverse {
  direction: rtl;
}

.split.reverse > * {
  direction: ltr;
}

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  border-radius: 2px;
  box-shadow: var(--shadow-deep);
}

.split-image::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--red);
  z-index: -1;
  border-radius: 2px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .split.reverse { direction: ltr; }
  .split-image::before { display: none; }
}

/* ============================================================
   ELIGIBILITY / SERVE LISTS
   ============================================================ */

.serve-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.serve-card {
  background: var(--bone);
  padding: 32px 28px;
  border-left: 3px solid var(--red);
}

.serve-card h4 {
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 10px;
}

.serve-card p {
  color: var(--charcoal);
  font-size: 1rem;
}

.checklist {
  list-style: none;
  margin-top: 28px;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 1.05rem;
  color: var(--charcoal);
}

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

.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  background: var(--red);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ============================================================
   QUOTE / SCRIPTURE BLOCK
   ============================================================ */

.quote-block {
  background: var(--ink);
  color: var(--paper);
  padding: 90px 40px;
  text-align: center;
  position: relative;
}

.quote-block::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 8rem;
  color: var(--red);
  line-height: 1;
  opacity: 0.6;
}

.quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.5;
  max-width: 60ch;
  margin: 0 auto 24px;
  color: var(--paper);
}

.quote-attr {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-soft);
}

/* ============================================================
   CTA BANNER
   ============================================================ */

.cta-banner {
  background: var(--red);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 20px;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner p {
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 0 auto 36px;
  color: rgba(255, 255, 255, 0.92);
}

.cta-banner .btn {
  background: var(--white);
  color: var(--red);
}

.cta-banner .btn:hover {
  background: var(--ink);
  color: var(--white);
}

/* ============================================================
   APPLY PAGE
   ============================================================ */

.apply-card {
  background: var(--white);
  padding: 60px 50px;
  box-shadow: var(--shadow-deep);
  border-top: 6px solid var(--red);
  margin-top: 60px;
  text-align: center;
}

.apply-card h2 {
  margin-bottom: 16px;
}

.apply-card .pdf-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.apply-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin: 50px 0;
  text-align: left;
}

.apply-step {
  position: relative;
  padding-left: 60px;
}

.apply-step-number {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--red);
  line-height: 0.9;
}

.apply-step h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.apply-step p {
  font-size: 0.95rem;
  color: var(--slate);
}

@media (max-width: 768px) {
  .apply-card { padding: 40px 28px; }
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  margin-top: 60px;
}

@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  background: var(--ink);
  color: var(--paper);
  padding: 50px 40px;
}

.contact-info h3 {
  color: var(--paper);
  margin-bottom: 30px;
  font-size: 1.6rem;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  align-items: flex-start;
}

.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.contact-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 4px;
}

.contact-value {
  color: var(--paper);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-value a {
  color: var(--paper);
  border-bottom: 1px solid rgba(245, 241, 236, 0.3);
}

.contact-value a:hover {
  color: var(--red-soft);
  border-color: var(--red-soft);
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* ============================================================
   FOUNDER QUOTE
   ============================================================ */

.founder-quote {
  background: var(--bone);
  padding: 60px 50px;
  border-left: 6px solid var(--red);
  margin: 40px 0;
}

.founder-quote-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 20px;
}

.founder-quote-attr {
  font-family: var(--sans);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
}

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

.footer {
  background: var(--ink);
  color: rgba(245, 241, 236, 0.7);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

.footer-brand img {
  height: 60px;
  background: var(--paper);
  padding: 8px 12px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.footer-brand p {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 36ch;
}

.footer-col h5 {
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

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

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(245, 241, 236, 0.7);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--red-soft);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(245, 241, 236, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--red-soft);
}

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

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

.fade-up {
  animation: fadeUp 0.8s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.15s; opacity: 0; }
.fade-up-delay-2 { animation-delay: 0.3s; opacity: 0; }
.fade-up-delay-3 { animation-delay: 0.45s; opacity: 0; }

/* ============================================================
   UTILITIES
   ============================================================ */

.text-center { text-align: center; }
.mt-large { margin-top: 60px; }
.bg-bone { background: var(--bone); }
.bg-paper { background: var(--paper); }
.bg-ink { background: var(--ink); color: var(--paper); }

.divider-red {
  width: 60px;
  height: 3px;
  background: var(--red);
  margin: 0 auto 30px;
}

.divider-red.left {
  margin-left: 0;
}

/* ============================================================
   PDF DOWNLOAD CARDS (below apply form, like Serenity Bridge)
   ============================================================ */

.pdf-downloads {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 700px) {
  .pdf-downloads { grid-template-columns: 1fr; }
}

.pdf-card {
  background: var(--white);
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--red);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(0, 0, 0, 0.12);
}

.pdf-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--bone);
  border-radius: 50%;
  color: var(--red);
  margin-bottom: 18px;
}

.pdf-card-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.pdf-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.pdf-card p {
  font-size: 0.95rem;
  color: var(--slate);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pdf-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pdf-card-actions .btn {
  flex: 1;
  padding: 12px 18px;
  font-size: 0.82rem;
  min-width: 130px;
  white-space: nowrap;
}

.pdf-card-actions .btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid rgba(0, 0, 0, 0.2);
}

.pdf-card-actions .btn-outline:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

/* ============================================================
   ORIGIN CARD (About page scripture block)
   ============================================================ */

.origin-card {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--ink);
  color: var(--paper);
  padding: 50px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-deep);
  border-radius: 2px;
}

.origin-card::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 24px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--red);
  z-index: -1;
  border-radius: 2px;
}

.origin-card-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(165, 29, 32, 0.18), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(165, 29, 32, 0.12), transparent 45%);
  pointer-events: none;
}

.origin-card-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, 0.015) 2px,
      rgba(255, 255, 255, 0.015) 3px
    );
  pointer-events: none;
}

.origin-card-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.origin-card-mark {
  font-family: var(--serif);
  font-size: 8rem;
  font-weight: 700;
  line-height: 0.85;
  color: var(--red-soft);
  text-shadow: 0 2px 30px rgba(165, 29, 32, 0.4);
  margin-bottom: 8px;
  font-style: italic;
}

.origin-card-label {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--red-soft);
  margin-bottom: 28px;
}

.origin-card-divider {
  width: 50px;
  height: 1px;
  background: var(--red-soft);
  margin: 0 auto 32px;
  position: relative;
}

.origin-card-divider::before,
.origin-card-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4px;
  height: 4px;
  background: var(--red-soft);
  border-radius: 50%;
  transform: translateY(-50%);
}

.origin-card-divider::before { left: -10px; }
.origin-card-divider::after { right: -10px; }

.origin-card-verse {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.55;
  color: var(--paper);
  margin-bottom: 24px;
  max-width: 28ch;
  margin-left: auto;
  margin-right: auto;
}

.verse-red {
  color: var(--red-soft);
  font-weight: 500;
}

.origin-card-attr {
  font-family: var(--sans);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 241, 236, 0.6);
  font-weight: 600;
}

@media (max-width: 900px) {
  .origin-card {
    aspect-ratio: auto;
    padding: 50px 32px;
  }
  .origin-card::before { display: none; }
  .origin-card-mark { font-size: 6rem; }
  .origin-card-verse { font-size: 1.15rem; }
}

/* ============================================================
   APPLICATION FORM
   ============================================================ */

.app-form {
  background: var(--white);
  padding: 50px 50px 60px;
  box-shadow: var(--shadow-soft);
  border-top: 6px solid var(--red);
  margin-top: 40px;
}

@media (max-width: 768px) {
  .app-form { padding: 30px 22px 40px; }
}

.form-section {
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.form-section:last-of-type {
  border-bottom: none;
  margin-bottom: 28px;
}

.form-section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.form-section-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--red);
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.form-section-title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

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

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

@media (max-width: 700px) {
  .form-row,
  .form-row.three-col {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-group .req {
  color: var(--red);
  margin-left: 2px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: var(--white);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(165, 29, 32, 0.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 90px;
  font-family: var(--sans);
}

.form-help {
  font-size: 0.85rem;
  color: var(--stone);
  margin-top: 6px;
  font-style: italic;
}

.radio-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  border-radius: 2px;
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--white);
  transition: all 0.2s ease;
  flex: 1;
  min-width: 110px;
  justify-content: center;
}

.radio-label:hover {
  border-color: var(--red);
  color: var(--red);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-label.checked {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  font-weight: 600;
}

.faith-question {
  background: var(--bone);
  padding: 26px 28px;
  border-left: 4px solid var(--red);
  margin-bottom: 24px;
}

.faith-question .form-group label {
  font-size: 0.95rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.faith-question .form-help {
  margin-bottom: 14px;
  font-style: normal;
  color: var(--slate);
}

.form-submit-area {
  margin-top: 40px;
  text-align: center;
}

.form-submit-area .btn {
  min-width: 280px;
  padding: 18px 40px;
  font-size: 1rem;
}

.form-disclaimer {
  font-size: 0.88rem;
  color: var(--stone);
  margin-top: 18px;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* THANK YOU STATE */
.thank-you {
  text-align: center;
  padding: 60px 30px;
  display: none;
}

.thank-you.active {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

.thank-you-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 28px;
  background: var(--red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.thank-you h2 {
  margin-bottom: 18px;
}

.thank-you p {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 55ch;
  margin: 0 auto 18px;
}

/* Hide the form when thank-you is shown */
.app-form.submitted .form-section,
.app-form.submitted .form-submit-area {
  display: none;
}

.app-form.submitted .thank-you {
  display: block;
}

/* Error state */
.field-error input,
.field-error select,
.field-error textarea {
  border-color: var(--red) !important;
}

.field-error-msg {
  display: none;
  font-size: 0.85rem;
  color: var(--red);
  margin-top: 6px;
  font-weight: 500;
}

.field-error .field-error-msg {
  display: block;
}
