/* ============================================================
   My Tesla Dealer, Inc. — mytesladealer.com
   Palette: MTD red #8B1A1A / #CC0000 · MTD blue #1F4E8C
   Type: Archivo (display) · Public Sans (body) · IBM Plex Mono (spec)
   ============================================================ */

:root {
  --red: #8B1A1A;
  --red-bright: #CC0000;
  --navy: #1F4E8C;
  --navy-deep: #14345E;
  --ink: #1A2233;
  --steel: #5A6B85;
  --line: #D8DEE9;
  --mist: #F2F4F8;
  --paper: #FFFFFF;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --body: "Public Sans", -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", var(--body);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
}

img { max-width: 100%; display: block; }
a { color: var(--navy); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- utility bar ---------- */
.utility {
  background: var(--navy-deep);
  color: #C8D4E6;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .04em;
  padding: 7px 0;
}
.utility .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.utility strong { color: #fff; font-weight: 600; }
.utility a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.utility a:hover { color: #FFD9D9; }

/* ---------- header ---------- */
header.site {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { height: 52px; width: auto; }
nav.main { display: flex; align-items: center; gap: 28px; }
nav.main a {
  text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 15px;
}
nav.main a:hover { color: var(--red-bright); }
nav.main a.active { color: var(--red); }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  font-family: var(--display);
  background: var(--red); color: #fff;
  padding: 12px 22px; border: 0; cursor: pointer;
  font-size: 15px; letter-spacing: .01em;
}
.btn:hover { background: var(--red-bright); }
.btn.ghost {
  background: transparent; color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.btn.ghost:hover { color: var(--red-bright); box-shadow: inset 0 0 0 2px var(--red-bright); background: transparent; }
.btn.big { padding: 16px 30px; font-size: 17px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line); font-size: 22px; padding: 4px 12px; cursor: pointer; color: var(--ink); }

/* ---------- dual rule (logo-derived signature divider) ---------- */
.dual-rule { height: 6px; background: linear-gradient(to bottom, var(--red-bright) 0 3px, var(--navy) 3px 6px); border: 0; width: 88px; margin: 0 0 26px; }
.dual-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 80px; background:
  linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  font-family: var(--mono); font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red); font-weight: 600;
  margin-bottom: 18px;
}
h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(38px, 5vw, 58px); line-height: 1.04;
  letter-spacing: -.015em; margin-bottom: 22px;
}
h1 .blue { color: var(--navy); }
.hero p.lead { font-size: 19px; color: var(--steel); max-width: 34em; margin-bottom: 14px; }
.tagline { font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink); margin-bottom: 30px; }
.tagline span.es { color: var(--steel); font-weight: 500; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- spec plate (signature) ---------- */
.spec-plate {
  background: #fff; border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 var(--navy);
  font-family: var(--mono);
}
.spec-plate .plate-head {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; padding: 10px 16px;
  font-size: 12px; letter-spacing: .1em;
}
.spec-plate .stamp {
  color: var(--red-bright); border: 1.5px solid var(--red-bright);
  padding: 2px 8px; font-size: 11px; font-weight: 700;
  transform: rotate(-2deg); letter-spacing: .08em; background: #fff;
}
.spec-plate table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-plate td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec-plate td:first-child { color: var(--steel); width: 42%; letter-spacing: .04em; font-size: 12px; text-transform: uppercase; padding-right: 8px; }
.spec-plate td:last-child { font-weight: 600; }
.spec-plate .plate-foot { padding: 11px 16px; border-top: 2px solid var(--ink); font-size: 11.5px; color: var(--steel); letter-spacing: .05em; }

/* ---------- sections ---------- */
section.band { padding: 76px 0; }
section.band.mist { background: var(--mist); }
section.band.navy { background: var(--navy-deep); color: #E7EDF6; }
h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(28px, 3.4vw, 38px); line-height: 1.12;
  letter-spacing: -.01em; margin-bottom: 16px;
}
section.band.navy h2 { color: #fff; }
.section-intro { color: var(--steel); max-width: 40em; font-size: 18px; }
section.band.navy .section-intro { color: #B9C7DC; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.step { background: #fff; border: 1px solid var(--line); padding: 28px 26px 30px; }
.step .k {
  font-family: var(--mono); font-size: 12px; color: var(--navy);
  letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 14px;
}
.step h3 { font-family: var(--display); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.step p { color: var(--steel); font-size: 15.5px; }

/* feature rows */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 44px; }
.feature { border-top: 4px solid var(--navy); padding-top: 20px; }
.feature:nth-child(2) { border-top-color: var(--red); }
.feature h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 8px; }
.feature p { color: var(--steel); font-size: 15.5px; }

/* retail teaser */
.teaser { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.teaser .chip {
  font-family: var(--mono); font-size: 12px; letter-spacing: .1em;
  color: #FFD9D9; border: 1px solid rgba(255,255,255,.35);
  padding: 4px 10px; display: inline-block; margin-bottom: 14px; text-transform: uppercase;
}
.btn.on-navy { background: #fff; color: var(--navy-deep); }
.btn.on-navy:hover { background: #E7EDF6; }

/* generic content pages */
.page-head { padding: 64px 0 46px; background: var(--mist); }
.page-head h1 { font-size: clamp(34px, 4.4vw, 50px); }
.page-head p { color: var(--steel); font-size: 19px; max-width: 42em; }
article.content { padding: 64px 0 80px; }
article.content .wrap { max-width: 860px; }
article.content h2 { font-size: 27px; margin-top: 46px; }
article.content h2:first-child { margin-top: 0; }
article.content p { margin-bottom: 18px; }
article.content ul { margin: 0 0 18px 22px; }
article.content li { margin-bottom: 10px; }
.note {
  border-left: 4px solid var(--red); background: var(--mist);
  padding: 18px 22px; margin: 26px 0; font-size: 15.5px;
}
.note strong { color: var(--red); }

/* forms */
form.mtd { max-width: 640px; margin-top: 34px; }
form.mtd label {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: .08em; text-transform: uppercase; color: var(--steel);
  margin: 22px 0 7px;
}
form.mtd input, form.mtd select, form.mtd textarea {
  width: 100%; padding: 13px 14px; font-family: var(--body); font-size: 16px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
}
form.mtd input:focus, form.mtd select:focus, form.mtd textarea:focus {
  outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy);
}
form.mtd textarea { min-height: 130px; resize: vertical; }
form.mtd .btn { margin-top: 30px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* contact cards */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 40px; }
.ccard { background: #fff; border: 1px solid var(--line); padding: 26px; }
.ccard h3 { font-family: var(--display); font-size: 19px; margin-bottom: 4px; }
.ccard .role { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--red); margin-bottom: 14px; }
.ccard p { font-size: 15.5px; margin-bottom: 6px; }

/* footer */
footer.site { background: var(--navy-deep); color: #B9C7DC; padding: 56px 0 34px; margin-top: 0; }
footer.site .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
footer.site img { height: 60px; width: auto; margin-bottom: 16px; }
footer.site h4 { color: #fff; font-family: var(--display); font-size: 15px; margin-bottom: 12px; letter-spacing: .02em; }
footer.site a { color: #D5DfEE; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
footer.site li { list-style: none; margin-bottom: 9px; font-size: 15px; }
footer.site p { font-size: 14.5px; }
.fineprint {
  border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; color: #8FA3C2;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* responsive */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .steps, .features { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer.site .cols { grid-template-columns: 1fr; gap: 28px; }
  nav.main {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 18px;
  }
  nav.main.open { display: flex; }
  .menu-toggle { display: block; }
  header.site .btn { display: none; }
}
