/* ==========================================================================
   Apconic / Goodstrack — Shared Stylesheet
   ========================================================================== */

:root {
  --blue: #2e6ef6;
  --blue-dark: #1a4fd6;
  --blue-light: #eaf1ff;
  --navy: #0b1e3d;
  --navy-2: #122a52;
  --green: #17a673;
  --green-light: #e7f8f1;
  --purple: #7c5cf5;
  --purple-light: #f1ecfe;
  --orange: #f5891f;
  --orange-light: #fef1e3;
  --text: #16213e;
  --text-muted: #5b6780;
  --text-faint: #8793a8;
  --border: #e6eaf2;
  --bg-soft: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 24px rgba(15, 32, 74, 0.06);
  --shadow-md: 0 10px 40px rgba(15, 32, 74, 0.10);
  --container: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
button { font-family: inherit; cursor: pointer; }

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

.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); color: #fff; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.bg-navy .eyebrow { background: rgba(255,255,255,0.12); color: #9dc0ff; }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: 34px; margin-bottom: 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; }
.bg-navy .section-head p { color: #b9c4dd; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #e9eefc; }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow { font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow svg { transition: transform .15s ease; }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 500;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 32px; width: auto; }
.brand .sep { color: var(--border); font-weight: 300; }
.brand .sub-brand { font-size: 19px; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }

.nav-main { display: flex; align-items: center; gap: 4px; }
.nav-main > li { position: relative; }
.nav-main > li > a, .nav-main > li > button {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 14.5px; font-weight: 600;
  color: var(--text); background: none; border: none; border-radius: 8px;
}
.nav-main > li > a:hover, .nav-main > li > button:hover { color: var(--blue); }
.nav-main > li.active > a { color: var(--blue); }
.nav-main svg.chev { width: 14px; height: 14px; transition: transform .15s ease; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-md); padding: 10px; min-width: 260px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(6px);
  transition: all .18s ease; z-index: 50;
}
.dropdown:hover .dropdown-panel, .dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown:hover .chev { transform: rotate(180deg); }
.dropdown-panel a {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text);
}
.dropdown-panel a:hover { background: var(--bg-soft); color: var(--blue); }
.dropdown-panel a span { font-size: 12.5px; font-weight: 400; color: var(--text-faint); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 980px) {
  .nav-main, .header-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
}

