/* ==========================================================================
   Hughes Machine Shop LLC — stylesheet
   Single stylesheet, no framework, no build step.
   Sections: tokens / reset / layout / header / hero / components / sections
             / forms / footer / utilities / motion + print
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* Navy scale sampled from the shop's logo (the badge ring and wordmark). */
  --navy-950: #0a1120;
  --navy-900: #0e1c31;
  --navy-850: #13253d;
  --navy-800: #182c48;
  --navy-700: #24406a;
  --navy-600: #3a5a94;   /* the blue in "MACHINE SHOP" */

  /* Cool greys — the brushed-steel lettering in the logo. */
  --steel-400: #7d8ba3;
  --steel-300: #a6b1c2;
  --steel-200: #ccd4de;
  --steel-100: #e8ecf1;
  --steel-50:  #f5f7fa;
  --white:     #ffffff;

  /* Welding-arc blue, for small highlights on dark panels. */
  --arc-500:   #2f8fe8;

  /* Amber is NOT in the logo. It is used ONLY for primary call-to-action
     buttons, where a warm colour against navy is what makes them findable.
     To go all-navy instead, point --amber-500 at --arc-500. */
  --amber-500: #f28c1a;
  --amber-600: #d97406;
  --amber-400: #ffa63d;
  --amber-100: #fdf0e0;

  --green-600: #1f7a4d;
  --red-600:   #b3261e;

  --bg:        var(--white);
  --bg-alt:    var(--steel-50);
  --text:      var(--navy-900);
  --text-mute: #55616f;
  --line:      #dde3ea;

  --font-head: "Barlow Condensed", "Arial Narrow", Impact, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;

  --wrap: 1180px;
  --gut: clamp(1.25rem, 4vw, 2.5rem);

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --sh-sm: 0 1px 2px rgba(10, 17, 32, .08), 0 2px 6px rgba(10, 17, 32, .06);
  --sh-md: 0 4px 10px rgba(10, 17, 32, .08), 0 12px 28px rgba(10, 17, 32, .10);
  --sh-lg: 0 10px 20px rgba(10, 17, 32, .10), 0 30px 60px rgba(10, 17, 32, .16);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  /* `hidden` here would make <body> a scroll container, which breaks sticky
     positioning and scroll-padding anchor offsets. `clip` contains overflow
     without creating one; the hidden fallback is only for old Safari. */
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.25rem); text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); text-transform: uppercase; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; text-wrap: pretty; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }

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

/* --------------------------------------------------------------- layout -- */
.wrap { width: min(var(--wrap), 100% - (var(--gut) * 2)); margin-inline: auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--navy-900); color: var(--steel-100); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--steel-300); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--navy-600);
  margin-bottom: .85rem;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--amber-500);
}
.section--dark .eyebrow { color: #8fb6e8; }

.lede { font-size: 1.15rem; color: var(--text-mute); }
.section--dark .lede { color: var(--steel-300); }

/* --------------------------------------------------------------- header -- */
.topbar {
  background: var(--navy-950);
  color: var(--steel-300);
  font-size: .84rem;
  letter-spacing: .02em;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding-block: .35rem;
}
.topbar a { color: var(--steel-100); text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #8fb6e8; }
.topbar-list { display: flex; flex-wrap: wrap; gap: .35rem 1.35rem; margin: 0; padding: 0; list-style: none; }
.topbar-list li { display: inline-flex; align-items: center; gap: .45rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-md); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 74px;
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: inherit; }
.brand:hover { color: inherit; }
/* The real logo is a single lockup (badge + wordmark), so it replaces the
   old mark-plus-text arrangement entirely. */
.brand-logo { height: 58px; width: auto; flex: 0 0 auto; }
.site-footer .brand-logo { height: 92px; }
@media (max-width: 860px) { .brand-logo { height: 52px; } }
@media (max-width: 380px) { .brand-logo { height: 46px; } }

.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-name em { font-style: normal; color: var(--amber-600); }
.brand-sub {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-top: .3rem;
}

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  display: inline-block;
  padding: .6rem .8rem;
  border-radius: var(--r-sm);
  font-size: .93rem;
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.nav a:hover { background: var(--steel-50); color: var(--navy-950); }
.nav a[aria-current="page"] { color: var(--navy-600); box-shadow: inset 0 -2px 0 var(--navy-600); }

/* The nav carries its own CTA for the mobile drawer; on desktop the one in
   .header-cta is the live button, so hide the duplicate. */
.nav > .btn { display: none; }
.nav > .btn[aria-current="page"] { box-shadow: none; }

.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle {
  display: none;
  width: 46px; height: 42px;
  padding: 0;
  background: var(--navy-900);
  border: 0;
  border-radius: var(--r-sm);
  color: var(--white);
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px; height: 2px;
  margin-inline: auto;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .2s linear;
}
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* ----------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s var(--ease), background-color .18s, box-shadow .2s, color .18s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }

