/*
  Shiift marketing site. One stylesheet, no build step.

  Colours are tokens on :root and are redefined once for dark mode, which
  follows the visitor's system setting (there is no toggle, so nothing is
  stored in the browser — the privacy policy says so).
*/

:root {
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #d1d5db;
  --header-bg: rgba(242, 242, 242, 0.92);
  --neutral: #2a323c;
  --neutral-hover: #1c232b;
  --accent: #40e0d0;
  --accent-hover: #2fcfbf;
  --link: #0f766e;
  --section-rule: #6b7280;
  --overlay: rgba(0, 0, 0, 0.5);
  --noise: url("data:image/svg+xml;charset=utf8,%3Csvg%20viewBox%3D%220%200%20512%20512%22%20width%3D%22512%22%20height%3D%22512%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cfilter%20id%3D%22noise%22%3E%3CfeTurbulence%20type%3D%22fractalNoise%22%20baseFrequency%3D%220.875%22%20result%3D%22noise%22%20%2F%3E%3CfeColorMatrix%20type%3D%22matrix%22%20values%3D%220%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200.4296875%200%22%20%2F%3E%3C%2Ffilter%3E%3Crect%20filter%3D%22url%28%23noise%29%22%20x%3D%220%22%20y%3D%220%22%20width%3D%22512%22%20height%3D%22512%22%20fill%3D%22transparent%22%20opacity%3D%221%22%20%2F%3E%3C%2Fsvg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1d1f;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --border: #3f3f46;
    --header-bg: rgba(29, 29, 31, 0.92);
    --link: #40e0d0;
    --overlay: rgba(29, 29, 31, 0.8);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); }

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

.container {
  width: 100%;
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
}

.icon {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 20;
  padding: 0.5rem 1rem;
  background: var(--neutral);
  color: #fff;
  border-radius: 0.5rem;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.btn-sm { min-height: 2.25rem; padding: 0 0.75rem; }
.btn-neutral { background: var(--neutral); color: #fff; }
.btn-neutral:hover { background: var(--neutral-hover); }
.btn-primary { background: var(--accent); color: #06201e; }
.btn-primary:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}
.brand img { height: 1.75rem; width: auto; }
.header-nav { display: flex; align-items: center; gap: 1rem; }
.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.header-phone:hover { text-decoration: underline; }
.header-phone span { display: none; }
@media (min-width: 640px) {
  .header-phone span { display: inline; }
}

/* Jump targets land below the sticky header, not under it. */
section[id] { scroll-margin-top: 3.5rem; }

/* ---------- Parallax sections ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 80vh;
  border-top: 10px solid var(--section-rule);
  background-color: #20222e;
  background-image: linear-gradient(var(--overlay), var(--overlay)), var(--hero-img);
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero--future { --hero-img: url("/img/hands-keyboard.jpg"); }
.hero--built { --hero-img: url("/img/mobile-desktop.jpg"); }
.hero--industry { --hero-img: url("/img/truck-city-2.jpg"); }

/*
  Touch devices (iOS Safari in particular) ignore or mis-scale fixed
  backgrounds, and reduced-motion visitors asked for less movement. Both get
  the same image, scrolling with the page.
*/
@media (hover: none), (prefers-reduced-motion: reduce) {
  .hero { background-attachment: scroll; }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--noise);
  pointer-events: none;
}
.hero > .container { position: relative; padding-block: 4rem; }

.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; }
  .push-right { grid-column: 2; }
}

.hero-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.875rem;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 1px 1px 1px #000, 3px 3px 5px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .hero-title { font-size: 2.25rem; }
}

/* 16px on phones, 18px from tablet up: the common range for body copy. */
.hero-subtitle {
  margin: 0 0 1.5rem;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
  text-shadow: 1px 1px 1px #000, 3px 3px 5px rgba(0, 0, 0, 0.3);
}
@media (min-width: 768px) {
  .hero-subtitle { font-size: 1.125rem; }
}

.content-divider {
  width: 75px;
  height: 5px;
  margin: 1rem 0;
  border: none;
  background: var(--section-rule);
}

/* ---------- Contact ---------- */

.contact {
  padding-block: 6rem;
  color: #fff;
  border-top: 10px solid var(--accent);
  background: var(--noise), linear-gradient(52deg, #42475c 0%, #20222e 71%);
}

.contact-direct {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
.contact-direct a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
}
.contact-direct a:hover { color: var(--accent); }
.contact-direct .icon { color: var(--accent); }

@media (min-width: 1024px) {
  .contact-direct { gap: 1.25rem; }
  .contact-direct a { font-size: 1.5rem; }
}

/* ---------- Legal / text pages ---------- */

.doc { padding-block: 3rem 4rem; }
.doc article { max-width: 72ch; margin-inline: auto; line-height: 1.7; }
.doc h1 { margin: 0 0 0.25rem; font-size: 2rem; line-height: 1.2; }
.doc h2 { margin: 2.25rem 0 0.5rem; font-size: 1.25rem; }
.doc h3 { margin: 1.5rem 0 0.25rem; font-size: 1.05rem; }
.doc-meta { margin: 0 0 2rem; color: var(--muted); }
.doc ul { padding-left: 1.25rem; }

.not-found { min-height: 60vh; display: flex; align-items: center; text-align: center; }
.not-found article { margin-inline: auto; }

/* ---------- Footer ---------- */

.site-footer { background: var(--neutral); color: #fff; padding-block: 2.5rem 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-brand { margin: 0; font-weight: 700; color: var(--accent); }
.footer-tagline { margin: 0.25rem 0 0; color: rgba(255, 255, 255, 0.8); }
.footer-heading {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-legal p { margin: 0; }
