/* Maxcy Investigations and Consulting - shared stylesheet */

:root {
  --white:      #FFFFFF;
  --off-white:  #F8F8F7;
  --paper:      #F2F1EF;
  --light:      #E8E7E4;
  --mid:        #999490;
  --slate:      #5C5A57;
  --charcoal:   #2A2927;
  --near-black: #131211;
  --accent:     #1A3A3A;
  --accent-mid: #2A5A5A;
  --line:       #E0DED9;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--white);
  color: var(--charcoal);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.container      { max-width: 960px;  margin: 0 auto; padding: 0 40px; }
.container-wide { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

a { color: inherit; }

/* NAV */
nav {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo {
  font-family: 'DM Mono', monospace;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--near-black);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.nav-logo span { color: var(--mid); font-weight: 300; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--near-black); }
.nav-contact a {
  background: var(--near-black) !important;
  color: var(--white) !important;
  padding: 8px 18px;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  transition: background 0.15s !important;
}
.nav-contact a:hover { background: var(--accent) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block; width: 20px; height: 1px;
  background: var(--charcoal); transition: all 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-mobile {
  display: none;
  position: fixed; inset: 0; top: 65px;
  background: var(--white); z-index: 90;
  padding: 32px 40px; flex-direction: column;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  font-size: 0.82rem; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--charcoal); text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.nav-mobile .mobile-cta {
  margin-top: 24px; background: var(--near-black);
  color: var(--white) !important; text-align: center;
  padding: 14px !important; border: none !important;
}

/* BUTTONS */
.btn {
  display: inline-block;
  font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  text-decoration: none; padding: 12px 24px;
  transition: all 0.15s; cursor: pointer;
  border: 1px solid transparent;
  font-family: 'DM Sans', sans-serif;
}
.btn-dark { background: var(--near-black); color: var(--white); }
.btn-dark:hover { background: var(--accent); }
.btn-outline { border: 1px solid var(--light); color: var(--slate); background: none; }
.btn-outline:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-mid); }

/* HERO */
.hero { padding: 96px 0 84px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
.hero-kicker, .kicker {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem; font-weight: 300;
  letter-spacing: 0.12em; color: var(--mid);
  text-transform: uppercase; margin-bottom: 26px;
  display: flex; align-items: center; gap: 14px;
}
.hero-kicker::before, .kicker::before {
  content: ''; display: block; width: 24px; height: 1px; background: var(--mid);
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  font-weight: 300; line-height: 1.1;
  letter-spacing: -0.02em; color: var(--near-black);
  margin-bottom: 30px;
}
.hero h1 strong { font-weight: 500; }
.hero-desc { font-size: 1rem; color: var(--slate); line-height: 1.85; }
.hero-desc p + p { margin-top: 16px; }
.hero-note {
  font-family: 'DM Mono', monospace;
  font-size: 0.75rem; font-weight: 300;
  color: var(--mid); line-height: 1.7;
  padding-top: 20px; border-top: 1px solid var(--line); margin-top: 22px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; margin-top: 28px; flex-wrap: wrap; }

/* PATHS */
.paths { padding: 0; border-bottom: 1px solid var(--line); }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.path {
  background: var(--white); padding: 52px 44px;
  display: flex; flex-direction: column;
  position: relative; transition: background 0.2s;
}
.path:hover { background: var(--off-white); }
.path.path-urgent { background: var(--paper); }
.path.path-urgent:hover { background: var(--light); }
.path-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 18px;
}
.path h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  font-weight: 400; line-height: 1.25;
  letter-spacing: -0.01em; color: var(--near-black); margin-bottom: 18px;
}
.path p { font-size: 0.93rem; color: var(--slate); line-height: 1.8; margin-bottom: 14px; }
.path ul { list-style: none; margin: 6px 0 24px; }
.path li {
  font-size: 0.88rem; color: var(--slate);
  padding: 7px 0 7px 20px; position: relative; line-height: 1.6;
}
.path li::before {
  content: ''; position: absolute; left: 0; top: 16px;
  width: 8px; height: 1px; background: var(--mid);
}
.path .path-cta { margin-top: auto; padding-top: 8px; }

