/* ShadowCounsel — shared stylesheet */

:root {
  --bg:          #1a1a1d;
  --bg-elev:     #222226;
  --bg-card:     #1a1a1d;
  --text:        #ffffff;
  --text-mute:   #c8c8cc;
  --text-dim:    #9999a0;
  --line:        #33333a;
  --line-soft:   #2a2a30;
  --line-strong: #4a4a52;
  --accent:      #e63946;
  --accent-dim:  #b82e38;

  --sans: 'Chivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Chivo Mono', ui-monospace, SFMono-Regular, monospace;

  --max-w: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); }

/* Header */
.site-header {
  border-bottom: 0.5px solid var(--line-soft);
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(8px);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; gap: 2rem; position: relative;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant: small-caps;
  font-feature-settings: "smcp";
}
.brand-lg {
  font-size: 24px;
}
.sc-mark {
  display: inline-block;
  flex-shrink: 0;
  color: var(--text);
}
.sc-mark.header-size {
  width: 26px; height: 30px;
}
.sc-mark.hero-size {
  width: 110px; height: 128px;
  margin: 0 0 32px;
  color: var(--text);
}
.brand-lg { font-size: 23px; }

.hero-centered { text-align: center; }
.hero-centered .hero-kicker,
.hero-centered .hero-ctas { justify-content: center; }
.hero-centered .sc-mark.hero-size { margin-left: auto; margin-right: auto; display: block; }
.hero-centered h1 { margin-left: auto; margin-right: auto; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
nav.primary { display: flex; gap: 28px; }
nav.primary a {
  font-family: var(--mono); font-size: 12px;
  color: var(--text); text-transform: uppercase;
  letter-spacing: 0.05em; padding: 4px 0; position: relative;
}
nav.primary a.current { color: var(--accent); }
nav.primary a.current::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--accent);
}
.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--text); font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 8px 12px; cursor: pointer;
}

/* Sections */
section { padding: clamp(3rem, 7vw, 5rem) 0; }
section.elev { background: var(--bg-elev); }
section + section { border-top: 0.5px solid var(--line-soft); }

.section-label {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 1.75rem;
}
.section-label-text {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
}
.section-label-rule { flex: 1; height: 0.5px; background: var(--line); }

/* Hero */
.hero { padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 4.5rem); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 28px;
}
.hero-kicker .mark {
  width: 32px; height: 2px; background: var(--accent); display: inline-block;
}
.hero-kicker .text {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(32px, 5.5vw, 52px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 24px; max-width: 18ch; color: var(--text);
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65; color: var(--text);
  max-width: 62ch; margin: 0 0 34px;
}
.hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 12px 24px; border: none; border-radius: 0;
  cursor: pointer; transition: all 0.15s ease;
}
.btn.primary { background: var(--text); color: var(--bg); }
.btn.primary:hover { background: var(--accent); color: var(--text); }
.btn.secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn.secondary:hover { border-color: var(--text); color: var(--text); }

/* Service cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.card {
  background: var(--bg-card); border: 0.5px solid var(--line);
  border-radius: 0; padding: 24px;
  transition: border-color 0.2s ease;
}
.card:hover { border-color: var(--line-strong); }
.card-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
}
.card-num { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.card-head .rule { flex: 1; height: 0.5px; background: var(--line); }
.card h3 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 10px; color: var(--text); letter-spacing: -0.01em;
}
.card p {
  font-size: 13.5px; color: var(--text);
  line-height: 1.6; margin: 0;
}

.samples-line {
  display: flex; align-items: center; gap: 10px; margin-top: 22px;
  cursor: pointer; transition: color 0.15s ease;
}
.samples-line:hover { color: var(--accent); }
.samples-line:hover .mark { background: var(--text); }
.samples-line .mark {
  width: 20px; height: 1px; background: var(--accent); display: inline-block;
  transition: background 0.15s ease;
}
.samples-line p {
  font-family: var(--mono); font-size: 12px; color: var(--text);
  margin: 0; letter-spacing: 0.02em;
}

/* Stats */
.stats { padding: 2rem 0 !important; border-top: 0.5px solid var(--line-soft); border-bottom: 0.5px solid var(--line-soft); }
.stats .inner { display: flex; gap: clamp(2rem, 5vw, 3.5rem); flex-wrap: wrap; }
.stat-num {
  font-size: clamp(24px, 2.5vw, 30px); font-weight: 900;
  margin: 0; color: var(--text); letter-spacing: -0.03em; line-height: 1;
}
.stat-label {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-mute); margin: 6px 0 0;
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* Prose */
.prose { max-width: 68ch; }
.prose h2 {
  font-size: clamp(22px, 2.2vw, 28px); font-weight: 700;
  letter-spacing: -0.02em; margin: 2.5rem 0 1rem; color: var(--text);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.01em; margin: 2rem 0 0.75rem; color: var(--text);
}
.prose p {
  font-size: 15.5px; line-height: 1.75;
  color: var(--text); margin: 0 0 1.1rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 700; }
