/* Zentrix Consulting — editorial institutional: full-bleed photography, serif headlines, periwinkle bar. */

:root {
  --bar: #7399c6;
  --navy: #0b1d33;
  --ink: #1b2433;
  --muted: #5b6575;
  --line: #dfe4ea;
  --soft: #f3f5f8;
  --white: #ffffff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--sans); font-size: 1.02rem; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--soft { background: var(--soft); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }

/* Header */
.site-header { background: var(--bar); position: sticky; top: 0; z-index: 30; }
.site-header__inner { display: flex; align-items: center; gap: 2.4rem; height: 56px; }
.brand { display: flex; flex-direction: column; font-family: var(--serif); font-weight: 700; font-size: .92rem; line-height: .95; color: var(--navy); text-decoration: none; letter-spacing: -.02em; }
.brand--light { color: var(--white); font-size: 1.2rem; }
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { color: var(--navy); text-decoration: none; font-size: .9rem; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { text-decoration: underline; text-underline-offset: 6px; }
.site-header__right { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-size: .85rem; font-weight: 600; color: var(--navy); }
.btn-box { padding: .35rem .65rem; border: 1.5px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 700; font-size: .85rem; }
.btn-box:hover { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; margin-left: auto; }
.nav-toggle span:not(.sr-only) { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Photo hero */
.photo-hero {
  position: relative; overflow: hidden;
  min-height: clamp(520px, 78vh, 760px);
  display: flex; align-items: flex-end;
  padding-bottom: clamp(3rem, 7vw, 5rem);
  color: var(--white);
  background: #2b3542 center / cover no-repeat;
}
.photo-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 26, .15) 0%, rgba(10, 16, 26, .35) 45%, rgba(10, 16, 26, .78) 100%); }
.photo-hero[data-photo] { background: radial-gradient(ellipse at 30% 30%, #4a5666, #1c2430 70%); }
.photo-hero[data-photo]::after { content: attr(data-photo); position: absolute; top: 1.2rem; left: 50%; transform: translateX(-50%); font-size: .75rem; color: rgba(255, 255, 255, .55); border: 1px dashed rgba(255, 255, 255, .3); padding: .3rem .7rem; white-space: nowrap; }
.photo-hero .container { position: relative; z-index: 2; }
.photo-hero h1, .photo-hero h2 { color: var(--white); max-width: 19ch; }
.photo-hero p { max-width: 430px; font-weight: 600; font-size: 1.02rem; }
.photo-hero--short { min-height: clamp(360px, 52vh, 480px); }
.monogram { position: absolute; z-index: 1; right: -2.5rem; top: -4.5rem; font-family: var(--serif); font-weight: 700; font-size: clamp(14rem, 30vw, 28rem); line-height: 1; color: var(--white); opacity: .96; pointer-events: none; }

.btn { display: inline-block; padding: .65rem 1rem; background: var(--white); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: var(--bar); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: #1c3355; color: var(--white); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.stats b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); color: var(--navy); line-height: 1; }
.stats span { display: block; margin-top: .6rem; color: var(--muted); font-size: .92rem; }

/* Row list */
.rows { border-top: 1px solid var(--navy); }
.row { display: grid; grid-template-columns: 1.1fr 1.4fr auto; gap: 2rem; align-items: baseline; padding: 1.6rem 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; scroll-margin-top: 80px; }
.row h3 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.row p { margin: 0; color: var(--muted); }
.row .arrow { font-size: 1.4rem; color: var(--bar); transition: transform .2s; }
a.row:hover .arrow { transform: translateX(6px); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.chip { font-size: .78rem; font-weight: 600; padding: .25rem .65rem; border: 1px solid var(--line); color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.case b { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; color: var(--navy); line-height: 1; margin: 1.2rem 0 .5rem; }
.case span { color: var(--muted); }
.case small { display: block; margin-top: .6rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--bar); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.leader h3 { font-size: 1.25rem; margin: 1rem 0 .1rem; }
.leader span { color: var(--muted); font-size: .92rem; }
.years { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--navy); }
.years div { padding: 1.2rem 1rem 1.2rem 0; }
.years b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--navy); }
.years span { color: var(--muted); font-size: .9rem; }

/* Forms */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .3rem; }
.field input, .field select, .field textarea { width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink); background: var(--white); border: 1px solid #c4ccd6; border-radius: 0; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--bar); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field-error { display: block; color: #b42318; font-size: .82rem; margin-top: .25rem; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.2rem; margin-bottom: 1rem; background: #eef3fa; border-left: 3px solid var(--bar); }
.notice--error { background: #fdf0ef; border-color: #b42318; }
.office { padding: 1.2rem 0; border-top: 1px solid var(--line); }
.office h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.office p { margin: 0; color: var(--muted); }

/* Photo slots */
.photo { width: 100%; object-fit: cover; }
.photo-slot { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: .2rem; padding: 1rem; background: linear-gradient(160deg, #dfe6ef, #c7d2e0); color: var(--navy); }
.photo-slot__label { font-family: var(--serif); font-size: 1rem; }
.photo-slot__label::before { content: 'Photo · '; font-family: var(--sans); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #4b6b94; }
.photo-slot__file { font-family: ui-monospace, Menlo, monospace; font-size: .7rem; color: #4b6b94; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c3d3; padding: 3.5rem 0 2rem; font-size: .9rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer b { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .8rem; }

@media (max-width: 900px) {
  .site-header__right { display: none; }
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; padding: 1rem 1.5rem; background: var(--bar); }
  .site-nav.is-open { display: flex; }
  .stats, .years { grid-template-columns: 1fr 1fr; }
  .grid--3, .split, .footer-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .4rem; }
  .row .arrow { display: none; }
  .form-row { grid-template-columns: 1fr; }
}

/* Text-only leaders, offices, and results (no photos) */
.leader { border-top: 1px solid var(--navy); padding-top: .2rem; }
.leader h3 { margin-top: .8rem; }
.case { border-top: 3px solid var(--bar); }
.case b { margin-top: 1rem; }

/* Heroes sized to each photo's own proportions, so large screens don't crop or blow them up.
   Height follows the viewport width; width always stays full-bleed. */
.photo-hero--home { min-height: 0; height: clamp(480px, calc(100vw * 921 / 2400), 860px); }
.photo-hero--feature { min-height: 0; height: clamp(380px, calc(100vw * 1440 / 3440), 900px); }
.photo-hero--about { min-height: 0; height: clamp(380px, calc(100vw * 1014 / 2048), 640px); background-position: center 35%; }
.photo-hero--caps { min-height: 0; height: clamp(360px, calc(100vw * 9 / 21), 560px); background-position: center 30%; }
.photo-hero--home h1 { max-width: 14ch; }
/* Darken the left side, where the text sits */
.photo-hero::before { background: linear-gradient(90deg, rgba(10, 16, 26, .72) 0%, rgba(10, 16, 26, .35) 45%, rgba(10, 16, 26, 0) 75%), linear-gradient(180deg, rgba(10, 16, 26, 0) 40%, rgba(10, 16, 26, .6) 100%); }

/* Page intro: headline beside a contained photo (Capabilities, Our Firm) */
.page-intro { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3rem, 6vw, 5rem); }
.intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.intro h1 { color: var(--navy); }
.intro__photo { width: 100%; max-width: 480px; justify-self: end; }
.intro__photo .photo { box-shadow: 0 20px 50px rgba(11, 29, 51, .15); }
.photo--denver { object-position: 50% 42%; }
.ind { border-top: 3px solid var(--bar); padding-top: 1rem; }
.ind h3 { margin-bottom: .4rem; }
.ind p { color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .intro__photo { justify-self: start; }
}
.years--4 { grid-template-columns: repeat(4, 1fr); }
.years--4 b { font-size: 1.45rem; }
@media (max-width: 900px) { .years--4 { grid-template-columns: 1fr 1fr; } }

/* ===== Dark theme ===== */
:root { --d-bg: #0b1422; --d-bg-2: #101c2f; --d-line: #22324a; --d-line-2: #3a4d6a; --d-text: #e9eef6; --d-body: #c3cfdf; --d-muted: #93a5bd; }
body { background: var(--d-bg); color: var(--d-body); }
a { color: #a9c1e3; }
h1, h2, h3 { color: var(--d-text); }
.lead, .row p, .ind p, .office p, .leader span, .stats span, .years span, .case span { color: var(--d-muted); }
.section--soft { background: var(--d-bg-2); }

.site-header { background: var(--d-bg); border-bottom: 1px solid var(--d-line); box-shadow: inset 0 -2px 0 var(--bar); }
.brand, .site-nav a, .site-header__right { color: var(--d-text); }
.site-nav a.is-active { color: var(--bar); }
.btn-box { color: var(--d-text); border-color: var(--d-line-2); }
.btn-box:hover { background: var(--bar); border-color: var(--bar); color: var(--d-bg); }
.nav-toggle span:not(.sr-only) { background: var(--d-text); }
@media (max-width: 900px) { .site-nav { background: var(--d-bg); border-bottom: 1px solid var(--d-line); } }

.btn--navy { background: var(--bar); color: var(--d-bg); }
.btn--navy:hover { background: #8fb0d8; color: var(--d-bg); }

.stats b, .years b, .case b { color: var(--d-text); }
.rows, .years { border-top-color: var(--d-line-2); }
.row { border-bottom-color: var(--d-line); }
.chip { border-color: var(--d-line-2); color: var(--d-muted); }
.leader { border-top-color: var(--d-line-2); }
.office { border-top-color: var(--d-line); }

.intro h1 { color: var(--d-text); }
.intro__photo .photo { box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }

.field label { color: var(--d-text); }
.field input, .field select, .field textarea { background: var(--d-bg-2); border-color: var(--d-line-2); color: var(--d-text); }
.notice { background: #13233a; color: var(--d-text); }
.notice--error { background: #2a1518; }

.photo-slot { background: linear-gradient(160deg, #16243a, #0f1a2b); color: var(--d-text); }
.site-footer { background: #070d17; border-top: 1px solid var(--d-line); }

/* Banner sizes: full width, moderate height, centered on the subject */
.photo-hero--home { height: clamp(420px, 40vw, 600px); background-position: center 40%; }
.photo-hero--feature { height: clamp(300px, 30vw, 440px); background-position: center 62%; }
.photo-hero { color: var(--d-text); }