/* SECTIONS */
section { border-bottom: 1px solid var(--line); }
.sec { padding: 84px 0; }
.sec-alt { background: var(--off-white); }
.sec-paper { background: var(--paper); }
.sec-header { display: grid; grid-template-columns: 1fr 2fr; gap: 72px; align-items: start; margin-bottom: 52px; }
.sec-header h2, .sec h2.solo {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 400; line-height: 1.2;
  letter-spacing: -0.01em; color: var(--near-black);
}
.sec-header p { font-size: 0.97rem; color: var(--slate); line-height: 1.85; max-width: 540px; }
.sec h2.solo { margin-bottom: 36px; }
.sec-body p { font-size: 0.97rem; color: var(--slate); line-height: 1.9; margin-bottom: 18px; }
.sec-body p:last-child { margin-bottom: 0; }
.sec-body h3 {
  font-size: 1.02rem; font-weight: 500; color: var(--near-black);
  margin: 34px 0 12px; letter-spacing: -0.01em;
}
.two-col { display: grid; grid-template-columns: 1fr 1.8fr; gap: 72px; align-items: start; }

/* CARDS */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); }
.card { background: var(--white); padding: 34px 30px; position: relative; }
.sec-alt .card, .sec-alt .principle { background: var(--off-white); }
.sec-paper .card { background: var(--paper); }
.card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px; background: var(--near-black);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; font-weight: 300;
  color: var(--mid); letter-spacing: 0.1em; margin-bottom: 14px;
}
.card h3 {
  font-size: 1rem; font-weight: 500; color: var(--near-black);
  margin-bottom: 11px; line-height: 1.3; letter-spacing: -0.01em;
}
.card p { font-size: 0.88rem; color: var(--slate); line-height: 1.75; }
.card .card-price {
  font-family: 'DM Mono', monospace;
  font-size: 0.76rem; color: var(--accent);
  letter-spacing: 0.04em; margin-top: 16px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.card a.card-link {
  display: inline-block; margin-top: 16px;
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.06em; color: var(--accent); text-decoration: none;
  border-bottom: 1px solid var(--light); padding-bottom: 2px;
}
.card a.card-link:hover { border-color: var(--accent); }

/* PRINCIPLES */
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); margin-top: 30px; }
.principle { background: var(--white); padding: 24px 28px; }
.principle-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem; font-weight: 300; color: var(--mid);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.principle p { font-size: 0.88rem; color: var(--slate); line-height: 1.7; margin: 0; }

/* STEPS */
.steps { border-top: 1px solid var(--line); margin-top: 8px; }
.step {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 32px; padding: 26px 0;
  border-bottom: 1px solid var(--line); align-items: start;
}
.step-num {
  font-family: 'DM Mono', monospace; font-size: 0.72rem;
  color: var(--mid); letter-spacing: 0.1em; padding-top: 3px;
}
.step h3 { font-size: 0.98rem; font-weight: 500; color: var(--near-black); margin-bottom: 7px; }
.step p { font-size: 0.9rem; color: var(--slate); line-height: 1.8; margin: 0; }

/* RATES */
.rate-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; padding: 17px 0; border-bottom: 1px solid var(--line);
}
.rate-row:first-child { border-top: 1px solid var(--line); }
.rate-name { font-size: 0.94rem; color: var(--charcoal); }
.rate-name small { display: block; font-size: 0.82rem; color: var(--mid); line-height: 1.6; margin-top: 3px; }
.rate-price {
  font-family: 'DM Mono', monospace; font-size: 0.82rem;
  color: var(--accent); white-space: nowrap; letter-spacing: 0.02em;
}

/* QUOTES */
blockquote.quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  color: var(--accent); line-height: 1.7;
  border-left: 2px solid var(--accent-mid);
  padding-left: 24px; margin: 26px 0;
}
blockquote.quote cite {
  display: block; font-family: 'DM Mono', monospace;
  font-style: normal; font-size: 0.72rem;
  color: var(--mid); margin-top: 14px; letter-spacing: 0.04em;
}

