/* ===== RESTWELL — Ethereal / Dark Cemetery Management ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

:root {
  --void: #0a0b0d;
  --night: #111318;
  --slate: #1a1d25;
  --stone: #252933;
  --ash: #3a3f4c;
  --mist: #6b7280;
  --silver: #9ca3af;
  --pearl: #d1d5db;
  --bone: #f3f4f6;
  --white: #ffffff;
  --sage: #6b8f71;
  --sage-light: #8fb996;
  --sage-dim: #3d5e42;
  --amber: #c9a84c;
  --amber-dim: #8a7234;
  --rose-ash: #8b6f6f;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--pearl);
  background: var(--void);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--sage); color: var(--white); }

a { color: var(--sage-light); text-decoration: none; transition: color 0.3s var(--ease-out); }
a:hover { color: var(--amber); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--bone);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin-bottom: 1.2em; color: var(--silver); }

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

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ===== TOP NAVIGATION ===== */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 48px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 143, 113, 0.1);
  transition: background 0.4s;
}

.topnav-brand a {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--bone);
}
.topnav-brand a:hover { color: var(--sage-light); }

.brand-icon {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--sage-light);
  letter-spacing: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.topnav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.topnav-links a {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  padding: 6px 0;
  position: relative;
}
.topnav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: var(--sage-light);
  transition: width 0.4s var(--ease-out);
}
.topnav-links a:hover { color: var(--bone); }
.topnav-links a:hover::after { width: 100%; }
.topnav-links a.current { color: var(--sage-light); }
.topnav-links a.current::after { width: 100%; }

.topnav-contact {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--mist);
}
.topnav-contact a { color: var(--mist); }
.topnav-contact a:hover { color: var(--sage-light); }

/* Mobile nav */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 11, 13, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(107, 143, 113, 0.1);
}
.mobile-bar .brand-name {
  font-size: 1.3rem;
  color: var(--bone);
}
.mobile-toggle {
  background: none;
  border: 1px solid var(--ash);
  color: var(--silver);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
}
.mobile-toggle:hover { border-color: var(--sage); color: var(--bone); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--void);
  z-index: 99;
  padding: 88px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; justify-content: center; }
.mobile-menu ol { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--slate); }
.mobile-menu li a {
  display: block;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--pearl);
  letter-spacing: 0.02em;
}
.mobile-menu li a:hover { color: var(--sage-light); }

/* ===== PAGE WRAPPER ===== */
.page { padding-top: 72px; }

/* ===== HERO ===== */
.hero {
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(107, 143, 113, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 900px;
}
.hero-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-tag::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--sage);
}
.hero h1 {
  font-size: clamp(3.2rem, 7vw, 6.5rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
  color: var(--bone);
}
.hero h1 em {
  font-style: italic;
  color: var(--sage-light);
}
.hero-desc {
  font-size: 1.2rem;
  color: var(--silver);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 48px;
}
.hero-actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* ===== INNER PAGE HERO (compact) ===== */
.hero-inner {
  min-height: auto;
  padding: 120px 80px 80px;
}
.hero-inner .hero-content { max-width: 740px; }
.hero-inner h1 {
  font-size: clamp(2.6rem, 5vw, 4.5rem);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sage);
  color: var(--white);
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-radius: 0;
  transition: background 0.3s var(--ease-out), transform 0.2s;
  cursor: pointer;
}
.btn-primary:hover { background: var(--sage-light); color: var(--white); transform: translateY(-1px); }
.btn-primary::after {
  content: '\2192';
  transition: transform 0.3s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pearl);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--ash);
  padding-bottom: 6px;
  transition: color 0.3s, border-color 0.3s;
}
.btn-ghost:hover { color: var(--sage-light); border-color: var(--sage-light); }

/* ===== SECTIONS ===== */
.section {
  padding: 120px 80px;
  position: relative;
}
.section-dark { background: var(--night); }
.section-darker { background: var(--void); }

.section-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--sage-dim);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 700px;
}
.section-title em { font-style: italic; color: var(--sage-light); }

.section-desc {
  font-size: 1.05rem;
  color: var(--mist);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 64px;
}

/* ===== FEATURE GRID (3-col asymmetric cards) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}
.feature-card {
  background: var(--slate);
  padding: 48px 36px;
  position: relative;
  transition: background 0.4s var(--ease-out);
}
.feature-card:hover { background: var(--stone); }
.feature-card-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--sage-dim);
  line-height: 1;
  margin-bottom: 24px;
  transition: color 0.4s;
}
.feature-card:hover .feature-card-num { color: var(--sage); }
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--bone);
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--mist);
  line-height: 1.65;
}

/* ===== SPLIT LAYOUT (text + sidebar) ===== */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.split-main h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 28px;
}
.split-main h2 em { font-style: italic; color: var(--sage-light); }
.split-main p {
  font-size: 1.05rem;
  color: var(--silver);
  line-height: 1.7;
  max-width: 560px;
}
.split-side {
  border-left: 1px solid var(--ash);
  padding-left: 48px;
}
.meta-item { margin-bottom: 32px; }
.meta-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 8px;
  display: block;
}
.meta-value {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--pearl);
  line-height: 1.45;
  display: block;
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--ash);
  border: 1px solid var(--ash);
}
.stat-cell {
  background: var(--night);
  padding: 48px 32px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 3.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--bone);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ===== STEPS (vertical timeline) ===== */
.steps-vertical { position: relative; }
.step-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 48px;
  padding: 48px 0;
  border-bottom: 1px solid var(--slate);
  position: relative;
}
.step-row:first-child { border-top: 1px solid var(--slate); }
.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.step-num {
  width: 56px;
  height: 56px;
  border: 1px solid var(--sage-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--sage-light);
  transition: background 0.3s, border-color 0.3s;
}
.step-row:hover .step-num {
  background: var(--sage-dim);
  border-color: var(--sage);
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--bone);
}
.step-content p {
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.7;
  max-width: 580px;
}

/* ===== PROSE BLOCK ===== */
.prose-block {
  max-width: 680px;
  margin: 0 auto;
}
.prose-block p {
  font-size: 1.15rem;
  color: var(--silver);
  line-height: 1.75;
}
.prose-block p.lead {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  font-style: italic;
  color: var(--bone);
  line-height: 1.35;
  margin-bottom: 2em;
}
.prose-block blockquote {
  border-left: 2px solid var(--sage);
  padding-left: 32px;
  margin: 48px 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: var(--pearl);
  line-height: 1.4;
}
.prose-block blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ===== FAQ / ACCORDION ===== */
.faq-list { max-width: 780px; }
.faq-item {
  border-bottom: 1px solid var(--slate);
}
.faq-item:first-child { border-top: 1px solid var(--slate); }
.faq-question {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 28px 0;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s;
}
.faq-question:hover { color: var(--sage-light); }
.faq-q-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--mist);
  flex-shrink: 0;
  min-width: 32px;
}
.faq-q-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--pearl);
  flex: 1;
  line-height: 1.3;
}
.faq-toggle {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mist);
  flex-shrink: 0;
  transition: color 0.3s, transform 0.3s;
}
.faq-item.open .faq-toggle { color: var(--sage-light); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: none;
}
.faq-item.open .faq-answer {
  max-height: none;
  padding: 0 0 28px 52px;
}
.faq-answer p {
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.7;
  max-width: 600px;
}

