/* ═══════════════════════════════════════════
   GRAVITAS CO. — BRAND SYSTEM CSS
   Based on Eric Randall Brand Identity v2.0
   Palette: Obsidian · Parchment · Linen · Prussian · Ember · Blueprint
   Type: Cormorant Garamond · IBM Plex Sans · Caveat · Big Shoulders Display
═══════════════════════════════════════════ */

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

:root {
  /* ── Color ── */
  --obsidian:    #111318;
  --obsidian-md: #2D3340;
  --obsidian-lt: #636978;
  --obsidian-xlt:#9EA4B0;
  --parchment:   #EAE3D2;
  --linen:       #DDD5C0;
  --linen-2:     #CFC6AE;
  --prussian:    #1A3356;
  --prussian-lt: #253F6A;
  --ember:       #7A2614;
  --ember-lt:    #9A3A20;
  --blueprint:   #C4D4E8;
  --chalk:       #F5F2EC;

  /* Grid overlays */
  --grid-parch:  rgba(26,51,86,0.06);
  --grid-dark:   rgba(255,255,255,0.035);

  /* ── Typography ── */
  --f-serif:  'Cormorant Garamond', Georgia, serif;
  --f-sans:   'IBM Plex Sans', sans-serif;
  --f-mono:   'IBM Plex Mono', monospace;
  --f-marker: 'Caveat', cursive;
  --f-caps:   'Big Shoulders Display', sans-serif;

  /* ── Spacing ── */
  --section-pad: 120px;
  --inner-max:   1120px;
  --nav-height:  72px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--parchment);
  color: var(--obsidian);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── Subtle grid texture ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--grid-parch) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-parch) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* ═══════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════ */
.inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 48px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.nav.scrolled {
  background: rgba(234,227,210,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linen);
  box-shadow: 0 2px 24px rgba(0,0,0,0.04);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-text {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--obsidian);
  letter-spacing: -0.02em;
}

.nav-brand-text em {
  font-style: italic;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--obsidian-lt);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--obsidian); }
.nav-links a.active { color: var(--prussian); font-weight: 600; }

.nav-cta {
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--prussian);
  color: var(--parchment);
  padding: 10px 24px;
  border-radius: 2px;
  transition: all 0.2s;
}

.nav-cta:hover { background: var(--obsidian); }

/* ═══════════════════════════════════════════
   COMMON ELEMENTS
═══════════════════════════════════════════ */

/* Eyebrow labels */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--obsidian-lt);
  margin-bottom: 20px;
}

.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--prussian);
}

.eyebrow-prussian { color: var(--prussian); }
.eyebrow-prussian::before { background: var(--prussian); }

.eyebrow-ember { color: var(--ember); }
.eyebrow-ember::before { background: var(--ember); }

.eyebrow-light { color: var(--blueprint); }
.eyebrow-light::before { background: var(--blueprint); }

/* Section headings */
.section-heading {
  font-family: var(--f-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--obsidian);
}

.section-heading em {
  font-style: italic;
  font-weight: 600;
  color: var(--prussian);
}

.section-heading-light {
  color: var(--parchment);
}

.section-heading-light em {
  color: var(--blueprint);
}

/* Lead text */
.lead {
  font-family: var(--f-sans);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--obsidian-lt);
  max-width: 560px;
  margin-top: 20px;
}

.lead-light {
  color: rgba(196,212,232,0.6);
}

/* Marker text */
.marker-text {
  font-family: var(--f-marker);
  color: var(--prussian);
  font-weight: 700;
}

.marker-text-light {
  color: var(--blueprint);
}

/* Caps labels */
.caps-label {
  font-family: var(--f-caps);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 2px;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--prussian);
  color: var(--parchment);
}
.btn-primary:hover { background: var(--obsidian); }

.btn-ember {
  background: var(--ember);
  color: var(--parchment);
}
.btn-ember:hover { background: #5e1d0f; }

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

.btn-outline-light {
  background: transparent;
  border: 1.5px solid rgba(196,212,232,0.4);
  color: var(--blueprint);
}
.btn-outline-light:hover { background: rgba(196,212,232,0.1); border-color: var(--blueprint); }

.btn-ghost {
  background: transparent;
  padding: 14px 0;
  color: var(--prussian);
  gap: 10px;
}
.btn-ghost:hover { gap: 14px; }
.btn-ghost svg { transition: transform 0.2s; }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ═══════════════════════════════════════════
   HERO
═══════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  padding-top: calc(var(--nav-height) + 60px);
  position: relative;
  overflow: hidden;
}