/* WRITING */
.writing-list { border-top: 1px solid var(--line); }
.writing-item {
  display: block; text-decoration: none;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s;
}
.writing-item:hover { padding-left: 10px; }
.writing-tag {
  font-family: 'DM Mono', monospace; font-size: 0.67rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mid); margin-bottom: 9px;
}
.writing-item h3 {
  font-size: 1.05rem; font-weight: 400;
  color: var(--near-black); margin-bottom: 8px;
  letter-spacing: -0.01em; line-height: 1.35;
}
.writing-item p { font-size: 0.9rem; color: var(--slate); line-height: 1.75; max-width: 700px; }

/* FORMS */
.form-wrap { max-width: 520px; }
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block; font-family: 'DM Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--mid); margin-bottom: 7px;
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 11px 13px;
  border: 1px solid var(--line); background: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.92rem;
  font-weight: 300; color: var(--charcoal);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent-mid);
}
.form-row textarea { min-height: 96px; resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--mid); line-height: 1.7; margin-top: 14px; }
.hp { position: absolute; left: -9999px; }

/* CALLOUT */
.callout {
  background: var(--paper); border-left: 2px solid var(--accent-mid);
  padding: 26px 30px; margin: 30px 0;
}
.callout p { font-size: 0.93rem; color: var(--slate); line-height: 1.8; margin-bottom: 10px; }
.callout p:last-child { margin-bottom: 0; }
.callout strong { color: var(--near-black); font-weight: 500; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 24px 0; }
.faq-item h3 { font-size: 0.98rem; font-weight: 500; color: var(--near-black); margin-bottom: 9px; }
.faq-item p { font-size: 0.92rem; color: var(--slate); line-height: 1.85; }

/* CTA BAND */
.cta-band { background: var(--near-black); color: var(--white); padding: 76px 0; }
.cta-band h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 300;
  color: var(--white); letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 18px;
}
.cta-band p { font-size: 0.97rem; color: #B8B5B0; line-height: 1.85; max-width: 560px; margin-bottom: 28px; }
.cta-band .btn-dark { background: var(--white); color: var(--near-black); }
.cta-band .btn-dark:hover { background: var(--light); }
.cta-band .btn-outline { border-color: #4A4845; color: #B8B5B0; }
.cta-band .btn-outline:hover { border-color: var(--white); color: var(--white); }

/* FOOTER */
footer { padding: 54px 0 44px; background: var(--white); }
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 40px; flex-wrap: wrap;
}
.footer-brand {
  font-family: 'DM Mono', monospace; font-size: 0.78rem;
  color: var(--charcoal); letter-spacing: 0.04em; margin-bottom: 10px;
}
.footer-meta { font-size: 0.8rem; color: var(--mid); line-height: 1.8; max-width: 460px; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a {
  font-family: 'DM Mono', monospace; font-size: 0.74rem;
  color: var(--slate); text-decoration: none; letter-spacing: 0.04em;
}
.footer-links a:hover { color: var(--near-black); }

/* ARTICLE */
.article { padding: 72px 0 60px; }
.article h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 300;
  line-height: 1.15; letter-spacing: -0.02em;
  color: var(--near-black); margin-bottom: 18px;
}
.article-meta {
  font-family: 'DM Mono', monospace; font-size: 0.74rem;
  color: var(--mid); letter-spacing: 0.06em; margin-bottom: 40px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .sec-header, .two-col, .paths-grid,
  .grid-3, .grid-2, .principles { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .grid-2, .principles, .paths-grid { gap: 1px; }
  .hero { padding: 60px 0 52px; }
  .sec { padding: 56px 0; }
  .path { padding: 40px 30px; }
  .container, .container-wide, .nav-inner { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .step { grid-template-columns: 1fr; gap: 8px; }
  .rate-row { flex-direction: column; gap: 4px; }
  .cta-band { padding: 56px 0; }
}
