/* Dursey Mechanical & Maintenance concept site. Tokens first; components use tokens only. */
:root {
  /* primitive */
  --steel-900: #14212B;
  --steel-700: #3A4D5E;
  --steel-300: #B4C0CA;
  --paper: #F2F4F5;
  --surface: #FBFCFC;
  --rule-c: #CBD3D9;
  --copper-600: #9C4A17;
  --copper-400: #E09A62;
  /* semantic */
  --ground: var(--paper);
  --ink: var(--steel-900);
  --ink-muted: var(--steel-700);
  --rule: var(--rule-c);
  --accent: var(--copper-600);
  --on-accent: var(--surface);
  /* type scale, ratio 1.25 */
  --t-0: 0.8rem;
  --t-1: 1rem;
  --t-2: 1.25rem;
  --t-3: 1.5625rem;
  --t-4: 1.953rem;
  --t-5: 2.441rem;
  --t-6: 3.052rem;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* space, 8px base */
  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem; --s-6: 3rem; --s-8: 4rem; --s-12: 6rem;
  --gutter: 1.25rem;
  --wire-x: 0px;
  --max: 1180px;
  /* motion */
  --ease-reveal: cubic-bezier(0.165, 0.84, 0.44, 1);
  --ease-ui: cubic-bezier(0.215, 0.61, 0.355, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: var(--t-1); line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: 4.5rem; /* room for the mobile call bar */
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 3px;
}
h1, h2, h3 { font-family: var(--display); font-stretch: 112%; font-weight: 700; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: var(--s-1) var(--s-2); z-index: 50; }
.skip:focus { left: var(--s-1); top: var(--s-1); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ground); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); min-height: 4rem; }
.brand { font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: var(--t-2); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; line-height: 1; display: flex; flex-direction: column; gap: 0.2rem; }
.brand small { font-family: var(--body); font-weight: 500; font-size: 0.6875rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.nav { display: none; gap: var(--s-4); }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; padding: var(--s-1) 0; border-bottom: 2px solid transparent; transition: border-color 180ms var(--ease-ui); }
.nav a:hover { border-bottom-color: var(--accent); }
.top-call { color: var(--accent); font-weight: 500; text-decoration: none; font-size: 0.9375rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.4rem; font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.0625rem; text-decoration: none; border: 2px solid var(--accent); border-radius: 2px; cursor: pointer; transition: transform 180ms var(--ease-ui), opacity 180ms var(--ease-ui); }
.btn:active { transform: translateY(1px); }
.btn-call { background: var(--accent); color: var(--on-accent); }
.btn-call:hover { opacity: 0.9; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { opacity: 0.75; }
.btn svg { width: 1.1rem; height: 1.1rem; flex: none; }

/* the copper wire that runs down the page */
main { position: relative; }
.sec { position: relative; padding: var(--s-8) 0; }
.label { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: var(--s-3); }
.label::before { content: ""; width: 1.75rem; height: 2px; background: var(--accent); flex: none; }
.sec h2 { font-size: clamp(var(--t-4), 4.6vw, var(--t-6)); line-height: 1.04; max-width: 18ch; }
.lede { font-size: var(--t-2); line-height: 1.45; color: var(--ink-muted); max-width: 58ch; margin-top: var(--s-3); }

/* hero */
.hero { padding: var(--s-4) 0 var(--s-6); }
.hero-grid { display: grid; gap: var(--s-4); }
.hero h1 { font-size: clamp(2.441rem, 6.4vw, 4.75rem); line-height: 0.98; letter-spacing: -0.03em; font-stretch: 116%; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { margin-top: var(--s-2); font-size: 1.125rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: var(--s-3); }
.cta-row .btn { flex: 1 1 14rem; }
.hero-fig { margin: 0; position: relative; }
.hero-fig img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 2px; }
.facts { list-style: none; margin: var(--s-4) 0 0; padding: 0; border-top: 1px solid var(--rule); display: grid; }
.facts li { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 7.5rem 1fr; gap: var(--s-2); align-items: baseline; }
.facts b { font-family: var(--display); font-stretch: 116%; font-weight: 800; font-size: var(--t-3); letter-spacing: -0.02em; line-height: 1; }
.facts span { color: var(--ink-muted); font-size: 0.9375rem; line-height: 1.4; }

/* services: the panel directory */
.directory { margin-top: var(--s-6); background: var(--surface); border: 1px solid var(--rule); border-top: 3px solid var(--ink); display: grid; }
.dir-col { padding: var(--s-3) var(--s-3) var(--s-2); }
.dir-col + .dir-col { border-top: 1px solid var(--rule); }
.dir-col h3 { font-size: var(--t-3); display: flex; align-items: center; gap: 0.75rem; padding-bottom: var(--s-2); border-bottom: 2px solid var(--ink); }
.dir-col h3 svg { width: 1.5rem; height: 1.5rem; color: var(--accent); flex: none; }
.dir-col dl { margin: 0; }
.dir-col .row { padding: var(--s-2) 0; border-bottom: 1px solid var(--rule); }
.dir-col .row:last-child { border-bottom: 0; }
.dir-col dt { font-weight: 500; font-size: 1.0625rem; }
.dir-col dd { margin: 0.2rem 0 0; color: var(--ink-muted); font-size: 0.9375rem; }
.svc-split { display: grid; gap: var(--s-4); margin-top: var(--s-6); align-items: center; }
.svc-split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.svc-split p { font-size: var(--t-2); line-height: 1.4; max-width: 30ch; font-family: var(--display); font-stretch: 108%; font-weight: 600; letter-spacing: -0.01em; }
.svc-split p + p { font-family: var(--body); font-weight: 400; font-size: var(--t-1); color: var(--ink-muted); margin-top: var(--s-2); max-width: 46ch; letter-spacing: 0; }

/* why: the one dark band */
.band { background: var(--steel-900); color: var(--paper); --ink-muted: var(--steel-300); --accent: var(--copper-400); --rule: #2B3B48; overflow: hidden; }
.band-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; }
.band .wrap { position: relative; }
.band h2 { max-width: 16ch; }
.reasons { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; border-top: 1px solid var(--rule); }
.reasons li { padding: var(--s-3) 0; border-bottom: 1px solid var(--rule); display: grid; gap: var(--s-1); }
.reasons h3 { font-size: var(--t-3); color: var(--accent); }
.reasons p { color: var(--ink-muted); max-width: 52ch; }
.reasons a { color: var(--paper); }

/* review */
.review blockquote { margin: 0; }
.review blockquote p { font-family: var(--display); font-stretch: 108%; font-weight: 600; font-size: clamp(var(--t-3), 3.4vw, var(--t-5)); line-height: 1.18; letter-spacing: -0.02em; max-width: 24ch; text-wrap: balance; }
.review blockquote p::before { content: "\201C"; color: var(--accent); }
.review blockquote p::after { content: "\201D"; color: var(--accent); }
.review-grid { display: grid; gap: var(--s-4); }
.review-meta { border-top: 1px solid var(--rule); padding-top: var(--s-2); color: var(--ink-muted); font-size: 0.9375rem; display: grid; gap: 0.35rem; align-content: start; }
.review-meta b { color: var(--ink); font-weight: 500; font-size: var(--t-1); }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 1.1rem; height: 1.1rem; }

