/* IndyTek Consulting — shared styles
   Type: Space Grotesk (display) + IBM Plex Sans (body)
   Single accent: deep teal. Dark slate ink for emphasis surfaces. */

:root {
  --ink: #15202b;
  --ink-soft: #243744;
  --paper: #ffffff;
  --mist: #edf1f5;
  --mist-deep: #e2e9ef;
  --line: #d5dee6;
  --text: #1d2a35;
  --muted: #566472;
  --muted-light: #9fb0bd;
  --accent: #0c7d8c;
  --accent-bright: #13a3b4;
  --accent-ink: #0a6572;
  --max: 1120px;
  --gap: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  font-weight: 600;
}

a { color: var(--accent-ink); }
a:hover { color: var(--accent-bright); }

p { margin: 0 0 1rem; max-width: 70ch; }

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

/* skip link */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 2px; border-radius: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Space Grotesk", sans-serif; font-weight: 700;
  font-size: 1.35rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand .mark {
  width: 26px; height: 26px; flex: none; display: block;
}
.brand .logo {
  height: 46px; width: auto; flex: none; display: block;
}
.brand b { color: var(--accent); font-weight: 700; }
.brand .wordmark { white-space: nowrap; }

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

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.98rem;
  padding: 0.3rem 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--accent-ink); border-bottom-color: var(--accent); }
.nav a[aria-current="page"] { color: var(--accent-ink); border-bottom-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: "IBM Plex Sans", sans-serif; font-weight: 600; font-size: 0.98rem;
  padding: 0.62rem 1.1rem; border-radius: 8px; text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; transition: background 0.18s, color 0.18s, border-color 0.18s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }
.btn-outline { border-color: var(--accent); color: var(--accent-ink); }
.btn-outline:hover { background: var(--accent); color: #fff; }

.header-cta { display: inline-flex; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink);
  color: #e9eef2;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.09) 1.3px, transparent 1.3px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, #000 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(120deg, #000 0%, rgba(0,0,0,0.15) 70%, transparent 100%);
}
.hero::after {
  content: ""; position: absolute; right: -8%; top: -30%;
  width: 46vw; height: 46vw; max-width: 560px; max-height: 560px;
  background: radial-gradient(circle, rgba(12,125,140,0.38), transparent 62%);
  pointer-events: none;
}
.hero .wrap { position: relative; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.hero .eyebrow {
  color: var(--accent-bright); font-weight: 600; font-size: 0.95rem;
  margin: 0 0 1rem; display: inline-block;
}
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 5.4vw, 3.6rem); max-width: 16ch; margin-bottom: 1rem;
}
.hero p.lead { color: #c3d0da; font-size: clamp(1.05rem, 2vw, 1.22rem); max-width: 56ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; align-items: center; }
.hero-phone { color: #fff; font-weight: 600; text-decoration: none; font-size: 1.05rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-phone span { color: var(--accent-bright); }
.hero-phone:hover { color: #fff; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  background: var(--ink); color: #fff; position: relative; overflow: hidden;
}
.page-head::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  mask-image: linear-gradient(120deg, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 85%);
}
.page-head .wrap { position: relative; padding: clamp(1.5rem, 3.5vw, 2.3rem) var(--gap); }
.page-head .eyebrow { color: var(--accent-bright); font-weight: 600; font-size: 0.85rem; }
.page-head h1 { color: #fff; font-size: clamp(1.5rem, 3.2vw, 2.15rem); margin: 0.3rem 0 0; }
.page-head p { color: #c3d0da; margin-top: 0.55rem; }

/* ---------- Sections ---------- */
section { padding: clamp(2.8rem, 7vw, 5rem) 0; }
.section-mist { background: var(--mist); }
.section-title { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin-bottom: 0.4rem; }
.section-intro { color: var(--muted); max-width: 60ch; margin-bottom: 2rem; }

/* remote band */
.band {
  background: var(--accent); color: #fff;
}
.band .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; padding-top: 2rem; padding-bottom: 2rem; }
.band h2 { color: #fff; font-size: 1.4rem; margin: 0 0 0.2rem; }
.band p { color: rgba(255,255,255,0.92); margin: 0; max-width: 60ch; }
.band .band-text { flex: 1 1 320px; }
.band .btn-ghost { border-color: rgba(255,255,255,0.75); }

/* ---------- Service / feature grid ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 1.6rem;
}
.card h3 { font-size: 1.22rem; margin-bottom: 0.5rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card .tag {
  font-family: "Space Grotesk", sans-serif; font-size: 0.78rem; font-weight: 600;
  color: var(--accent-ink); letter-spacing: 0.02em; margin-bottom: 0.7rem; display: block;
}

/* long-form entries (services, projects detail) */
.entries { display: grid; gap: 0; }
.entry {
  padding: 2rem 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.3rem;
}
.entry:first-child { border-top: none; }
.entry h3 { font-size: 1.35rem; }
.entry .entry-kicker {
  color: var(--accent-ink); font-family: "Space Grotesk", sans-serif; font-weight: 600;
  font-size: 0.85rem; margin-bottom: 0.3rem;
}
.entry ul { margin: 0.4rem 0 0; padding-left: 1.15rem; color: var(--muted); }
.entry li { margin-bottom: 0.35rem; }
.entry p { color: var(--muted); }

/* stats / trust strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.stat { }
.stat .num {
  font-family: "Space Grotesk", sans-serif; font-weight: 700; color: var(--accent);
  font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1;
}
.stat .label { color: var(--muted); margin-top: 0.45rem; display: block; font-size: 0.98rem; }

/* ---------- Partners ---------- */
.partner-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.partner {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem;
  background: var(--paper);
}
.partner h3 { font-size: 1.12rem; margin-bottom: 0.3rem; }
.partner p { color: var(--muted); font-size: 0.95rem; margin: 0 0 0.6rem; }
.partner a { font-weight: 600; text-decoration: none; }
.partner a:hover { text-decoration: underline; }

/* ---------- Blog ---------- */
.posts { display: grid; gap: 1.6rem; max-width: 760px; }
.post {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.8rem; background: var(--paper);
}
.post time {
  color: var(--accent-ink); font-family: "Space Grotesk", sans-serif;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.02em;
}
.post h2 { font-size: 1.35rem; margin: 0.3rem 0 0.8rem; }
.post p { color: var(--text); }
.post p:last-child { margin-bottom: 0; }
.post ul { color: var(--text); padding-left: 1.2rem; }
.post .src { font-size: 0.9rem; color: var(--muted); }

.blog-meta {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; background: var(--mist); align-self: start;
}
.blog-meta h4 { font-size: 0.95rem; margin: 0 0 0.5rem; color: var(--ink); }
.blog-meta p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.blog-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; }

/* ---------- Contact band ---------- */
.contact {
  background: var(--ink); color: #fff;
}
.contact .wrap { padding: clamp(2.6rem, 6vw, 4rem) var(--gap); }
.contact h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.contact p { color: #c3d0da; max-width: 54ch; }
.contact-rows { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.contact-rows li { display: flex; flex-direction: column; }
.contact-rows .k { color: var(--accent-bright); font-size: 0.85rem; font-weight: 600; font-family: "Space Grotesk", sans-serif; }
.contact-rows a, .contact-rows span.v { color: #fff; text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.contact-rows a:hover { color: var(--accent-bright); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1820; color: #9fb0bd; padding: 2.6rem 0 2rem; font-size: 0.93rem;
}
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin: 0 0 0.8rem; font-family: "Space Grotesk", sans-serif; letter-spacing: 0.02em; }
.site-footer a { color: #c3d0da; text-decoration: none; display: block; margin-bottom: 0.4rem; }
.site-footer a:hover { color: #fff; }
.site-footer .foot-brand { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; color: #fff; margin-bottom: 0.5rem; }
.site-footer .foot-brand b { color: var(--accent-bright); }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem; color: #7b8c99; font-size: 0.86rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 0.5rem var(--gap) 1rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .nav a:last-of-type { border-bottom: none; }
  .header-cta { display: none; }
  .grid-2, .grid-3, .partner-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: 1.2rem; text-align: left; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}
@media (min-width: 761px) {
  .blog-layout { grid-template-columns: minmax(0,1fr) 280px; }
}
