/* ===== Pinnacle Refactoring — site styles ===== */
:root {
  --navy: #0e2d50;
  --navy-deep: #0a2140;
  --blue: #1f5ea8;
  --teal: #2bbfd4;
  --teal-soft: #e3f7fa;
  --ink: #1b2b3d;
  --muted: #5a6b7d;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 45, 80, 0.08);
  --head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }

.eyebrow {
  font-family: var(--head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9em;
}
.eyebrow-light { color: var(--teal); }
.accent {
  background: linear-gradient(90deg, var(--blue), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: .95rem;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  border: 2px solid var(--blue);
  transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: var(--teal-soft); border-color: var(--teal); color: var(--navy); }
.btn-small { padding: 9px 18px; font-size: .85rem; }

/* ----- Header ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 50px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a:not(.btn) {
  font-family: var(--head); font-weight: 600; font-size: .92rem;
  color: var(--navy); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--blue); }
.site-nav .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

/* ----- Hero ----- */
.hero {
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 60% 70% at 95% 10%, rgba(43,191,212,.16), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(31,94,168,.08), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.path-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.path-col h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.path-arrow { color: var(--teal); width: 48px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.chips li {
  font-family: var(--head); font-weight: 600; font-size: .82rem;
  padding: 9px 12px; border-radius: 8px;
}
.chips-legacy li { background: #eef1f5; color: #4a5a6b; border: 1px dashed #c4ceda; }
.chips-modern li { background: linear-gradient(90deg, var(--blue), #2a83c2); color: #fff; border: 1px solid transparent; }
.path-note {
  grid-column: 1 / -1; margin: 10px 0 0; padding-top: 16px;
  border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted);
}

/* ----- Stats ----- */
.stats { background: var(--navy); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats-grid div { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.1); }
.stats-grid div:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--head); font-size: 1.9rem; font-weight: 800; color: var(--teal); }
.stats span { font-size: .95rem; color: #c3d2e2; }

/* ----- About ----- */
.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
.about-copy p { color: var(--muted); }
.engagements {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--navy) !important;
}

/* ----- Services ----- */
.services { background: var(--bg-alt); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 36px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,45,80,.12); }
.card p { color: var(--muted); margin: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 20px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}
.card-icon svg, .contact-card svg {
  width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}

/* ----- Technical matrix ----- */
.matrix { background: linear-gradient(160deg, var(--navy-deep), var(--navy) 60%, #12437a); color: #fff; }
.matrix h2 { color: #fff; }
.matrix-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 36px; }
.matrix-item {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); padding: 26px 26px 20px;
}
.matrix-item h3 { color: #fff; }
.tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-size: .9rem; font-weight: 500; padding: 6px 13px; border-radius: 999px;
  background: rgba(43,191,212,.14); color: #bdeef5; border: 1px solid rgba(43,191,212,.3);
}

/* ----- Experience ----- */
.timeline { margin-top: 40px; border-left: 3px solid var(--line); }
.role { display: grid; grid-template-columns: 190px 1fr; gap: 32px; padding: 0 0 44px 32px; position: relative; }
.role::before {
  content: ""; position: absolute; left: -10px; top: 4px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #fff; border: 4px solid var(--teal);
}
.section-intro { color: var(--muted); max-width: 46em; }
.role-dates { display: block; font-family: var(--head); font-weight: 700; color: var(--blue); }
.role-place { display: block; font-size: .95rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.role-body h3 { font-size: 1.25rem; margin-bottom: .2em; }
.role-org { font-family: var(--head); font-weight: 600; color: var(--teal); margin-bottom: .8em; }
.role-body ul { margin: 0; padding-left: 1.1em; color: var(--muted); }
.role-body li { margin-bottom: .5em; }
.role-body li::marker { color: var(--teal); }

.subhead { font-size: 1.4rem; margin: 40px 0 24px; }
.subhead span { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 8px; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.sector {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  background: var(--bg-alt);
}
.sector h4 { font-size: 1.1rem; margin: 0 0 8px; padding-left: 12px; border-left: 3px solid var(--teal); }
.sector p { font-size: .97rem; color: var(--muted); margin: 0; }
.sector-tag {
  display: inline-block; font-family: var(--head); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--blue);
  background: #e4eef9; padding: 4px 10px; border-radius: 999px;
}

/* ----- Contact ----- */
.contact { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.contact h2 { color: #fff; }
.contact p { color: #d3e1ef; max-width: 34em; }
.contact-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact-cards { display: grid; gap: 16px; }
.contact-card {
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius); padding: 20px 24px;
  color: #fff; text-decoration: none; font-family: var(--head); font-weight: 700; font-size: 1.1rem;
  transition: background .2s, transform .2s;
}
.contact-card:hover { background: rgba(255,255,255,.16); transform: translateX(4px); }
.contact-card svg { flex: none; width: 44px; height: 44px; padding: 10px; border-radius: 10px; background: var(--teal); box-sizing: border-box; }
.contact-card small { display: block; font-family: var(--body); font-weight: 500; font-size: .8rem; color: #b5cbe0; text-transform: uppercase; letter-spacing: .1em; }
.contact-card span { overflow-wrap: anywhere; }

/* ----- Footer ----- */
.site-footer { background: var(--navy-deep); color: #8fa6bd; padding: 28px 0; font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner p { margin: 0; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; color: #fff; }

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero-grid, .about-grid, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid div:nth-child(3) { border-left: 0; }
  .stats-grid div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.1); }
  .role { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .container { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; text-align: center; }
  .matrix-grid { grid-template-columns: 1fr; }
  .path-card { grid-template-columns: 1fr; padding: 22px; }
  .path-arrow { transform: rotate(90deg); margin: 0 auto; }
  .sector-grid { grid-template-columns: 1fr; }
  .timeline { border-left-width: 2px; }
  .role { padding-left: 22px; }
  .stats strong { font-size: 1.45rem; }
  .stats-grid div { padding: 26px 12px; }
  .subhead span { display: block; margin: 6px 0 0; }
}

/* ----- Contact dialog ----- */
.btn-light { margin-top: 8px; background: #fff; color: var(--navy); border-color: #fff; }
.btn-light:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
body.dialog-open { overflow: hidden; }

.contact-dialog {
  width: min(720px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(10, 33, 64, .35);
  color: var(--ink);
  overflow: auto;
}
.contact-dialog::backdrop { background: rgba(10, 33, 64, .6); backdrop-filter: blur(3px); }
.contact-dialog[open] { animation: dialog-in .22s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.dialog-inner { position: relative; padding: 30px 36px 26px; border-top: 6px solid var(--teal); }
.dialog-inner h2 { font-size: 1.6rem; margin-bottom: .3em; }
.dialog-sub { color: var(--muted); margin-bottom: 24px; }
.dialog-close {
  position: absolute; top: 14px; right: 16px;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: var(--bg-alt); color: var(--navy);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.dialog-close:hover { background: var(--teal-soft); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-full { grid-column: 1 / -1; }
.field label { font-family: var(--head); font-weight: 600; font-size: .82rem; color: var(--navy); }
.req { color: #c0392b; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  padding: 11px 13px; border: 1px solid #c9d5e2; border-radius: 9px; background: #fff;
  width: 100%;
}
.field textarea { resize: vertical; min-height: 80px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 94, 168, .15);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0392b; background: #fdf3f2; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
  margin: 18px 0 0; padding: 12px 14px; border-radius: 9px;
  background: #fdf3f2; border: 1px solid #f0c4be; color: #8a2a1f; font-size: .95rem;
}
.form-error a { color: #8a2a1f; font-weight: 600; }
.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.form-actions .btn { cursor: pointer; }
.form-actions .btn:disabled { opacity: .7; cursor: wait; }

.dialog-success { text-align: center; padding: 30px 10px 10px; }
.success-icon {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--blue));
}
.success-icon svg { width: 36px; height: 36px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.dialog-success p { color: var(--muted); margin-bottom: 24px; }

@media (max-width: 760px) {
  .dialog-inner { padding: 28px 20px 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; text-align: center; }
}

/* ----- American / AI emphasis (added 2026-11-04) ----- */
.trust-badges { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.trust-badges li {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--head); font-weight: 600; font-size: .88rem; color: var(--navy);
}
.trust-badges svg {
  flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%;
  background: var(--teal-soft); fill: none; stroke: var(--blue); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round;
}

.compare-table { margin-top: 36px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-row { display: grid; grid-template-columns: 1fr 1.4fr 1.4fr; }
.compare-row > span { padding: 18px 22px; border-top: 1px solid var(--line); }
.compare-row:first-child > span { border-top: 0; }
.compare-row [role=rowheader] { font-family: var(--head); font-weight: 700; color: var(--navy); font-size: .95rem; background: var(--bg-alt); }
.compare-row .col-us { background: var(--teal-soft); color: var(--navy); font-weight: 600; }
.compare-row .col-them { color: var(--muted); }
.compare-head > span { font-family: var(--head); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.compare-head .col-us { background: linear-gradient(90deg, var(--blue), #2a83c2); color: #fff; }
.compare-head .col-them { background: #eef1f5; color: var(--muted); }
.compare-head > span:first-child { background: var(--bg-alt); }

.contact-direct { font-weight: 600; color: #fff !important; }

@media (max-width: 760px) {
  .compare-head { display: none; }
  .compare-table { border: 0; box-shadow: none; overflow: visible; display: grid; gap: 14px; }
  .compare-row { grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .compare-row > span { border-top: 0; padding: 12px 16px; }
  .compare-row [data-label]::before {
    content: attr(data-label); display: block; font-family: var(--head); font-size: .7rem; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; margin-bottom: 2px; opacity: .75;
  }
}

/* ----- Performance callout (added 2026-11-04) ----- */
.perf-callout {
  margin-top: 32px; display: flex; align-items: center; gap: 22px;
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal);
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.perf-callout p { margin: 0; font-size: 1.1rem; font-weight: 500; color: var(--navy); }
.perf-icon {
  flex: none; width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--blue));
}
.perf-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linejoin: round; }
@media (max-width: 760px) {
  .perf-callout { flex-direction: column; align-items: flex-start; padding: 20px; gap: 14px; }
  .perf-callout p { font-size: 1.02rem; }
}

/* Four trust badges: tidy 2 x 2 grid (1 column on small phones) */
.trust-badges { display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 28px; }
@media (max-width: 480px) { .trust-badges { grid-template-columns: 1fr; } }