/* area */
.area-grid { display: grid; gap: var(--s-4); }
.towns { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.towns li { font-family: var(--display); font-stretch: 116%; font-weight: 700; font-size: var(--t-3); letter-spacing: -0.02em; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-2); }
.towns li span { font-family: var(--body); font-weight: 400; font-size: 0.875rem; color: var(--ink-muted); letter-spacing: 0; }

/* contact */
.contact { background: var(--surface); border-top: 1px solid var(--rule); }
.contact-grid { display: grid; gap: var(--s-6); }
.bigphone { display: block; font-family: var(--display); font-stretch: 118%; font-weight: 800; font-size: clamp(2.2rem, 9vw, 4rem); letter-spacing: -0.03em; line-height: 1; color: var(--ink); text-decoration: none; margin-top: var(--s-3); }
.bigphone:hover { color: var(--accent); }
.contact-lines { margin-top: var(--s-3); display: grid; gap: 0.4rem; color: var(--ink-muted); }
.form { display: grid; gap: var(--s-2); }
.form label { display: grid; gap: 0.35rem; font-weight: 500; font-size: 0.9375rem; }
.form input, .form textarea { font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--steel-700); border-radius: 2px; padding: 0.8rem 0.9rem; width: 100%; }
.form textarea { min-height: 7.5rem; resize: vertical; }
.form .hint { color: var(--ink-muted); font-size: 0.875rem; }

