/* Technology Services & Solutions Inc. — site styles */

:root {
  --navy: #003082;
  --navy-deep: #001f56;
  --navy-soft: #286dad;
  --accent: #0b7fc4;
  --accent-dark: #0a6ba5;
  --ink: #1a2531;
  --body: #4a5764;
  --muted: #6b7885;
  --line: #dde3e9;
  --bg: #ffffff;
  --bg-alt: #f5f7f9;
  --bg-tint: #eaf3fa;
  --sky: #52adda;
  --max: 1140px;
  --radius: 6px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.01em; }
h3 { font-size: 1.18rem; }
p { margin-bottom: 1rem; }
a { color: var(--accent-dark); }

/* ---------- Placeholder marker ---------- */
.tk {
  background: #fff3c4;
  border-bottom: 2px dotted #d4a017;
  padding: 0 3px;
  color: #6b5200;
  font-style: normal;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 46px; width: auto; display: block; }
.footer-logo { height: 74px; width: auto; margin-bottom: 16px; }
.tagline { color: var(--sky); font-style: italic; font-weight: 600; }
.logo-mark {
  width: 38px; height: 38px;
  background: var(--navy);
  border-radius: var(--radius);
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.82rem;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { color: var(--ink); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.logo-sub { color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.09em; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--body);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.55);
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }

.nav-toggle {
  display: none;
  background: none; border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 12px; cursor: pointer;
  font-size: 1.1rem; color: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #cfd9e3;
  padding: 84px 0 76px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px; top: -60px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(82,173,218,0.20) 0%, transparent 68%);
  pointer-events: none;
}
.hero-inner { max-width: 760px; position: relative; z-index: 1; }
.eyebrow {
  display: inline-block;
  color: #52adda;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero .lede { font-size: 1.18rem; color: #b9c6d4; margin-bottom: 32px; max-width: 640px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* page banner (interior pages) */
.banner {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #b9c6d4;
  padding: 58px 0 54px;
}
.banner h1 { color: #fff; margin-bottom: 12px; }
.banner p { max-width: 660px; margin-bottom: 0; font-size: 1.08rem; }

/* ---------- Sections ---------- */
section { padding: 70px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.06rem; margin-bottom: 0; }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.pillar h3 { margin-bottom: 10px; }
.pillar p { margin-bottom: 0; font-size: 0.97rem; }

/* ---------- "We got it" list ---------- */
.gotit { border-top: 1px solid var(--line); }
.gotit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 22px 4px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease, padding-left 0.15s ease;
}
.gotit-row:hover { background: var(--bg-tint); padding-left: 14px; }
.gotit-need {
  font-size: 1.14rem;
  color: var(--ink);
  font-weight: 600;
  line-height: 1.4;
}
.gotit-need span { display: block; font-size: 0.94rem; color: var(--muted); font-weight: 400; margin-top: 3px; }
.gotit-yes {
  flex-shrink: 0;
  color: var(--accent-dark);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
}
.gotit-yes::before {
  content: "";
  width: 20px; height: 20px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px 13px;
  background-repeat: no-repeat;
  background-position: center;
}

@media (max-width: 640px) {
  .gotit-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 4px; }
  .gotit-row:hover { padding-left: 4px; }
}

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.card h3 { margin-bottom: 12px; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 7px; font-size: 0.96rem; }
.card li:last-child { margin-bottom: 0; }

