/* ============================================================
   Missouri WebTech — Editorial design system
   ============================================================
   Display: Fraunces (variable serif)
   Body:    Inter (workhorse sans)
   Accent:  JetBrains Mono (eyebrows, metadata)

   Color: Ink (#1A1A1A) + Logo Red signal (#c93030) + Warm neutrals

   Principles:
   - Editorial over decorative
   - Confidence through restraint
   - Type-driven hierarchy
   - One signature interaction (stats odometer)
   ============================================================ */

:root {
  /* INK SCALE — primary, slightly warm */
  --ink-900: #1A1A1A;
  --ink-700: #4B4B4B;
  --ink-500: #6B6B6B;
  --ink-300: #9B9B9B;

  /* SIGNAL — Logo Red */
  --signal-50:  #FDEAEA;
  --signal-100: #F4C4C4;
  --signal-300: #D67373;
  --signal-500: #c93030;
  --signal-700: #A22525;

  /* WARM NEUTRALS */
  --bg:        #FAFAF7;  /* page background */
  --surface:   #F4E8E3;  /* mild peachy-cream (logo-red tinted surface) */
  --hairline:  #D4D1C7;  /* borders */
  --white:     #FFFFFF;

  /* LAYOUT — header is 18px pad + 32px logo + 18px pad + 1px border */
  --header-height: 69px;

  /* BRAND — logo only */
  --brand-red: #c93030;

  /* SEMANTIC */
  --text:        var(--ink-900);
  --text-muted:  var(--ink-700);
  --text-quiet:  var(--ink-500);

  /* TYPE */
  --font-display: "Fraunces", Georgia, serif;
  --font-prose: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ============================================================
   TYPE SCALE — fluid clamp() values
   ============================================================ */

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
}

h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 500;
  line-height: 1.15;
}

h4 {
  font-size: 18px;
  font-weight: 600;
  font-family: var(--font-body);  /* H4 uses sans for clean UI feel */
  letter-spacing: -0.005em;
  line-height: 1.3;
}

/* Scoped heading scale for narrow reading/prose pages (legal, forms).
   Sub-sections shouldn't render at section-anchor h2/h3 scale. */
.container-narrow.prose h2 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.2;
  margin: 48px 0 16px;
}

.container-narrow.prose h3 {
  font-size: clamp(19px, 2vw, 22px);
  line-height: 1.25;
  margin: 32px 0 12px;
}

.container-narrow.prose p {
  margin: 0 0 16px;
}

.container-narrow.prose p:last-child {
  margin-bottom: 0;
}

/* First heading inside .container-narrow.prose shouldn't have huge top margin */
.container-narrow.prose > :first-child,
.container-narrow.prose h1 + h2,
.container-narrow.prose h1 + p + h2 {
  margin-top: 0;
}

p {
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  max-width: 70ch;
}

p.large {
  font-family: var(--font-prose);
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-700);
}

p.lede {
  font-family: var(--font-prose);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.55;
  color: var(--ink-700);
  font-weight: 400;
  max-width: 60ch;
}

a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--hairline);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 200ms ease-out, text-decoration-color 200ms ease-out;
}

a:hover {
  color: var(--signal-700);
  text-decoration-color: var(--signal-500);
}

strong {
  font-weight: 600;
  color: var(--ink-900);
}

/* ============================================================
   EYEBROW & MONO ELEMENTS
   ============================================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-500);
  display: block;
  margin-bottom: 16px;
}

.eyebrow-quiet {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.meta {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-500);
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px);
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px);
}

section {
  padding: clamp(40px, 6vw, 56px) 0;
}

/* HAIRLINE DIVIDERS — replacing background color shifts */
section + section {
  border-top: 1px solid var(--hairline);
}

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px clamp(16px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  display: block;
  height: 32px;
  width: auto;
}

.main-nav { flex: 1; display: flex; justify-content: center; }

.nav-pills {
  list-style: none;
  display: flex;
  gap: 0;
}

.nav-pills > li { position: relative; }

.nav-pills > li > a {
  padding: 10px 18px;
  display: block;
  text-decoration: none;
  color: var(--ink-900);
  font-family: var(--font-display);   /* Fraunces */
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;               /* mixed case */
  transition: color 200ms ease-out;
  border: none;
}

.nav-pills > li > a.active,
.nav-pills > li.active > a {
  color: var(--ink-900);
}

/* Hover/focus — confident shift to brand red; typography does the work. */
.nav-pills > li > a:hover,
.nav-pills > li > a:focus-visible {
  color: var(--signal-500);
}

