/* Keystone: technical, grid-led template. Stone paper, slate ink and one ochre accent. */

@font-face { font-family: "Geist"; src: url("./assets/fonts/geist-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("./assets/fonts/geist-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("./assets/fonts/geist-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("./assets/fonts/rubik-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Rubik"; src: url("./assets/fonts/rubik-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --stone: #ece9e3;
  --paper: #f7f6f2;
  --ink: #17212b;
  --ink-2: #222f3c;
  --slate: #4a5763;
  --rule: #c9c4bb;
  --ochre: #d8892f;
  --ochre-hover: #e49a45;
  --on-ink: #f1efe9;
  --on-ink-muted: #aab4bd;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1360px;
  --gutter: clamp(18px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--stone); color: var(--ink); font-family: var(--font);
  font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ochre); outline-offset: 3px;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; }
p { margin: 0; max-width: 62ch; }
abbr[title] { text-decoration: none; color: var(--ochre); }

.skip-link {
  position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 10px 14px; z-index: 10; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px;
  font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate);
}

.top-banner { background: var(--ink); color: var(--on-ink); }
.top-banner .sep { color: var(--ochre-hover); }
.top-banner { font-size: 0.8125rem; padding: 7px var(--gutter); text-align: center; }
.top-banner p { margin: 0; max-width: none; }
.top-banner a { text-decoration: none; }
.top-banner a:hover { text-decoration: underline; text-underline-offset: 3px; }
.top-banner .sep { margin: 0 12px; opacity: 0.55; }
.business-sig { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.business-sig img { width: 56px; height: 56px; padding: 6px; border-radius: 14px; background: var(--paper); flex: none; }
.business-name { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20; background: var(--stone); max-width: none;
  padding: 20px max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  display: flex; align-items: center; gap: 28px; border-bottom: 1px solid var(--rule); flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: 40px; }
.brand-name { font-weight: 600; font-size: 1.125rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); margin-top: 3px; }
.header-cta {
  text-decoration: none; font-weight: 600; font-size: 0.9375rem; background: var(--ink); color: var(--on-ink);
  padding: 11px 16px; border-radius: 4px; transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s;
}
.header-cta:hover { background: var(--ink-2); }
.header-cta:active { transform: scale(0.98); }

/* Hero: copy on the left, ink estimate panel on the right */
.hero {
  position: relative; z-index: 2; max-width: var(--wrap); margin: 0 auto; padding: clamp(24px, 3vw, 40px) var(--gutter) clamp(56px, 7vw, 88px);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0; align-items: stretch;
}
.hero-copy { padding-right: clamp(0px, 5vw, 80px); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.75rem); letter-spacing: -0.045em; margin-bottom: 28px; max-width: 14ch; }
.lede { font-size: 1.125rem; color: var(--slate); margin-bottom: 40px; max-width: 54ch; }
.spec-strip {
  list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.spec-strip li { padding: 16px 16px 0 0; font-size: 0.9375rem; font-weight: 500; }
.spec-strip span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate); margin-bottom: 4px; font-weight: 500; }

.lead-form {
  background: var(--ink); color: var(--on-ink); padding: clamp(28px, 3.4vw, 44px); border-radius: 6px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 40px 70px -48px rgba(23, 33, 43, 0.6);
}
.form-kicker { font-size: 0.875rem; color: var(--on-ink-muted); margin-bottom: 10px; }
.form-head h2 { font-size: 2.125rem; margin-bottom: 26px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; margin-bottom: 14px; }
.field label { font-size: 0.875rem; font-weight: 500; color: #d7dde2; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid #3a4a58; border-radius: 4px;
  padding: 11px 12px; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ochre); box-shadow: 0 0 0 3px rgba(216, 137, 47, 0.35); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff8a80; box-shadow: 0 0 0 3px rgba(255, 138, 128, 0.25); }
