/* ============================================
   OneStep PDX — Main Stylesheet
   Tone: Warm, grounded, faith-forward, Portland
   ============================================ */

:root {
  --cream: #F7F4EE;
  --warm-white: #FDFBF8;
  --charcoal: #1E1E1C;
  --charcoal-soft: #2E2C28;
  --stone: #6B6760;
  --stone-light: #A09C96;
  --gold: #C4973A;
  --gold-light: #F5E8CC;
  --gold-dark: #8A6520;
  --rust: #8B3A2A;
  --rust-light: #F2E4DF;
  --sage: #4A6741;
  --sage-light: #E4EDE3;
  --border: rgba(30,30,28,0.10);
  --border-gold: rgba(196,151,58,0.30);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  --max-width: 1120px;
  --radius: 4px;
  --radius-lg: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--warm-white);
  -webkit-font-smoothing: antialiased;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(253,251,248,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-logo span { color: var(--gold); }

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

.nav-links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--stone);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--charcoal); }

.nav-cta {
  background: var(--charcoal) !important;
  color: var(--warm-white) !important;
  padding: 0.5rem 1.125rem !important;
  border-radius: var(--radius) !important;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--gold-dark) !important; color: var(--warm-white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--charcoal);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}
.nav-mobile a {
  font-size: 0.9375rem;
  color: var(--stone);
  text-decoration: none;
}
.nav-mobile a:hover { color: var(--charcoal); }
.nav-cta-mobile {
  display: inline-block;
  background: var(--charcoal);
  color: var(--warm-white) !important;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  width: fit-content;
  margin-top: 0.5rem;
}

.nav-mobile.open { display: flex; }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--charcoal);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
}

.hero-arc {
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 80px;
  background: var(--warm-white);
  clip-path: ellipse(60% 100% at 50% 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--warm-white);
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 1.125rem;
  color: rgba(253,251,248,0.72);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-verse {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(253,251,248,0.15);
}
.hero-verse span {
  font-family: var(--font-display);
  font-style: italic;
  color: rgba(253,251,248,0.60);
  font-size: 1rem;
}
.verse-ref {
  font-family: var(--font-mono) !important;
  font-style: normal !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.08em;
  color: var(--gold) !important;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--charcoal);
}
.btn-primary:hover {
  background: var(--gold-dark);
  color: var(--warm-white);
}

.btn-ghost {
  background: transparent;
  color: var(--warm-white);
  border: 1px solid rgba(253,251,248,0.30);
}
.btn-ghost:hover {
  background: rgba(253,251,248,0.08);
  border-color: rgba(253,251,248,0.50);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--warm-white);
}
.btn-dark:hover { background: var(--charcoal-soft); }

/* ---- LAYOUT ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}
.container-narrow { max-width: 720px; }

.section {
  padding: 6rem 0;
}

.section-light { background: var(--cream); }
.section-white { background: var(--warm-white); }
.section-dark { background: var(--charcoal); }
.section-gold { background: var(--gold-light); border-top: 1px solid var(--border-gold); border-bottom: 1px solid var(--border-gold); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.section-eyebrow.light { color: var(--gold); }
.section-eyebrow.dark { color: var(--gold-dark); }

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.section-title.light { color: var(--warm-white); }
.section-title.dark { color: var(--charcoal); }

.section-body {
  font-size: 1.0625rem;
  color: var(--stone);
  line-height: 1.75;
  margin-bottom: 1.25rem;
  max-width: 640px;
}
.section-body.light { color: rgba(253,251,248,0.70); max-width: 640px; }
.section-body.dark { color: var(--charcoal-soft); }
.section-body.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-body.italic { font-style: italic; }

.center-text { text-align: center; }
.center-text .section-body { margin-left: auto; margin-right: auto; }

/* ---- PULLQUOTE ---- */
.pullquote {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-style: italic;
  color: var(--charcoal);
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 1.75rem;
  margin: 2.5rem 0;
  line-height: 1.5;
}

/* ---- PATH ---- */
.path-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.path-stage {
  width: 100%;
  background: rgba(253,251,248,0.06);
  border: 1px solid rgba(253,251,248,0.12);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  transition: background 0.2s;
}
.path-stage:hover { background: rgba(253,251,248,0.10); }

.stage-0 { border-color: var(--gold); }
.stage-multiply { border-color: var(--gold); background: rgba(196,151,58,0.08); }

.stage-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.stage-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.375rem;
}

.path-stage p {
  font-size: 0.9rem;
  color: rgba(253,251,248,0.60);
  line-height: 1.6;
}

.path-arrow {
  font-size: 1.25rem;
  color: var(--gold);
  opacity: 0.5;
  padding: 0.25rem 0;
  line-height: 1;
}

/* ---- DOCUMENT CARDS ---- */
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.doc-card {
  position: relative;
  background: var(--warm-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: all 0.2s;
  overflow: hidden;
}
.doc-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30,30,28,0.08);
}

.doc-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 600;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}
.doc-0 .doc-number { color: rgba(196,151,58,0.15); }
.doc-1 .doc-number { color: rgba(74,103,65,0.15); }
.doc-2 .doc-number { color: rgba(139,58,42,0.15); }
.doc-3 .doc-number { color: rgba(30,30,28,0.10); }

.doc-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-light);
  color: var(--gold-dark);
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.doc-card h3 {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.3;
  margin-bottom: 0.875rem;
}

.doc-card p {
  font-size: 0.9rem;
  color: var(--stone);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.doc-audience {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--stone-light);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.doc-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gold-dark);
}

/* ---- FOOTER ---- */
.footer {
  background: var(--charcoal);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: flex;
  gap: 4rem;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--warm-white);
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(253,251,248,0.50);
  line-height: 1.6;
  max-width: 220px;
}

.footer-verse {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem !important;
  color: rgba(253,251,248,0.35) !important;
  line-height: 1.7 !important;
}
.footer-verse em {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  display: block;
  margin-top: 0.25rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: rgba(253,251,248,0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--warm-white); }

.footer-bottom {
  border-top: 1px solid rgba(253,251,248,0.08);
  padding-top: 1.5rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(253,251,248,0.30);
  text-align: center;
  line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero { padding: 100px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-verse { flex-direction: column; gap: 0.5rem; }

  .section { padding: 4rem 0; }

  .docs-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; gap: 2.5rem; }
  .footer-links { gap: 2rem; }

  .path-grid { max-width: 100%; }
}

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

.hero-eyebrow { animation: fadeUp 0.6s ease both; }
.hero-title { animation: fadeUp 0.7s ease 0.1s both; }
.hero-sub { animation: fadeUp 0.7s ease 0.2s both; }
.hero-actions { animation: fadeUp 0.7s ease 0.3s both; }
.hero-verse { animation: fadeUp 0.7s ease 0.4s both; }
