/* Steven Baez Consulting — site styles
   Tokens live on :root; change --accent to retheme. */

:root {
  --ink: #0D1B2E;
  --ink-2: #13233A;
  --ink-border: #2A3A50;
  --surface: #F5F6F4;
  --border: #D9DDD7;
  --accent: #137A5A;
  --accent-hover: #0E5E45;
  --accent-light: #E6F2EC;
  --accent-on-dark: #7FC9AE;
  --text: #0D1B2E;
  --muted: #3F4B5B;
  --muted-2: #66707D;
  --on-dark: #C9D0D9;
  --on-dark-2: #AEB7C3;
  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-label: 'IBM Plex Sans', system-ui, sans-serif;
  --container: 1200px;
  --gutter: 32px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2 { margin: 0; font-family: var(--font-display); letter-spacing: -0.015em; font-weight: 600; }
h3 { margin: 0; font-family: var(--font-body); letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: 104px 0; }
.section--tight { padding: 64px 0; }
.section--dark { background: var(--ink); color: #fff; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--surface-top { background: var(--surface); border-top: 1px solid var(--border); }

.eyebrow {
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.section--dark .eyebrow { color: var(--accent-on-dark); }
.eyebrow--muted { color: var(--muted-2); }
.mono { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

.h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 600; }
.h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; font-weight: 600; }
.h3 { font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; }
.h3--lg { font-size: 26px; line-height: 1.2; }
.lead { font-size: 20px; line-height: 1.55; color: var(--on-dark); max-width: 56ch; }
.lead--light { color: var(--muted); }
.body { font-size: 16px; line-height: 1.6; color: var(--muted); }
.body--sm { font-size: 15px; }
.section--dark .body { color: var(--on-dark); }

.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap, 16px); }
.gap-xs { --gap: 8px; } .gap-sm { --gap: 14px; } .gap-md { --gap: 24px; } .gap-lg { --gap: 48px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.row--between { justify-content: space-between; }
.row--end { align-items: flex-end; }
.row--start { align-items: flex-start; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn--sm { min-height: 46px; padding: 0 20px; font-size: 15px; }
.btn--xs { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); color: #fff; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1A2742; color: #fff; }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--outline-light { border-color: #5A6A80; color: #fff; background: transparent; }
.btn--outline-light:hover { border-color: #fff; color: #fff; }

.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius); z-index: 100; font-weight: 600; }
.skip-link:focus { top: 16px; color: #fff; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .body { padding: 0 0 20px; max-width: 70ch; }

/* Nav */
.nav { border-bottom: 1px solid var(--border); background: #fff; }
.nav__inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; padding: 16px 0; }
.brand:hover { color: var(--ink); }
.brand__mark { display: inline-flex; width: 28px; height: 28px; border-radius: var(--radius); background: var(--accent); align-items: center; justify-content: center; color: #fff; font-size: 13px; font-weight: 700; }
.nav__links { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.nav__links a { color: var(--muted); padding: 12px 0; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--ink); }
.nav__links .btn { padding: 0 20px; min-height: 44px; font-size: 15px; border-radius: var(--radius); }
.nav__links .btn--ink, .nav__links .btn--ink:hover { color: #fff; }

/* Hero */
.hero__inner { padding-top: 104px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.hero__main { flex: 999 1 560px; min-width: 0; }
.hero__main .h1 { max-width: 14ch; }
.hero__aside { flex: 1 1 320px; min-width: 0; border: 1px solid var(--ink-border); border-radius: var(--radius); background: var(--ink-2); padding: 8px; }
.hero__aside-title { padding: 20px 20px 14px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-on-dark); }
.hero__item { display: flex; gap: 16px; padding: 16px 20px; border-top: 1px solid var(--ink-border); }
.hero__item-num { font-family: var(--font-label); font-size: 13px; color: var(--accent-on-dark); padding-top: 2px; width: 24px; flex-shrink: 0; }
.hero__item-title { font-weight: 600; font-size: 16px; }
.hero__item-body { font-size: 14px; line-height: 1.5; color: var(--on-dark-2); margin-top: 4px; }
.avatar { display: inline-flex; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid #3A4A66; background: #fff; flex-shrink: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

.hero--light { background: #fff; color: var(--ink); border-bottom: 1px solid var(--border); }
.hero--light .eyebrow { color: var(--accent); }
.hero--light .lead { color: var(--muted); }
.hero--light .hero__aside { background: var(--surface); border-color: var(--border); }
.hero--light .hero__aside-title { color: var(--muted-2); border-bottom: 0; }
.hero--light .hero__item { border-top-color: var(--border); }
.hero--light .hero__item-body { color: var(--muted); }
.hero--light .hero__stat { color: var(--ink); }
.hero--light .avatar { border-color: var(--border); }
.hero__aside { border-radius: var(--radius); }

.hero__figure { padding-bottom: 72px; }
.hero__figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 24px 60px -30px rgba(13,27,46,0.45); }
.hero__caption { padding-top: 12px; font-size: 13px; color: var(--muted-2); }
.hero--light .hero__inner { padding-bottom: 56px; }

/* Page header (subpages) */
.page-head { background: var(--ink); color: #fff; }
.page-head__inner { padding-top: 80px; padding-bottom: 72px; }
.page-head .lead { color: var(--on-dark); }

/* Logo strip */
.logos { background: var(--ink); color: #fff; }
.logos__inner { padding-top: 36px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 40px; }
.logos__label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-on-dark); flex-shrink: 0; }
.logos__list { display: flex; flex-wrap: wrap; gap: 14px 36px; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: #fff; }

/* Cards */
.card { display: flex; flex-direction: column; gap: 16px; padding: 28px 0 8px; border-top: 1px solid var(--ink); background: transparent; min-width: 0; color: var(--text); }
.card--lg { padding: 36px; gap: 20px; background: #fff; border: 1px solid var(--border); border-top: 3px solid var(--ink); }
.card--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card--surface { background: var(--surface); }
.card--link:hover { color: var(--text); }
.card--link:hover .h3 { text-decoration: underline; text-underline-offset: 4px; }
.card--dark .body { color: var(--on-dark); }
.card__foot { margin-top: auto; padding-top: 12px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.04em; color: var(--muted-2); }
.card__num { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.list { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.list--dash { gap: 10px; font-size: 15px; }
.list--dash li { display: flex; gap: 10px; }
.list--dash li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.card--dark .list--dash li::before { color: var(--accent-on-dark); }
.card--dark .list--dash { color: #E6EAF2; }

.tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { font-family: var(--font-label); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); background: var(--surface); color: var(--muted); }
.tag--accent { background: var(--accent-light); color: var(--accent); }

/* Process */
.step { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 2px solid var(--accent-on-dark); min-width: 0; }
.step__label { font-family: var(--font-label); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-on-dark); }

/* About */
.about__inner { display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.about__media { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.about__photo { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; border-radius: 0; background: #fff; border: 1px solid var(--border); object-fit: cover; object-position: center top; }
.about__body { flex: 999 1 520px; min-width: 0; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; font-size: 15px; line-height: 1.5; }
.fact { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--border); }
.fact__label { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); }

/* CTA */
.cta__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 40px; }
.cta__text { max-width: 620px; min-width: 0; }
.cta__actions { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cta__links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; font-size: 15px; font-weight: 500; }
.cta__links a { padding: 8px 0; }

/* Footer */
.footer { border-top: 1px solid var(--border); }
.footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px; color: var(--muted-2); }
.footer__brand { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__links a { color: var(--muted); padding: 8px 0; }

/* Prose (about page) */
.prose { font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 70ch; }
.prose > * + * { margin-top: 18px; }
.prose h3 { color: var(--ink); margin-top: 36px; }
.prose strong { color: var(--ink); font-weight: 600; }

/* Contact form */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border: 1px solid #B8C0C4; border-radius: var(--radius); background: #fff; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }


/* Additions for the expertise-led homepage */
.hero__item--stat { align-items: baseline; padding: 14px 20px; }
.hero__stat { font-family: var(--font-display); font-weight: 700; font-size: 22px; min-width: 64px; flex-shrink: 0; }
.list--on-dark { color: #E6EAF2; }
.list--on-dark li::before { color: var(--accent-on-dark); }
.list--dash strong { font-weight: 600; }
.list--dash-ink li::before { color: var(--ink); }
.card--door { border-top-width: 3px; }
.card--door-accent { border-top-color: var(--accent); }
.card--door-ink { border-top-color: var(--ink); }
.step--light { border-top-color: var(--accent); }
.step--light .step__label { color: var(--accent); }
.cta__links--on-dark a { color: var(--accent-on-dark); }
.cta__links--on-dark a:hover { color: #fff; }
.section--dark .cta__text .body { color: var(--on-dark); }

.callout { padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }


/* Responsive */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner { padding-top: 72px; padding-bottom: 64px; gap: 40px; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .nav__links { gap: 18px; width: 100%; padding-bottom: 12px; }
  .nav__links a { padding: 8px 0; }
  .hero__inner { padding-top: 56px; padding-bottom: 56px; }
  .lead { font-size: 18px; }
  .card, .card--lg { padding: 24px; }
  .btn { width: 100%; }
  .cta__actions { width: 100%; }
  .page-head__inner { padding-top: 56px; padding-bottom: 48px; }
}
