/* ExiGere Consulting, exigere.co.za
   Brand: navy #113152 / #17365F, gold #C4A557, light #F0F2F8, Montserrat (SIL OFL, self-hosted) */

@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("assets/fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #113152;        /* brand primary */
  --navy-2: #17365f;      /* brand navy (logo) */
  --navy-deep: #0b2340;   /* darker shade for depth */
  --gold: #c4a557;        /* brand secondary */
  --gold-ink: #7d6320;    /* darker gold for small text on light backgrounds (WCAG AA) */
  --light: #f0f2f8;       /* brand light */
  --ink: #0f1f33;
  --muted: #4f5d6b;
  --line: #d9dfe9;
  --white: #ffffff;
  --shadow: 0 18px 46px rgba(17, 49, 82, 0.12);
  --max: 1180px;
  --radius: 8px;
  --header-h: 82px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Focus: visible, brand gold ring for keyboard users */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 60;
  transform: translateY(-200%);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  padding: 10px 14px;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-solid {
  background: rgba(17, 49, 82, 0.97);
  box-shadow: 0 1px 0 rgba(196, 165, 87, 0.35);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: var(--header-h);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  border-radius: 999px;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 14px;
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: rgba(196, 165, 87, 0.2);
}

.nav-links .nav-cta {
  margin-left: 6px;
  border: 1px solid var(--gold);
}

.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius);
  background: rgba(11, 35, 64, 0.35);
  cursor: pointer;
  padding: 0;
  place-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--white);
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(860px, 100vh);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
  padding: 150px 0 96px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(11, 35, 64, 0.94) 0%, rgba(17, 49, 82, 0.78) 50%, rgba(17, 49, 82, 0.3) 100%),
    url("assets/img/hero-1600.jpg");
  background-image:
    linear-gradient(90deg, rgba(11, 35, 64, 0.94) 0%, rgba(17, 49, 82, 0.78) 50%, rgba(17, 49, 82, 0.3) 100%),
    image-set(url("assets/img/hero-1600.webp") type("image/webp") 1x, url("assets/img/hero-2400.webp") type("image/webp") 2x, url("assets/img/hero-1600.jpg") type("image/jpeg") 1x);
  background-size: cover;
  background-position: center;
}

.hero::after {
  /* thin gold rule echoing the brand guide's gradient accent */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-2), var(--gold));
}

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow,
.principal .eyebrow,
.contact .eyebrow {
  color: var(--gold);
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.04;
}

h2 {
  color: var(--navy);
  font-size: clamp(1.65rem, 3.2vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 18px;
}

h3 {
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 10px;
}

.hero-copy {
  max-width: 700px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 56px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 13px 20px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.button-primary:hover {
  background: #d3b86d;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.button-secondary:hover {
  border-color: var(--gold);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 16px;
  margin: 0;
}

.hero-metrics div {
  border-left: 3px solid var(--gold);
  padding: 12px 18px;
  background: rgba(11, 35, 64, 0.45);
}

.hero-metrics dt {
  color: var(--white);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.1;
}

.hero-metrics dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* ---------- Sections ---------- */
.section-band {
  padding: 96px 0;
}

.section-grid,
.section-heading,
.card-grid,
.principal-panel,
.contact,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.intro-grid,
.approach-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 72px;
  align-items: start;
}

.intro-copy p,
.approach-copy p,
.contact-content p {
  color: var(--muted);
}

.intro-copy p:last-child {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 740px;
}

.services,
.why {
  background: var(--light);
}

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

.card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px 26px;
  box-shadow: 0 1px 0 rgba(17, 49, 82, 0.04);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card img {
  width: 56px;
  height: 56px;
  margin-bottom: 22px;
}

.card p,
.timeline p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
}

.approach-copy {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}

.timeline {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--white);
}

.timeline span {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
}

