/* JGA Engineering — site styles. Tokens follow the brand guidelines. */

@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }

:root {
  --orange: #FF5A1F;
  --graphite: #1F2326;
  --light: #F2F2F0;
  --white: #FFFFFF;
  --g70: #626567;
  --g40: #A5A7A8;
  --g15: #DDDEDE;
  --orange-15: #FFE6DD;

  --display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --measure: 62ch;
  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --section: clamp(72px, 11vw, 144px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--white);
  font-feature-settings: "kern", "calt";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: var(--measure); }

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

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--graphite); color: var(--white); padding: 10px 16px; text-decoration: none; }

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

/* ---------------------------------------------------------------- type */
h1, h2, h3 { font-family: var(--display); color: inherit; margin: 0; }
h1 {
  font-weight: 900;
  font-size: clamp(2.75rem, 6.6vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  max-width: 11ch;
}
h2 {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 16ch;
}
h3 { font-weight: 700; font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.01em; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.55; color: var(--g70); max-width: 46ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 1rem/1 var(--text);
  padding: 1em 1.4em;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--orange); color: var(--graphite); }      /* graphite on orange 5.1:1 */
.btn-primary:hover { background: #FF7445; }
.btn-ghost { border-color: var(--graphite); color: var(--graphite); background: transparent; }
.btn-ghost:hover { background: var(--graphite); color: var(--white); }

/* ---------------------------------------------------------------- header */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.site-header .logo img { height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.site-nav a { text-decoration: none; font-weight: 500; font-size: .975rem; }
.site-nav a:not(.btn):hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.site-nav .btn { padding: .75em 1.1em; }
@media (max-width: 760px) { .site-nav a:not(.btn) { display: none; } }
.site-nav .s { display: none; }
@media (max-width: 520px) { .site-nav .l { display: none; } .site-nav .s { display: inline; } .site-header .logo img { height: 26px; } }

/* ---------------------------------------------------------------- hero: the one bold move
   The full mark at near page width, its feet cropped by the edge of the section. */
.hero { padding: clamp(40px, 7vw, 104px) 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; }
.hero h1 { max-width: 10ch; }
.hero .lede { margin-bottom: 2rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-mark { margin-top: clamp(48px, 7vw, 96px); overflow: hidden; }
.hero-mark .crop { height: calc(min(100vw - 2 * var(--gutter), var(--max) - 2 * var(--gutter)) * 0.3916); overflow: hidden; border-bottom: 2px solid var(--graphite); }
.hero-mark img { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 11ch; }
}

/* ---------------------------------------------------------------- sections */
.section { padding: var(--section) 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 64px; margin-bottom: clamp(40px, 6vw, 72px); align-items: end; }
.section-head p { color: var(--g70); margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* services: a specification list, not cards */
.services { border-top: 2px solid var(--graphite); }
.service { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px 64px; padding: 30px 0 32px; border-bottom: 1px solid var(--g15); }
.service p { margin: 0; color: var(--g70); }
.service ul { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.service li { font-size: .875rem; font-weight: 500; padding: .35em .7em; background: var(--light); border-radius: 3px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; } }

/* process: a real sequence, so it is numbered */
.process { background: var(--light); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--graphite); padding-top: 22px; }
.steps li::before { content: counter(step); display: block; font: 900 3rem/1 var(--display); color: var(--orange); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--g70); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* about: the only dark band above the footer */
.about { background: var(--graphite); color: var(--white); }
.about .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.about p { color: #D3D5D6; }
.creds { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid #3A3F43; }
.creds li { display: grid; grid-template-columns: 7.5rem 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #3A3F43; }
.creds b { font-family: var(--display); font-weight: 700; color: var(--orange); font-size: 1.125rem; }
.creds span { color: #D3D5D6; }
@media (max-width: 860px) { .about .grid { grid-template-columns: 1fr; } }

/* contact */
.contact .grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px 64px; }
.contact .direct { margin-top: 28px; font-size: 1.125rem; }
.contact .direct a { font-weight: 600; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 860px) { .contact .grid { grid-template-columns: 1fr; } }

form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { form .row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-weight: 600; font-size: .95rem; }
.field .hint { font-weight: 400; color: var(--g70); }
.field input, .field textarea {
  font: 400 1rem/1.5 var(--text); color: var(--graphite);
  padding: 14px 16px; border: 1.5px solid var(--g40); border-radius: 4px; background: var(--white);
}
.field input:hover, .field textarea:hover { border-color: var(--g70); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--graphite); box-shadow: 0 0 0 3px var(--orange-15); }
.field textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--g70); margin-top: 14px; }
.form-msg { display: none; padding: 14px 16px; border-radius: 4px; margin-bottom: 20px; font-weight: 500; }
.form-msg.is-error { display: block; background: var(--orange-15); border-left: 4px solid var(--orange); }

/* footer */
.site-footer { background: var(--graphite); color: #C9CBCC; padding: 64px 0 48px; font-size: .9375rem; }
.site-footer .grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.site-footer img { height: 72px; width: auto; }
.site-footer p { margin: 0; max-width: none; }
.site-footer a { color: var(--white); text-decoration-color: var(--g70); text-underline-offset: 4px; }
.site-footer .meta { display: grid; gap: 6px; text-align: right; }
@media (max-width: 640px) { .site-footer .meta { text-align: left; } }

/* simple pages (privacy, thanks, 404) */
.page { padding: clamp(40px, 7vw, 96px) 0 var(--section); }
.page h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: 16ch; margin-bottom: .5em; }
.page h2 { font-size: 1.5rem; max-width: none; margin: 2.2em 0 .5em; letter-spacing: -0.01em; }
.page p, .page li { max-width: var(--measure); }
.page ul { padding-left: 1.2em; }
