/* Barcode Stripe corporate site. Palette matches shop.barcodestripe.com */
:root {
  --blue: #005586;
  --blue-dark: #003366;
  --navy: #00264d;
  --gray: #58585a;
  --ink: #1d2a33;
  --muted: #5b6b76;
  --line: #d9e2e8;
  --wash: #f3f6f8;
  --tint: #e5eff5;
  --white: #fff;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(0, 38, 77, .10);
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--white); font: 16px/1.65 var(--font); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--navy); line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid #5aa9d1; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--blue); }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border: 2px solid var(--blue); border-radius: var(--radius);
  background: var(--blue); color: var(--white); font: 600 15px/1.2 var(--font); cursor: pointer; text-align: center;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--blue-dark); }
.btn-outline { background: transparent; border-color: rgba(255, 255, 255, .7); color: var(--white); }
.btn-outline:hover { background: var(--white); border-color: var(--white); color: var(--blue-dark); }
.link-arrow { font-weight: 600; }
.link-arrow::after { content: " \2192"; }

/* Top bar */
.topbar { background: var(--navy); color: #cfdde8; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #9fd0ea; }
.topbar .loc { margin: 0; }
.topbar .links { display: flex; gap: 22px; margin-left: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand img { width: 190px; height: auto; }
.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--white); cursor: pointer;
}
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--navy); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav > ul { display: flex; align-items: center; gap: 4px; }
.nav a { display: block; padding: 10px 14px; color: var(--ink); font-weight: 600; font-size: 15px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); background: var(--wash); }
.nav .nav-cta { margin-left: 8px; padding: 11px 20px; color: var(--white); background: var(--blue); }
.nav .nav-cta:hover { color: var(--white); background: var(--blue-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { font-weight: 500; }

/* Home hero */
.hero {
  position: relative; color: var(--white); background: var(--navy) center / cover no-repeat;
  background-image: linear-gradient(100deg, rgba(0, 38, 77, .95) 0%, rgba(0, 51, 102, .85) 50%, rgba(0, 85, 134, .55) 100%), url(../uploads/IT-Managed/IT_MANAGED_1120x420.webp);
}
.hero .wrap { padding-top: 104px; padding-bottom: 112px; }
.eyebrow { margin: 0 0 14px; color: var(--blue); font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow, .page-hero .eyebrow, .band .eyebrow { color: #9fd0ea; }
.hero h1 { max-width: 780px; margin-bottom: 20px; color: var(--white); font-size: clamp(32px, 5.2vw, 58px); letter-spacing: -.01em; }
.hero p.lead { max-width: 640px; margin-bottom: 32px; color: #e1ecf3; font-size: clamp(17px, 2vw, 20px); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats */
.stats { background: var(--white); border-bottom: 1px solid var(--line); }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 32px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; color: var(--blue); font-size: 34px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--wash); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; padding: 32px; background: var(--white);
  border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card img.icon { width: 56px; height: 56px; margin-bottom: 20px; object-fit: contain; }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }
.card ul { margin: 4px 0 20px; }
.card li { position: relative; padding: 3px 0 3px 22px; font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
.card .link-arrow { margin-top: auto; }

/* Why us */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.split h2 { font-size: clamp(26px, 3.4vw, 38px); }
.split p { color: var(--muted); font-size: 17px; }
.facts { padding: 36px; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.facts h3 { color: var(--white); font-size: 20px; }
.facts li { position: relative; padding: 12px 0 12px 32px; border-top: 1px solid rgba(255, 255, 255, .15); }
.facts li:first-of-type { border-top: 0; }
.facts li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 7px; height: 12px; border: solid #9fd0ea; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* Sectors */
.tiles { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.tile:hover img { transform: scale(1.05); }
.tile span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 16px 14px; color: var(--white); font-weight: 700;
  background: linear-gradient(0deg, rgba(0, 38, 77, .92), rgba(0, 38, 77, 0));
}
.tiles.logos .tile { background: var(--white); border: 1px solid var(--line); color: var(--ink); }
.tiles.logos .tile img { aspect-ratio: 1 / 1; padding: 16px; object-fit: contain; }
.tiles.logos .tile span { position: static; padding: 0 12px 16px; color: var(--navy); text-align: center; background: none; }

/* Partners */
.partners ul { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.partners img { max-width: 150px; max-height: 64px; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partners img:hover { filter: none; opacity: 1; }

/* Band */
.band { padding: 72px 0; color: var(--white); background: linear-gradient(110deg, var(--navy), var(--blue)); }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.band h2 { color: var(--white); font-size: clamp(24px, 3vw, 34px); }
.band p { max-width: 640px; margin: 0; color: #dbe9f1; font-size: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(26px, 3.4vw, 38px); }
.contact-list { margin: 28px 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.contact-list a, .contact-list b { font-size: 18px; font-weight: 600; }
.contact-photo { border-radius: var(--radius); }
form.quote { padding: 36px; background: var(--wash); border: 1px solid var(--line); border-radius: var(--radius); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
form.quote label { display: block; margin-bottom: 6px; color: var(--navy); font-size: 14px; font-weight: 600; }
form.quote input, form.quote select, form.quote textarea {
  width: 100%; margin-bottom: 18px; padding: 12px 14px; color: var(--ink); background: var(--white);
  border: 1px solid #b9c7d0; border-radius: var(--radius); font: inherit;
}
form.quote textarea { min-height: 130px; resize: vertical; }
form.quote input:focus, form.quote select:focus, form.quote textarea:focus { border-color: var(--blue); outline: 3px solid rgba(0, 85, 134, .2); }
form.quote .hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-status { margin: 14px 0 0; font-weight: 600; }
.form-status.ok { color: #1b7a3a; }
.form-status.err { color: #b3261e; }

/* Footer */
.site-footer { color: #c4d4e0; background: var(--navy); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding: 72px 0 48px; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; }
.site-footer a { color: #c4d4e0; }
.site-footer a:hover { color: var(--white); }
.site-footer li { padding: 4px 0; }
.site-footer .brand-note img { width: 180px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer .brand-note p { max-width: 340px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; }
.footer-bottom ul { display: flex; gap: 24px; }
.footer-bottom li { padding: 0; }

/* Inner pages */
.page-hero {
  color: var(--white); background: var(--navy) center / cover no-repeat;
}
.page-hero .wrap { padding-top: 56px; padding-bottom: 64px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; font-size: 14px; color: #b9d3e3; }
.crumbs a { color: #fff; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.page-hero h1 { max-width: 820px; margin-bottom: 16px; color: var(--white); font-size: clamp(30px, 4.4vw, 48px); }
.page-hero .lead { max-width: 760px; margin: 0; color: #e1ecf3; font-size: clamp(17px, 2vw, 20px); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; padding-top: 64px; padding-bottom: 88px; align-items: start; }
.layout.single { grid-template-columns: minmax(0, 860px); }
.prose { font-size: 17px; line-height: 1.75; }
.prose h2 { margin-top: 1.6em; font-size: 28px; }
.prose h3 { margin-top: 1.4em; font-size: 20px; }
.prose > :first-child { margin-top: 0; }
.prose ul { margin: 0 0 1.2em; }
.prose ul li { position: relative; padding: 3px 0 3px 24px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 14px; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; }
.prose img { max-width: min(100%, 420px); margin: 1.4em 0; border-radius: var(--radius); }
.prose img.wide { max-width: 100%; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); margin: 1.6em 0; }
.cards .card { padding: 26px; }
.cards .card:hover { transform: none; box-shadow: none; }
.cards .card h3 { margin-top: 0; font-size: 19px; }
.cards .card p:last-child { margin-bottom: 0; }
.cards .card p { font-size: 16px; line-height: 1.65; }
.prose .tiles { margin: 1.6em 0; grid-template-columns: repeat(3, 1fr); }
.prose .tile img { max-width: 100%; margin: 0; border-radius: 0; }
.aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { padding: 28px; background: var(--wash); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: var(--radius); }
.aside-card h3 { font-size: 19px; }
.aside-card p { color: var(--muted); font-size: 15px; }
.aside-card .btn { width: 100%; margin-top: 6px; }
.aside-card.dark { color: #dbe9f1; background: var(--navy); border-color: var(--navy); border-top-color: #5aa9d1; }
.aside-card.dark h3 { color: var(--white); }
.aside-card.dark p { color: #c4d4e0; }

/* Tablet */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .split, .contact { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .band .wrap { flex-direction: column; align-items: flex-start; }
  .section { padding: 64px 0; }

  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 76px); overflow-y: auto;
    padding: 12px 24px 24px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 16px; }
  .nav a:hover, .nav a[aria-current="page"] { background: none; }
  .has-sub > a::after { display: none; }
  .has-sub > a { color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
  .sub { position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .sub a { font-weight: 500; }
  .nav .nav-cta { margin: 18px 0 0; padding: 14px; text-align: center; border-bottom: 0; border-radius: var(--radius); }
  .nav .nav-cta:hover { background: var(--blue-dark); }
}

/* Phone */
@media (max-width: 639px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .topbar .loc { display: none; }
  .topbar .links { margin: 0 auto; gap: 18px; }
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 150px; }
  .nav { max-height: calc(100vh - 64px); padding: 8px 18px 20px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; }
  .actions .btn { width: 100%; }
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .stats li:nth-child(-n+2) { border-top: 0; }
  .stats li:nth-child(odd) { padding-left: 0; }
  .stats li:nth-child(even) { border-left: 1px solid var(--line); }
  .stats strong { font-size: 28px; }
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 30px; }
  .grid, .cards { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .tiles, .prose .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .facts, form.quote { padding: 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
  .footer-bottom .wrap { flex-direction: column; }
  .band { padding: 52px 0; }
  .page-hero .wrap { padding-top: 36px; padding-bottom: 44px; }
  .layout { padding-top: 40px; padding-bottom: 56px; }
  .aside { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; }
}

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

.quote-card { margin: 0; }
.quote-card blockquote { margin: 0 0 16px; padding: 0; color: var(--ink); font-size: 17px; line-height: 1.6; }
.quote-card blockquote::before { content: "\201C"; display: block; color: var(--blue); font-size: 44px; line-height: 1; }
.quote-card figcaption { margin-top: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.prose .cards .card p strong { color: var(--navy); }