.prose a {
  color: var(--text); border-bottom: 1px solid var(--accent); padding-bottom: 1px;
}
.prose a:hover { color: var(--accent); }
.prose ul, .prose ol {
  font-size: 15.5px; line-height: 1.75;
  padding-left: 1.25rem; margin: 0 0 1.1rem; color: var(--text);
}
.prose li { margin-bottom: 0.4rem; }

/* Service detail blocks */
.service-block {
  padding: 2.5rem 0;
  border-bottom: 0.5px solid var(--line-soft);
}
.service-block:last-of-type { border-bottom: none; }
.service-block .num {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.05em; margin: 0 0 12px;
}
.service-block h2 {
  font-size: clamp(24px, 2.6vw, 32px); font-weight: 700;
  letter-spacing: -0.025em; margin: 0 0 16px; color: var(--text);
}
.service-block > p {
  font-size: 15.5px; line-height: 1.7;
  color: var(--text); max-width: 60ch; margin: 0 0 1.5rem;
}
.service-block .sub-list {
  margin-top: 1rem; border-top: 0.5px solid var(--line-soft); padding-top: 1.25rem;
}
.service-block .sub-item { margin-bottom: 1.25rem; }
.service-block .sub-item:last-child { margin-bottom: 0; }
.service-block .sub-item .label {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.05em;
  text-transform: uppercase; margin: 0 0 6px;
}
.service-block .sub-item .desc {
  font-size: 14.5px; color: var(--text);
  line-height: 1.65; margin: 0; max-width: 62ch;
}
.service-block .meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px; margin-top: 1.75rem; padding-top: 1.5rem;
  border-top: 0.5px solid var(--line-soft);
}
.service-block .meta-item p:first-child {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-mute); letter-spacing: 0.08em;
  text-transform: uppercase; margin: 0 0 6px;
}
.service-block .meta-item p:last-child {
  font-size: 14px; color: var(--text); margin: 0; line-height: 1.5;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px; margin-top: 2rem;
}
.contact-card {
  background: var(--bg-card); border: 0.5px solid var(--line); padding: 28px;
}
.contact-card .label {
  font-family: var(--mono); font-size: 10.5px; color: var(--text-mute);
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 10px;
}
.contact-card .value {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text); margin: 0; line-height: 1.3;
  overflow-wrap: anywhere;
}
.contact-card .value.is-addr {
  font-family: var(--mono); font-size: 14px; font-weight: 500;
  letter-spacing: 0;
}
.contact-card .value a { color: var(--text); }
.contact-card .value a:hover { color: var(--accent); }
.contact-card .note {
  font-size: 13px; color: var(--text); margin: 10px 0 0; line-height: 1.5;
}

/* Footer */
.site-footer {
  background: var(--bg-elev);
  border-top: 0.5px solid var(--line-soft);
  padding: 2.5rem 0 2rem;
}
.footer-top {
  display: flex; justify-content: space-between;
  align-items: flex-start; flex-wrap: wrap; gap: 24px;
}
.footer-brand-block p:first-child {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  font-variant: small-caps;
  font-feature-settings: "smcp";
  margin: 0 0 6px;
  color: var(--text);
}
.footer-brand-block p:last-child {
  font-family: var(--mono); font-size: 11px;
  color: var(--text-mute); margin: 0;
}
.footer-contact { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-contact .label {
  font-family: var(--mono); font-size: 10px;
  color: var(--text-mute); margin: 0 0 4px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.footer-contact .value {
  font-size: 13px; margin: 0; font-weight: 500; color: var(--text);
}
.footer-bottom {
  border-top: 0.5px solid var(--line);
  margin-top: 1.5rem; padding-top: 1rem;
}
.footer-bottom p {
  font-family: var(--mono); font-size: 10.5px;
  color: var(--text-mute); margin: 0; letter-spacing: 0.03em;
}

/* Page header */
.page-head { padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head .kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 20px;
}
.page-head .kicker .mark { width: 32px; height: 2px; background: var(--accent); }
.page-head .kicker span:last-child {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase;
}
.page-head h1 {
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 18px; color: var(--text);
}
.page-head .lede {
  font-size: clamp(15px, 1.2vw, 17px);
  line-height: 1.65; color: var(--text);
  max-width: 60ch; margin: 0;
}

/* Responsive */
@media (max-width: 720px) {
  nav.primary {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 0.5px solid var(--line);
    padding: 8px 0;
  }
  nav.primary.open { display: flex; }
  nav.primary a {
    padding: 14px var(--gutter);
    border-top: 0.5px solid var(--line-soft);
  }
  nav.primary a::after { display: none; }
  .menu-toggle { display: inline-block; }
  .hero h1 { max-width: none; }
  .btn { padding: 10px 18px; font-size: 12px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