.nav-chevron {
  display: block;
  margin: 4px auto 0;
  transition: transform 200ms ease-out, color 200ms ease-out;
  color: var(--ink-700);
}

/* Stack "Services" text over the triangle on desktop.
   Targets .services-trigger (0,2,0) so it outranks .nav-pills > li > a (0,1,2),
   which sets display:block and would otherwise defeat the flex column. */
.has-mega > .services-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hover/focus/open — triangle rotates and shifts to brand red */
.has-mega:hover .nav-chevron,
.has-mega:focus-within .nav-chevron,
.has-mega.open .nav-chevron {
  color: var(--signal-500);
  transform: rotate(180deg);
}

/* Services text shifts to red alongside the triangle */
.has-mega:hover > a,
.has-mega:focus-within > a,
.has-mega.open > a {
  color: var(--signal-500);
}

.has-mega { position: relative; }

.mega-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 32px 36px;
  min-width: 880px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 200ms;
  z-index: 200;
}

.has-mega:hover .mega-menu,
.has-mega:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.mega-col-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* Monoline group-label marks — stroke inherits via currentColor; the
   explicit red dots in two of the icons stay red regardless. */
.mega-menu-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
  color: var(--ink-500);
}

.mega-col a {
  display: block;
  text-decoration: none;
  padding: 8px 0;
  border: none;
}

.mega-col a strong {
  display: block;
  color: var(--ink-900);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.mega-col a span {
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}

.mega-col a:hover strong { color: var(--signal-700); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.phone-link {
  color: var(--ink-700);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.02em;
  border: none;
}
.phone-link:hover { color: var(--ink-900); }

/* PRIMARY BUTTON — Deep Moss */
.btn-start, .btn-primary {
  background: var(--signal-500);
  color: var(--white);
  padding: 10px 20px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--signal-500);
  transition: background 200ms ease-out;
}
.btn-start:hover, .btn-primary:hover {
  background: var(--signal-700);
  border-color: var(--signal-700);
  color: var(--white);
  text-decoration: none;
}

/* SECONDARY BUTTON — ghost with ink border */
.btn-ghost, .btn-white {
  background: transparent;
  color: var(--ink-900);
  padding: 10px 20px;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink-900);
  transition: background 200ms ease-out, color 200ms ease-out;
}
.btn-ghost:hover, .btn-white:hover {
  background: var(--ink-900);
  color: var(--white);
  text-decoration: none;
}

.mobile-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  color: var(--ink-900);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Three-line burger built from one span + two pseudo-elements.
   On .mobile-nav-open the middle line fades and the outer two cross to an X. */
.mobile-toggle-icon {
  position: relative;
}
.mobile-toggle-icon,
.mobile-toggle-icon::before,
.mobile-toggle-icon::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-900);
  transition: transform 200ms ease, opacity 200ms ease, background 200ms ease;
}
.mobile-toggle-icon::before,
.mobile-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
}
.mobile-toggle-icon::before { transform: translateY(-7px); }
.mobile-toggle-icon::after  { transform: translateY(7px); }

.site-header.mobile-nav-open .mobile-toggle-icon {
  background: transparent;
}
.site-header.mobile-nav-open .mobile-toggle-icon::before {
  transform: translateY(0) rotate(45deg);
}
.site-header.mobile-nav-open .mobile-toggle-icon::after {
  transform: translateY(0) rotate(-45deg);
}

/* ============================================================
   HERO — editorial, type-driven, full-bleed image
   ============================================================ */

.hero {
  position: relative;
  min-height: 560px;
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.55), rgba(15, 18, 30, 0.65)),
    url('../images/heroes/homepage-hero.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  padding: clamp(72px, 10vw, 104px) 0;
  overflow: hidden;
}

.hero-text {
  max-width: 880px;
}

.hero .eyebrow {
  color: #ff6b6b;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 32px;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-bottom: 48px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

/* Hero ghost button: white on dark image */
.hero .btn-ghost {
  color: var(--white);
  border-color: var(--white);
}

.hero .btn-ghost:hover {
  background: var(--white);
  color: var(--ink-900);
}

/* ============================================================
   PRACTICE ROWS — replacing the 3-card grid
   Each practice gets a full row with depth.
   ============================================================ */

.practice-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
  padding: clamp(32px, 5vw, 48px) 0;
}

.practice-row + .practice-row {
  border-top: 1px solid var(--hairline);
}

