/* ITNA (Pty) Ltd website. Navy corporate colour, understated. */
:root {
  --navy: #152a55;
  --navy-deep: #0f1f40;
  --ink: #1d2433;
  --muted: #5a6273;
  --rule: #d9dce3;
  --paper: #ffffff;
  --stone: #f3f2ee;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--navy-deep); }

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

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 22px; padding-bottom: 22px;
}
.brand { display: block; color: #fff; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.wordmark { display: flex; align-items: center; gap: 14px; font-family: var(--sans); }
.wordmark .tag { font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: 0.5px; text-transform: uppercase; }

.nav { display: flex; gap: 28px; }
.nav a {
  color: #fff; text-decoration: none; font-size: 15px;
  padding-bottom: 3px; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: #fff; }

/* Mobile menu button at the right, shown below 761px when JavaScript runs */
.menu-btn { display: none; }

/* Page title band */
.hero { background: var(--stone); border-bottom: 1px solid var(--rule); }
.hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(34px, 5vw, 52px); line-height: 1.15; margin: 0 0 16px;
}
.hero p { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0; }

/* Sections */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--rule); }
h2 {
  font-family: var(--serif); font-weight: 500; color: var(--navy);
  font-size: clamp(28px, 3.6vw, 38px); line-height: 1.2; margin: 0 0 20px;
}
h3 {
  font-family: var(--serif); font-weight: 600; color: var(--navy);
  font-size: 25px; line-height: 1.25; margin: 0 0 10px;
}
.prose { max-width: 760px; }
.prose p { margin: 0 0 18px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 36px; }

.quote {
  background: var(--navy); color: #fff; text-align: center;
}
.quote blockquote {
  font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); line-height: 1.35;
  max-width: 820px; margin: 0 auto; font-style: italic;
}
.quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-size: 15px; font-style: normal; opacity: 0.8; }

/* Timeline (About Us) */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline > li { display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 22px 0; border-top: 1px solid var(--rule); }
.timeline > li:first-child { border-top: 0; }
.timeline .when { font-family: var(--serif); font-size: 21px; color: var(--navy); line-height: 1.3; }
.timeline h3 { font-size: 22px; }
.timeline p { margin: 0 0 12px; }
.timeline p:last-child { margin-bottom: 0; }

/* Meet the Group and Group Offices */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 28px; }
.card { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--navy); padding: 24px 24px 20px; }
.card p { margin: 0 0 12px; font-size: 16px; }
.card .link { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
/* Company logo, top right of the card, same inset as the heading */
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 10px; }
.card-head h3 { margin: 0; min-width: 0; overflow-wrap: anywhere; }
/* Each logo is sized by its shape (inline width and height) so all carry similar visual weight */
.card-logo { flex: 0 0 auto; display: block; margin-top: 2px; }
.card-logo img { object-fit: contain; max-width: none; }
.card-logo.logo-white img { filter: brightness(0) saturate(100%) invert(14%) sepia(39%) saturate(2400%) hue-rotate(206deg) brightness(93%) contrast(95%); }
.alt { background: var(--stone); }

.office dl { margin: 0; display: grid; grid-template-columns: 92px 1fr; gap: 6px 12px; font-size: 15.5px; }
.office dt { color: var(--muted); }
.office dd { margin: 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,0.8); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 26px; }
.site-footer a { color: rgba(255,255,255,0.9); }

/* Reach band on Home (14 Oct 2026) */
.reach { background: var(--navy); color: #fff; text-align: center; padding: 64px 0 60px; }
.reach + section { border-top: 0; }
.reach-lead {
  margin: 0 0 30px; font-size: 13px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.72);
}
.reach-figs { display: flex; justify-content: center; }
.reach-fig { flex: 0 1 320px; padding: 0 32px; display: flex; flex-direction: column; align-items: center; }
.reach-fig + .reach-fig { border-left: 1px solid rgba(255,255,255,0.25); }
.reach-num {
  font-family: var(--serif); font-weight: 500; font-size: clamp(68px, 10vw, 112px);
  line-height: 1; letter-spacing: -1px; font-variant-numeric: lining-nums;
}
.reach-of { margin-top: 12px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: rgba(255,255,255,0.88); }
.reach-link {
  display: inline-block; margin-top: 36px; color: #fff; text-decoration: none; font-size: 15px;
  padding-bottom: 3px; border-bottom: 1px solid rgba(255,255,255,0.5);
}
.reach-link:hover { color: #fff; border-bottom-color: #fff; }
.reach-link::after { content: " \2192"; }
@media (max-width: 640px) {
  .reach { padding: 48px 0 44px; }
  .reach-figs { flex-direction: column; align-items: center; }
  .reach-fig { padding: 0; flex-basis: auto; }
  .reach-fig + .reach-fig { border-left: 0; border-top: 1px solid rgba(255,255,255,0.25); margin-top: 26px; padding-top: 26px; width: 60%; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .site-header .wrap { flex-direction: column; align-items: flex-start; gap: 14px; }
  .brand img { height: 42px; }
  .wordmark .tag { font-size: 10px; }
  .nav { gap: 8px 20px; flex-wrap: wrap; }
  .js .site-header .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; padding-top: 16px; padding-bottom: 16px; }
  .js .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; margin-right: -10px; order: 2;
    background: none; border: 0; cursor: pointer; position: relative; z-index: 31;
  }
  .js .menu-btn span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: transform .25s ease, opacity .2s ease; }
  .nav-open .menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  .nav-open .menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 30;
    width: min(80vw, 300px); padding: 88px 28px 28px;
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    background: var(--navy-deep); box-shadow: -4px 0 24px rgba(0,0,0,0.25);
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s ease, visibility 0s linear .28s;
  }
  .nav-open .nav { transform: none; visibility: visible; transition: transform .28s ease; }
  .js .nav a { font-size: 17px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.14); }
  .js .nav a[aria-current="page"] { font-weight: 600; border-bottom-color: rgba(255,255,255,0.14); }
  .js .nav a[aria-current="page"]::before { content: ""; display: inline-block; width: 3px; height: 1em; background: #fff; margin: 0 10px -2px -13px; }
  .nav-open body { overflow: hidden; }
  .nav-open body::after { content: ""; position: fixed; inset: 0; background: rgba(10,18,36,0.45); z-index: 29; }
  .hero .wrap { padding-top: 44px; padding-bottom: 40px; }
  section { padding: 44px 0; }
  .two-col, .cards { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .timeline > li { grid-template-columns: 1fr; gap: 6px; }
  .office dl { grid-template-columns: 1fr; gap: 0; }
  .office dt { margin-top: 8px; }
}