.hero-dark {
  background: var(--obsidian);
}

.hero-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(26,51,86,0.25) 0%, transparent 65%);
  top: -150px; right: -150px;
  pointer-events: none;
}

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

.hero h1 {
  font-family: var(--f-serif);
  font-size: clamp(46px, 6.5vw, 88px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--parchment);
  margin-bottom: 28px;
  max-width: 800px;
}

.hero h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--blueprint);
}

.hero-sub {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(196,212,232,0.55);
  max-width: 520px;
  margin-bottom: 44px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-marker {
  font-family: var(--f-marker);
  font-size: 18px;
  color: var(--blueprint);
  opacity: 0.6;
  margin-top: 40px;
}

/* ═══════════════════════════════════════════
   HORIZON LINE
═══════════════════════════════════════════ */
.horizon {
  height: 3px;
  background: linear-gradient(90deg, var(--prussian), var(--ember), var(--prussian));
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════════
   PROOF BAR
═══════════════════════════════════════════ */
.proof-bar {
  background: var(--obsidian);
  padding: 32px 48px;
  position: relative;
  z-index: 1;
}

.proof-bar-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pb-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 140px;
}

.pb-num {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--parchment);
}

.pb-label {
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blueprint);
}

.pb-source {
  font-size: 10px;
  color: rgba(196,212,232,0.3);
}

/* ═══════════════════════════════════════════
   SECTION BACKGROUNDS
═══════════════════════════════════════════ */
.sect-parchment { background: var(--parchment); }
.sect-linen     { background: var(--linen); }
.sect-obsidian  { background: var(--obsidian); }
.sect-prussian  { background: var(--prussian); }
.sect-chalk     { background: var(--chalk); }

.sect-obsidian::before,
.sect-prussian::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.sect-pad { padding: var(--section-pad) 0; }

/* ═══════════════════════════════════════════
   CARDS
═══════════════════════════════════════════ */
.card {
  background: var(--chalk);
  border: 1px solid var(--linen);
  border-radius: 4px;
  padding: 40px;
  position: relative;
}

.card-dark {
  background: var(--obsidian-md);
  border-color: rgba(196,212,232,0.08);
}

.card-featured {
  border-color: var(--prussian);
  border-width: 2px;
}

.card-featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -1px; right: 24px;
  background: var(--prussian);
  color: var(--parchment);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0 0 4px 4px;
}

/* ═══════════════════════════════════════════
   SERVICE CARDS (funnel)
═══════════════════════════════════════════ */
.svc-step-num {
  font-family: var(--f-caps);
  font-size: 56px;
  color: var(--linen);
  line-height: 1;
  margin-bottom: 8px;
}

.svc-name {
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--obsidian);
  margin-bottom: 8px;
}

.svc-tagline {
  font-family: var(--f-marker);
  font-size: 18px;
  color: var(--prussian);
  margin-bottom: 16px;
}

.svc-price {
  font-family: var(--f-serif);
  font-size: 42px;
  font-weight: 700;
  color: var(--obsidian);
}

.svc-price-note {
  font-family: var(--f-sans);
  font-size: 12px;
  color: var(--obsidian-lt);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ═══════════════════════════════════════════
   GRID LAYOUTS
═══════════════════════════════════════════ */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* ═══════════════════════════════════════════
   PROCESS STEPS
═══════════════════════════════════════════ */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 56px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 22px; left: 0; right: 0;
  height: 1px;
  background: var(--linen);
}

.step { position: relative; z-index: 1; }

.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--parchment);
  border: 1.5px solid var(--prussian);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--prussian);
  margin-bottom: 20px;
}

.step h4 {
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--obsidian);
  margin-bottom: 8px;
}

.step p {
  font-size: 14px;
  color: var(--obsidian-lt);
  line-height: 1.7;
}

/* ═══════════════════════════════════════════
   PROOF / TESTIMONIALS
═══════════════════════════════════════════ */
.proof-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(196,212,232,0.08);
  border-radius: 4px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proof-client {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blueprint);
}

.proof-quote {
  font-family: var(--f-serif);
  font-size: 20px;
  font-style: italic;
  line-height: 1.6;
  color: var(--parchment);
  font-weight: 400;
}

