/* JJ Consulting — shared stylesheet. Edit design tokens in :root. */
/* ── RESET & TOKENS ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --charcoal:   #111111;
  --surface:    #1A1A1A;
  --surface2:   #222222;
  --border:     rgba(255,255,255,0.08);
  --gold:       #C9A84C;
  --gold-dim:   rgba(201,168,76,0.12);
  --gold-rule:  rgba(201,168,76,0.25);
  --pearl:      #FAF9F6;
  --text:       rgba(250,249,246,0.85);
  --muted:      rgba(250,249,246,0.4);
  --muted2:     rgba(250,249,246,0.2);
  --wa:         #25D366;
  --wa-dark:    #1DA851;
  --danger:     #C0392B;
  --radius:     2px;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--charcoal);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface); }

.label {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 10px; display: block;
}
.heading {
  font-family: var(--font-serif);
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600; line-height: 1.15;
  color: var(--pearl);
  margin-bottom: 18px;
}
.heading em { color: var(--gold); font-style: italic; }
.body-text {
  font-size: 16px; color: var(--muted);
  line-height: 1.75; max-width: 560px;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; font-family: var(--font-sans);
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; border: none;
  transition: all 0.15s; white-space: nowrap; text-decoration: none;
  border-radius: var(--radius);
}
.btn-wa {
  background: var(--wa); color: #fff;
}
.btn-wa:hover { background: var(--wa-dark); transform: translateY(-1px); box-shadow: 0 4px 20px rgba(37,211,102,0.3); }
.btn-gold {
  background: var(--gold); color: #111;
}
.btn-gold:hover { background: #b8962e; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-rule);
}
.btn-ghost:hover { background: var(--gold-dim); }
.btn-lg { padding: 16px 34px; font-size: 12px; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(17,17,17,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gold-rule);
  padding: 0;
}
.nav-inner {
  display: flex; align-items: center; height: 60px;
  gap: 32px;
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px; font-weight: 600; color: var(--gold);
  letter-spacing: 2px; flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 28px; list-style: none; margin-left: auto;
}
.nav-links a {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); font-weight: 500; transition: color 0.15s;
}
.nav-links a:hover { color: var(--gold); }
.nav-cta { margin-left: 20px; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
}

/* ── HERO ── */
.hero {
  padding: 100px 0 90px;
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(201,168,76,0.06) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.015) 39px,
      rgba(255,255,255,0.015) 40px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 39px,
      rgba(255,255,255,0.015) 39px,
      rgba(255,255,255,0.015) 40px
    );
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold-dim); border: 1px solid var(--gold-rule);
  padding: 6px 16px; border-radius: 100px;
  font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--gold);
  margin-bottom: 28px;
}
.hero-eyebrow::before { content: '●'; font-size: 7px; }
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 600; line-height: 1.1;
  color: var(--pearl); margin-bottom: 24px;
  letter-spacing: -0.5px;
}
.hero-title em { color: var(--gold); font-style: italic; }
.hero-sub {
  font-size: 17px; color: var(--muted);
  max-width: 540px; margin-bottom: 36px;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 0; margin-bottom: 40px;
  border: 1px solid var(--border);
}
.hero-proof-item {
  flex: 1 1 120px; padding: 16px 20px;
  border-right: 1px solid var(--border);
}
.hero-proof-item:last-child { border-right: none; }
.hero-proof-num {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.hero-proof-label {
  font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); margin-top: 6px;
}
@media (max-width: 480px) {
  .hero-proof-item { flex: 1 1 100%; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-proof-item:last-child { border-bottom: none; }
  .hero-proof-num { font-size: 22px; }
}
.hero-capacity {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--muted); letter-spacing: 0.5px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
}
.hero-capacity strong { color: var(--pearl); font-weight: 500; }

/* ── PROBLEM ── */
.problem-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: start;
}
@media (max-width: 768px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem-hook {
  font-family: var(--font-serif);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 600; line-height: 1.25;
  color: var(--pearl); margin-bottom: 24px;
}
.problem-hook em { color: var(--gold); font-style: italic; }
.stat-list { list-style: none; margin-top: 28px; }
.stat-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--border);
}
.stat-item:last-child { border-bottom: none; }
.stat-num {
  font-family: var(--font-serif); font-size: 28px; font-weight: 600;
  color: var(--gold); line-height: 1; flex-shrink: 0; min-width: 72px;
}
.stat-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.stat-desc strong { color: var(--pearl); font-weight: 500; display: block; margin-bottom: 3px; font-size: 14px; }

/* ── SERVICES ── */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; margin-top: 48px;
  border: 1px solid var(--border);
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  padding: 36px 28px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  transition: background 0.15s;
  position: relative;
}
.service-card:last-child { border-right: none; }
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: transparent;
  transition: background 0.15s;
}
.service-card:hover { background: var(--surface2); }
.service-card:hover::before { background: var(--gold); }
.service-num {
  font-size: 9px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 20px;
}
.service-name {
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  color: var(--pearl); margin-bottom: 12px; line-height: 1.2;
}
.service-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }
.service-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.service-tag {
  font-size: 9px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted2); border: 1px solid var(--border);
  padding: 3px 8px;
}

