/* PND Consultants: site styles */
:root {
  --navy: #13232A;
  --navy-2: #1B2F37;
  --ink: #1A1F21;
  --muted: #4E5A5E;
  --on-dark: #E4ECEA;
  --on-dark-muted: #C9D6D3;
  --line: #DDE3E1;
  --line-dark: #355057;
  --wash: #F3F6F5;
  --teal: #2E7D74;
  --teal-dark: #1F5E57;
  --teal-light: #6CC0B3;
  --white: #FFFFFF;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal-light); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 14px; border-radius: 6px;
}
.skip-link:focus { top: 8px; }

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

h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.15; color: var(--navy); }
h3 { font-size: 1.375rem; line-height: 1.25; font-weight: 600; color: var(--navy); }
p { margin: 0; }
.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--teal); margin: 0;
}
.lead { font-size: 1.1875rem; color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }

/* Placeholder marker for facts still to confirm */
.ph { background: #FFF4D6; color: #5A4300; border-radius: 3px; padding: 0 4px; }
.on-dark .ph { background: #F2E2B3; color: #3D2E00; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 6px;
  font: 600 1rem/1.2 var(--sans); text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--teal-light); color: #0E1B1F; }
.btn-primary:hover { background: #8AD0C5; color: #0E1B1F; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); color: var(--white); }
.btn-ghost-light { color: var(--white); border-color: #4A6168; }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-ghost-dark { color: var(--navy); border-color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { background: var(--navy); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 32px;
  padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap;
}
.brand { display: block; line-height: 0; }
.brand img { height: 48px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; font-size: 0.9375rem; font-weight: 500; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 8px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--white); text-decoration: underline; text-decoration-color: var(--teal-light); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav .btn { padding: 10px 18px; min-height: 44px; color: #0E1B1F; }
.nav .btn:hover { text-decoration: none; color: #0E1B1F; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
    background: transparent; color: var(--white); border: 1px solid #4A6168; border-radius: 6px;
    font: 500 0.9375rem var(--sans); cursor: pointer;
  }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 8px 0 4px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-top: 1px solid var(--line-dark); }
  .nav .btn { margin-top: 12px; width: 100%; border-top: 0; }
}

/* Sections */
.section { padding: var(--section) 0; }
.section-wash { background: var(--wash); }
.section-dark { background: var(--navy); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead, .section-dark p { color: var(--on-dark-muted); }
.section-dark .eyebrow { color: var(--teal-light); }
.section-dark a:not(.btn) { color: var(--teal-light); }

/* Hero */
.hero { background: var(--navy); color: var(--white); padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: stretch; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 24px; }
.hero-copy h1 { color: var(--white); }
.hero-copy .lead { color: var(--on-dark-muted); max-width: 34rem; }
.hero-tag { font-weight: 600; letter-spacing: 0.01em; color: var(--teal-light); }
.motto { font-family: var(--serif); font-style: italic; font-size: 1.125rem; color: var(--teal-light); }
.site-footer .motto { color: var(--white); }
.hero-figure { flex: 1 1 400px; min-width: 0; margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 26rem; }
.hero-figure img { width: 100%; height: 100%; min-height: 26rem; object-fit: cover; }
.hero-figure figcaption {
  position: absolute; left: 16px; bottom: 16px; background: rgba(19,35,42,0.86);
  color: var(--on-dark); font-size: 0.8125rem; padding: 6px 12px; border-radius: 4px;
}

/* Page intro (inner pages) */
.page-intro { background: var(--navy); color: var(--white); padding: clamp(56px, 7vw, 96px) 0; }
.page-intro .stack { max-width: 46rem; gap: 20px; }
.page-intro h1 { color: var(--white); }
.page-intro .lead { color: var(--on-dark-muted); }
.page-intro .eyebrow { color: var(--teal-light); }

/* Split layout */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.split > .main { flex: 1.4 1 520px; min-width: 0; }

/* Numbered list */
.num-list { list-style: none; margin: 0; padding: 0; }
.num-list li { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); }
.num-list li:last-child { border-bottom: 1px solid var(--line); }
.num-list .n { font-family: var(--serif); font-size: 1.25rem; color: var(--teal); min-width: 28px; }
.num-list strong { display: block; font-size: 1.0625rem; }
.num-list p { color: var(--muted); margin-top: 4px; }

/* Grids and cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.grid-cases { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 14px;
}
.card ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; text-decoration: none; }
.card .who { font-style: italic; color: var(--muted); }
.card p { color: var(--muted); }
.point { border-top: 2px solid var(--navy); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.point h3 { font-family: var(--sans); font-size: 1.125rem; }
.point p { color: var(--muted); }

/* Proof strip */
.proof .grid-3 { gap: 40px; }
.stat-num { font-family: var(--serif); font-size: clamp(2.6rem, 4.5vw, 3.75rem); line-height: 1; font-weight: 500; color: var(--white); }
.proof-foot {
  border-top: 1px solid var(--line-dark); margin-top: 48px; padding-top: 32px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 40px;
}

/* Team */
.person { display: flex; flex-direction: column; gap: 14px; }
.person img, .person .photo-ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; border-radius: var(--radius); }
.photo-ph {
  background: #E9EEED; border: 1px dashed #A9B6B4; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 0.9375rem;
}
.role { color: var(--teal); font-weight: 500; font-size: 0.9375rem; }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px 64px; padding: 48px 0; border-top: 1px solid var(--line); }
.bio:first-child { border-top: 0; padding-top: 0; }
.bio .prose { display: flex; flex-direction: column; gap: 16px; }
.bio img, .bio .photo-ph { width: 100%; max-width: 320px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; }
@media (max-width: 760px) { .bio { grid-template-columns: 1fr; } }

/* Case studies */
.case dl { margin: 0; display: grid; gap: 10px; }
.case dt { font-weight: 600; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
.case dd { margin: 0 0 6px; color: var(--muted); }

/* Center CTA */
.cta { text-align: center; }
.cta .stack { align-items: center; max-width: 52rem; margin: 0 auto; gap: 20px; }
.cta .lead { max-width: 36rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px 72px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-list strong { display: block; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal); }
form.contact { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.9375rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select {
  font: 1rem/1.4 var(--sans); padding: 12px 14px; border: 1px solid #A9B6B4; border-radius: 6px; background: var(--white); color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--teal-light); outline-offset: 0; border-color: var(--teal); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }
.form-status { min-height: 1.6em; font-weight: 500; }
.form-status.ok { color: var(--teal-dark); }
.form-status.err { color: #9B2C1F; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-dark-muted); padding: 56px 0; font-size: 1rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px 48px; }
.site-footer .col { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer img { height: 44px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.site-footer strong { color: var(--white); }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: var(--white); }
.staging-banner { background: #FFF4D6; color: #5A4300; text-align: center; font-size: 0.875rem; padding: 6px var(--gutter); }

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