.practice-row.reverse {
  grid-template-columns: 1.4fr 1fr;
}

.practice-row.reverse .practice-text {
  order: 2;
}

.practice-row.reverse .practice-meta {
  order: 1;
}

.practice-meta {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.practice-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 400;
  font-style: italic;
  color: var(--signal-500);
  line-height: 1;
  letter-spacing: -0.04em;
}

.practice-text h3 {
  font-size: clamp(28px, 3.5vw, 40px);
  margin-bottom: 16px;
  font-weight: 500;
}

.practice-text p {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-700);
  margin-bottom: 24px;
  max-width: 56ch;
}

.practice-link {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-900);
  border-bottom: 1px solid var(--ink-900);
  padding-bottom: 2px;
  transition: color 200ms ease-out, border-color 200ms ease-out;
}

.practice-link:hover {
  color: var(--signal-700);
  border-bottom-color: var(--signal-500);
}

/* ============================================================
   STATS ODOMETER — the signature interaction
   ============================================================ */

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
  padding: clamp(32px, 4vw, 40px) 0;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  font-feature-settings: "tnum";
}

.stat-num .plus,
.stat-num .pct {
  color: var(--signal-500);
  font-style: italic;
  font-weight: 400;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ============================================================
   EDITORIAL QUOTE BLOCK
   ============================================================ */

/* ============================================================
   PROCESS SECTION — 4 step editorial grid, flat (no cards)
   ============================================================ */

.process-section {
  padding: clamp(48px, 7vw, 72px) 0;
}

.process-section h2 {
  margin-bottom: 12px;
  max-width: 20ch;
}

.process-lede {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-700);
  margin-bottom: clamp(40px, 5vw, 56px);
  max-width: 50ch;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.process-step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.process-step .step-num {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 400;
  font-style: italic;
  color: var(--signal-500);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.process-step h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink-900);
  margin: 0;
}

.process-step p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
}

.quote-block {
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: left;
}

.quote-block .container {
  max-width: 920px;
}

.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin-bottom: 32px;
  font-style: italic;
}

.quote-block blockquote::before {
  content: "\201C";
  font-family: var(--font-display);
  color: var(--signal-500);
  margin-right: 4px;
}

.quote-block cite {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  font-style: normal;
  text-transform: uppercase;
}

/* ============================================================
   CTA SECTION — quiet, NOT a screaming orange strip
   ============================================================ */

.cta-section {
  padding: clamp(40px, 6vw, 64px) 0;
}

.cta-section h2 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 24px;
  max-width: 16ch;
  line-height: 1.05;
}

.cta-section p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-700);
  margin-bottom: 40px;
  max-width: 50ch;
}

.cta-section .hero-ctas {
  justify-content: flex-start;
}

/* ============================================================
   BREADCRUMB — minimal
   ============================================================ */

.breadcrumb {
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  background: var(--bg);
}

.breadcrumb .container {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.breadcrumb a {
  color: var(--ink-500);
  text-decoration: none;
  border: none;
}

.breadcrumb a:hover { color: var(--ink-900); }

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list {
  max-width: 820px;
  margin: 32px 0 0;
}

.faq-item {
  border-bottom: 1px solid var(--hairline);
}

.faq-item summary {
  padding: 24px 0;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  list-style: none;
  position: relative;
  padding-right: 40px;
  line-height: 1.3;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--signal-500);
  transition: transform 200ms ease-out;
}

.faq-item[open] summary::after { content: "\2013"; }

.faq-answer {
  padding: 0 0 24px;
  color: var(--ink-700);
  line-height: 1.7;
  font-size: 16px;
  max-width: 70ch;
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  background: var(--ink-900);
  color: #B8B8B8;
  padding: clamp(64px, 8vw, 96px) 0 32px;
  border-top: none;
}

.site-footer + * { border-top: none; }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 64px);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-col-title {
  font-family: var(--font-mono);
  color: var(--white);
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  color: #B8B8B8;
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  padding: 6px 0;
  border: none;
  transition: color 200ms ease-out;
}
.footer-col a:hover { color: var(--white); }

.footer-brand p {
  font-size: 14px;
  color: #B8B8B8;
  max-width: 320px;
  margin: 16px 0 24px;
  line-height: 1.6;
}

.footer-logo img.logo-mono {
  filter: brightness(0) invert(1) opacity(0.9);
  height: 28px;
  width: auto;
  display: block;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  background: transparent;
  border: 1px solid var(--ink-700);
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #B8B8B8 !important;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  padding: 0 !important;
}
.footer-social a:hover {
  border-color: var(--ink-300);
  color: var(--white) !important;
}

