/* ============================================================
   TORONTO CAR KEY — Design System
   "Instrument cluster at night" — a 24/7 mobile automotive
   locksmith. Dark asphalt background, ignition-amber accent,
   blueprint-teal for precision/technical details.
   Signature motif: a key-bitting (cut code) zigzag used as a
   section divider and in the logo mark — the actual pattern
   cut into a car key, made structural.
   ============================================================ */

:root {
  --bg: #10131820;
  --bg-deep: #0b0d10;
  --bg: #12151a;
  --panel: #1a1e25;
  --panel-2: #20252e;
  --line: #2a303b;
  --ignition: #ffb020;
  --ignition-dim: #b8791a;
  --teal: #2dd4bf;
  --steel: #8b93a1;
  --steel-dim: #5b626f;
  --white: #f2f4f7;
  --danger: #ff5d5d;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --radius: 6px;
  --container: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ignition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--ignition);
}

.lede {
  color: var(--steel);
  font-size: 1.1rem;
  max-width: 56ch;
}

.accent { color: var(--ignition); }
.accent-teal { color: var(--teal); }

.mono { font-family: var(--font-mono); }

/* ---------- Key-bitting divider (signature motif) ----------
   A repeating zigzag that mimics the cut pattern (bitting) of
   an actual car key. Used between sections instead of a plain
   hairline rule. */

.bitting-divider {
  height: 14px;
  width: 100%;
  background:
    linear-gradient(135deg, transparent 45%, var(--line) 45%, var(--line) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--line) 45%, var(--line) 55%, transparent 55%);
  background-size: 28px 14px;
  background-position: 0 0, 14px 0;
  opacity: 0.6;
}

.bitting-divider.lit {
  background:
    linear-gradient(135deg, transparent 45%, var(--ignition) 45%, var(--ignition) 55%, transparent 55%),
    linear-gradient(45deg, transparent 45%, var(--ignition) 45%, var(--ignition) 55%, transparent 55%);
  background-size: 28px 14px;
  background-position: 0 0, 14px 0;
  opacity: 0.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--ignition);
  color: #14100a;
  box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.5);
  animation: idle-glow 2.6s ease-in-out infinite;
}

.btn-primary:hover { transform: translateY(-1px); }

@keyframes idle-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 176, 32, 0.35); }
  50% { box-shadow: 0 0 22px 2px rgba(255, 176, 32, 0.35); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-primary { animation: none; }
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}

.btn-ghost:hover { border-color: var(--steel); }

.btn-block { width: 100%; justify-content: center; }

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 21, 26, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.logo .mark { width: 30px; height: 30px; }
.logo .word-a { color: var(--white); }
.logo .word-b { color: var(--ignition); }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

nav.main-nav a {
  font-size: 0.92rem;
  color: var(--steel);
  transition: color 0.15s ease;
}

nav.main-nav a:hover, nav.main-nav a.active { color: var(--white); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.phone-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  color: var(--teal);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.6rem;
}

nav.mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  nav.main-nav, .phone-pill { display: none; }
  .menu-toggle { display: block; }
  nav.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 2px;
    background: var(--panel);
    border-bottom: 1px solid var(--line);
  }
  nav.mobile-nav.open { display: flex; }
  nav.mobile-nav a {
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    color: var(--white);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -220px;
  right: -160px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 176, 32, 0.16) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 { margin-bottom: 20px; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 34px;
  margin-top: 46px;
  flex-wrap: wrap;
}

.stat .num {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  color: var(--ignition);
}

.stat .label {
  font-size: 0.82rem;
  color: var(--steel);
  margin-top: 2px;
}

/* Hero visual: instrument cluster */

.cluster {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  position: relative;
}

.cluster-readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--steel);
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.cluster-readout .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  margin-right: 6px;
  box-shadow: 0 0 8px var(--teal);
}

.key-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0 10px;
}

.cluster-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

.cluster-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--steel);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.cluster-list li span:last-child { color: var(--white); font-family: var(--font-mono); }

/* ---------- Sections ---------- */

section { padding: 84px 0; }
.section-alt { background: var(--panel); }

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Service tape (ticker) ---------- */

.tape-wrap {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--panel);
}

.tape {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  padding: 16px 0;
  animation: scroll-tape 28s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--steel);
}

.tape span.hl { color: var(--ignition); }

@keyframes scroll-tape {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .tape { animation: none; overflow-x: auto; }
}

/* ---------- Cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--ignition-dim); }

.card .icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1.3rem;
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--steel); font-size: 0.94rem; }

.card .price-tag {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--teal);
}

/* ---------- Process steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  position: relative;
  padding-top: 18px;
  border-top: 2px solid var(--line);
}

.step .code {
  font-family: var(--font-mono);
  color: var(--ignition);
  font-size: 0.82rem;
  margin-bottom: 10px;
  display: block;
}

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--steel); font-size: 0.9rem; }

/* ---------- Coverage / promise strip ---------- */

.promise-strip {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 30px;
  background: linear-gradient(180deg, var(--panel), var(--panel-2));
}

.promise-item { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 220px; }
.promise-item .glyph { color: var(--ignition); font-family: var(--font-mono); font-size: 1.1rem; }
.promise-item h4 { font-size: 0.98rem; margin-bottom: 4px; }
.promise-item p { color: var(--steel); font-size: 0.86rem; }

/* ---------- Testimonials ---------- */

.testi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
}

.testi .stars { color: var(--ignition); margin-bottom: 12px; letter-spacing: 2px; }
.testi p { color: var(--white); font-size: 0.94rem; margin-bottom: 16px; }
.testi .who { color: var(--steel); font-size: 0.84rem; font-family: var(--font-mono); }

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item summary {
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--ignition);
  font-size: 1.4rem;
  margin-left: 20px;
}
.faq-item[open] summary::after { content: '\2212'; }

.faq-item .faq-body {
  padding-bottom: 22px;
  color: var(--steel);
  font-size: 0.94rem;
  max-width: 68ch;
}

/* ---------- Forms ---------- */

.form-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 34px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  color: var(--steel);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--ignition);
  outline-offset: 1px;
  border-color: var(--ignition);
}

.field { margin-bottom: 16px; }
textarea { resize: vertical; min-height: 110px; }

/* ---------- CTA band ---------- */

.cta-band {
  background: radial-gradient(ellipse at top left, rgba(255, 176, 32, 0.12), transparent 60%), var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--steel); margin-bottom: 30px; }
.cta-band .hero-actions { justify-content: center; }

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

footer.site-footer {
  background: var(--bg-deep);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 18px;
}

.footer-grid ul li { margin-bottom: 10px; }
.footer-grid ul li a { color: var(--white); font-size: 0.92rem; }
.footer-grid ul li a:hover { color: var(--ignition); }

.footer-about p { color: var(--steel); font-size: 0.9rem; max-width: 34ch; margin-top: 14px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--steel-dim);
  flex-wrap: wrap;
  gap: 12px;
}

.sticky-call {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ignition);
  color: #14100a;
  padding: 14px 20px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

@media (min-width: 900px) { .sticky-call { display: none; } }

/* ---------- Page hero (interior pages) ---------- */

.page-hero {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel), var(--bg));
}

.page-hero .lede { margin-top: 14px; }

/* ---------- Utility ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal);
}

.map-embed {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.map-embed iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