.btn--primary { background: var(--amber-500); color: var(--navy-950); box-shadow: var(--sh-sm); }
.btn--primary:hover { background: var(--amber-400); color: var(--navy-950); box-shadow: var(--sh-md); }

.btn--dark { background: var(--navy-900); color: var(--white); }
.btn--dark:hover { background: var(--navy-800); color: var(--white); }

.btn--ghost { border-color: var(--navy-600); color: var(--navy-900); background: transparent; }
.btn--ghost:hover { background: var(--navy-900); border-color: var(--navy-900); color: var(--white); }

.section--dark .btn--ghost,
.hero .btn--ghost { border-color: rgba(255,255,255,.45); color: var(--white); }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { background: var(--white); color: var(--navy-950); border-color: var(--white); }

.btn--lg { padding: 1.05rem 2rem; font-size: 1.02rem; }
.btn--block { width: 100%; }

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-950);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 520px at 78% 8%,  rgba(47, 143, 232, .20), transparent 62%),
    radial-gradient(760px 480px at 12% 92%, rgba(36, 64, 106, .60),  transparent 60%),
    linear-gradient(160deg, #12233b 0%, #0a1120 55%, #14263f 100%);
}
/* faint machined-grid texture */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 20%, transparent 78%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem);
}
.hero h1 { color: var(--white); margin-bottom: .35em; }
.hero h1 em { font-style: normal; color: var(--steel-200); display: block; }
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--steel-200);
  max-width: 56ch;
  margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 2rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.6rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--steel-300);
}
.hero-trust li { display: flex; align-items: center; gap: .5rem; }
.hero-trust svg { width: 17px; height: 17px; color: var(--amber-500); flex: 0 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem .9rem .4rem .5rem;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--steel-100);
}
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #35d07f;
  box-shadow: 0 0 0 0 rgba(53, 208, 127, .7);
  animation: pulse 2.4s infinite;
  flex: 0 0 auto;
  margin-left: .35rem;
}
@keyframes pulse {
  70%  { box-shadow: 0 0 0 9px rgba(53, 208, 127, 0); }
  100% { box-shadow: 0 0 0 0  rgba(53, 208, 127, 0); }
}

/* quote card floating in hero */
.quote-card {
  background: var(--white);
  color: var(--text);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
}
.quote-card__head {
  padding: 1.15rem 1.5rem;
  background: var(--navy-900);
  color: var(--white);
  border-bottom: 3px solid var(--navy-600);
}
.quote-card__head h2 { font-size: 1.5rem; margin: 0 0 .15rem; color: var(--white); }
.quote-card__head p { margin: 0; font-size: .87rem; color: var(--steel-300); }
.quote-card__body { padding: 1.5rem; }

/* hero stat strip */
.stat-strip {
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.10);
}
.stat {
  background: #0c1a2e;
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.stat dt {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.stat dd {
  margin: .5rem 0 0;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--steel-400);
}

/* ------------------------------------------------------------- page hero */
.page-hero {
  position: relative;
  background:
    radial-gradient(760px 380px at 80% 0%, rgba(47,143,232,.18), transparent 60%),
    linear-gradient(150deg, #16283f, #0a1120);
  color: var(--white);
  padding: clamp(2.75rem, 6vw, 4.5rem) 0 clamp(2.25rem, 5vw, 3.5rem);
}
.page-hero h1 { color: var(--white); margin-bottom: .35em; }
.page-hero p { color: var(--steel-300); max-width: 62ch; font-size: 1.1rem; margin: 0; }

.crumbs { font-size: .84rem; color: var(--steel-300); margin-bottom: 1.1rem; }
.crumbs a { color: var(--steel-200); text-decoration: none; }
.crumbs a:hover { color: var(--amber-400); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--steel-300); }

/* ----------------------------------------------------------- components -- */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s;
}
.card--link:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--steel-300); }
.card h3 { margin-bottom: .45rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: var(--r-md);
  background: #e8eefa;
  color: var(--navy-600);
}
.card__icon svg { width: 27px; height: 27px; }
.section--dark .card {
  background: var(--navy-850);
  border-color: var(--navy-700);
  color: var(--steel-200);
}
.section--dark .card__icon { background: rgba(47,143,232,.16); color: #8fb6e8; }

.spec-list { list-style: none; margin: 1rem 0 0; padding: 0; font-size: .95rem; }
.spec-list li {
  display: flex;
  gap: .6rem;
  padding: .38rem 0;
  border-top: 1px dashed var(--line);
  color: var(--text-mute);
}
.spec-list li:first-child { border-top: 0; }
.spec-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-top: .55rem;
  background: var(--amber-500);
  transform: rotate(45deg);
}
.section--dark .spec-list li { border-color: var(--navy-700); color: var(--steel-300); }