.proof-stats {
  display: flex;
  gap: 32px;
  margin-top: 8px;
}

.proof-stat strong {
  display: block;
  font-family: var(--f-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--parchment);
}

.proof-stat span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196,212,232,0.4);
}

/* ═══════════════════════════════════════════
   QUALIFIER
═══════════════════════════════════════════ */
.qual-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 15px;
  color: var(--obsidian-lt);
  line-height: 1.65;
  margin-bottom: 16px;
}

.qual-icon {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   CHECKLIST
═══════════════════════════════════════════ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--obsidian-lt);
  line-height: 1.6;
}

.check-item::before {
  content: '✓';
  color: var(--prussian);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   BEFORE / AFTER
═══════════════════════════════════════════ */
.ba-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 32px;
}

.ba-col { padding: 32px; }

.ba-before {
  background: var(--linen);
}

.ba-after {
  background: var(--chalk);
}

.ba-label {
  font-family: var(--f-caps);
  font-size: 14px;
  letter-spacing: 0.14em;
  margin-bottom: 20px;
}

.ba-before .ba-label { color: var(--obsidian-lt); }
.ba-after .ba-label  { color: var(--prussian); }

.ba-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 10px;
}

/* ═══════════════════════════════════════════
   CTA SECTION
═══════════════════════════════════════════ */
.cta-sect {
  padding: 120px 0;
  text-align: center;
}

.cta-sect .section-heading {
  max-width: 700px;
  margin: 0 auto;
}

.cta-lead {
  font-size: 17px;
  font-weight: 300;
  max-width: 480px;
  margin: 20px auto 40px;
  line-height: 1.75;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 20px;
}

/* ═══════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════ */
.site-footer {
  background: var(--obsidian);
  border-top: 1px solid rgba(196,212,232,0.07);
  padding: 48px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--inner-max);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-brand-text {
  font-family: var(--f-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--parchment);
  margin-bottom: 8px;
}

.footer-brand-text em {
  font-style: italic;
  font-weight: 600;
}

.footer-tagline {
  font-family: var(--f-marker);
  font-size: 15px;
  color: var(--blueprint);
  opacity: 0.6;
  margin-bottom: 12px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(196,212,232,0.3);
}

.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196,212,232,0.35);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(196,212,232,0.8); }

.footer-verse {
  font-family: var(--f-serif);
  font-size: 14px;
  font-style: italic;
  color: rgba(196,212,232,0.2);
  max-width: 280px;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   PAGE HEADER (for inner pages)
═══════════════════════════════════════════ */
.page-header {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  position: relative;
  z-index: 1;
}

.page-header-dark {
  background: var(--obsidian);
}

.page-header-dark::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-dark) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

/* ═══════════════════════════════════════════
   DIVIDERS
═══════════════════════════════════════════ */
.divider {
  height: 1px;
  background: var(--linen);
  margin: 48px 0;
}

.divider-dark {
  background: rgba(196,212,232,0.08);
}

/* ═══════════════════════════════════════════
   VALUE STACK TABLE
═══════════════════════════════════════════ */
.value-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}

.value-table tr {
  border-bottom: 1px solid var(--linen);
}

.value-table td {
  padding: 12px 0;
  font-size: 14px;
}

.value-table td:first-child {
  color: var(--obsidian-lt);
}

.value-table td:last-child {
  text-align: right;
  color: var(--obsidian);
  font-weight: 500;
}

.value-table tr.total td {
  font-weight: 700;
  color: var(--obsidian);
  border-top: 2px solid var(--obsidian);
  border-bottom: none;
  padding-top: 16px;
}

.value-table tr.total td:last-child {
  font-family: var(--f-serif);
  font-size: 20px;
}

/* ═══════════════════════════════════════════
   FUNNEL VISUAL
═══════════════════════════════════════════ */
.funnel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
  color: var(--linen-2);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --section-pad: 80px; }
  .inner { padding: 0 24px; }
  .nav { padding: 0 24px; }
  .hero-body { padding: 0 24px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; }
  .process-steps::before { display: none; }
  .ba-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .nav-links { display: none; }
  .hero h1 { font-size: clamp(36px, 8vw, 60px); }
  .site-footer { padding: 32px 24px; }
}

@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr; }
  .proof-stats { flex-direction: column; gap: 16px; }
}

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

.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