/* ---------- Principal ---------- */
.principal {
  position: relative;
  isolation: isolate;
  color: var(--white);
  background-color: var(--navy-deep);
  background-image:
    linear-gradient(100deg, rgba(11, 35, 64, 0.97) 0%, rgba(17, 49, 82, 0.93) 60%, rgba(17, 49, 82, 0.86) 100%),
    url("assets/img/hero-1600.jpg");
  background-image:
    linear-gradient(100deg, rgba(11, 35, 64, 0.97) 0%, rgba(17, 49, 82, 0.93) 60%, rgba(17, 49, 82, 0.86) 100%),
    image-set(url("assets/img/hero-1600.webp") type("image/webp"), url("assets/img/hero-1600.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 60%;
}

.principal-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.principal h2,
.principal h3,
.contact h2 {
  color: var(--white);
}

.principal-person {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 22px;
}

.principal-mark {
  width: 64px;
  height: auto;
}

.principal-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  object-fit: cover;
}

.principal-name {
  margin: 0;
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
}

.principal-role {
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
}

.principal-bio {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 26px;
}

.principal-detail {
  border: 1px solid rgba(196, 165, 87, 0.45);
  border-radius: var(--radius);
  background: rgba(11, 35, 64, 0.55);
  padding: 32px;
}

.principal-detail h3 {
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.career,
.highlights {
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.86);
}

.career li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  column-gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.career li:last-child {
  border-bottom: 0;
}

.career span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 600;
  font-size: 0.84rem;
  padding-top: 2px;
}

.career strong {
  display: block;
  color: var(--white);
}

.highlights li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.fineprint {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-bottom: 2px solid var(--gold);
  color: var(--white);
  font-weight: 700;
}

.text-link:hover {
  color: var(--gold);
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
  color: var(--white);
  padding: 72px 56px;
  margin-top: 96px;
  margin-bottom: 72px;
}

.contact-content p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 0;
}

.contact-list {
  display: grid;
  gap: 12px;
  font-style: normal;
}

.contact-list a,
.contact-list p {
  display: block;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  overflow-wrap: anywhere;
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-list a:hover {
  border-color: var(--gold);
  background: rgba(196, 165, 87, 0.12);
}

.contact-label {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
  padding: 20px 0;
}

.site-footer p {
  margin: 0;
}

.footer-brand img {
  width: 150px;
}

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .principal-panel,
  .contact {
    grid-template-columns: 1fr;
  }

  .principal-panel {
    gap: 40px;
  }

  .intro-grid,
  .approach-grid {
    gap: 40px;
  }
}

@media (max-width: 860px) {
  :root {
    --header-h: 72px;
  }

  .nav-shell {
    width: calc(100% - 28px);
  }

  .brand {
    width: 148px;
  }

  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(196, 165, 87, 0.45);
    border-radius: var(--radius);
    background: var(--navy);
    box-shadow: var(--shadow);
    padding: 10px;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    border-radius: var(--radius);
    padding: 12px 14px;
  }

  .nav-links .nav-cta {
    margin: 6px 0 0;
    text-align: center;
  }

  .site-header.menu-open {
    background: rgba(17, 49, 82, 0.97);
  }

  .hero {
    min-height: auto;
    padding: 124px 0 72px;
  }

  .hero-media {
    background-image:
      linear-gradient(180deg, rgba(11, 35, 64, 0.9), rgba(17, 49, 82, 0.8)),
      url("assets/img/hero-mobile-780.jpg");
    background-image:
      linear-gradient(180deg, rgba(11, 35, 64, 0.9), rgba(17, 49, 82, 0.8)),
      image-set(url("assets/img/hero-mobile-780.webp") type("image/webp"), url("assets/img/hero-mobile-780.jpg") type("image/jpeg"));
  }

  .hero-content,
  .section-grid,
  .section-heading,
  .card-grid,
  .principal-panel,
  .contact,
  .site-footer {
    width: calc(100% - 28px);
  }

  .intro-grid,
  .approach-grid {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .section-band {
    padding: 68px 0;
  }

  .approach-copy {
    position: static;
  }

  .contact {
    padding: 44px 24px;
    margin-top: 68px;
    margin-bottom: 48px;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .card-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .principal-detail {
    padding: 22px 18px;
  }

  .career li {
    grid-template-columns: 1fr;
  }

  .career span {
    grid-row: auto;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