/* machine / capability table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
table.spec { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; background: var(--white); }
table.spec caption { text-align: left; padding: .9rem 1rem; font-weight: 600; color: var(--text-mute); }
table.spec th, table.spec td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line); }
table.spec thead th {
  background: var(--navy-900);
  color: var(--white);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-bottom: 0;
}
table.spec tbody tr:nth-child(even) { background: var(--steel-50); }
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec td:first-child { font-weight: 600; color: var(--navy-900); }

/* pill list */
.pills { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }
.pills li {
  padding: .4rem .85rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--navy-800);
}
.section--dark .pills li { background: var(--navy-850); border-color: var(--navy-700); color: var(--steel-200); }

/* numbered process */
.steps { counter-reset: step; display: grid; gap: 1.25rem; padding: 0; margin: 0; list-style: none; }
.step { position: relative; padding-left: 4.25rem; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: -.25rem;
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy-600);
  opacity: .9;
}
.step h3 { margin-bottom: .3rem; }
.step p { margin: 0; color: var(--text-mute); }
.section--dark .step p { color: var(--steel-300); }

/* testimonial */
.quote {
  margin: 0;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-600);
  border-radius: var(--r-md);
  box-shadow: var(--sh-sm);
}
.quote blockquote { margin: 0 0 1rem; font-size: 1.02rem; color: var(--navy-800); }
.quote figcaption { font-size: .88rem; color: var(--text-mute); }
.quote figcaption strong { display: block; color: var(--navy-900); font-size: .95rem; }
.stars { display: flex; gap: .15rem; margin-bottom: .85rem; color: var(--amber-500); }
.stars svg { width: 17px; height: 17px; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(700px 340px at 88% 20%, rgba(47,143,232,.22), transparent 62%),
    linear-gradient(120deg, #14263f, #0a1120);
  color: var(--white);
}
.cta-band .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.75rem;
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.cta-band h2 { color: var(--white); margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--steel-300); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* alternating feature rows */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.figure-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--navy-800);
  box-shadow: var(--sh-md);
  aspect-ratio: 4 / 3;
  margin: 0;
}
.figure-frame img { width: 100%; height: 100%; object-fit: cover; }
.figure-frame figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.75rem 1.15rem .85rem;
  background: linear-gradient(transparent, rgba(10,17,32,.88));
  color: var(--steel-100);
  font-size: .85rem;
}

/* checklist */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.checks li { display: flex; gap: .7rem; align-items: flex-start; }
.checks svg { width: 21px; height: 21px; flex: 0 0 auto; margin-top: .2rem; color: var(--green-600); }
.section--dark .checks svg { color: #35d07f; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem .25rem;
  font-family: var(--font-head);
  font-size: 1.3rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy-600);
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--navy-600); }
.faq .faq-body { padding: 0 .25rem 1.35rem; color: var(--text-mute); max-width: 72ch; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* contact blocks */
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-item svg { width: 22px; height: 22px; color: var(--navy-600); flex: 0 0 auto; margin-top: .3rem; }
.contact-item h3 { margin: 0 0 .15rem; font-size: 1.15rem; }
.contact-item a { font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-item p { margin: 0; color: var(--text-mute); font-size: .95rem; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--steel-100);
  min-height: 320px;
}
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }

/* ---------------------------------------------------------------- forms -- */
.field { margin-bottom: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

label { display: block; font-size: .85rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .35rem; color: var(--navy-800); }
label .req { color: var(--red-600); }
label .opt { font-weight: 500; color: var(--text-mute); letter-spacing: 0; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="file"], select, textarea {
  width: 100%;
  padding: .72rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(242, 140, 26, .22);
}
textarea { resize: vertical; min-height: 120px; }
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2355616f' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 18px;
  padding-right: 2.4rem;
}
input[type="file"] { padding: .55rem; background: var(--steel-50); }
input[type="file"]::file-selector-button {
  margin-right: .8rem;
  padding: .45rem .85rem;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  background: var(--navy-800);
  color: var(--white);
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
}
.help { display: block; margin-top: .35rem; font-size: .82rem; color: var(--text-mute); }