/* footer */
.foot { background: var(--steel-900); color: var(--steel-300); padding: var(--s-6) 0 var(--s-4); font-size: 0.9375rem; }
.foot a { color: var(--paper); }
.foot-grid { display: grid; gap: var(--s-3); }
.foot .brand { color: var(--paper); }
.foot .brand small { color: var(--steel-300); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.concept { margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid #2B3B48; font-size: 0.875rem; line-height: 1.5; }

/* mobile call bar */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--copper-600); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.75rem; color: var(--surface); font-family: var(--display); font-stretch: 112%; font-weight: 700; font-size: 1.125rem; text-decoration: none; padding-bottom: env(safe-area-inset-bottom); }
.callbar svg { width: 1.15rem; height: 1.15rem; }

/* reveal, only when JS is running */
.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 600ms var(--ease-reveal), transform 600ms var(--ease-reveal); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  :root { --gutter: 2rem; }
  .facts { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .facts li { border-bottom: 0; grid-template-columns: 1fr; gap: 0.35rem; padding: var(--s-3) var(--s-3) var(--s-3) 0; }
  .facts li + li { padding-left: var(--s-3); border-left: 1px solid var(--rule); }
  .directory { grid-template-columns: 1fr 1fr; }
  .dir-col + .dir-col { border-top: 0; border-left: 1px solid var(--rule); }
  .dir-col { padding: var(--s-4); }
  .svc-split { grid-template-columns: 5fr 7fr; gap: var(--s-6); }
  .reasons { grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--rule); }
  .reasons li { border-bottom: 0; padding: var(--s-4) var(--s-4) var(--s-4) 0; align-content: start; }
  .reasons li + li { padding-left: var(--s-4); border-left: 1px solid var(--rule); }
  .review-grid { grid-template-columns: 8fr 4fr; gap: var(--s-6); align-items: end; }
  .area-grid { grid-template-columns: 6fr 5fr; gap: var(--s-8); align-items: start; }
  .contact-grid { grid-template-columns: 6fr 5fr; gap: var(--s-8); }
  .foot-grid { grid-template-columns: 5fr 3fr 3fr; }
  .cta-row .btn { flex: 0 1 auto; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .nav { display: flex; }
  .top-call { display: inline-flex; min-height: 2.6rem; padding: 0 1rem; border: 2px solid var(--copper-600); border-radius: 2px; align-items: center; font-family: var(--display); font-weight: 700; }
  .sec { padding: var(--s-12) 0; }
  .hero { padding: var(--s-8) 0 var(--s-8); }
  .hero-grid { grid-template-columns: 7fr 5fr; gap: var(--s-8); align-items: center; }
  .hero-fig img { aspect-ratio: 4 / 5; }
  /* the wire: a copper line at the left edge of the content column, with a node at each section label */
  .wired > .wrap { padding-left: calc(var(--gutter) + 3.5rem); }
  main::before { content: ""; position: absolute; z-index: 2; top: 0; bottom: 0; width: 2px; background: var(--copper-600); left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter))); pointer-events: none; }
  .wired .label { position: relative; }
  .wired .label::before { position: absolute; left: -3.5rem; width: 3rem; }
  .wired .label::after { content: ""; position: absolute; left: calc(-3.5rem - 4px); top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--accent); z-index: 3; }
  .band { --wire: var(--copper-400); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .btn, .nav a { transition: none; }
}