.card-num {
  display: inline-grid;
  place-items: center;
  width: 34px; height: 34px;
  background: var(--bg-tint);
  color: var(--navy);
  border-radius: var(--radius);
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* ---------- Split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.split h2 { margin-bottom: 18px; }

.stat-stack { display: grid; gap: 18px; }
.stat {
  background: var(--bg-tint);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
}
.stat .n { font-size: 1.85rem; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat .l { font-size: 0.93rem; color: var(--muted); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 13px;
  font-size: 1rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

/* ---------- Brand grid ---------- */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 14px;
}
.brand-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 14px;
  text-align: center;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #b9c6d4;
  padding: 62px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { font-size: 1.08rem; margin-bottom: 28px; max-width: 620px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: var(--accent);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.contact-block {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  margin-bottom: 20px;
}
.contact-block h3 { margin-bottom: 14px; font-size: 1.05rem; }
.contact-line { margin-bottom: 12px; font-size: 0.97rem; }
.contact-line:last-child { margin-bottom: 0; }
.contact-line .k {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.form-note {
  font-size: 0.87rem;
  color: var(--muted);
  margin-top: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #8a9bad;
  padding: 52px 0 26px;
  font-size: 0.93rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 15px;
}
.site-footer a { color: #a8b8c8; text-decoration: none; display: block; margin-bottom: 9px; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.86rem;
  color: #718598;
}

/* ---------- Responsive ---------- */
/* Breakpoint raised 860 -> 1000 when Case Studies became a 7th nav item.
   At 7 links the desktop nav wraps to two lines around 940px, which broke the
   header on small laptops before the hamburger took over. */
@media (max-width: 1000px) {
  .logo-img { height: 38px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav a.active { border-bottom-color: var(--accent); }
  .nav .btn { margin-top: 12px; text-align: center; border-bottom: none; }
  .nav-toggle { display: block; }
  .site-header { position: relative; }
  .header-inner { position: relative; }
  section { padding: 52px 0; }
  .hero { padding: 60px 0 56px; }
  .field-row { grid-template-columns: 1fr; }
}

/* ---------- Partner chips ---------- */
.brand-chip { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-height: 76px; }
.brand-chip .tier {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-dark);
}
/* Partner chips render identically — the badge artwork carries the tier, so a
   tinted background on one vendor only made the row look inconsistent. */
.brand-chip.gold .tier { color: var(--navy); }

/* ---------- Compact partner strip ----------
   Used directly under a page banner (Solutions). Same logo row as the full
   section, but a small label instead of a heading block, and tighter padding —
   so the trust signal stays above the fold without pushing product content down. */
.partner-strip { padding: 28px 0 30px; border-bottom: 1px solid var(--line); }
.partner-strip .strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .partner-strip { padding: 22px 0 24px; }
  .partner-strip .strip-label { font-size: 0.72rem; margin-bottom: 12px; }
}

/* ---------- Case study page ---------- */
.cs-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-dark, #0a6299);
  margin: 0 0 10px;
}
.section-head .cs-eyebrow + h2 { margin-bottom: 12px; }

/* Anonymity note — deliberately quieter than the case study itself.
   Body copy is 17px; this sits at 15px so it reads as a footnote, not a peer. */
.cs-note-band { padding: 34px 0; }
.cs-note { max-width: 720px; border-left: 3px solid var(--line); padding-left: 18px; }
.cs-note h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 7px;
}
.cs-note p { font-size: 0.88rem; line-height: 1.6; color: var(--muted); margin-bottom: 0; }

/* ---------- Mobile form fields ----------
   iOS Safari auto-zooms the page whenever a focused input renders below 16px.
   The quote form was at 15.5px, so every tap jumped the layout. 16px stops it.
   Also stack the two-up name row and enlarge the submit button for thumbs. */
@media (max-width: 860px) {
  .field input, .field select, .field textarea { font-size: 16px; padding: 13px 13px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .btn-lg, button[type="submit"], input[type="submit"] { width: 100%; padding-top: 15px; padding-bottom: 15px; }
}

/* ---------- Pull quote ---------- */
.quote-band {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 76px 0;
}
.quote-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.quote-mark {
  font-size: 4.2rem;
  line-height: 0.6;
  color: var(--sky);
  font-weight: 800;
  display: block;
  margin-bottom: 18px;
}
.quote-band blockquote {
  font-size: clamp(1.35rem, 2.7vw, 1.85rem);
  line-height: 1.42;
  color: var(--navy);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.quote-attrib {
  font-size: 0.95rem;
  color: var(--muted);
  font-style: normal;
}
.quote-attrib strong { color: var(--ink); display: block; font-size: 1rem; }

.pullquote {
  border-left: 4px solid var(--sky);
  padding: 4px 0 4px 26px;
  margin: 28px 0;
}
.pullquote blockquote {
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--navy);
  font-weight: 600;
  margin: 0 0 12px;
}
.pullquote .quote-attrib { font-size: 0.9rem; }

@media (max-width: 640px) {
  .quote-band { padding: 54px 0; }
}

/* ---------- Leadership photo ---------- */
.bio-photo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  margin-bottom: 18px;
  border: 1px solid var(--line);
}
.bio-name { font-size: 1.08rem; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.bio-role {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-dark);
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Partner logo chips ---------- */
.brand-chip img {
  max-height: 40px;
  max-width: 90%;
  width: auto;
  object-fit: contain;
  margin: 0 auto 6px;
  display: block;
}
.brand-chip.has-logo { justify-content: center; padding: 14px 12px; }
.brand-chip.has-logo .chip-name { font-size: 0.86rem; color: var(--muted); font-weight: 600; }
/* Ivanti chip: brand red from the logo artwork (#FF1515), deepened slightly to
   #E60000 so the caption clears WCAG AA contrast (4.81:1) on white */
.brand-chip.has-logo .chip-name.ivanti-red { color: #E60000; }

/* Badge-only chip: artwork already carries the brand name and tier */
.brand-chip.badge-only { padding: 12px 10px; min-height: 92px; }
.brand-chip.badge-only img { max-height: 66px; max-width: 96%; margin-bottom: 0; }

/* Give badge chips room — wide partner lockups alias badly when squeezed */
.brand-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.brand-chip.badge-only { grid-column: span 2; min-height: 110px; }
.brand-chip.badge-only img { max-height: 78px; max-width: 88%; image-rendering: auto; }

/* Square badges (TEKLYNX) sit in a single column — spanning two would strand
   the artwork in a wide empty chip next to the horizontal lockups. */
.brand-chip.badge-only.badge-square { grid-column: span 1; }
.brand-chip.badge-only.badge-square img { max-height: 86px; max-width: 84%; }

/* Phones: auto-fill only fits one 170px track, so a span-2 badge forced an
   implicit auto-sized column — leaving SATO at 170px next to Datalogic at 140px.
   Pin two equal columns instead so every chip lines up. */
@media (max-width: 520px) {
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-chip.badge-only { grid-column: span 2; }
  .brand-chip.badge-only.badge-square { grid-column: span 1; }
}

/* ---------- Button contrast fix ----------
   The previous accent (#0b7fc4) with white text measured 4.33:1 — under the
   4.5:1 AA minimum. Darkened for light backgrounds; on the navy hero and CTA
   bands the button flips to light blue with navy text so it stays legible
   AND stands out against the dark panel. */
.btn {
  background: #0a6299;          /* white text = 6.52:1 */
  font-weight: 700;
}
.btn:hover { background: #084e7a; }

.hero .btn:not(.btn-outline),
.cta-band .btn:not(.btn-outline) {
  background: var(--sky);        /* #52adda */
  color: var(--navy);            /* navy text = 4.78:1 */
}
.hero .btn:not(.btn-outline):hover,
.cta-band .btn:not(.btn-outline):hover {
  background: #7cc4e6;
  color: var(--navy);
}

/* ---------- Nav CTA vs. active-page indicator ----------
   A filled pill sitting inside a row of text links reads as "current page."
   Separate it from the nav list so it reads as an action, and make the real
   active-page marker unmistakable. */
.nav a.btn {
  margin-left: 10px;
  padding-left: 20px;
  padding-right: 20px;
}
@media (min-width: 1001px) {
  .nav a.btn { border-left: none; }
  .nav a.btn::before {
    content: "";
    position: absolute;
    left: -14px; top: 50%;
    transform: translateY(-50%);
    width: 1px; height: 22px;
    background: var(--line);
  }
  .nav a.btn { position: relative; }
}
.nav a.btn::after { content: " \2192"; font-weight: 700; }

/* Real active-page marker: heavier and in brand navy, not the button blue */
.nav a.active {
  color: var(--navy);
  font-weight: 700;
  border-bottom-width: 3px;
  border-bottom-color: var(--navy);
}

/* On the Contact page the CTA IS the current page — soften it so it doesn't
   invite a pointless click, and drop the arrow. */
.nav a.btn.here { background: var(--navy); cursor: default; }
.nav a.btn.here:hover { background: var(--navy); }
.nav a.btn.here::after { content: ""; }

/* ---------- Nav CTA: no reversed fill ----------
   Drop the solid blue block from the header entirely. "Request a Quote"
   becomes a plain text link like the rest of the nav, weighted so it still
   reads as the primary action. */
.nav a.btn,
.nav a.btn.here,
.nav a.btn:hover,
.nav a.btn.here:hover {
  background: none;
  color: var(--navy);
  font-weight: 700;
  padding: 6px 0;
  margin-left: 0;
  border-radius: 0;
  border-bottom: 2px solid transparent;
}
.nav a.btn:hover { color: var(--navy-deep); border-bottom-color: var(--sky); }
.nav a.btn::before { display: none; }
.nav a.btn.here {
  border-bottom-width: 3px;
  border-bottom-color: var(--navy);
  cursor: default;
}

/* ---------- Contact form: Forminit status + optional-field hint ---------- */
.field label .opt {
  font-weight: 400;
  color: #6b7684;
  font-size: 0.86em;
}

.form-status {
  margin: 16px 0 0;
  padding: 0;
  font-size: 0.97rem;
  line-height: 1.5;
}
.form-status:empty { display: none; }
.form-status.is-success {
  padding: 14px 16px;
  border-left: 4px solid var(--accent);
  background: var(--bg-tint);
  color: var(--navy-deep);
  font-weight: 600;
  border-radius: 0 6px 6px 0;
}
.form-status.is-error {
  padding: 14px 16px;
  border-left: 4px solid #c0392b;
  background: #fdf0ee;
  color: #8a2b1f;
  font-weight: 600;
  border-radius: 0 6px 6px 0;
}

#quote-submit[disabled] { opacity: .6; cursor: progress; }