/* ===== ENROLL CARD ===== */
.enroll-card {
  border: 1px solid var(--ash);
  padding: 56px 48px;
  max-width: 720px;
  background: var(--slate);
  margin-bottom: 48px;
}
.enroll-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
  color: var(--bone);
}
.enroll-card .sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 28px;
  display: block;
}
.enroll-list { list-style: none; margin: 24px 0 0; }
.enroll-list li {
  padding: 14px 0;
  border-top: 1px solid var(--ash);
  font-size: 0.95rem;
  color: var(--silver);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.enroll-list li::before {
  content: '\2726';
  color: var(--sage);
  flex-shrink: 0;
  font-size: 0.7rem;
}
.enroll-list li:last-child { border-bottom: 1px solid var(--ash); }

/* ===== LEGAL ===== */
.legal-body { max-width: 680px; }
.legal-body h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin: 56px 0 16px;
  color: var(--bone);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--sage);
  margin-right: 14px;
}
.legal-body p {
  font-size: 1rem;
  color: var(--silver);
  line-height: 1.7;
}

/* ===== ENROLL PERKS LIST ===== */
.enroll-perks {
  list-style: none;
  padding: 0;
  margin: 20px 0 0 0;
}
.enroll-perks li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.6;
}
.enroll-perks li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--sage);
}

/* ===== ENTRIES LIST (catalog items) ===== */
.entries-list { max-width: 860px; }
.entry-item {
  display: grid;
  grid-template-columns: 60px 1fr 1.2fr;
  gap: 32px;
  padding: 40px 0;
  border-bottom: 1px solid var(--slate);
  align-items: start;
}
.entry-item:first-child { border-top: 1px solid var(--slate); }
.entry-num {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--sage-dim);
  padding-top: 4px;
}
.entry-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--bone);
  line-height: 1.25;
}
.entry-title em { font-style: italic; color: var(--sage-light); }
.entry-body p {
  font-size: 0.95rem;
  color: var(--mist);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--night);
  border-top: 1px solid var(--slate);
  padding: 80px 80px 48px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand-block .footer-brand-name {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  display: block;
}
.footer-brand-block .footer-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--mist);
  max-width: 300px;
  line-height: 1.5;
  margin-bottom: 28px;
}
.footer-col .footer-col-title {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mist);
  margin-bottom: 20px;
  display: block;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--silver);
}
.footer-links a:hover { color: var(--sage-light); }
.footer-bottom {
  border-top: 1px solid var(--slate);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mist);
}

/* ===== FLOATING PARTICLES ANIMATION ===== */
.particles {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  overflow: hidden;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--sage);
  border-radius: 50%;
  opacity: 0;
  animation: float-up 12s infinite;
}
@keyframes float-up {
  0% { opacity: 0; transform: translateY(100vh) translateX(0); }
  10% { opacity: 0.4; }
  90% { opacity: 0.1; }
  100% { opacity: 0; transform: translateY(-20vh) translateX(40px); }
}
.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 14s; }
.particle:nth-child(2) { left: 25%; animation-delay: 2s; animation-duration: 11s; }
.particle:nth-child(3) { left: 40%; animation-delay: 4s; animation-duration: 16s; }
.particle:nth-child(4) { left: 55%; animation-delay: 1s; animation-duration: 13s; }
.particle:nth-child(5) { left: 70%; animation-delay: 3s; animation-duration: 10s; }
.particle:nth-child(6) { left: 85%; animation-delay: 5s; animation-duration: 15s; }
.particle:nth-child(7) { left: 15%; animation-delay: 7s; animation-duration: 12s; }
.particle:nth-child(8) { left: 60%; animation-delay: 6s; animation-duration: 9s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .topnav { display: none; }
  .mobile-bar { display: flex; }
  .page { padding-top: 64px; }
  .hero { padding: 100px 32px 60px; min-height: auto; }
  .hero-inner { padding: 100px 32px 60px; }
  .section { padding: 80px 32px; }
  .feature-grid { grid-template-columns: 1fr; gap: 2px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split-side { border-left: none; padding-left: 0; border-top: 1px solid var(--ash); padding-top: 32px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .entry-item { grid-template-columns: 1fr; gap: 12px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer { padding: 60px 32px 36px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.6rem); }
  .hero-inner h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .stats-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 2.8rem; }
  .step-row { grid-template-columns: 1fr; gap: 20px; }
  .footer-top { grid-template-columns: 1fr; }
  .enroll-card { padding: 36px 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}