.footer-addr {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #B8B8B8;
  line-height: 1.65;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.footer-bottom {
  border-top: 1px solid var(--ink-700);
  max-width: 1280px;
  margin: 64px auto 0;
  padding: 24px clamp(16px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #B8B8B8;
  text-transform: uppercase;
}

.footer-bottom a {
  color: #B8B8B8;
  text-decoration: none;
  border: none;
}
.footer-bottom a:hover { color: var(--white); }

/* ============================================================
   FORM ELEMENTS — minimal, hairline borders
   ============================================================ */

.form-block {
  max-width: 720px;
  margin: 32px 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-block label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}

.form-block input,
.form-block select,
.form-block textarea {
  width: 100%;
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink-900);
  border: none;
  border-bottom: 1px solid var(--hairline);
  outline: none;
  transition: border-color 200ms ease-out;
}

.form-block input:focus,
.form-block select:focus,
.form-block textarea:focus {
  border-bottom-color: var(--signal-500);
}

.form-block textarea {
  min-height: 120px;
  resize: vertical;
  border: 1px solid var(--hairline);
  padding: 16px;
}

.form-block textarea:focus {
  border-color: var(--signal-500);
}

/* Placeholder text — must read as a hint, not as content */
.form-block input::placeholder,
.form-block textarea::placeholder,
.form-block input::-webkit-input-placeholder,
.form-block textarea::-webkit-input-placeholder {
  color: var(--ink-300);
  opacity: 1;
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.form-block input::-moz-placeholder,
.form-block textarea::-moz-placeholder {
  color: var(--ink-300);
  opacity: 1;
  font-weight: 400;
  font-style: italic;
  font-size: 12px;
}

.form-submit {
  margin-top: 24px;
  padding: 14px 28px;
  font-size: 14px;
}

.form-foot {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  text-transform: uppercase;
  margin-top: 16px;
  max-width: none;
}

/* ============================================================
   PAGE HERO — for non-homepage pages
   ============================================================ */

/* ============================================================
   CONTACT PAGE — 4-column methods, map, form
   ============================================================ */

.contact-methods {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.contact-method {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.contact-icon {
  color: var(--signal-500);
  margin-bottom: 4px;
}

.contact-method h3 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
}

.contact-link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-900);
  text-decoration: none;
  border: none;
  margin: 0;
}

.contact-link:hover {
  color: var(--signal-500);
  text-decoration: none;
}

.contact-link-arrow::after {
  content: " →";
  color: var(--signal-500);
}

.contact-detail {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  margin: 0;
  max-width: none;
}

.contact-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  text-transform: uppercase;
  margin: 8px 0 0 0;
  max-width: none;
  line-height: 1.5;
}

.contact-map {
  width: 100%;
  height: clamp(280px, 40vw, 480px);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

@media (max-width: 900px) {
  .contact-methods { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .contact-methods { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================================
   FORM SECTION HEADINGS (start-a-project brief form)
   ============================================================ */

.form-section-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-500);
  margin: 40px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
}

.form-section-heading:first-of-type {
  margin-top: 32px;
  padding-top: 0;
  border-top: none;
}

/* ============================================================
   RESPONSE TIME TABLE (start-a-project)
   ============================================================ */

.response-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  font-family: var(--font-body);
}

.response-table thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-align: left;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--ink-900);
}

.response-table tbody td {
  font-family: var(--font-prose);
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 16px;
  color: var(--ink-700);
  vertical-align: top;
  line-height: 1.55;
}

.response-table tbody td:first-child {
  color: var(--ink-900);
  font-weight: 500;
}

.response-time {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-900);
  letter-spacing: 0.01em;
}

.response-time.urgent {
  color: var(--signal-500);
}