/* ── PROCESS ── */
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin-top: 48px; position: relative;
}
@media (max-width: 768px) { .process-steps { grid-template-columns: 1fr; } }
.process-steps::before {
  content: '';
  position: absolute; top: 28px; left: 12%; right: 12%;
  height: 1px; background: var(--gold-rule);
  z-index: 0;
}
@media (max-width: 768px) { .process-steps::before { display: none; } }
.step {
  text-align: center; padding: 0 20px;
  position: relative; z-index: 1;
}
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--charcoal); border: 1px solid var(--gold-rule);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-serif); font-size: 22px; font-weight: 600;
  color: var(--gold);
}
.step-title {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--pearl); margin-bottom: 10px;
}
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }
.step-detail {
  margin-top: 14px; font-size: 11px; color: var(--muted2);
  letter-spacing: 0.5px; line-height: 1.55;
}

/* ── WHY JJ ── */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; margin-top: 48px;
  border: 1px solid var(--border);
}
@media (max-width: 600px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 32px 28px; background: var(--surface);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.why-card:nth-child(2n) { border-right: none; }
.why-card:nth-child(3), .why-card:nth-child(4) { border-bottom: none; }
@media (max-width: 600px) {
  .why-card { border-right: none; }
  .why-card:last-child { border-bottom: none; }
}
.why-icon {
  font-size: 24px; margin-bottom: 14px; display: block;
}
.why-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600;
  color: var(--pearl); margin-bottom: 8px;
}
.why-desc { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── FIRM ── */
.firm-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: 48px; align-items: start; margin-top: 8px;
}
@media (max-width: 768px) { .firm-grid { grid-template-columns: 1fr; gap: 28px; } }
.firm-list { list-style: none; }
.firm-item {
  padding: 18px 0 18px 22px; border-left: 2px solid var(--gold-rule);
  border-bottom: 1px solid var(--border); transition: border-color 0.15s;
}
.firm-item:last-child { border-bottom: none; }
.firm-item:hover { border-left-color: var(--gold); }
.firm-item-title {
  font-family: var(--font-serif); font-size: 19px; font-weight: 600;
  color: var(--pearl); margin-bottom: 5px;
}
.firm-item-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ── RESULTS ── */
.results-wrap {
  border: 1px solid var(--gold-rule);
  margin-top: 48px;
  position: relative;
}
.results-wrap::before {
  content: 'ILLUSTRATIVE ENGAGEMENT MODEL';
  position: absolute; top: -10px; left: 24px;
  font-size: 9px; letter-spacing: 2.5px; font-weight: 600;
  color: var(--gold); background: var(--charcoal); padding: 0 8px;
}
.results-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 768px) { .results-inner { grid-template-columns: 1fr; } }
.results-left {
  padding: 36px 32px; border-right: 1px solid var(--border);
}
@media (max-width: 768px) { .results-left { border-right: none; border-bottom: 1px solid var(--border); } }
.results-right { padding: 36px 32px; }
.client-name {
  font-family: var(--font-serif); font-size: 20px; font-weight: 600;
  color: var(--pearl); margin-bottom: 4px;
}
.client-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.5px; margin-bottom: 20px; }
.audit-before {
  list-style: none;
}
.audit-before li {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  padding: 7px 0; border-bottom: 1px solid var(--border);
}
.audit-before li:last-child { border-bottom: none; }
.audit-dot-fail { width: 6px; height: 6px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.audit-dot-pass { width: 6px; height: 6px; border-radius: 50%; background: #27AE60; flex-shrink: 0; }
.metrics-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-bottom: 24px;
}
.metric {
  padding: 18px; border: 1px solid var(--border);
  background: var(--surface2);
}
.metric-num {
  font-family: var(--font-serif); font-size: 32px; font-weight: 600;
  color: var(--gold); line-height: 1;
}
.metric-label { font-size: 11px; color: var(--muted); margin-top: 5px; letter-spacing: 0.5px; }
.testimonial-block {
  padding: 20px; border: 1px solid var(--border);
  border-left: 3px solid var(--gold-rule);
  background: var(--surface2);
}
.testimonial-quote {
  font-family: var(--font-serif); font-size: 16px; font-style: italic;
  color: var(--text); line-height: 1.6; margin-bottom: 12px;
}
.testimonial-attr { font-size: 11px; color: var(--muted); letter-spacing: 0.5px; }

/* ── ENGAGEMENT ── */
.engagement {
  padding: 90px 0;
  background: var(--surface);
  border-top: 1px solid var(--gold-rule);
  border-bottom: 1px solid var(--gold-rule);
  position: relative; overflow: hidden;
}
.engagement::after {
  content: 'JJ';
  position: absolute; right: -40px; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif); font-size: 300px; font-weight: 600;
  color: rgba(201,168,76,0.03); line-height: 1; pointer-events: none;
  user-select: none;
}
.engagement-inner { position: relative; z-index: 1; max-width: 680px; }
.engagement-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--muted2); letter-spacing: 1px;
  border: 1px solid var(--border); padding: 6px 14px; margin-top: 18px;
}
.engagement-note::before { content: '⚠'; font-size: 12px; }
.engagement-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.engagement-email {
  font-size: 13px; color: var(--muted); margin-top: 20px;
}
.engagement-email a { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold-rule); }
.engagement-email a:hover { text-decoration-color: var(--gold); }

