/* ============================================
   THE CONSULTING DEN — Design Tokens
   Palette drawn directly from brand logo
   ============================================ */

:root {
  --cream:       #FEFAE0;   /* page background */
  --cream-card:  #FFFDF6;   /* card / surface background */
  --forest:      #283618;   /* headings, nav, high-contrast text */
  --olive:       #606C38;   /* body copy, secondary accents */
  --gold:        #DDA15E;   /* warm secondary accent */
  --terracotta:  #BC6C25;   /* primary CTA / links */
  --terracotta-dark: #9c5a1f;
  --line:        rgba(40, 54, 24, 0.14);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest);
  line-height: 1.12;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }

p { color: var(--olive); margin: 0 0 1.1em; }

a { color: var(--terracotta); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* Eyebrow / mono labels — ledger + chart-of-accounts flavor */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 0.9em;
}

/* Ledger-rule divider — the site's signature structural device */
.ledger-rule {
  border: none;
  height: 0;
  margin: 0;
  border-top: 1.5px solid var(--forest);
  position: relative;
}
.ledger-rule::after {
  content: '';
  display: block;
  height: 0;
  border-top: 1px solid var(--forest);
  margin-top: 4px;
  opacity: 0.55;
}

/* ============ Header / Nav ============ */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
}
.brand img { height: 46px; width: auto; display: block; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.1;
}
.brand-name span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  font-weight: 400;
  margin-top: 2px;
}
.brand:hover { text-decoration: none; }

nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a {
  color: var(--forest);
  font-size: 0.96rem;
  font-weight: 500;
}
nav.main-nav a:hover { color: var(--terracotta); text-decoration: none; }

.nav-phone {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  background: var(--forest);
  color: var(--cream) !important;
  padding: 9px 18px;
  border-radius: 3px;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--terracotta); text-decoration: none !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--forest);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  border-top: 1px solid var(--line);
}
.mobile-nav.open { max-height: 400px; }
.mobile-nav a {
  color: var(--forest);
  font-weight: 500;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:hover { text-decoration: none; background: rgba(96,108,56,0.06); }
.mobile-nav .nav-phone {
  margin: 12px 28px 16px;
  text-align: center;
  border-bottom: none;
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 13px 28px;
  border-radius: 3px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: var(--terracotta-dark); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--cream); }
.btn-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ============ Hero ============ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-rings {
  position: absolute;
  right: -180px;
  top: -140px;
  width: 620px;
  height: 620px;
  z-index: 1;
  opacity: 0.55;
  pointer-events: none;
}
.hero h1 { margin-bottom: 0.35em; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; margin-bottom: 1.6em; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 380px; height: auto; }

.stat-strip {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--forest);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  border-top: 1.5px solid var(--forest);
  border-bottom: 1px solid rgba(40,54,24,0.35);
  padding: 14px 0;
}
.stat-strip .container { display: flex; gap: 36px; flex-wrap: wrap; }
.stat-strip strong { color: var(--terracotta); }

/* ============ Sections ============ */
section { padding: 76px 0; }
.section-cream { background: var(--cream); }
.section-header { max-width: 640px; margin-bottom: 42px; }
.section-header p { font-size: 1.05rem; }

/* ============ Ledger service list ============ */
.ledger {
  border-top: 1.5px solid var(--forest);
}
.ledger-item {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.ledger-item:hover { text-decoration: none; background: rgba(96,108,56,0.05); }
.ledger-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--terracotta);
  padding-top: 6px;
}
.ledger-item h3 { margin-bottom: 6px; }
.ledger-item p { margin-bottom: 0; font-size: 0.98rem; }
.ledger-arrow {
  font-family: var(--font-mono);
  color: var(--forest);
  padding-top: 8px;
  font-size: 1.1rem;
}

/* ============ Cards ============ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 30px 26px;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.96rem; margin-bottom: 0; }

/* ============ CTA band ============ */
.cta-band {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  padding: 72px 0;
}
.cta-band h2 { color: var(--cream); }
.cta-band p { color: rgba(254,250,224,0.82); font-size: 1.1rem; max-width: 50ch; margin: 0 auto 1.8em; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-outline { border-color: var(--cream); color: var(--cream); }
.cta-band .btn-outline:hover { background: var(--cream); color: var(--forest); }

/* ============ Footer ============ */
.site-footer {
  background: var(--forest);
  color: rgba(254,250,224,0.75);
  padding: 56px 0 30px;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  border-bottom: 1px solid rgba(254,250,224,0.18);
  padding-bottom: 40px;
  margin-bottom: 24px;
}
.footer-grid h4 {
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-grid a { color: rgba(254,250,224,0.75); display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--gold); text-decoration: none; }
.footer-brand img { height: 44px; margin-bottom: 14px; }
.footer-brand p { color: rgba(254,250,224,0.65); font-size: 0.9rem; max-width: 32ch; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(254,250,224,0.5);
}

/* ============ Page hero (interior pages) ============ */
.page-hero { padding: 56px 0 50px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 0.3em; }
.page-hero .lede { font-size: 1.08rem; max-width: 60ch; }
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--olive);
  margin-bottom: 18px;
}
.breadcrumb a { color: var(--olive); }

/* ============ Two column content ============ */
.two-col {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 50px;
  align-items: start;
}
.side-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 28px;
  position: sticky;
  top: 100px;
}
.side-card h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 14px;
}
.side-card .phone-big {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--forest);
  display: block;
  margin-bottom: 4px;
}
.side-card ul { padding-left: 18px; margin: 14px 0; }
.side-card li { margin-bottom: 8px; font-size: 0.94rem; color: var(--olive); }

ul.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; }
ul.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
  color: var(--olive);
}
ul.check-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-family: var(--font-mono);
}

/* ============ Contact page ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-block {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px;
}
.contact-block h3 { margin-bottom: 18px; }
.contact-line {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}
.contact-line:last-child { border-bottom: none; }
.contact-line span:first-child { color: var(--olive); }
.contact-line a { color: var(--forest); font-weight: 600; }

/* ============ Blog empty state ============ */
.empty-state {
  text-align: center;
  padding: 70px 30px;
  border: 1.5px dashed var(--olive);
  border-radius: 4px;
  background: var(--cream-card);
}
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { max-width: 48ch; margin: 0 auto 1.6em; }

/* ============ Team / Meet the Owners ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 10px;
}
.team-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.team-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-bottom: 3px solid var(--terracotta);
}
.team-card-body { padding: 22px 24px 26px; }
.team-card h3 { margin-bottom: 2px; }
.team-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
  display: block;
  margin-bottom: 12px;
}
.team-card p { font-size: 0.95rem; margin-bottom: 0; }

@media (max-width: 620px) {
  .team-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav { display: flex; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-rings { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .ledger-item { grid-template-columns: 70px 1fr; }
  .ledger-arrow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