@media (max-width: 600px) {
  .response-table thead { display: none; }
  .response-table, .response-table tbody, .response-table tr, .response-table td {
    display: block;
    width: 100%;
  }
  .response-table tr {
    padding: 20px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .response-table tbody td {
    padding: 4px 0;
    border: none;
  }
}

/* ============================================================
   SECTION ATMOSPHERES — selective contrast for rhythm
   Used sparingly: 1-3 sections per page. Default is bg (cream).
   ============================================================ */

.section-surface {
  background: var(--surface);
}

.section-surface + section,
section + .section-surface {
  border-top: none;
}

.section-dark {
  background: var(--ink-900);
  color: #DDDDDD;
  border-top: none !important;
}

.section-dark + section,
section + .section-dark {
  border-top: none;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.section-dark .eyebrow {
  color: #ff6b6b;
}

.section-dark .vertical {
  border-top-color: rgba(255, 255, 255, 0.15);
}

.section-dark .vertical h3 {
  color: var(--white);
}

.section-dark .vertical p {
  color: rgba(255, 255, 255, 0.55);
}

.section-dark .separators-list li {
  color: rgba(255, 255, 255, 0.78);
  border-top-color: rgba(255, 255, 255, 0.15);
}

.section-dark .separators-list li strong {
  color: var(--white);
}

/* ============================================================
   ABOUT PAGE — hero variant, principles list, separators, verticals
   ============================================================ */

/* Hero variant — about-hero background with overlay */
.hero-about {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.60), rgba(15, 18, 30, 0.70)),
    url('../images/heroes/about-hero.webp');
}

/* PRINCIPLES — 8 statements in 2-column grid
   Each block: number, headline, body — stacked */
.principles-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 64px;
  row-gap: 0;
}

.principle-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0 28px;
  border-top: 1px solid var(--hairline);
}

.principle-num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--signal-500);
  letter-spacing: -0.02em;
  line-height: 1;
}

.principle-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
}

.principle-item p {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
  max-width: none;
}

@media (max-width: 700px) {
  .principles-list { grid-template-columns: 1fr; }
}

/* STATS — 6-cell modifier (3 columns × 2 rows) */
.stats-row-6 {
  grid-template-columns: repeat(3, 1fr);
  row-gap: 40px;
}

@media (max-width: 900px) {
  .stats-row-6 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .stats-row-6 { grid-template-columns: 1fr; }
}

/* Stat-num text content (for non-numeric stats like "All 50", "Multi-year") */
.stat-num .num-text {
  font-family: var(--font-display);
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.stats-footnote {
  margin-top: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  text-transform: uppercase;
  max-width: none;
}

/* SEPARATORS LIST — single column, prose-led */
.separators-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.separators-list li {
  font-family: var(--font-prose);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-700);
  padding: 20px 0 20px 40px;
  border-top: 1px solid var(--hairline);
  position: relative;
}

.separators-list li::before {
  content: "\2192"; /* arrow */
  position: absolute;
  left: 0;
  top: 22px;
  color: var(--signal-500);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
}

.separators-list li strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* VERTICALS — 4-column grid (8 industries) */
.verticals-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.vertical {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.vertical h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0 0 6px;
  line-height: 1.2;
}

.vertical p {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.5;
  margin: 0;
  max-width: none;
}

@media (max-width: 900px) {
  .verticals-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  .verticals-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   SERVICE PAGES — model: react-application-development
   ============================================================ */

/* Hero variants — each service page has its own hero image */
.hero-react {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/react-application-development-hero.webp');
}

.hero-website-development {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.60), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/website-development-hero.webp');
}

.hero-laravel {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/hero-laravel.webp');
}

.hero-wordpress-development {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/hero-wordpress.webp');
}

.hero-wordpress-maintenance {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/wordpress-website-maintenance-hero.webp');
}

.hero-shopify {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/shopify-development-hero.webp');
}

.hero-woocommerce {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/woocommerce-development-hero.webp');
}

.hero-magento {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/magento-development-hero.webp');
}

.hero-prestashop {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/prestashop-development-hero.webp');
}

.hero-ecommerce-maintenance {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/ecommerce-maintenance-hero.webp');
}

.hero-seo {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/seo-services-hero.webp');
}

.hero-google-ads {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/google-ads-management-hero.webp');
}

.hero-ecommerce-development {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/ecommerce-development-hero.webp');
}

.hero-digital-marketing {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/digital-marketing-hero.webp');
}

.hero-pricing {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/pricing-hero.webp');
}

.hero-contact {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/homepage-hero.webp');
}

.hero-start-project {
  background-image:
    linear-gradient(rgba(15, 18, 30, 0.62), rgba(15, 18, 30, 0.72)),
    url('../images/heroes/homepage-hero.webp');
}

/* ============================================================
   HUB PAGES — service index (linked child directory)
   ============================================================ */

.service-index {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 2.5vw, 36px);
  margin-top: 32px;
}

.service-card,
.service-card * {
  text-decoration: none;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 0 28px 0;
  border-top: 1px solid var(--hairline);
  color: inherit;
  transition: border-color 0.2s ease;
}

