/* ============================================================
   KravatzRx Consulting — Design tokens
   Palette: Ink Navy #16233F, Slate #48566B, Ledger Gray #EDEFF2,
            Paper White #FFFFFF, Brass #A6813E (seal accent),
            Deep text #1B1F27
   Type: "Source Serif 4" (display/headlines) + "IBM Plex Sans" (body/UI)
         + "IBM Plex Mono" (credential/citation strip)
   Signature: the Credential Ledger — a stamped strip of license
   numbers that runs across header/footer on every page, echoing
   both a legal certification block and a pharmacy label's fine print.
   ============================================================ */

:root {
  --navy: #16233f;
  --navy-deep: #0e1830;
  --slate: #48566b;
  --slate-light: #7c8aa0;
  --ledger: #edeff2;
  --paper: #ffffff;
  --brass: #a6813e;
  --brass-light: #c9a768;
  --ink: #1b1f27;
  --line: #d7dce3;

  --serif: "Source Serif 4", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; }
h3 { font-size: 1.15rem; line-height: 1.3; }

p { margin: 0 0 1em; color: var(--slate); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.9em;
  display: block;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Skip link / focus ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--paper);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Header ---------- */
header.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand .brand-sub {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass);
  font-weight: 500;
  margin-top: 3px;
}

nav.primary-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
nav.primary-nav a {
  font-size: 0.92rem;
  color: var(--slate);
  font-weight: 500;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
nav.primary-nav a:hover,
nav.primary-nav a[aria-current="page"] {
  color: var(--navy);
  border-color: var(--brass);
}

.nav-cta {
  background: var(--navy);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 2px;
  font-weight: 600;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--navy-deep); }

.nav-toggle { display: none; }

/* ---------- Credential ledger strip (signature element) ---------- */
.ledger-strip {
  background: var(--navy);
  color: rgba(255,255,255,0.82);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  padding: 9px 32px;
}
.ledger-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  justify-content: center;
}
.ledger-strip span { white-space: nowrap; }
.ledger-strip .divider { color: var(--brass-light); }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 76px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
}
.hero-copy p.lede {
  font-size: 1.12rem;
  color: var(--ink);
  max-width: 46ch;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary {
  background: var(--navy);
  color: var(--paper);
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--line);
}
.btn-secondary:hover { border-color: var(--navy); }

.hero-portrait {
  position: relative;
}
.hero-portrait .frame {
  border: 1px solid var(--line);
  padding: 14px;
  background: var(--paper);
}
.hero-portrait img {
  width: 100%;
  height: auto;
  filter: grayscale(14%);
}
.hero-portrait .caption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 12px;
  text-align: center;
}

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--ledger); }
.section-head { max-width: 62ch; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Cards grid (services teaser / offerings) ---------- */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-4 .card {
  background: var(--paper);
  padding: 30px 26px;
}
.card .tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--brass);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.93rem; margin-bottom: 0; }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

/* ---------- Credential list (About) ---------- */
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list .cred-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--brass);
}
.cred-list h3 { margin-bottom: 4px; font-size: 1.02rem; }
.cred-list p { margin: 0; font-size: 0.92rem; }

/* ---------- Timeline (experience) ---------- */
.timeline { border-left: 2px solid var(--line); padding-left: 30px; margin-left: 6px; }
.timeline .item { position: relative; padding-bottom: 34px; }
.timeline .item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--brass);
  border-radius: 50%;
}
.timeline .item:last-child { padding-bottom: 0; }
.timeline .role-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--slate-light);
  letter-spacing: 0.05em;
}

/* ---------- Service detail rows ---------- */
.service-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 26px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}
.service-row:last-child { border-bottom: 1px solid var(--line); }
.service-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--brass);
  padding-top: 4px;
}
.service-row h3 { font-size: 1.3rem; margin-bottom: 10px; }
.service-row p { max-width: 62ch; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}
.contact-info h3 { margin-top: 28px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate); font-family: var(--sans); font-weight: 600; }
.contact-info p { font-size: 0.95rem; }
.contact-info a.link { color: var(--navy); border-bottom: 1px solid var(--brass-light); }

form.inquiry {
  background: var(--ledger);
  padding: 36px;
  border: 1px solid var(--line);
}
.form-row { margin-bottom: 20px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note {
  font-size: 0.78rem;
  color: var(--slate-light);
  margin-top: 4px;
  margin-bottom: 0;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: var(--paper);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 52ch; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 44px 0 0;
  font-size: 0.85rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 32px;
}
.footer-brand {
  font-family: var(--serif);
  color: var(--paper);
  font-size: 1.05rem;
}
footer.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site-footer nav a:hover { color: var(--paper); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 16px 32px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-portrait { max-width: 320px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-two { grid-template-columns: 1fr; }

  .nav-row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 20px; }
  nav.primary-nav {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  nav.primary-nav a { font-size: 0.86rem; }
  .nav-cta { padding: 9px 16px; }
  .ledger-strip .wrap { justify-content: flex-start; padding: 0 20px; }
  .wrap { padding: 0 20px; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .cred-list li, .service-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
