/* TangentBridge Consulting - landing page
   Palette and type follow TBC brand standards.
   All color pairs verified to WCAG 2.1 AA contrast. */

:root {
  --navy: #002B61;        /* primary, true brand navy (logo master) */
  --navy-deep: #001E45;   /* darker variant for hero gradient + footer */
  --blue: #1A5694;        /* lighter supporting blue, eyebrow labels + links */
  --gold: #C9A961;        /* accent, used on navy / as non-text rule */
  --ink: #2B2B2B;         /* body text on white */
  --ink-soft: #4F4F4F;    /* de-emphasized body, AA on white */
  --line: #D8DEE6;        /* hairline borders */
  --panel: #F4F6F9;       /* light panel fill */
  --white: #FFFFFF;
  --maxw: 1080px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1.0625rem;
}

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

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 0.5rem;
  top: -3rem;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.7rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Focus visibility ----------
   Double ring: navy outline reads on light backgrounds, gold halo reads
   on dark backgrounds, so the indicator clears 3:1 against any surface. */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.skip-link:focus {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gold);
  border-radius: 3px;
}
/* fallback for browsers without :focus-visible */
a:focus, button:focus {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--gold);
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
section + section { border-top: 1px solid var(--line); }

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 0 0 0.75rem;
}
.eyebrow::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.6rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 1.25rem;
  font-weight: 700;
}
h3 {
  font-size: 1.1875rem;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
p { margin: 0 0 1rem; }
.lead { font-size: 1.125rem; color: var(--ink); max-width: 60ch; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}
.site-header img { height: 58px; width: auto; display: block; }
.header-cta {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  text-decoration: none;
  border: 1.5px solid var(--navy);
  padding: 0.45rem 0.95rem;
  border-radius: 5px;
  white-space: nowrap;
}
.header-cta:hover { background: var(--navy); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  border-top: none;
}
.hero .wrap { padding-top: clamp(3rem, 8vw, 5.5rem); padding-bottom: clamp(3rem, 8vw, 5.5rem); }
.hero p.kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.25rem;
}
.hero h1 {
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.25rem;
  font-weight: 700;
  max-width: 20ch;
  color: var(--white);
}
.hero h1 .turn { color: var(--gold); }
.hero .support {
  font-size: 1.15rem;
  color: #E7ECF3;
  max-width: 58ch;
  margin: 0 0 2rem;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-deep);
  font-weight: 700;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 6px;
  font-size: 1.0625rem;
  border: 2px solid var(--gold);
}
.btn:hover { background: #d8bd7d; border-color: #d8bd7d; }
.btn.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ---------- Who we serve ---------- */
.cols2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0;
}
.serve-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.5rem;
}
.serve-card h3 { margin-bottom: 0.75rem; }
.serve-card .label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 1rem 0 0.25rem;
}
.serve-card p { margin-bottom: 0; }

/* ---------- What we do ---------- */
.services { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.services li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}
.services li:first-child { border-top: none; }
.services .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.1;
}
.services .num::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 3px;
  background: var(--gold);
  margin-top: 0.4rem;
}
.services h3 { margin-bottom: 0.35rem; }
.services p { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- How we work ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 1.5rem; }
.how-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  background: var(--white);
}
.how-card h3 { font-size: 1.05rem; }
.how-card p:last-child { margin-bottom: 0; }
.how-card p { color: var(--ink-soft); }

/* ---------- Track record ---------- */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1.75rem;
}
.metric {
  background: var(--navy);
  color: var(--white);
  border-radius: 8px;
  padding: 1.5rem 1.25rem;
}
.metric .figure {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin: 0 0 0.6rem;
}
.metric p { font-size: 0.95rem; color: #E7ECF3; margin: 0; }

/* ---------- About ---------- */
.about p { max-width: 70ch; color: var(--ink); }
.about .credentials { color: var(--ink-soft); }
.about-grid {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.about-grid > div { margin-top: -0.3em; }
@media (max-width: 600px) {
  .about-grid > div { margin-top: 0; }
}
.headshot {
  width: 200px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}
@media (max-width: 600px) {
  .about-grid { flex-direction: column; }
  .headshot { width: 180px; }
}

/* ---------- Contact ---------- */
.contact { background: var(--panel); }
.contact ul { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.contact li { margin: 0 0 0.65rem; font-size: 1.0625rem; }
.contact a { color: var(--blue); font-weight: 600; }
.contact .loc { color: var(--ink-soft); font-weight: 400; }
.contact .cta-row { margin-top: 1.75rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #D6DEE9;
  font-size: 0.9rem;
  padding: 2.25rem 0;
}
.site-footer p { margin: 0 0 0.5rem; }
.footer-row {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.footer-row p { margin: 0; flex: 1; }
.footer-row p:last-child { text-align: right; }
@media (max-width: 600px) {
  .footer-row { flex-direction: column; gap: 0.35rem; }
  .footer-row p:last-child { text-align: left; }
}
.site-footer .uei { color: #AFBCCD; }
.site-footer .a11y { color: #AFBCCD; }
.site-footer a { color: #E7ECF3; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .cols2, .how-grid { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
}
/* The horizontal logo is ~292px wide at 58px tall; hide the header CTA
   before it can collide with the logo. The hero and contact CTAs remain. */
@media (max-width: 600px) {
  .header-cta { display: none; }
}
@media (max-width: 420px) {
  .metrics { grid-template-columns: 1fr; }
  .services li { grid-template-columns: 1fr; gap: 0.35rem; }
  .services .num::after { display: none; }
}