.field-error { font-size: 0.8125rem; color: #ffb4ab; margin: 0; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.form-status { font-size: 0.9375rem; color: var(--on-ink-muted); }
.form-status[data-state="error"] { color: #ffb4ab; }
.form-status[data-state="success"] { color: var(--ochre-hover); font-weight: 600; }

.btn {
  font: inherit; font-weight: 600; font-size: 1rem; border: 0; border-radius: 4px; padding: 15px 22px; cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.7; cursor: progress; }
.btn-accent { background: var(--ochre); color: var(--ink); }
.btn-accent:hover { background: var(--ochre-hover); }

/* Full-width photo band, cropped tight */
.feature { position: relative; z-index: 0; max-width: var(--wrap); margin: -120px auto 0; padding: 0 var(--gutter); }
.feature img {
  width: 100%; height: clamp(320px, 42vw, 560px); object-fit: cover; object-position: center 40%; border-radius: 0;
}

/* Sections */
.services, .visit { max-width: var(--wrap); margin: 0 auto; padding: clamp(72px, 9vw, 120px) var(--gutter); }
.section-intro { margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); letter-spacing: -0.04em; max-width: 18ch; }

/* Scope: a labelled table, rows divided by rules */
.scope-table { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.scope-table li {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: baseline;
  padding: 30px 0; border-bottom: 1px solid var(--rule); transition: background-color 0.3s ease;
}
.scope-table li:hover { background: var(--paper); }
.scope-no { font-size: 0.875rem; font-weight: 600; color: var(--ink); border: 1px solid var(--ink); width: 36px; height: 36px; display: grid; place-items: center; }
.scope-table h3 { font-size: clamp(1.5rem, 2.6vw, 2.125rem); letter-spacing: -0.03em; }
.scope-table p { color: var(--slate); }

/* Visit: spec sheet on ink */
.visit { background: var(--ink); color: var(--on-ink); max-width: none; padding-left: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); padding-right: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit .eyebrow { color: var(--on-ink-muted); }
.visit h2 { font-size: clamp(2.1rem, 3.8vw, 3.1rem); letter-spacing: -0.04em; margin-bottom: 28px; max-width: 18ch; }
.service-area { color: var(--on-ink-muted); }
.service-area span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ochre-hover); margin-bottom: 4px; font-weight: 500; }

.site-footer {
  margin: 0; padding: 18px var(--gutter) 24px; background: var(--stone); color: var(--slate); font-size: 0.75rem; border-top: 0;
}
.site-footer a { color: var(--ink); }
.footer-row { max-width: var(--wrap); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.ontrack-credit { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 0.8125rem; color: var(--slate); }
.ontrack-credit:hover .ontrack-name { text-decoration: underline; text-underline-offset: 3px; }
.ontrack-name { font-family: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif; font-weight: 500; color: var(--ink); }
.copyright { margin: 0; }
.ontrack-icon { width: 1.5em; height: 1.5em; flex: none; }

.visit-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.visit-info h3 { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ochre-hover); margin-bottom: 14px; }
.visit-info p { color: var(--on-ink); font-weight: 500; margin-bottom: 8px; max-width: none; }
.visit-info a { text-underline-offset: 3px; text-decoration-color: var(--ochre); }
.visit-info a:hover { color: var(--ochre-hover); }

/* Responsive */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { padding-right: 0; }
  .visit { grid-template-columns: 1fr; }
  .scope-table li { grid-template-columns: 56px minmax(0, 1fr); }
  .scope-table li p { grid-column: 2; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .visit-info { grid-template-columns: 1fr; gap: 28px; }
  .spec-strip { grid-template-columns: 1fr; }
  .spec-strip li { padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
    .feature { padding: 0; margin-top: -48px; }
  .feature img { height: 300px; }
  .header-cta { font-size: 0.875rem; padding: 10px 12px; }
  .brand-name small { display: none; }
  .site-header { gap: 12px; padding-top: 14px; padding-bottom: 14px; }
  .top-banner { font-size: 0.75rem; padding: 6px 16px; }
  .top-banner p { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 8px; row-gap: 2px; }
  .top-banner strong { flex-basis: 100%; }
  .top-banner strong + .sep { display: none; }

  /* Phone version: no scope letters, titles above body text */
  .scope-table li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 26px 0; }
  .scope-table li p { grid-column: auto; }
  .scope-no { display: none; }
}

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