.service-card:hover {
  border-top-color: var(--signal-500);
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink-900);
  margin: 0;
}

.service-card p {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  margin: 0;
  max-width: none;
}

.service-card-arrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal-500);
  margin-top: 8px;
  transition: transform 0.2s ease;
  display: inline-block;
}

.service-card:hover .service-card-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .service-index { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .service-index { grid-template-columns: 1fr; }
}

/* Prose callout (replaces the old aqua .def-block) */
.prose-callout {
  margin: 40px 0 0;
  padding: 24px 0 24px 24px;
  border-left: 2px solid var(--signal-500);
}

.prose-callout-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal-500);
  margin-bottom: 12px;
}

.prose-callout ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.prose-callout li {
  font-family: var(--font-prose);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-900);
  padding: 6px 0 6px 20px;
  position: relative;
}

.prose-callout li::before {
  content: "\2014"; /* em-dash */
  position: absolute;
  left: 0;
  color: var(--signal-500);
}

/* Capabilities grid — 6 items in 3 columns (2 rows × 3 cols) */
.capabilities-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 40px);
  row-gap: clamp(32px, 4vw, 48px);
}

@media (max-width: 900px) {
  .capabilities-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .capabilities-grid { grid-template-columns: 1fr; }
}

/* Process grid — 5-column variant for engagement model */
.process-grid-5 {
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

@media (max-width: 1024px) {
  .process-grid-5 { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

@media (max-width: 700px) {
  .process-grid-5 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .process-grid-5 { grid-template-columns: 1fr; }
}

.process-grid-6 {
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(18px, 2vw, 28px);
}

@media (max-width: 1024px) {
  .process-grid-6 { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
}

@media (max-width: 700px) {
  .process-grid-6 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .process-grid-6 { grid-template-columns: 1fr; }
}

/* Stack table — tweaks to response-table for 2-col tech specs */
.stack-table {
  margin-top: 40px;
}

.stack-table tbody td strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* On dark section: section-dark .container-narrow needs to keep its narrow flow */
.section-dark .container-narrow .eyebrow {
  color: #ff6b6b;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .mega-menu { min-width: 720px; padding: 24px; }
  .mega-columns { gap: 28px; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-cta .phone-link { display: none; }
  .mobile-toggle { display: flex; }

  /* ---- Mobile nav panel: full-width dropdown below the header ---- */
  .main-nav.mobile-open {
    display: block;
    position: fixed;
    top: var(--header-height, 69px);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface);
    padding: 24px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 100;
  }

  .main-nav.mobile-open .nav-pills {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.mobile-open .nav-pills > li {
    border-bottom: 1px solid var(--hairline);
  }

  .main-nav.mobile-open .nav-pills > li > a {
    padding: 18px 0;
    font-size: 19px;          /* larger than desktop 15px — better tap targets */
  }

  /* Lock body scroll while the panel is open */
  body:has(.main-nav.mobile-open) {
    overflow: hidden;
  }

  /* ---- Mega-menu renders INLINE inside the panel, collapsed until tapped.
          JS toggles .has-mega.open; we override the desktop absolute dropdown. ---- */
  .main-nav.mobile-open .mega-menu {
    position: static;
    transform: none;
    min-width: 0;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms ease, max-height 280ms ease;
  }

  .main-nav.mobile-open .has-mega.open .mega-menu {
    opacity: 1;
    visibility: visible;
    max-height: 2000px;
    padding: 4px 0 16px;
  }

  .main-nav.mobile-open .mega-columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Chevron right-aligns in the row and rotates to signal expanded state */
  .main-nav.mobile-open .has-mega > .services-trigger {
    display: flex;
    flex-direction: row;        /* override desktop column stacking */
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--ink-900);      /* keep text ink (not desktop's red-on-open) */
  }

  .main-nav.mobile-open .nav-chevron {
    width: 14px;
    height: 9px;                /* maintains 10:6 triangle aspect ratio */
    margin: 0 0 0 auto;         /* reset desktop margin; push to right edge */
    color: var(--ink-500);
  }

  .main-nav.mobile-open .has-mega.open .nav-chevron {
    transform: rotate(180deg);
    color: var(--ink-900);
  }

  .practice-row,
  .practice-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .practice-row.reverse .practice-text,
  .practice-row.reverse .practice-meta {
    order: initial;
  }

  .stats-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (max-width: 600px) {
  .stats-row { grid-template-columns: 1fr; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
