/* =========================================================================
   Headroom Design & Manufacturing — styles
   Palette: "steel & ember". Steel-navy + graphite neutrals for trust and
   precision, warm birch as the wood nod, one restrained amber-orange accent
   (navy + orange = the researched industrial-B2B pairing). The orange marks
   growth/"headroom": the arrow, CTAs, and highlights. Technical-drawing feel.
   ========================================================================= */

:root {
  /* steel / navy */
  --steel-900: #0c2234;  /* deepest navy — text, dark bands */
  --steel-700: #16384f;  /* steel navy */
  --steel-500: #51616d;  /* graphite steel — secondary text */
  --steel-300: #9db1c0;
  --steel-150: #d4dee5;
  --steel-100: #e3eaef;
  --steel-50:  #f1f5f8;

  /* birch (warm wood nod) */
  --birch-50:  #f7f1e6;
  --birch-100: #f0e4ce;
  --birch-300: #d9b382;
  --birch-500: #be9a63;

  /* accent — industrial amber-orange */
  --accent:      #e07a2d;
  --accent-ink:  #b4551a; /* burnt orange — AA-safe for accent text on light */
  --accent-btn:  #f0882e; /* brighter ember for CTA button fills — ~6.4:1 with navy text */

  /* semantic */
  --bg:        #ffffff;
  --bg-alt:    var(--steel-50);
  --ink:       var(--steel-900);
  --ink-soft:  var(--steel-500);
  --rule:      var(--steel-150);
  --steel-bar: #4c6b82;  /* hero "demand" bars — steel blue */
  --chip-bg:   var(--steel-700); /* filled software/skill tags */
  --chip-ink:  #ffffff;

  --maxw: 1080px;
  --gutter: clamp(1rem, 4vw, 2.5rem);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --radius: 6px;
  --shadow: 0 1px 2px rgba(28, 38, 48, 0.06), 0 8px 24px rgba(28, 38, 48, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:       #10191f;
    --bg-alt:   #182530;
    --ink:      #eef2f6;
    --ink-soft: #a9b6c2;
    --rule:     #294150;
    --steel-50: #182530;
    --accent:   #f0944e;
    --accent-ink: #f3a463;
    --steel-bar: #3e5663;
    --birch-300: #d2b687;
    --chip-bg:  #2d4d63;
    --chip-ink: #eef2f6;
  }
}
/* explicit theme override wins in both directions */
:root[data-theme="light"] {
  --bg: #ffffff; --bg-alt: #f1f5f8; --ink: #0c2234; --ink-soft: #51616d;
  --rule: #d4dee5; --accent: #e07a2d; --accent-ink: #b4551a; --steel-bar: #4c6b82;
  --chip-bg: #16384f; --chip-ink: #ffffff;
}
:root[data-theme="dark"] {
  --bg: #10191f; --bg-alt: #182530; --ink: #eef2f6; --ink-soft: #a9b6c2;
  --rule: #294150; --accent: #f0944e; --accent-ink: #f3a463; --steel-bar: #3e5663;
  --chip-bg: #2d4d63; --chip-ink: #eef2f6;
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
/* balance multi-line headings into even lines (avoids orphan words);
   h1 is left alone so the hero's manual line break is untouched */
h2, h3 { text-wrap: balance; }

h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel-700); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  a { color: var(--steel-300); }
  a:hover { color: var(--accent); }
}

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

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-ink);
  margin: 0 0 0.75rem;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--accent); } }
.eyebrow--on-dark { color: var(--birch-300); }

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

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.05s ease;
}
/* Primary CTA: amber-orange with deep-navy text (energetic + WCAG AA).
   Hover inverts to navy with white text. */
.btn--primary { background: var(--accent-btn); color: var(--steel-900); border-color: var(--accent-btn); font-weight: 700; }
.btn--primary:hover { background: var(--steel-900); color: #fff; border-color: var(--steel-900); }
.btn--primary:active { transform: translateY(1px); }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1.02rem; }
.btn--sm { padding: 0.5rem 0.9rem; font-size: 0.9rem; }
@media (prefers-color-scheme: dark) {
  .btn--primary { background: var(--accent); color: #10191f; border-color: var(--accent); }
  .btn--primary:hover { background: var(--steel-100); color: var(--steel-900); border-color: var(--steel-100); }
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
}
.brand__mark { color: var(--steel-700); display: inline-flex; }
@media (prefers-color-scheme: dark) { .brand__mark { color: var(--steel-300); } }
.brand__name { line-height: 1.1; }

.site-nav > ul {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.97rem;
}
.site-nav a:not(.btn):hover { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .site-nav a:not(.btn):hover { color: var(--accent); } }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px; height: 2px; background: var(--ink); display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--rule);
    box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: block; }
  .site-nav > ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1rem;
  }
  .site-nav li { border-top: 1px solid var(--rule); }
  .site-nav li:first-child { border-top: none; }
  .site-nav a { display: block; padding: 0.9rem 0; }
  .site-nav .btn { margin-top: 0.75rem; text-align: center; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ------------------------------------------------------------- sections */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }
.section__head { max-width: 40rem; margin-bottom: 2.5rem; }
.section__lead { color: var(--ink-soft); font-size: 1.08rem; }

/* ------------------------------------------------------------------ hero */
.hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}
/* fade the grid so it reads as a faint technical backdrop */
.hero { position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 10%, transparent 0%, var(--bg) 78%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: center;
}
.hero__sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero__cta { margin-top: 1.75rem; }
.hero__visual {
  aspect-ratio: 320 / 260;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
@media (max-width: 760px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 420px; }
}

/* -------------------------------------------------------------- services */
.services__list {
  border-top: 1px solid var(--rule);
}
.service {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem clamp(1rem, 4vw, 3rem);
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
/* asymmetric: nudge alternating rows for a technical, non-grid feel */
.service:nth-child(even) { padding-left: clamp(0rem, 6vw, 4rem); }
.service__num {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.service__body h3 { margin: 0 0 0.35rem; }
.service__body p { margin: 0; color: var(--ink-soft); max-width: 46rem; }

/* ------------------------------------------------------------------ how */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--accent);
  padding-top: 1rem;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--accent-ink);
}
@media (prefers-color-scheme: dark) { .step__num { color: var(--accent); } }
.step h3 { margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ guarantee */
.guarantee {
  background: var(--steel-900);
  color: var(--birch-50);
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(216,193,154,0.08) 0 1px, transparent 1px 64px);
}
.guarantee__inner { max-width: 52rem; }
.guarantee h2 {
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3rem);
  margin: 0 0 1rem;
  text-wrap: balance;
}
.guarantee__body { color: var(--birch-100); font-size: 1.2rem; max-width: 44rem; margin: 0; }
.guarantee__body + .guarantee__body { margin-top: 0.85rem; }

