/* Miller Technologies Group — draft marketing site
   Colors drawn from the royal-blue identity of the original mark. */

:root {
  --blue-950: #06162c;
  --blue-900: #0a2248;
  --blue-800: #0c326e;
  --blue-700: #0e4a9c;
  --blue-600: #1a62c4;
  --blue-500: #2e7be0;
  --blue-400: #5b9bff;
  --blue-300: #8fb4e8;
  --blue-200: #c5d8f5;
  --blue-100: #e4edf8;
  --blue-50: #f3f6fb;
  --ink: #121826;
  --ink-2: #2a3344;
  --muted: #5a6578;
  --line: #d5deeb;
  --line-strong: #b7c3d6;
  --white: #ffffff;
  --cream: #f6f5f1;
  --ok: #0f6b4c;
  --ok-bg: #e6f5ee;
  --warn: #8a5800;
  --warn-bg: #fbf0d9;
  --danger: #9b1c1c;
  --danger-bg: #fdecec;
  --header-h: 4.5rem;
  --wrap: 70rem;
  --radius: 1rem;
  --radius-sm: 0.625rem;
  --shadow: 0 1px 2px rgba(10, 34, 72, 0.05), 0 16px 40px rgba(10, 34, 72, 0.06);
  --shadow-lg: 0 8px 32px rgba(10, 34, 72, 0.14);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--blue-600); }
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--white);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border-radius: 0.4rem;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.wrap {
  width: min(calc(100% - 2.5rem), var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(calc(100% - 2.5rem), 46rem); margin-inline: auto; }

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--blue-900);
  margin: 0 0 0.75rem;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4.15rem); letter-spacing: -0.035em; line-height: 1.06; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.55rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 42rem; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin: 0 0 0.7rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 34, 72, 0.03);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--blue-900);
  flex-shrink: 0;
}
.logo img { width: 2.35rem; height: 2.35rem; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-word {
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--blue-900);
}
.logo-sub {
  font-size: 0.58rem;
  font-weight: 550;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.12rem;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--blue-700); }
.nav a.btn,
.nav a.btn:hover,
.nav a.btn[aria-current="page"] { color: var(--white); }
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 0.5rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--blue-900);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:hover { color: var(--white); }
.btn-primary {
  background: var(--blue-700);
  color: var(--white);
}
.btn-primary:hover { background: var(--blue-600); color: var(--white); }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--blue-700);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-300); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(46, 123, 224, 0.22), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, rgba(8, 44, 107, 0.45), transparent 55%),
    linear-gradient(165deg, var(--blue-950) 0%, var(--blue-900) 55%, #0c3a7a 100%);
  color: var(--white);
  padding: 5.5rem 0 5rem;
}
.hero-graphic {
  position: absolute;
  right: -6rem;
  top: 50%;
  translate: 0 -50%;
  width: min(46vw, 34rem);
  opacity: 0.28;
  pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(91, 155, 255, 0.25));
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--blue-300); }
.hero h1 { color: var(--white); max-width: 18ch; }
.hero .lede { color: rgba(255, 255, 255, 0.84); max-width: 38rem; }
.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
}
.hero-kicker li {
  font-size: 0.8rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: var(--blue-200);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

/* ---------- Stats ---------- */
.stats {
  background: var(--blue-900);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 1.6rem 1.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child { border-right: 0; }
.stat-value {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--white);
  margin: 0 0 0.25rem;
}
.stat-label { margin: 0; font-size: 0.9rem; color: var(--blue-300); line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-header { margin-bottom: 2.4rem; max-width: 40rem; }
.section-header h2 { margin-bottom: 0.7rem; }
.section-cream { background: var(--cream); }
.section-blue { background: var(--blue-50); }
.section-dark {
  background: var(--blue-900);
  color: var(--blue-200);
}
.section-dark h2,
.section-dark h3 { color: var(--white); }
.section-dark .eyebrow { color: var(--blue-300); }
.section-dark .lede,
.section-dark p { color: var(--blue-200); }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
}
.link-more::after { content: "→"; translate: 0 1px; }
.link-more:hover { gap: 0.55rem; }

/* ---------- Cards / grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.card-grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0.7rem 0 0.45rem; }
.card p { margin: 0; color: var(--ink-2); font-size: 0.98rem; }
.card-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--blue-700);
}
.card-icon svg { width: 2.5rem; height: 2.5rem; }
.service-card { transition: border-color 0.15s, translate 0.2s var(--ease); }
.service-card:hover { border-color: var(--blue-300); translate: 0 -2px; }
.num {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--blue-600);
}

/* Work / case teasers */
.work-list { display: grid; gap: 1.15rem; }
.work-item {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 1.5rem;
  align-items: start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
}
.work-item .kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.work-item h3 { margin: 0 0 0.4rem; }
.work-item p { margin: 0; color: var(--ink-2); }
.case {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  box-shadow: var(--shadow);
}
.case + .case { margin-top: 1.15rem; }
.case h3 { font-size: 1.4rem; }
.case p:last-child { margin-bottom: 0; }

/* Industries */
.industry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.industry:last-child { border-bottom: 1px solid var(--line); }
.industry h3 { font-size: 1.5rem; }

/* Split about */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.prose p { max-width: 42rem; }
.prose h2 { margin-top: 2.4rem; }
.prose h2:first-child { margin-top: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  position: relative;
  padding: 0 0 1.6rem 1.4rem;
  border-left: 2px solid var(--blue-200);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -0.35rem;
  top: 0.4rem;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--blue-700);
  border-radius: 50%;
}
.timeline strong { display: block; color: var(--blue-900); font-weight: 650; letter-spacing: -0.02em; }

