/* Turnpike Technologies site styles */

:root {
  --bg: #121314;
  --bg-alt: #181a1b;
  --surface: #1e2022;
  --border: #2b2e31;
  --text: #e8eaeb;
  --muted: #9aa1a6;
  --accent: #00c8a0;
  --accent-ink: #04241d;
  --radius: 10px;
  --maxw: 1140px;
  --serif: "Quattrocento", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, border-color .25s, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(18, 19, 20, .85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 32px; height: auto; }

.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.nav .nav-cta {
  color: var(--accent); border: 1px solid var(--accent); padding: 7px 16px; border-radius: 999px;
}
.nav .nav-cta:hover { background: var(--accent); color: var(--accent-ink); }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--text); font-size: 28px; cursor: pointer; padding: 4px;
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(18, 19, 20, .97); border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 17px; }
  .nav .nav-cta { margin-top: 16px; text-align: center; border-bottom: 1px solid var(--accent); }
  .header:has(.nav.open) { background: rgba(18, 19, 20, .97); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: #000 url("../video/bwcity-poster.jpg") center / cover no-repeat;
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 11, 12, .92) 0%, rgba(10, 11, 12, .65) 55%, rgba(10, 11, 12, .35) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 25%);
}
.hero-content { position: relative; padding-top: 96px; padding-bottom: 72px; }

.eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .04em; margin-bottom: 18px; }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7.5vw, 88px);
  max-width: 12ch;
  letter-spacing: -.01em;
}
.lede { margin-top: 24px; max-width: 54ch; color: #c9cdd0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 300; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 500; font-size: 15px;
  border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #19e0b7; }
.btn-ghost { border-color: rgba(255, 255, 255, .25); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 16px 28px; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2, .contact h2 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 48px); }
.section-sub { margin-top: 16px; color: var(--muted); font-size: 18px; }

.grid { display: grid; gap: 20px; }
.cards { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(0, 200, 160, .5); transform: translateY(-3px); }
.card > i { font-size: 26px; color: var(--accent); display: block; margin-bottom: 18px; }
.card h3 { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  counter-reset: none;
}
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 2px solid var(--border); padding-top: 22px; position: relative; }
.step::before {
  content: ""; position: absolute; top: -2px; left: 0; width: 40px; height: 2px; background: var(--accent);
}
.step-num { color: var(--accent); font-size: 13px; }
.step h3 { font-size: 20px; font-weight: 600; margin: 10px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- Team ---------- */
.team { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .person { flex-direction: column; align-items: flex-start; gap: 14px; }
  .person-mail { font-size: 13px; }
}
.person {
  display: flex; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.avatar {
  flex: none; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 500; font-size: 18px;
  color: var(--accent); background: rgba(0, 200, 160, .1); border: 1px solid rgba(0, 200, 160, .35);
}
.person h3 { font-size: 19px; font-weight: 600; }
.role { color: var(--muted); font-size: 12.5px; margin: 4px 0 10px; }
.person-mail { font-size: 14px; color: var(--accent); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.person > div { min-width: 0; }
.person-mail:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--bg) 0%, #0d1f1b 100%); border-top: 1px solid var(--border); }
.contact-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .contact-inner { grid-template-columns: 1fr; gap: 40px; } }
.contact-meta { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.contact-meta li { display: flex; gap: 10px; align-items: center; }
.contact-meta i { color: var(--accent); }
.contact-meta a { color: var(--text); }
.contact-meta a:hover { color: var(--accent); }

/* ---------- Form ---------- */
.contact-form {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 18px;
}
@media (max-width: 480px) { .contact-form { padding: 20px; } }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; font-size: 14px; color: var(--muted); }
.field em { font-style: normal; opacity: .7; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px;
  padding: 11px 13px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 200, 160, .18);
}
.field .invalid { border-color: #e5636b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-foot .btn { border: 0; cursor: pointer; font-family: inherit; }
.form-foot .btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-status { font-size: 14px; color: var(--muted); }
.form-status.ok { color: var(--accent); }
.form-status.error { color: #ff8a8f; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  * { transition: none !important; }
}