/* ── FOOTER ── */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto;
  gap: 40px; align-items: start;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo {
  font-family: var(--font-serif); font-size: 26px; font-weight: 600;
  color: var(--gold); letter-spacing: 2px; margin-bottom: 8px;
}
.footer-tagline { font-size: 12px; color: var(--muted); max-width: 360px; line-height: 1.6; }
.footer-dpdp {
  font-size: 11px; color: var(--muted2); margin-top: 14px;
  max-width: 400px; line-height: 1.6;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
@media (max-width: 600px) { .footer-links { align-items: flex-start; } }
.footer-links a {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); transition: color 0.15s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 11px; color: var(--muted2); letter-spacing: 0.5px; }

/* ── FLOATING WA ── */
.wa-float {
  position: fixed; bottom: 24px; right: 20px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--wa); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: all 0.2s; text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
.wa-float svg { width: 28px; height: 28px; }
.wa-float-pulse {
  position: absolute; top: 1px; right: 1px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--charcoal);
}

/* ── WA ICON ── */
.wa-icon { width: 17px; height: 17px; flex-shrink: 0; }

/* ── DIVIDER ── */
.gold-rule { border: none; border-top: 1px solid var(--gold-rule); margin: 0; }

/* ── RESPONSIVE ── */
@media (max-width: 480px) {
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 56px; }
  .btn-lg { padding: 14px 24px; }
}

/* ── SUB-PAGE HELPERS (specialty / locality / article pages) ── */
.crumbs {
  font-size: 11px; letter-spacing: 0.5px; color: var(--muted2);
  padding: 18px 0 0; display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
}
.crumbs a { color: var(--muted); transition: color 0.15s; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--muted2); }

.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 12px; letter-spacing: 0.5px; color: var(--text);
  border: 1px solid var(--border); padding: 9px 16px;
  transition: all 0.15s; background: var(--surface);
}
a.chip:hover { border-color: var(--gold-rule); color: var(--gold); background: var(--gold-dim); }

.lede {
  font-size: 18px; color: var(--text); line-height: 1.7;
  max-width: 640px; margin-bottom: 18px;
}
.prose { max-width: 680px; }
.prose p { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 18px; }
.prose p strong { color: var(--text); font-weight: 500; }

/* ── LIGHT MODE ── */
@media (prefers-color-scheme: light) {
  :root {
    --charcoal:   #FFFFFF;
    --surface:    #F9F9F9;
    --surface2:   #F0F0F0;
    --border:     rgba(0,0,0,0.08);
    --gold:       #9D8B3D;
    --gold-dim:   rgba(157,139,61,0.12);
    --gold-rule:  rgba(157,139,61,0.25);
    --pearl:      #111111;
    --text:       #222222;
    --muted:      rgba(0,0,0,0.6);
    --muted2:     rgba(0,0,0,0.4);
  }
  
  .nav {
    background: rgba(255,255,255,0.95);
    border-bottom-color: rgba(157,139,61,0.2);
  }
  
  .hero::before {
    background:
      radial-gradient(ellipse 80% 60% at 70% 50%, rgba(157,139,61,0.06) 0%, transparent 70%),
      repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.015) 39px, rgba(0,0,0,0.015) 40px),
      repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.015) 39px, rgba(0,0,0,0.015) 40px);
  }
  
  .service-card:hover::before { background: #9D8B3D; }
}

html.light-mode {
  --charcoal:   #FFFFFF;
  --surface:    #F9F9F9;
  --surface2:   #F0F0F0;
  --border:     rgba(0,0,0,0.08);
  --gold:       #9D8B3D;
  --gold-dim:   rgba(157,139,61,0.12);
  --gold-rule:  rgba(157,139,61,0.25);
  --pearl:      #111111;
  --text:       #222222;
  --muted:      rgba(0,0,0,0.6);
  --muted2:     rgba(0,0,0,0.4);
}

html.light-mode .nav {
  background: rgba(255,255,255,0.95);
  border-bottom-color: rgba(157,139,61,0.2);
}

html.light-mode .hero::before {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(157,139,61,0.06) 0%, transparent 70%),
    repeating-linear-gradient(0deg, transparent, transparent 39px, rgba(0,0,0,0.015) 39px, rgba(0,0,0,0.015) 40px),
    repeating-linear-gradient(90deg, transparent, transparent 39px, rgba(0,0,0,0.015) 39px, rgba(0,0,0,0.015) 40px);
}

html.light-mode .service-card:hover::before { background: #9D8B3D; }

/* Theme toggle button */
#theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
  margin-left: 16px;
}

#theme-toggle:hover {
  background: var(--gold-dim);
  border-color: var(--gold-rule);
}

@media (max-width: 768px) {
  #theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
    margin-left: 12px;
  }
}
