:root {
  --bg: #FAF8F5;
  --fg: #1A1714;
  --fg-muted: #6B6560;
  --accent: #8B6F4E;
  --accent-light: #C4A882;
  --surface: #F0EBE4;
  --border: #E0D8CE;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* === HERO === */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  position: relative;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 400;
  line-height: 1.05;
  color: var(--fg);
  margin-bottom: 2rem;
}

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

.hero-lede {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 600px;
  font-weight: 300;
}

.hero-line {
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 1px;
  background: var(--border);
}

/* === PHILOSOPHY === */
.philosophy {
  padding: 6rem 2rem;
}

.philosophy-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.philosophy-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.philosophy-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.philosophy-statement h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  line-height: 1.25;
  color: var(--fg);
}

.philosophy-text p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
  font-weight: 300;
}

.philosophy-text p:last-child {
  margin-bottom: 0;
}

/* === CAPABILITIES === */
.capabilities {
  padding: 6rem 2rem;
  background: var(--surface);
}

.capabilities-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.capabilities-label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 3rem;
}

.capabilities-list {
  display: grid;
  gap: 0;
}

.capability {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.capability:first-child {
  border-top: 1px solid var(--border);
}

.capability-number {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--accent-light);
  font-weight: 500;
  padding-top: 0.15rem;
}

.capability-content h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.capability-content p {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--fg-muted);
  max-width: 550px;
  font-weight: 300;
}

/* === CLOSING === */
.closing {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
}

.closing-inner {
  max-width: 750px;
  margin: 0 auto;
}

.closing-accent {
  width: 40px;
  height: 2px;
  background: var(--accent);
  margin: 0 auto 3rem;
}

.closing h2 {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--fg);
  margin-bottom: 1.5rem;
}

.closing-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  font-weight: 300;
  line-height: 1.7;
}

/* === FOOTER === */
.site-footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-right span {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    padding: 4rem 1.5rem 3rem;
  }

  .hero-badge {
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .philosophy {
    padding: 4rem 1.5rem;
  }

  .philosophy-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .capabilities {
    padding: 4rem 1.5rem;
  }

  .capability {
    grid-template-columns: 50px 1fr;
    gap: 1.25rem;
    padding: 2rem 0;
  }

  .closing {
    padding: 5rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .philosophy-statement h2 {
    font-size: 1.5rem;
  }

  .capability-content h3 {
    font-size: 1.25rem;
  }
}

/* ============================================================
   APP SHELL — shared layout for pipeline/dashboard pages
   ============================================================ */

.app-body {
  min-height: 100vh;
  background: var(--bg);
}

/* --- Nav --- */
.app-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
}

.app-nav-brand {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.app-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  padding: 0.4rem 0.85rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.app-nav-link:hover {
  color: var(--fg);
  background: var(--surface);
}

.app-nav-link.active {
  color: var(--fg);
  background: var(--surface);
}

.app-nav-link--cta {
  background: var(--accent);
  color: var(--white) !important;
  padding: 0.4rem 1rem;
}

.app-nav-link--cta:hover {
  background: var(--fg);
  color: var(--white) !important;
}

/* --- Main --- */
.app-main {
  padding: 2.5rem 2rem 4rem;
}

.app-main--wide {
  padding: 2rem 1rem 4rem;
}

/* --- Page header --- */
.app-page {
  max-width: 1100px;
  margin: 0 auto;
}

.app-page--narrow {
  max-width: 720px;
}

.app-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  gap: 1rem;
}

.app-page-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.app-page-title {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  line-height: 1.1;
}

.app-page-title em {
  font-style: italic;
  color: var(--accent);
}

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--fg);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
  padding: 0.6rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  padding: 0.5rem 1rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-danger:hover {
  background: #fef2f2;
}

/* ============================================================
   DASHBOARD
   ============================================================ */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 0.75rem;
}

.stat-value {
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1;
}

