/* ============================================================
   Quantec Insight -- shared design system
   Brand: Navy / Teal / Gold / Charcoal / Off-white / Cool Gray
   Type:  Manrope (display) + IBM Plex Sans (body)
   Theme: locked light (matches the printed brand kit; no dark mode)
   ============================================================ */

/* Self-hosted fonts (Latin subset). Variable fonts: one file covers the weight range. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/ibm-plex-sans-italic-latin.woff2") format("woff2");
}

:root {
  --navy: #1A3A5C;
  --navy-deep: #122A44;
  --teal: #2E8B8B;
  --teal-deep: #256F6F;
  --gold: #D4A017;
  --charcoal: #2D2D2D;
  --gray: #8A8A8A;
  --gray-light: #B7B7AF;
  --offwhite: #F5F5F0;
  --white: #FFFFFF;
  --line: #E2E2DA;
  --line-dark: #33536E;

  --font-head: "Manrope", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --radius-card: 14px;
  --radius-pill: 999px;
  --radius-input: 8px;

  --container: 1180px;
  --gutter: 24px;

  --shadow-card: 0 1px 2px rgba(26, 58, 92, 0.06), 0 8px 24px rgba(26, 58, 92, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  margin: 0 0 0.5em;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.15rem); line-height: 1.08; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.lede {
  font-size: 1.1rem;
  color: var(--charcoal);
  max-width: 62ch;
}

.muted { color: var(--gray); }
.text-teal { color: var(--teal-deep); }

/* ---------- eyebrow (rationed: used once, in the hero, site-wide) ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.7); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 245, 240, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 1.5rem;
}
.brand-logo { display: flex; align-items: center; }
.brand-logo img { height: 34px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__links { display: flex; align-items: center; gap: 1.75rem; list-style: none; margin: 0; padding: 0; }
.site-nav__links a {
  color: var(--charcoal);
  font-weight: 600;
  font-size: 0.95rem;
}
.site-nav__links a:hover { color: var(--teal-deep); text-decoration: none; }
.site-nav__links a.is-active { color: var(--navy); }
.site-nav__links .site-nav__cta-item a.btn { color: var(--white); }
.site-nav__links .site-nav__cta-item a.btn:hover { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .site-nav__links { position: absolute; top: 76px; left: 0; right: 0; background: var(--offwhite); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem 0; display: none; }
  .site-nav__links.is-open { display: flex; }
  .site-nav__links a { display: block; padding: 0.85rem var(--gutter); border-bottom: 1px solid var(--line); }
  .site-nav__links .site-nav__cta-item { border-bottom: none; padding: 0.75rem var(--gutter) 0.85rem; }
  .site-nav__links .site-nav__cta-item a.btn { display: inline-flex; padding: 0.85em 1.6em; border-bottom: none; width: 100%; }
  .nav-toggle { display: block; }
}

/* ---------- hero ---------- */
.hero {
  padding: 3.75rem 0 4.5rem;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 { margin-bottom: 0.55em; }
.hero .lede { margin-bottom: 1.7em; }
.hero__ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__mark {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  margin-left: auto;
}
.hero__mark svg { width: 100%; height: 100%; display: block; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__mark { margin: 0 auto; max-width: 280px; order: -1; }
}

/* ---------- section rhythm ---------- */
.section { padding: 4.5rem 0; }
.section--tight { padding: 3rem 0; }
.section--band-navy { background: var(--navy); color: var(--offwhite); }
.section--band-navy h1, .section--band-navy h2, .section--band-navy h3 { color: var(--white); }
.section--band-teal { background: var(--teal); color: var(--offwhite); }
.section--band-teal h1, .section--band-teal h2, .section--band-teal h3 { color: var(--white); }
.section--card { background: var(--white); }
.section-head { max-width: 62ch; margin-bottom: 2.25rem; }
.section-head--wide { max-width: 74ch; }

.rule-gold {
  width: 44px;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

/* ---------- stats ---------- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.stat-tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-card);
}
.stat-tile__num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-tile__label { color: var(--gray); font-size: 0.92rem; line-height: 1.4; }

@media (max-width: 760px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- service / capability cards ---------- */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.9rem 1.9rem 2rem;
}
.service-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.service-card__icon svg { width: 24px; height: 24px; stroke: var(--offwhite); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card p { color: var(--charcoal); font-size: 0.97rem; }
.service-card__link { display: inline-block; margin-top: 1rem; font-weight: 600; font-size: 0.92rem; }

@media (max-width: 760px) {
  .card-grid-2 { grid-template-columns: 1fr; }
}

/* ---------- approach rows (numbered list, distinct layout family) ---------- */
.approach-list { list-style: none; margin: 0; padding: 0; }
.approach-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.approach-row:last-child { border-bottom: 1px solid var(--line); }
.approach-row__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.approach-row:nth-child(even) .approach-row__num { background: var(--navy); }
.approach-row h3 { margin-bottom: 0.3rem; font-size: 1.08rem; }
.approach-row p { color: var(--charcoal); font-size: 0.97rem; margin: 0; }

/* ---------- pills / tags ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag {
  display: inline-block;
  padding: 0.45em 0.95em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark);
  color: var(--offwhite);
  font-size: 0.85rem;
  font-weight: 600;
}
/* light-background variant: same pill, readable on white/offwhite sections
   (e.g. the profile-page tag row), where .tag's near-white text disappears */
.tag-light {
  display: inline-block;
  padding: 0.45em 0.95em;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--offwhite);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- team cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.team-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.team-card:hover {
  text-decoration: none;
  border-color: var(--teal);
  box-shadow: 0 6px 18px rgba(26, 58, 92, 0.08);
}
.team-card:hover .team-card__more { text-decoration: underline; }
.team-card__bar { height: 6px; }
.team-card__body { padding: 1.7rem 1.6rem 1.9rem; }
.team-card__avatar {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1px solid var(--line);
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 1.1rem;
  object-fit: cover;
}
.team-card__role { color: var(--teal-deep); font-weight: 700; font-size: 0.88rem; margin-bottom: 0.8rem; }
.team-card__bio { font-size: 0.94rem; color: var(--charcoal); }
.team-card__more { display: block; margin-top: 1rem; font-weight: 700; font-size: 0.86rem; color: var(--navy); }

/* ---------- individual profile pages (team/*.html) ---------- */
.profile-hero {
  display: flex;
  gap: 2.2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.profile-hero__photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.profile-hero__body { flex: 1; min-width: 280px; }
.exp-list, .edu-list { list-style: none; margin: 0; padding: 0; }
.exp-item { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.exp-item:last-child { padding-bottom: 0; }
.exp-item__meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  color: var(--gray);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.exp-item h3 { font-size: 1.03rem; margin-bottom: 0.3rem; }
.exp-item p { font-size: 0.94rem; color: var(--charcoal); margin: 0; }
.edu-item {
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--charcoal);
}

@media (max-width: 600px) {
  .profile-hero { flex-direction: column; align-items: center; text-align: center; }
  .profile-hero .tag-row, .profile-hero .hero__ctas { justify-content: center; }
}

@media (max-width: 900px) {
  .team-grid { grid-template-columns: 1fr; }
}

/* ---------- assignment / track record cards ---------- */
.assignment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.assignment-card {
  background: var(--white);
  border: 1px dashed var(--line-dark);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
}
.assignment-card__meta { display: flex; justify-content: space-between; color: var(--gray); font-size: 0.82rem; margin-bottom: 0.5rem; font-weight: 600; }
.assignment-card h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.assignment-card p { font-size: 0.93rem; color: var(--charcoal); }
.assignment-note {
  background: #FFFDE7;
  border: 1px solid #E8DFA8;
  border-radius: var(--radius-card);
  padding: 1rem 1.3rem;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 1.75rem;
}

@media (max-width: 760px) {
  .assignment-grid { grid-template-columns: 1fr; }
}

/* ---------- insights / blog ---------- */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 1.7rem 1.7rem 1.9rem;
  display: flex;
  flex-direction: column;
}
.post-card__date { color: var(--gray); font-size: 0.82rem; font-weight: 600; margin-bottom: 0.6rem; }
.post-card h3 { margin-bottom: 0.6rem; }
.post-card p { color: var(--charcoal); font-size: 0.95rem; flex-grow: 1; }
.post-card__link { margin-top: 1rem; font-weight: 700; font-size: 0.92rem; }

.article { max-width: 72ch; margin: 0 auto; }
.article__meta { color: var(--gray); font-size: 0.9rem; margin-bottom: 1.2rem; }
.article h1 { margin-bottom: 0.3em; }
.article p { font-size: 1.03rem; }
.article h2 { font-size: 1.35rem; margin-top: 1.6em; }

@media (max-width: 760px) {
  .post-grid { grid-template-columns: 1fr; }
}

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.contact-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.contact-item:last-child { padding-bottom: 0; }
.contact-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--offwhite);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon svg { width: 19px; height: 19px; stroke: var(--navy); }
.contact-item h3 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-item p, .contact-item a { color: var(--charcoal); font-size: 0.95rem; }

.contact-note {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  font-size: 0.92rem;
  color: var(--gray);
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--gray-light);
  padding: 3.25rem 0 2rem;
}
.site-footer a { color: var(--offwhite); }
.site-footer__top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line-dark);
}
.site-footer__brand img { height: 30px; margin-bottom: 0.9rem; }
.site-footer__brand p { font-size: 0.88rem; color: var(--gray-light); max-width: 32ch; }
.site-footer h4 { color: var(--offwhite); font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.site-footer ul a { font-size: 0.9rem; color: var(--gray-light); }
.site-footer ul a:hover { color: var(--white); text-decoration: none; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--gray-light);
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 760px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* ---------- misc ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.8em 1.2em;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.divider { border: none; border-top: 1px solid var(--line); margin: 0; }