/* ----------------------------------------------------------------- work */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.case {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.case__label {
  display: inline-block;
  align-self: flex-start;
  margin: 1rem 1rem 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border: 1px solid var(--birch-300);
  background: var(--birch-50);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
}
@media (prefers-color-scheme: dark) {
  .case__label { background: transparent; }
}
.case__img {
  width: 100%;
  height: auto;
  margin-top: 1rem;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.case__title { margin: 1rem 1rem 0.4rem; }
.case__brief { margin: 0 1rem 0.75rem; color: var(--ink-soft); font-size: 0.97rem; }
.case__result {
  margin: auto 1rem 1.1rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent-ink);
}
@media (prefers-color-scheme: dark) { .case__result { color: var(--accent); } }
@media (max-width: 860px) { .work__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .work__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- about */
.about__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.about__grid .section__head { margin-bottom: 0; }
.pullquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-alt);
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.45;
}
.pullquote p { margin: 0; }
.toolchips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
}
.toolchips li {
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--chip-bg);
  color: var(--chip-ink);
  border-radius: var(--radius);
  padding: 0.33rem 0.72rem;
}
@media (max-width: 760px) { .about__grid { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------- contact */
.contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  align-items: start;
}
.contact__details {
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.contact__details div { display: flex; gap: 0.75rem; }
.contact__details dt {
  font-weight: 600;
  min-width: 5.5rem;
  color: var(--ink-soft);
}
.contact__details dd { margin: 0; }
.contact__note { margin-top: 1.5rem; color: var(--ink-soft); font-size: 0.95rem; }

.contact__form {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.field__opt { font-weight: 400; color: var(--ink-soft); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--steel-500);
  border-radius: var(--radius);
  padding: 0.6rem 0.7rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 0;
}
.field textarea { resize: vertical; }
.field__hint { font-size: 0.88rem; color: var(--ink-soft); margin: 0 0 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 1rem 0 0; font-weight: 500; min-height: 1.2em; }
.form-status.is-error { color: #b4232a; }
.form-status.is-ok { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) {
  .form-status.is-error { color: #ff8a90; }
  .form-status.is-ok { color: var(--accent); }
}
@media (max-width: 760px) { .contact__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.site-footer {
  background: var(--steel-900);
  color: var(--steel-300);
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.site-footer a { color: var(--birch-300); }
.site-footer__line { margin-bottom: 1rem; }
.site-footer__disclaimer {
  margin: 0;
  max-width: 60rem;
  color: var(--steel-300);
  line-height: 1.55;
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
}

/* ------------------------------------------------------------- 404 page */
.notfound {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--gutter);
}
.notfound__code {
  font-family: var(--font-sans);
  font-size: clamp(3rem, 12vw, 6rem);
  color: var(--accent);
  margin: 0;
}
.notfound h1 { margin: 0.5rem 0 1rem; }
.notfound p { color: var(--ink-soft); }
.notfound .btn { margin-top: 1rem; }

/* --------------------------------------------------- subpages (services) */
.subhero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
  background-image:
    linear-gradient(var(--rule) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
  position: relative;
}
.subhero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 30% 10%, transparent 0%, var(--bg) 80%);
  pointer-events: none;
}
.subhero .wrap { position: relative; }
.subhero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18ch; }
.subhero__lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 44rem; margin-top: 1rem; }
.subhero .btn { margin-top: 1.5rem; }

.breadcrumb {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em;
  font-weight: 600; color: var(--ink-soft); margin: 0 0 0.75rem;
}
.breadcrumb a { color: var(--accent-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .breadcrumb a { color: var(--accent); } }

.subpage__grid {
  display: grid; grid-template-columns: 1fr 320px;
  gap: clamp(1.5rem, 5vw, 3.5rem); align-items: start;
}
@media (max-width: 860px) { .subpage__grid { grid-template-columns: 1fr; } }
.prose h2 { margin: 2.25rem 0 0.75rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-soft); max-width: 46rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.6rem; }
.feature-list li { position: relative; padding-left: 1.9rem; }
.feature-list li::before {
  content: ""; position: absolute; left: 2px; top: 0.35em;
  width: 0.7rem; height: 0.4rem;
  border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}
/* numbered phase list (service pages) — accent numerals */
.phase-list { margin: 0 0 1rem; padding-left: 1.6rem; }
.phase-list li { margin-bottom: 0.5rem; padding-left: 0.3rem; }
.phase-list li::marker { color: var(--accent-ink); font-weight: 700; }

.subpage__aside {
  border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 1.5rem; background: var(--bg-alt);
  box-shadow: var(--shadow);
  position: sticky; top: 88px;
}
.subpage__aside h3 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin: 0 0 0.85rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.subpage__aside h3::before {
  content: ""; width: 0.7rem; height: 2px; background: var(--accent); flex: none;
}
.subpage__aside h3:not(:first-child) {
  margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule);
}
.subpage__aside .toolchips { margin: 0; }
.aside-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 0.95rem; color: var(--ink-soft); }
ul.aside-list li { position: relative; padding-left: 1rem; }
ul.aside-list li::before { content: ""; position: absolute; left: 1px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.example-fig { margin: 0.5rem 0 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.example-fig img { width: 100%; border-bottom: 1px solid var(--rule); }
.example-fig figcaption { padding: 0.75rem 1rem; font-size: 0.9rem; color: var(--ink-soft); }

.callout {
  border-left: 3px solid var(--accent); background: var(--bg-alt);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1rem 0;
}
.callout p { margin: 0; color: var(--ink); }

.cta-band { background: var(--steel-900); color: var(--birch-50); padding: clamp(2.5rem, 6vw, 4rem) 0; text-align: center; }
.cta-band h2 { color: #fff; margin: 0 0 0.75rem; }
.cta-band p { color: var(--birch-100); margin: 0 auto 1.5rem; max-width: 40rem; }
.cta-band .btn--primary:hover { background: #fff; color: var(--steel-900); border-color: #fff; }
.related { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; font-size: 0.95rem; }
.related a { color: var(--birch-300); }

/* service cards on home link to their pages */
.service-link { color: inherit; text-decoration: none; }
.service-link:hover { color: var(--accent-ink); }
.service__more { display: inline-block; margin-top: 0.5rem; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.service__more:hover { text-decoration: underline; }
@media (prefers-color-scheme: dark) { .service__more, .service-link:hover { color: var(--accent); } }

/* ----------------------------------------------------- nav dropdown */
.has-dropdown { position: relative; }
.nav-dropdown-toggle {
  font: inherit; background: none; border: none; cursor: pointer;
  color: var(--ink); font-weight: 500; font-size: 0.97rem; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.35rem; padding: 0;
}
.nav-dropdown-toggle:hover { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .nav-dropdown-toggle:hover { color: var(--accent); } }
.caret { font-size: 0.7em; transition: transform 0.15s ease; }

.dropdown {
  list-style: none; margin: 0; padding: 0.4rem;
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  min-width: 264px; background: var(--bg);
  border: 1px solid var(--rule); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none; z-index: 60;
}
.dropdown li { border: none; }
.dropdown a {
  display: block; padding: 0.55rem 0.75rem; border-radius: 4px;
  font-size: 0.94rem; white-space: nowrap; text-decoration: none; color: var(--ink);
}
.dropdown a:hover { background: var(--bg-alt); color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .dropdown a:hover { color: var(--accent); } }
/* alternating row tint (birch) so the 6 services read as distinct; tint sits on the
   <li> so the hover background on <a> still paints over it. Desktop panel only. */
@media (min-width: 861px) {
  .dropdown li:nth-child(even) { background: rgba(217, 179, 130, 0.30); border-radius: 4px; }
}
@media (min-width: 861px) and (prefers-color-scheme: dark) {
  .dropdown li:nth-child(even) { background: rgba(217, 179, 130, 0.12); }
}

@media (min-width: 861px) {
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: block; }
  .has-dropdown:hover .caret,
  .has-dropdown:focus-within .caret { transform: rotate(180deg); }
  /* invisible bridge fills the gap so the menu stays open while the cursor
     moves from the button down to the panel */
  .has-dropdown::after {
    content: ""; position: absolute; top: 100%; left: 0;
    width: 100%; height: 0.75rem;
  }
}

@media (max-width: 860px) {
  .has-dropdown { border-top: 1px solid var(--rule); }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 0.9rem 0; }
  .dropdown {
    position: static; display: none; box-shadow: none; border: none;
    min-width: 0; padding: 0 0 0.5rem 0.9rem; background: transparent;
  }
  .has-dropdown.is-open .dropdown { display: block; }
  .has-dropdown.is-open .caret { transform: rotate(180deg); }
  .dropdown a { padding: 0.6rem 0; }
}

/* ------------------------------------------ featured service + ethos */
.service-featured {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--bg-alt);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow);
}
.service-featured__kicker {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.75rem; font-weight: 700; color: var(--accent-ink);
  margin: 0 0 0.5rem;
}
@media (prefers-color-scheme: dark) { .service-featured__kicker { color: var(--accent); } }
.service-featured__title { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: 0 0 0.75rem; }
.service-featured__title a { color: inherit; text-decoration: none; }
.service-featured__title a:hover { color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { .service-featured__title a:hover { color: var(--accent); } }
.service-featured__desc { font-size: 1.12rem; color: var(--ink-soft); max-width: 50rem; margin: 0 0 1.5rem; }
.service-featured__desc strong { color: var(--ink); font-weight: 600; }

.services__subhead {
  font-family: var(--font-sans);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
  margin: 0 0 0.25rem;
}

.ethos {
  font-family: var(--font-sans);
  font-size: 1.3rem; line-height: 1.4;
  margin: 1.5rem 0 0;
}
.ethos strong { color: var(--accent-ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { .ethos strong { color: var(--accent); } }

.site-footer__ethos {
  font-family: var(--font-sans);
  font-size: 1.25rem; color: var(--birch-100);
  margin: 0 0 1.25rem; max-width: 52rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__ci { color: var(--accent); font-weight: 600; }

/* abbreviations: dotted underline signals a hover definition */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: help;
}
/* inside tool chips, keep the hover tooltip but drop the underline so all
   chips look uniform */
.toolchips abbr[title] { text-decoration: none; }

/* CTAs added from the conversion review */
.guarantee__cta { margin-top: 1.75rem; }
.guarantee .btn--primary:hover { background: #fff; color: var(--steel-900); border-color: #fff; }
.work__cta { margin-top: 2.25rem; }
.field__hint--reply { margin: 0.75rem 0 0; font-weight: 600; color: var(--ink); }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0; }
.faq-item { padding: 1.25rem 0; border-bottom: 1px solid var(--rule); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-item dt { font-family: var(--font-sans); font-size: 1.2rem; color: var(--ink); margin-bottom: 0.5rem; }
.faq-item dd { margin: 0; color: var(--ink-soft); max-width: 44rem; }

/* About extras */
.about__subhead {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-soft); margin: 1.9rem 0 0.9rem; font-family: var(--font-sans);
}
.about-link { margin-top: 1.5rem; font-weight: 600; }
.ethos-defs { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.ethos-defs dt { font-weight: 700; color: var(--accent-ink); font-size: 1.05rem; margin-bottom: 0.25rem; }
.ethos-defs dd { margin: 0; color: var(--ink-soft); }
@media (prefers-color-scheme: dark) { .ethos-defs dt { color: var(--accent); } }