.section {
  margin-bottom: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.section-header .section-label {
  margin-bottom: 0;
}

.consult-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.consult-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.consult-item:last-child {
  border-bottom: none;
}

.consult-client {
  font-weight: 500;
  min-width: 140px;
}

.consult-link {
  color: var(--fg);
  text-decoration: none;
}

.consult-link:hover {
  color: var(--accent);
}

.consult-time {
  font-size: 0.875rem;
  color: var(--fg-muted);
}

.consult-location {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-left: auto;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.quick-action-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: block;
}

.quick-action-card:hover {
  border-color: var(--accent-light);
  box-shadow: 0 2px 8px rgba(139,111,78,0.08);
}

.quick-action-icon {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.quick-action-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg);
  margin-bottom: 0.3rem;
}

.quick-action-desc {
  font-size: 0.85rem;
  color: var(--fg-muted);
  font-weight: 300;
}

/* ============================================================
   PIPELINE BOARD
   ============================================================ */

.pipeline-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.pipeline-column {
  min-width: 220px;
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem;
}

.pipeline-column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.pipeline-column-title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.pipeline-column-count {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--border);
  color: var(--fg-muted);
  border-radius: 10px;
  padding: 0.1rem 0.5rem;
}

.pipeline-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pipeline-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1rem;
  transition: box-shadow 0.15s;
}

.pipeline-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.pipeline-card-name {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.pipeline-card-link {
  color: var(--fg);
  text-decoration: none;
}

.pipeline-card-link:hover {
  color: var(--accent);
}

.pipeline-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.pipeline-card-type {
  font-size: 0.72rem;
  background: var(--surface);
  color: var(--fg-muted);
  border-radius: 3px;
  padding: 0.15rem 0.5rem;
  text-transform: capitalize;
}

.pipeline-card-budget {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 500;
}

.pipeline-card-timeline {
  font-size: 0.72rem;
  color: var(--fg-muted);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.pipeline-card-actions {
  display: flex;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.stage-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg-muted);
  font-size: 0.75rem;
  width: 26px;
  height: 26px;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

.stage-btn--fwd {
  background: var(--surface);
  border-color: var(--accent-light);
  color: var(--accent);
}

.stage-btn--fwd:hover {
  background: var(--accent);
  color: var(--white);
}

.stage-btn--back:hover {
  background: var(--surface);
  color: var(--fg);
}

.pipeline-empty {
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
  padding: 1.5rem 0;
  font-style: italic;
}

/* ============================================================
   INTAKE FORM
   ============================================================ */

.success-banner {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.success-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}

.success-link:hover {
  text-decoration: underline;
}

.intake-form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-section-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field--required .form-label::after {
  content: ' *';
  color: var(--accent);
}

.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg-muted);
}

.form-input {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--fg);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(139,111,78,0.08);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6560' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 0.5rem;
}

.consult-form {
  background: var(--surface);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   CLIENT DETAIL
   ============================================================ */

.back-link {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent);
}

.stage-selector {
  flex-shrink: 0;
}

.stage-select {
  min-width: 200px;
  font-size: 0.85rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
}

.detail-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}

.detail-rows {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.875rem;
}

.detail-key {
  color: var(--fg-muted);
  font-weight: 400;
  white-space: nowrap;
}

.detail-val {
  color: var(--fg);
  font-weight: 500;
  text-align: right;
  text-transform: capitalize;
}

.detail-val--link {
  color: var(--accent);
  text-decoration: none;
}

.detail-val--link:hover {
  text-decoration: underline;
}

.detail-notes {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.7;
  font-weight: 300;
}

.empty-state {
  font-size: 0.875rem;
  color: var(--fg-muted);
  font-style: italic;
  padding: 1rem 0;
}

.danger-zone {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   LANDING — enter app CTA
   ============================================================ */

.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero-cta-primary {
  background: var(--accent);
  color: var(--white);
  text-decoration: none;
  padding: 0.8rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.15s;
}

.hero-cta-primary:hover {
  background: var(--fg);
}

.hero-cta-secondary {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.15s;
}

.hero-cta-secondary:hover {
  color: var(--fg);
}

/* ============================================================
   RESPONSIVE — app
   ============================================================ */

@media (max-width: 900px) {
  .pipeline-board {
    grid-template-columns: repeat(5, minmax(200px, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .app-nav {
    padding: 0 1rem;
  }

  .app-main {
    padding: 1.5rem 1rem 3rem;
  }

  .app-page-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .stats-grid .stat-card:last-child {
    grid-column: span 2;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .quick-actions {
    grid-template-columns: 1fr;
  }
}