/* Integrated Technology Solutions, LLC: shared styles
   Palette is taken from the logo: teal #015861, slate #222A31 */
:root {
  --teal: #015861;
  --teal-600: #0b6f7a;
  --teal-300: #5fb4bd;
  --teal-100: #d9eef0;
  --ink: #222a31;
  --ink-800: #2c353d;
  --muted: #56646d;
  --line: #d8e1e4;
  --mist: #eef3f4;
  --paper: #fafbfb;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(34,42,49,.06), 0 8px 24px rgba(34,42,49,.07);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-600); }
:focus-visible { outline: 3px solid var(--teal-300); outline-offset: 3px; border-radius: 4px; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 200; }
.skip:focus { left: 8px; }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 500; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; border-radius: 10px; font: 600 .95rem 'Plus Jakarta Sans', sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--teal-100); color: var(--ink); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(250,251,251,.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(34,42,49,.06); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.05rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.brand-text span { font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; }
.nav-links a:hover { color: var(--teal); }
.nav-links .btn { color: #fff; padding: 10px 18px; font-size: .88rem; }
.nav-links .btn:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; display: block; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--mist); border-bottom: 1px solid var(--line); }
.hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; opacity: .55; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 70%); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 92px; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.chip { font-size: .8rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--ink-800); }

/* Portfolio panel in hero */
.panel { background: var(--ink); color: #dbe4e8; border-radius: 16px; box-shadow: 0 24px 60px rgba(34,42,49,.28); overflow: hidden; font-family: var(--mono); font-size: .86rem; }
.panel-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #1a2026; }
.panel-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a444c; }
.panel-bar span { margin-left: 10px; color: #8a9aa3; font-size: .75rem; }
.panel ul { list-style: none; padding: 18px 8px 20px; }
.panel li { display: flex; align-items: baseline; gap: 12px; padding: 9px 14px; border-radius: 8px; transition: background .15s; }
.panel li:hover { background: rgba(95,180,189,.12); }
.panel li b { color: #fff; font-weight: 500; min-width: 10.5em; }
.panel li span { color: #8fa3ad; }
.panel li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-300); flex: none; align-self: center; }
.panel-foot { padding: 0 22px 20px; color: #8fa3ad; font-size: .78rem; }
.panel-foot b { color: var(--teal-300); font-weight: 500; }

/* Sections */
section { padding: 92px 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 12px 0 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.alt { background: var(--mist); border-block: 1px solid var(--line); }

/* Products */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: 600 .85rem 'Plus Jakarta Sans', sans-serif; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; transition: all .15s; }
.filter:hover { border-color: var(--teal); }
.filter[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 22px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--teal-300); box-shadow: 0 2px 4px rgba(34,42,49,.06), 0 16px 36px rgba(34,42,49,.12); }
.card[hidden] { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; gap: 12px; }
.icon { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-100); color: var(--teal); display: grid; place-items: center; flex: none; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.tag { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; padding: 4px 9px; border-radius: 6px; background: var(--mist); color: var(--ink-800); }
.card h3 { font-size: 1.35rem; font-weight: 800; }
.card .sub { color: var(--teal); font-weight: 600; font-size: .92rem; margin: 4px 0 12px; }
.card p { color: var(--muted); font-size: .95rem; }
.card ul { list-style: none; margin: 16px 0 22px; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 22px; font-size: .9rem; color: var(--ink-800); }
.card li::before { content: ''; position: absolute; left: 2px; top: .55em; width: 9px; height: 5px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.card .more { margin-top: auto; font-weight: 700; font-size: .92rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .more:hover { gap: 10px; }
.card .more span { transition: transform .15s; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.service { padding: 26px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.service .icon { margin-bottom: 16px; }
.service h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.service p { color: var(--muted); font-size: .93rem; }

/* Dark band */
.dark { background: var(--ink); color: #dbe4e8; position: relative; overflow: hidden; }
.dark .eyebrow { color: var(--teal-300); }
.dark .section-head p { color: #a9b8c0; }
.dark h2 { color: #fff; }
.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.principle { border-top: 2px solid var(--teal-300); padding-top: 20px; }
.principle h3 { color: #fff; font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.principle p { color: #a9b8c0; font-size: .95rem; }

/* Industries */
.industries { display: flex; flex-wrap: wrap; gap: 12px; }
.industry { padding: 14px 22px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); font-weight: 700; display: flex; align-items: center; gap: 10px; }
.industry::before { content: ''; width: 10px; height: 10px; background: var(--teal); border-radius: 3px; transform: rotate(45deg); }

/* Contact */
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.contact h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; margin: 12px 0 14px; }
.contact p { color: var(--muted); font-size: 1.05rem; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.contact-card dl { display: grid; gap: 18px; margin-bottom: 24px; }
.contact-card dt { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card dd { font-weight: 600; }
.contact-card a { text-decoration: none; }

/* Footer */
footer { background: var(--ink); color: #a9b8c0; padding: 60px 0 32px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid #38444d; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand-text span { color: #8fa3ad; }
.foot h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.foot ul { list-style: none; display: grid; gap: 9px; }
.foot a { color: #a9b8c0; text-decoration: none; }
.foot a:hover { color: #fff; }
.copy { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 24px; font-size: .84rem; }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* PrintIOU / product page */
.page-hero { background: var(--mist); border-bottom: 1px solid var(--line); padding: 72px 0 64px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; margin: 14px 0 16px; }
.page-hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 38em; }
.crumbs { font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.download { display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; align-items: start; }
.dl-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.dl-card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 6px; }
.dl-card .meta { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.hash { font-family: var(--mono); font-size: .72rem; color: var(--muted); word-break: break-all; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.hash b { color: var(--ink); font-weight: 500; display: block; margin-bottom: 4px; }
.steps { counter-reset: s; list-style: none; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-100); color: var(--teal); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.note { background: var(--white); border-left: 4px solid var(--teal); border-radius: 0 10px 10px 0; padding: 16px 20px; color: var(--ink-800); font-size: .92rem; border-block: 1px solid var(--line); border-right: 1px solid var(--line); }
.note + .note { margin-top: 12px; }

/* Legal pages */
.legal { padding: 56px 0 90px; }
.legal .container { max-width: 860px; }
.legal .page-header { margin-bottom: 28px; }
.legal .page-header h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; }
.legal .page-header .date, .legal .page-header p { color: var(--muted); margin-top: 8px; }
.legal .content-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 32px; margin-bottom: 18px; }
.legal h2 { font-size: 1.3rem; font-weight: 800; margin-bottom: 12px; color: var(--ink); }
.legal h3 { font-size: 1.05rem; font-weight: 700; margin: 18px 0 8px; }
.legal p { margin-bottom: 12px; color: var(--ink-800); }
.legal ul, .legal ol { margin: 0 0 14px 22px; color: var(--ink-800); }
.legal li { margin-bottom: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; font-size: .92rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--mist); }
.legal .alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 14px; background: var(--mist); border: 1px solid var(--line); }
.legal .alert-danger, .legal .highlight-danger { border-color: #c9a3a3; }
.legal .alert-danger { background: #f8eeee; }
.legal .highlight-warning { border-color: #d6c28a; }
.legal .highlight-primary { border-color: var(--teal-300); }
.legal .text-danger { color: #8a2f2f; }
.legal .text-warning { color: #7a5b0a; }

@media (max-width: 920px) {
  .hero .container, .contact, .download, .two { grid-template-columns: 1fr; }
  .hero .container { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .foot { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border: 0; padding-top: 14px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { display: flex; justify-content: center; }
  .brand-text span { display: none; }
  .grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr; }
  .legal .content-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
