/* ──────────────────────────────────────────────────────────
   Sarthy site CSS · shared across all prototype pages
   ────────────────────────────────────────────────────────── */

:root {
  --burgundy: #762A2B;
  --burgundy-hover: #9F3939;
  --burgundy-deep: #5D2122;
  --cream: #FAF8F5;
  --cream-warm: #F5EFE8;
  --cream-deep: #EDE5DC;
  --ink-900: #1F1A1A;
  --ink-700: #5A4E4E;
  --ink-500: #8A7E7E;
  --ink-200: #E8E0D8;
  --ink-100: #F2EBE5;
  --shadow: #1A0F0F;

  --shadow-xs: 0 1px 2px rgba(26, 15, 15, 0.04), 0 1px 3px rgba(26, 15, 15, 0.05);
  --shadow-sm: 0 2px 4px rgba(26, 15, 15, 0.04), 0 4px 12px rgba(26, 15, 15, 0.06);
  --shadow-md: 0 4px 8px rgba(26, 15, 15, 0.05), 0 12px 28px rgba(26, 15, 15, 0.07), 0 0 0 1px rgba(232, 224, 216, 0.6);
  --shadow-lg: 0 12px 24px rgba(26, 15, 15, 0.06), 0 24px 56px rgba(118, 42, 43, 0.10);
  --shadow-xl: 0 30px 60px -15px rgba(26, 15, 15, 0.30), 0 18px 36px -18px rgba(118, 42, 43, 0.20);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  background: var(--cream);
  color: var(--ink-900);
  font-family: 'Inter', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.30;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.46 0 0 0 0 0.16 0 0 0 0 0.17 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ─── Typography ─── */
.font-display { font-family: 'Fraunces', Georgia, serif; font-feature-settings: 'ss01'; }
.page-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.page-h1 em { font-style: italic; color: var(--burgundy); font-weight: 500; }
.section-h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-h2 em { font-style: italic; color: var(--burgundy); }
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
}

/* ─── Nav ─── */
.nav {
  background: rgba(250, 248, 245, 0.78);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(232, 224, 216, 0.6);
}
.nav-link {
  position: relative;
  transition: color 250ms var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px;
  background: var(--burgundy);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 250ms var(--ease);
}
.nav-link:hover { color: var(--burgundy); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--burgundy); }
.nav-link.active::after { transform: scaleX(1); }

/* ─── Buttons ─── */
.btn-primary {
  background: var(--burgundy);
  color: #FEFEFE;
  box-shadow: 0 1px 2px rgba(93, 33, 34, 0.4), 0 8px 16px -4px rgba(118, 42, 43, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 250ms var(--ease);
}
.btn-primary:hover {
  background: var(--burgundy-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(93, 33, 34, 0.4), 0 16px 32px -6px rgba(118, 42, 43, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  transition: all 250ms var(--ease);
}
.btn-outline:hover { background: var(--burgundy); color: #FEFEFE; transform: translateY(-2px); }
.btn-on-burgundy {
  background: #FEFEFE;
  color: var(--burgundy);
  box-shadow: 0 1px 2px rgba(26, 15, 15, 0.10), 0 8px 16px -4px rgba(26, 15, 15, 0.20);
  transition: all 250ms var(--ease);
}
.btn-on-burgundy:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(26, 15, 15, 0.12), 0 16px 32px -6px rgba(26, 15, 15, 0.30), 0 0 0 4px rgba(255, 255, 255, 0.15);
}

/* ─── Cards (generic) ─── */
.card {
  background: #FFFFFF;
  border-radius: 1.25rem;
  box-shadow: var(--shadow-md);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-burgundy-top::before {
  content: '';
  position: absolute; top: 0; left: 2.25rem; right: 2.25rem;
  height: 2px;
  background: linear-gradient(90deg, var(--burgundy), var(--burgundy-hover), transparent);
  opacity: 0.7;
}

/* ─── Closing CTA card (used on most pages) ─── */
.closing-card {
  background:
    radial-gradient(ellipse 80% 100% at 0% 0%, rgba(159, 57, 57, 0.5), transparent 60%),
    radial-gradient(ellipse 100% 80% at 100% 100%, rgba(93, 33, 34, 0.6), transparent 60%),
    var(--burgundy);
  position: relative;
  overflow: hidden;
}
.closing-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n5'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n5)'/></svg>");
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ─── Trust pellet (small bulleted item) ─── */
.trust-pellet {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--ink-700);
  font-weight: 500;
}
.trust-pellet::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 999px;
  background: var(--burgundy);
}

/* ─── Feature list (for pillar / pricing pages) ─── */
.feat-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.45rem 0;
  font-size: 0.95rem;
  color: var(--ink-700);
  line-height: 1.55;
}
.feat-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  stroke: var(--burgundy);
}

/* ─── Markdown-prose container (for legal pages, case studies) ─── */
.prose {
  max-width: 65ch;
  margin: 0 auto;
  color: var(--ink-700);
  font-size: 1rem;
  line-height: 1.7;
}
.prose h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.prose h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--ink-900);
  letter-spacing: -0.005em;
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
}
.prose p { margin-bottom: 1.1rem; }
.prose ul { margin: 1rem 0 1.25rem 1.25rem; list-style: disc; }
.prose ul li { margin-bottom: 0.4rem; }
.prose a { color: var(--burgundy); font-weight: 500; }
.prose a:hover { color: var(--burgundy-hover); text-decoration: underline; }
.prose strong { color: var(--ink-900); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--burgundy);
  padding-left: 1.25rem;
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  color: var(--ink-900);
  margin: 1.75rem 0;
}

/* ─── Pillar-page contrast row (sub-feature) ─── */
.sub-feature {
  background: #FFFFFF;
  border-radius: 1.25rem;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: transform 350ms var(--ease), box-shadow 350ms var(--ease);
}
.sub-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.sub-feature-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cream-warm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--burgundy);
  margin-bottom: 1.2rem;
}
.sub-feature-icon svg { stroke: currentColor; }