/* Mobile nav */
.mobile-nav { display: none; flex-direction: column; gap: 2px; padding: 10px 24px 20px; border-top: 1px solid var(--border); }
.mobile-nav.open { display: flex; }
.mobile-nav a, .mobile-nav .m-group-label { padding: 11px 4px; font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border); }
.mobile-nav .m-group-label { color: var(--text-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: none; padding-bottom: 2px; padding-top: 14px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 44px; margin-bottom: 20px; }
.hero h1 .accent { color: var(--blue); }
.hero p.lead { font-size: 17.5px; color: var(--text-muted); margin-bottom: 30px; max-width: 560px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.bg-navy .hero p.lead { color: #c3cee6; }

.hero-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, #dce8ff, #eef4ff);
  min-height: 380px; display: flex; align-items: center; justify-content: center;
  border: 1px solid #dfe8fb;
}
.hero-visual.navy-visual { background: linear-gradient(135deg, #16305e, #0b1e3d); border-color: #1c3a6f; }

/* floating stat cards on hero illustration */
.float-card {
  position: absolute; background: #fff; border-radius: 12px; box-shadow: var(--shadow-md);
  padding: 14px 16px; font-size: 13px;
}
.float-card .fc-label { color: var(--text-faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.float-card .fc-value { font-size: 20px; font-weight: 800; color: var(--navy); }
.float-card .fc-sub { font-size: 12px; color: var(--text-faint); }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.stat-strip.cols-4 { grid-template-columns: repeat(4, 1fr); }
.stat-strip.cols-6 { grid-template-columns: repeat(6, 1fr); }
.stat-item { padding: 28px 18px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-item .num { font-size: 28px; font-weight: 800; color: var(--navy); display: block; }
.stat-item .lbl { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; }
.bg-navy .stat-item { border-color: rgba(255,255,255,0.12); }
.bg-navy .stat-item .num { color: #fff; }
.bg-navy .stat-item .lbl { color: #b9c4dd; }

@media (max-width: 860px) {
  .stat-strip, .stat-strip.cols-4, .stat-strip.cols-6 { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid var(--border); }
}

/* ---------- Icon circle ---------- */
.icon-circle {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-circle svg { width: 26px; height: 26px; }
.icon-circle.blue { background: var(--blue-light); color: var(--blue); }
.icon-circle.green { background: var(--green-light); color: var(--green); }
.icon-circle.purple { background: var(--purple-light); color: var(--purple); }
.icon-circle.orange { background: var(--orange-light); color: var(--orange); }
.icon-circle.round { border-radius: 50%; }

.icon-num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  flex-shrink: 0;
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.grid-8 { grid-template-columns: repeat(8, 1fr); }

@media (max-width: 1020px) {
  .grid-4, .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-8 { grid-template-columns: repeat(4, 1fr); }
  .grid-4.stack-mobile { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-8 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .grid-4.stack-mobile { grid-template-columns: 1fr; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; }
.card ul.check-list { margin-top: 16px; }
.card .link-arrow { margin-top: 18px; color: var(--blue); }

.check-list li {
  display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--text-muted);
  padding: 5px 0;
}
.check-list li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--green); }

.step-card { border-top: 3px solid var(--blue); }
.step-card.green { border-top-color: var(--green); }
.step-card.purple { border-top-color: var(--purple); }
.step-card.orange { border-top-color: var(--orange); }

/* logos strip */
.logo-strip-wrap { text-align: center; }
.logo-strip-wrap .label { font-weight: 700; font-size: 15px; margin-bottom: 26px; color: var(--text); }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.logo-pill {
  border: 1px solid var(--border); border-radius: 10px; padding: 14px 22px;
  font-weight: 700; font-size: 15px; color: var(--text-muted); background: #fff;
}

/* industries icons row */
.industry-item { text-align: center; padding: 20px 10px; border: 1px solid var(--border); border-radius: 12px; }
.industry-item .icon-circle { margin: 0 auto 12px; }
.industry-item span { font-size: 13.5px; font-weight: 600; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(120deg, var(--blue), #1a4fd6 70%);
  border-radius: 20px; padding: 46px 50px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-banner h3 { font-size: 25px; margin-bottom: 8px; }
.cta-banner p { color: #dce7ff; font-size: 15px; max-width: 480px; }
.cta-banner .cta-actions { display: flex; gap: 12px; flex-shrink: 0; }
.cta-icon { width: 50px; height: 50px; border-radius: 12px; background: rgba(255,255,255,0.18); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Footer */
.site-footer { background: var(--navy); color: #c3cee6; padding: 64px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 30px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-grid h4 { color: #fff; font-size: 14.5px; margin-bottom: 18px; }
.footer-grid ul li { margin-bottom: 11px; font-size: 14px; }
.footer-grid ul li a:hover { color: #fff; }
.footer-grid ul li a svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-brand .brand img { height: 30px; }
.footer-brand .sub-brand { color: #fff; }
.footer-brand p { font-size: 13.5px; margin: 16px 0 20px; color: #97a4c2; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; font-size: 13px; color: #8a97b8; flex-wrap: wrap; gap: 10px; }
.footer-bottom .links { display: flex; gap: 20px; }
.contact-line { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-bottom: 12px; }
.contact-line svg { width: 17px; height: 17px; color: #7ea3ff; flex-shrink: 0; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-brand { grid-column: span 2; }
}

/* Breadcrumb hero for interior pages */
.page-hero { padding: 54px 0 50px; }
.page-hero.dark { background: linear-gradient(120deg, var(--navy), #0e2547); color: #fff; }
.page-hero h1 { font-size: 40px; margin-bottom: 16px; }
.page-hero p.lead { color: var(--text-muted); font-size: 17px; max-width: 700px; margin: 0 auto; }
.page-hero.dark p.lead { color: #c3cee6; }
.page-hero.center { text-align: center; }

/* Numbered step grid (planning/operations style) */
.flow-row { display: flex; align-items: stretch; gap: 0; overflow-x: auto; padding-bottom: 10px; }
.flow-step { flex: 1 0 220px; padding: 0 14px; position: relative; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; right: -4px; width: 20px; height: 2px; background: var(--border);
}
.flow-num { width: 34px; height: 34px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; margin-bottom: 14px; }
.flow-step h4 { font-size: 15.5px; margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; color: var(--text-muted); }

.tag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; background: var(--green-light); color: var(--green);
}
.tag.soon { background: #f1f2f6; color: var(--text-faint); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

.pill-icon-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-icon { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; border: 1px solid var(--border); padding: 9px 14px; border-radius: 999px; }
.pill-icon svg { width: 16px; height: 16px; color: var(--blue); }

/* Form */
.contact-form { display: grid; gap: 16px; }
.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { font-size: 13.5px; font-weight: 600; margin-bottom: 6px; display: block; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 14.5px; color: var(--text);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--blue); }
.contact-form button[type="submit"] { justify-self: start; }
@media (max-width: 640px) { .contact-form .row-2 { grid-template-columns: 1fr; } }

.info-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; }
.info-card .icon-circle { margin-bottom: 0; }
.info-card h4 { font-size: 15.5px; margin-bottom: 4px; }
.info-card p { font-size: 14px; color: var(--text-muted); }

.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge-soft { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }
.badge-soft svg { width: 18px; height: 18px; color: var(--blue); }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* Client logo marquee */
.marquee-wrap {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 52px;
  width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  flex-shrink: 0;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.marquee-item img {
  height: 100%;
  max-height: 44px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity .2s ease;
}
.marquee-item img:hover { opacity: 1; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* Leadership team */
.team-card { text-align: center; padding: 32px 24px; }
.team-photo {
  width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px;
  border: 3px solid var(--blue-light);
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 18px; margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.team-linkedin {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--blue-light); color: var(--blue);
}
.team-linkedin:hover { background: var(--blue); color: #fff; }
.team-linkedin svg { width: 18px; height: 18px; }

/* utils */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }