/* Variant 1 — Lumora editorial rail: warm light family-road layout */
:root {
  --page: #f4f0ea;
  --surface: #fffdf9;
  --surface-alt: #ebe4d9;
  --text: #1c1712;
  --muted: #6f655b;
  --accent: #c85a1f;
  --accent-alt: #2f6b52;
  --ink-soft: rgba(28, 23, 18, 0.12);
  --radius: 18px;
  --radius-pill: 999px;
  --section-space: clamp(4rem, 8vw, 7rem);
  --content-max: 1180px;
  --rail-width: clamp(220px, 22vw, 280px);
  --font-display: Georgia, "Times New Roman", Times, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 18px 48px rgba(28, 23, 18, 0.08);
  --shadow-card: 0 10px 30px rgba(28, 23, 18, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.65;
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
}

body.donor-layout-tripc86-top {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.92), rgba(244, 240, 234, 0.98)),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 42px,
      rgba(200, 90, 31, 0.035) 42px,
      rgba(200, 90, 31, 0.035) 43px
    );
  color: var(--text);
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg,
video,
canvas,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.35rem, 5.8vw, 4.6rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.85rem, 3.8vw, 3.1rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

p {
  color: var(--muted);
}

.page-frame {
  min-height: 100vh;
}

.page-main {
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
}

/* Header rail */
.site-header-rail {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--ink-soft);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(var(--content-max), calc(100% - 2rem));
  margin: 0 auto;
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--muted);
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.brand-logo svg {
  width: 100%;
  height: 100%;
}

.site-header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-header nav a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.site-header nav a:hover {
  color: var(--text);
  border-color: var(--ink-soft);
  background: var(--surface);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.2rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid var(--accent);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.header-cta {
  white-space: nowrap;
  background: var(--accent);
  color: var(--surface);
}

.button-primary {
  background: var(--accent);
  color: var(--surface);
}

.button-secondary {
  background: transparent;
  color: var(--text);
  border-color: color-mix(in srgb, var(--text) 22%, transparent);
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

/* Hero — lumora-inspired full-bleed stage */
.editorial-hero {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 calc(var(--section-space) * 0.55);
}

.hero-stage {
  position: relative;
}

.hero-stage-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: end;
}

.hero-visual {
  grid-column: 1 / -1;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  border: 1px solid var(--ink-soft);
  box-shadow: var(--shadow-soft);
  background: var(--surface-alt);
}

.hero-visual svg {
  width: 100%;
  height: 100%;
}

.hero-copy-panel {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.hero-copy-panel .hero-copy {
  min-width: 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 1rem;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: currentColor;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  max-width: 52ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.75rem 0 1rem;
}

.geo-line {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-base-rail {
  height: 1px;
  margin-top: 1.5rem;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

/* Sections */
.section {
  padding: var(--section-space) 0;
}

.section-inner {
  width: 100%;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.25rem;
}

.section-heading > p {
  font-size: 1.05rem;
}

.fact-disclaimer {
  font-size: 0.78rem !important;
  padding: 0.65rem 0.85rem;
  border-left: 3px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* Metrics band */
.metrics-band {
  padding-top: 0;
}

.metrics-band .section-inner {
  display: grid;
  gap: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.35rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
  box-shadow: var(--shadow-card);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.stat span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.stat p {
  font-size: 0.88rem;
  margin: 0.75rem 0 0;
}

/* Timeline process */
.timeline-section .process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
  position: relative;
}

.timeline-section .process-list::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-alt));
  opacity: 0.35;
}

.timeline-section .process-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-left: 0.5rem;
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  border-radius: 12px;
}

.step-icon svg {
  width: 26px;
  height: 26px;
}

/* Bento services */
.bento-section .cards-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.bento-section .card {
  grid-column: span 6;
  min-width: 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bento-section .card:nth-child(1) {
  grid-column: span 7;
}

.bento-section .card:nth-child(2) {
  grid-column: span 5;
}

.bento-section .card:nth-child(3) {
  grid-column: span 5;
}

.bento-section .card:nth-child(4) {
  grid-column: span 7;
}

.bento-section .card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  color: var(--accent-alt);
  border: 1px solid color-mix(in srgb, var(--accent-alt) 30%, transparent);
  background: color-mix(in srgb, var(--accent-alt) 10%, var(--surface));
  border-radius: 12px;
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-label {
  display: block;
  color: var(--accent);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.card-value {
  display: block;
  margin-top: 1rem;
  color: var(--accent-alt);
  font-size: 1.1rem;
  font-weight: 800;
}

.card small {
  display: block;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* Geography regions */
.region-section .geo-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.geo-chip {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.geo-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.65rem;
}

.geo-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Benefits mosaic */
.mosaic-section .cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.mosaic-section .card {
  padding: 1.5rem;
  background: linear-gradient(145deg, var(--surface), color-mix(in srgb, var(--surface-alt) 40%, var(--surface)));
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
}

.mosaic-section .card:nth-child(odd) {
  transform: translateY(0.75rem);
}

/* Guide two-column */
.guide-section .section-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.guide-section .section-heading {
  grid-column: 1 / -1;
}

.guide-body {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.chapter {
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  scroll-margin-top: 6rem;
}

.chapter li {
  color: var(--muted);
  margin: 0.45rem 0;
}

/* FAQ grid */
.faq-section .faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1.25rem;
  max-width: none;
}

.faq-list details {
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  background: var(--surface);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list p {
  padding-right: 0;
  margin-bottom: 0;
}

/* Contact intake */
.intake-section .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  padding: 1.5rem;
  border: 1px solid var(--ink-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.82rem;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: var(--page);
  color: var(--text);
  padding: 0.85rem 0.95rem;
  border-radius: calc(var(--radius) * 0.65);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-message {
  color: var(--accent-alt);
  margin: 0;
  font-weight: 700;
}

/* Footer rail */
.site-footer-rail {
  margin-top: var(--section-space);
  padding: 3.5rem 0 4rem;
  background: var(--surface-alt);
  border-top: 1px solid var(--ink-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 2rem;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.site-footer a {
  display: block;
  color: var(--muted);
  margin: 0.35rem 0;
}

.site-footer a:hover {
  color: var(--accent);
}

/* Icon motion */
.icon-draw path {
  stroke-dasharray: 34 8;
  animation: iconDraw 10s linear infinite;
}

.icon-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconPulse 10s ease-in-out infinite;
}

.icon-slide {
  animation: iconSlide 10s ease-in-out infinite;
}

.icon-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: iconSpin 10s linear infinite;
}

@keyframes iconDraw {
  to {
    stroke-dashoffset: -84;
  }
}

@keyframes iconPulse {
  50% {
    transform: scale(0.88);
    opacity: 0.72;
  }
}

@keyframes iconSlide {
  50% {
    transform: translateX(3px);
  }
}

@keyframes iconSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1000px) {
  .site-header nav {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .header-cta {
    justify-self: end;
  }

  .hero-stage-inner {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .region-section .geo-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bento-section .cards-grid,
  .bento-section .card,
  .bento-section .card:nth-child(n) {
    grid-column: span 12;
  }

  .mosaic-section .cards-grid,
  .faq-section .faq-list,
  .intake-section .contact-grid,
  .guide-section .section-inner,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .guide-body {
    grid-template-columns: 1fr;
  }

  .mosaic-section .card:nth-child(odd) {
    transform: none;
  }

  .timeline-section .process-list::before {
    display: none;
  }
}

@media (max-width: 560px) {
  .page-main {
    width: min(100% - 1.5rem, var(--content-max));
  }

  .header-inner {
    width: min(100% - 1.5rem, var(--content-max));
  }

  .site-header-rail {
    position: relative;
  }

  .stats-grid,
  .region-section .geo-chips {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.75rem 0;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3rem);
  }

  h2 {
    font-size: clamp(1.65rem, 9vw, 2.35rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .icon-draw path,
  .icon-pulse,
  .icon-slide,
  .icon-spin,
  .card-icon svg,
  .step-icon svg {
    animation: none !important;
  }

  .button:hover,
  .header-cta:hover,
  .bento-section .card:hover {
    transform: none;
  }
}