.field-error { display: none; margin-top: .3rem; font-size: .83rem; font-weight: 600; color: var(--red-600); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-600); }
.field.has-error .field-error { display: block; }

fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
fieldset legend { padding: 0; font-size: .85rem; font-weight: 700; margin-bottom: .5rem; color: var(--navy-800); }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .6rem .8rem;
  background: var(--white);
  border: 1px solid var(--steel-300);
  border-radius: var(--r-sm);
  font-size: .92rem;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.choice:hover { border-color: var(--navy-600); }
.choice input { accent-color: var(--amber-600); width: 17px; height: 17px; margin: 0; flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--amber-500); background: var(--amber-100); font-weight: 600; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: .82rem; color: var(--text-mute); margin: .9rem 0 0; }

.form-status { margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--r-sm); font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--ok  { background: #e7f4ed; border: 1px solid #b6dcc7; color: #14563a; }
.form-status--err { background: #fdecea; border: 1px solid #f2c2bd; color: #8c1d16; }

.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* --------------------------------------------------------------- footer -- */
.site-footer { background: var(--navy-950); color: var(--steel-400); font-size: .93rem; }
.site-footer a { color: var(--steel-200); text-decoration: none; }
.site-footer a:hover { color: var(--amber-400); text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 2.5rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 {
  color: var(--white);
  font-size: .8rem;
  line-height: 1.3;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer .brand-name { color: var(--white); }
.site-footer .brand-sub { color: var(--steel-400); }
.footer-bottom {
  border-top: 1px solid var(--navy-800);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  font-size: .84rem;
}
.footer-bottom p { margin: 0; }

/* --------------------------------------------------- mobile call bar ----- */
.call-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  display: none;
  gap: 1px;
  background: var(--navy-700);
  box-shadow: 0 -4px 16px rgba(10,17,32,.30);
  padding-bottom: env(safe-area-inset-bottom);
}
.call-bar a {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem .5rem;
  font-size: .92rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-decoration: none;
}
.call-bar a svg { width: 18px; height: 18px; }
.call-bar .cb-call  { background: var(--navy-900); color: var(--white); }
.call-bar .cb-text  { background: var(--navy-800); color: var(--white); }
.call-bar .cb-quote { background: var(--amber-500); color: var(--navy-950); }

/* ------------------------------------------------------------ utilities -- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 1rem; z-index: 200;
  padding: .7rem 1.1rem;
  background: var(--amber-500); color: var(--navy-950);
  font-weight: 700; text-decoration: none; border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.stack > * + * { margin-top: 1rem; }

/* ----------------------------------------------------- responsive rules -- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .quote-card { max-width: 560px; }
}

@media (max-width: 860px) {
  .site-header .wrap { min-height: 66px; }
  .nav-toggle { display: grid; place-items: center; }
  .header-cta .btn { display: none; }
  .nav {
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .5rem var(--gut) 1.25rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-md);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    /* pointer-events belt-and-braces: visibility is a discrete transition, so
       for ~100ms on close the drawer can still swallow taps without it. */
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav a[aria-current="page"] { box-shadow: none; }
  .nav > .btn {
    display: flex;
    margin-top: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 0;
    justify-content: center;
  }
  /* Applies to the <span> holding the second number as well as whole <li>s. */
  .topbar-list .hide-sm { display: none; }
  .call-bar { display: flex; }
  body { padding-bottom: 56px; }
  html { scroll-padding-top: 76px; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 200px; }
}

/* ------------------------------------------------------ motion + print -- */
/* Scroll-reveal is strictly additive. Content is VISIBLE by default; the
   hidden state only applies once JS has added .reveal-ready to <html>, which
   it does only after confirming IntersectionObserver actually delivers a
   callback. Never make readable text depend on a script succeeding. */
.reveal-ready .reveal { opacity: 0; transform: translateY(18px); }
.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .topbar, .call-bar, .cta-band, .nav-toggle, .skip-link { display: none !important; }
  body { padding-bottom: 0; color: #000; }
  .hero, .page-hero, .section--dark { background: #fff !important; color: #000 !important; }
  .hero h1, .page-hero h1, .section--dark h2, .section--dark h3 { color: #000 !important; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