/* Testimonials placeholder */
.placeholder-banner {
  background: var(--warn-bg);
  border: 1px dashed #d2a84a;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.placeholder-banner strong { color: var(--warn); }
.testimonial-slots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.testimonial-slot {
  min-height: 8.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    var(--blue-50),
    var(--blue-50) 8px,
    #eef3f9 8px,
    #eef3f9 16px
  );
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

/* CTA band */
.cta-band {
  background:
    radial-gradient(600px 240px at 90% 0%, rgba(46, 123, 224, 0.25), transparent 60%),
    var(--blue-900);
  color: var(--white);
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--blue-200); max-width: 34rem; margin-inline: auto; }
.cta-band .actions { justify-content: center; }

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 550; font-size: 0.9rem; color: var(--blue-900); }
.req { color: var(--blue-600); }
.field input,
.field select,
.field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 0.5rem;
  padding: 0.7rem 0.8rem;
  width: 100%;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(46, 123, 224, 0.2);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.form-status.is-visible { display: block; }
.form-status.is-ok { background: var(--ok-bg); color: var(--ok); }
.form-status.is-warn { background: var(--warn-bg); color: var(--warn); }
.form-status.is-error { background: var(--danger-bg); color: var(--danger); }
.form-note { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: var(--blue-50);
  border-bottom: 1px solid var(--line);
  padding: 3.2rem 0 2.8rem;
}
.page-hero h1 { max-width: 18ch; }
.page-hero .lede { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--blue-950);
  color: var(--blue-300);
  padding: 3.2rem 0 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-footer a { color: var(--blue-200); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer h2,
.site-footer h3 { color: var(--white); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 650; margin: 0 0 0.8rem; }
.footer-brand .logo-word { color: var(--white); }
.site-footer .logo-sub { color: var(--blue-300); }
.footer-brand .logo { margin-bottom: 0.8rem; }
.footer-brand p { color: var(--blue-300); max-width: 22rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.3rem;
  color: var(--blue-300);
  font-size: 0.85rem;
}

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

@media (max-width: 900px) {
  .card-grid, .card-grid-4, .testimonial-slots, .stats-grid, .footer-grid, .split, .industry, .form-row, .work-item {
    grid-template-columns: 1fr;
  }
  .card-grid-2 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .stat:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-graphic { width: 18rem; right: -7rem; opacity: 0.12; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.1rem;
    box-shadow: var(--shadow);
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 0.7rem 0; border-bottom: 1px solid var(--blue-100); }
  .nav .btn { margin-top: 0.6rem; align-self: flex-start; }
  .hero { padding: 3.4rem 0 3.2rem; }
  .section { padding: 3.4rem 0; }
  .page-hero { padding: 2.4rem 0 2rem; }
  .logo-sub { display: none; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .stat:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
}

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