/* ==========================================================================
   keithbinz.com — Shared Stylesheet
   Plain CSS, mobile-first, no build tools.
   Reskinned architecture: indigo/violet identity, Space Grotesk display type.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Palette — indigo/violet, distinct from client work */
  --indigo-900: #1e1b4b;
  --indigo-700: #4338ca;
  --indigo-600: #4f46e5;
  --indigo-500: #6366f1;
  --violet-500: #8b5cf6;
  --indigo-100: #e0e7ff;
  --indigo-50:  #eef2ff;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --ink-300: #94a3b8;

  --paper:     #ffffff;
  --paper-alt: #f8fafc;
  --line:      #e2e8f0;

  --accent:      #f59e0b;   /* amber — used sparingly for highlights */
  --accent-dark: #d97706;

  /* Signature gradient */
  --grad: linear-gradient(135deg, var(--indigo-600), var(--violet-500));

  /* Typography */
  --font-head: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing / layout */
  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px rgba(30, 27, 75, 0.10);
  --shadow-sm: 0 6px 18px rgba(30, 27, 75, 0.07);
  --gap: clamp(1rem, 2vw, 1.5rem);
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { color: var(--indigo-900); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink-900);
  line-height: 1.12;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.015em;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1rem; }

/* Skip link (accessibility) */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--indigo-600); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section--alt { background: var(--paper-alt); }
.section--tint { background: var(--indigo-50); }
.center { text-align: center; }
.narrow { max-width: 720px; margin-inline: auto; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--indigo-600);
  margin-bottom: .75rem;
}
.lead { font-size: 1.15rem; color: var(--ink-500); }
.gradient-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--indigo-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--indigo-700); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink-900); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--indigo-500); color: var(--indigo-700); }
.btn--light { background: #fff; color: var(--indigo-700); }
.btn--light:hover { color: var(--indigo-900); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .7rem;
}
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; color: var(--ink-900); font-size: 1.15rem; }
.brand:hover { color: var(--ink-900); }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px; flex: none;
  display: grid; place-items: center; color: #fff; font-weight: 700;
  background: var(--grad);
  font-family: var(--font-head); letter-spacing: -.03em;
}
.brand__name small { display: block; font-weight: 500; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-300); }

.nav__links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-family: var(--font-head); font-weight: 500; color: var(--ink-700);
  padding: .5rem .75rem; border-radius: 8px; font-size: .98rem;
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--indigo-700); background: var(--indigo-50); }
.nav__cta { margin-left: .4rem; }

.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .4rem;
  width: 44px; height: 44px; border-radius: 8px;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--ink-900);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after  { position: absolute; top:  7px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, var(--indigo-100), transparent 60%),
    linear-gradient(180deg, var(--indigo-50), var(--paper));
}
.hero__grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem);
}
.hero h1 { margin-bottom: .35em; }
.hero__sub { font-size: 1.2rem; color: var(--ink-500); max-width: 40ch; }
.hero__points { list-style: none; margin: 1.4rem 0 1.8rem; padding: 0; display: grid; gap: .55rem; }
.hero__points li { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; color: var(--ink-700); }
.hero__points svg { flex: none; margin-top: .2rem; color: var(--indigo-600); }

.hero__card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.5rem;
}
.hero__card h3 { color: var(--indigo-700); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.25rem; }
.stat { text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--indigo-600); line-height: 1; }
.stat span { font-size: .82rem; color: var(--ink-500); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: var(--gap); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: var(--indigo-50); color: var(--indigo-600); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--ink-500); margin-bottom: .5rem; }
.card__link { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }

/* Numbered process steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.4rem; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--grad); color: #fff; margin-bottom: .9rem;
}
.step h3 { font-size: 1.1rem; }
.step p { color: var(--ink-500); font-size: .96rem; margin: 0; }

/* Feature list with checkmarks */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; }
.ticks li::before {
  content: "\2713"; color: var(--indigo-600); font-weight: 700; flex: none;
  background: var(--indigo-50); width: 22px; height: 22px; border-radius: 999px;
  display: grid; place-items: center; font-size: .8rem; margin-top: .15rem;
}

/* ---------- Work / portfolio cards ---------- */
.work-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.work-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.work-card__thumb { aspect-ratio: 16 / 10; background: var(--grad); display: grid; place-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; padding: 1rem; text-align: center; }
.work-card__body { padding: 1.4rem 1.5rem 1.6rem; }
.work-card__body .tag { font-family: var(--font-head); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-600); }
.work-card__body h3 { margin: .3rem 0 .4rem; }
.work-card__body p { color: var(--ink-500); font-size: .96rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); break-inside: avoid;
}
.quote p { font-size: 1rem; color: var(--ink-700); }
.quote__mark { font-family: var(--font-head); font-size: 2.5rem; line-height: 0; color: var(--violet-500); }
.quote__who { font-family: var(--font-head); font-weight: 600; color: var(--ink-900); margin-top: .8rem; }

/* ---------- Split content sections ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--indigo-700), var(--violet-500)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); }
.cta-band .container { display: grid; gap: 1.2rem; place-items: center; text-align: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.info-list li { display: flex; gap: .9rem; align-items: flex-start; }
.info-list .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--indigo-50); color: var(--indigo-600); display: grid; place-items: center; flex: none; }
.info-list b { font-family: var(--font-head); display: block; color: var(--ink-900); }

.form { display: grid; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.field { display: grid; gap: .35rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink-900); }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink-900);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-alt);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--indigo-500); outline-offset: 1px; background: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: #c7d0de; padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer a { color: #dfe6f1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer__brand .brand { color: #fff; margin-bottom: .8rem; }
.footer__brand .brand__name small { color: #8b97ad; }
.footer__note { color: #8b97ad; font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: space-between; font-size: .88rem; color: #8b97ad; }

/* ---------- Utilities ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__card { order: -1; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .75rem clamp(1.1rem, 4vw, 2rem) 1.1rem;
    transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  }
  .nav__links[data-open="true"] { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { padding: .7rem .75rem; }
  .nav__cta { margin: .3rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

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