/* ==========================================================================
   GTS-W1 Advisory — site stylesheet
   Single shared file. Linked from index / services / approach / about.
   Default image paths at the bottom of "Team" — see comments.
   ========================================================================== */

:root {
  --navy:      #1f3864;
  --navy-dk:   #16294a;
  --navy-lt:   #2c4d84;
  --accent:    #b8860b;
  --ink:       #1a1a1a;
  --body:      #3d4450;
  --muted:     #6b7280;
  --line:      #e2e5ea;
  --bg:        #ffffff;
  --bg-alt:    #f6f7f9;
  --bg-dark:   #101c33;
  --maxw:      1120px;
  --gap:       clamp(1rem, 2.5vw, 2rem);
  --radius:    10px;
  --shadow:    0 1px 2px rgba(16,28,51,.06), 0 8px 24px rgba(16,28,51,.06);
  --font:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }
a { color: var(--navy-lt); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gap); }
.narrow    { max-width: 800px; }

section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.alt { background: var(--bg-alt); }
section.dark { background: var(--bg-dark); color: #cfd6e4; }
section.dark h2, section.dark h3 { color: #fff; }
section.tight { padding: clamp(2rem, 4vw, 3rem) 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
section.dark .eyebrow { color: #e0b44a; }

.lede { font-size: clamp(1.05rem, 1.7vw, 1.25rem); color: var(--body); max-width: 62ch; }
.small { font-size: .92rem; color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 72px;
}
.brand {
  font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.brand span { color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: .5rem .7rem; cursor: pointer;
  font-size: 1.1rem; line-height: 1; color: var(--navy);
}
.site-nav ul {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0; padding: 0;
}
.site-nav a {
  color: var(--body); text-decoration: none; font-size: .95rem;
  font-weight: 500; padding: .35rem 0; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--navy); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; border-bottom-color: var(--accent); }
.site-nav .btn { border-bottom: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); padding: 1rem var(--gap) 1.4rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .site-nav li { width: 100%; }
  .site-nav a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: .8rem; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: .78rem 1.4rem; border-radius: 8px;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dk); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef1f6; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, #16294a 0%, #1f3864 55%, #2c4d84 100%);
  color: #dbe2ef; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero .eyebrow { color: #e0b44a; }
.hero p { max-width: 60ch; font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: #c3cee2; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn-ghost:hover { background: #fff; color: var(--navy); }

.trust {
  display: flex; flex-wrap: wrap; gap: .5rem 1.6rem;
  margin-top: 2rem; padding: 0; list-style: none;
  font-size: .84rem; letter-spacing: .05em; text-transform: uppercase;
  color: #93a3c0; font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: .5rem; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow); height: 100%;
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--navy);
  color: #fff; font-size: .85rem; font-weight: 700; margin-bottom: .9rem;
}

/* Service cards — top accent bar */
.svc { position: relative; padding-top: 2rem; }
.svc::before {
  content: ""; position: absolute; top: 0; left: 1.6rem; right: 1.6rem;
  height: 3px; background: var(--accent); border-radius: 2px;
}

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; margin-bottom: .6rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 8px; height: 8px; border-radius: 2px; background: var(--accent);
}
.ticks.tight li { margin-bottom: .4rem; font-size: .95rem; }

/* ---------- Team ---------- */
.team-card { display: flex; flex-direction: column; }
.team-card .role {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .35rem;
}
.team-card h3 { margin-bottom: .5rem; }
.team-card .one { font-size: .95rem; flex: 1 1 auto; }
.team-card .more { margin-top: 1rem; font-size: .9rem; font-weight: 600; }

.headshot {
  width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
  background: #e8ebf0; margin-bottom: 1rem; display: block;
}
.headshot.placeholder {
  background: var(--navy); color: #fff; display: flex;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.4rem; letter-spacing: .02em;
}

/* Full profile blocks on About */
.profile {
  display: grid; grid-template-columns: 260px 1fr; gap: var(--gap);
  padding: clamp(1.6rem, 3vw, 2.4rem) 0; border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.profile:last-of-type { border-bottom: 1px solid var(--line); }
.profile .side { position: sticky; top: 100px; align-self: start; }
.profile .side .role {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .3rem;
}
.profile .side h3 { margin-bottom: .6rem; }
.profile .side .photo {
  width: 100%; aspect-ratio: 1/1; border-radius: var(--radius);
  object-fit: cover; background: #e8ebf0; margin-bottom: 1rem;
}
.profile .side .photo.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700;
  font-size: 2rem; letter-spacing: .04em;
}
@media (max-width: 760px) {
  .profile { grid-template-columns: 1fr; }
  .profile .side { position: static; }
  .profile .side .photo { max-width: 180px; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem; text-align: center; margin: 2.5rem 0 0;
}
.stat b { display: block; font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--navy); line-height: 1.1; }
section.dark .stat b { color: #fff; }
.stat span { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; background: #fff; }
th, td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--navy); color: #fff; font-size: .82rem; letter-spacing: .05em; text-transform: uppercase; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
td strong { color: var(--navy); }

/* ---------- Insights articles ---------- */
.post {
  padding: clamp(1.8rem, 3.5vw, 2.6rem) 0;
  border-top: 1px solid var(--line);
  max-width: 800px;
}
.post:last-of-type { border-bottom: 1px solid var(--line); }
.post h2 { margin-top: 0; }
.post .eyebrow { margin-bottom: .7rem; }
.post .lede { font-style: italic; }
.post ul.ticks { margin-top: 1.4rem; }

/* ---------- CTA band ---------- */
.cta { background: var(--navy); color: #d3dcec; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 58ch; margin: 0 auto 1.6rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--navy); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .7rem .85rem;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--navy-lt); outline-offset: 1px; border-color: var(--navy-lt);
}
.field.full { grid-column: 1 / -1; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #93a3c0; padding: clamp(2.5rem, 5vw, 4rem) 0 2rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #93a3c0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem; font-size: .85rem;
}

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px;
  background: var(--navy); color: #fff; padding: .7rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--navy-lt); outline-offset: 2px; }
