/* ==========================================================================
   Harden Auto Body — site styles
   Single stylesheet, no framework. Mobile-first.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------
   Palette carried over from the original site's Bootswatch "Superhero" theme:
   orange #df691a (nav + buttons), navy #2b3e50 (canvas), slate #4e5d6c (rules).
   ------------------------------------------------------------------------ */
:root {
  --ink:        #2b3e50;   /* was Superhero's body background */
  --ink-deep:   #1d2b39;   /* darkened navy, for headers and footers */
  --ink-2:      #485563;
  --ink-3:      #4e5d6c;   /* Superhero's border slate */
  --paper:      #ffffff;
  --paper-2:    #f3f5f7;
  --paper-3:    #e2e7ec;
  --body:       #4a5866;
  --muted:      #75828f;
  --accent:     #df691a;   /* Superhero's brand orange, unchanged */
  --accent-dk:  #b15315;   /* Superhero's own :hover orange */
  --accent-soft:#fdf1e7;
  --ring:       rgba(223, 105, 26, .42);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif;

  --wrap: 1140px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(29, 43, 57, .06), 0 2px 8px rgba(29, 43, 57, .05);
  --shadow-md: 0 4px 12px rgba(29, 43, 57, .08), 0 12px 32px rgba(29, 43, 57, .09);
  --shadow-lg: 0 10px 24px rgba(29, 43, 57, .10), 0 28px 60px rgba(29, 43, 57, .14);

  --header-h: 68px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dk); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }
h4 { font-size: 1.05rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Layout helpers ----------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: clamp(48px, 8vw, 84px) 0; }
.section--tint { background: var(--paper-2); }
.section--ink  { background: var(--ink); color: #c3ccd8; }
.section--ink h2, .section--ink h3 { color: #fff; }

.section-head { max-width: 640px; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); font-size: 1.06rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block;
  font-size: .755rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.section--ink .eyebrow { color: #f0913f; }

.lead { font-size: 1.14rem; color: var(--body); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; text-decoration: none; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: 13px 24px;
  min-height: 48px;              /* comfortable mobile tap target */
  border: 2px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease,
              border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); color: #fff; box-shadow: var(--shadow-md); }

.btn--outline { border-color: var(--ink-3); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; background: rgba(255,255,255,.06); }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header / navigation ------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(29, 43, 57, .94);
  border-bottom: 3px solid var(--accent);   /* echo of the old orange navbar */
}
@supports (backdrop-filter: blur(10px)) {
  .site-header { background: rgba(29, 43, 57, .82); backdrop-filter: blur(14px) saturate(140%); }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { text-decoration: none; color: #fff; }
.brand img {
  width: 42px; height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex: none;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.015em; white-space: nowrap; }
.brand-sub {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93a0b1;
  font-weight: 600;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px; height: 46px;
  padding: 0 11px;
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%;
  background: #fff; border-radius: 2px;
  transition: transform .22s ease, opacity .18s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-menu {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--ink-deep);
  border-bottom: 1px solid rgba(255,255,255,.1);
  padding: 10px 20px 22px;
  box-shadow: var(--shadow-lg);
}
.nav-menu.is-open { display: block; }

.nav-menu ul { list-style: none; margin: 0; padding: 0; }
.nav-menu li + li { border-top: 1px solid rgba(255,255,255,.08); }
.nav-menu a {
  display: block;
  padding: 14px 2px;
  color: #d5dce5;
  font-weight: 600;
}
.nav-menu a:hover, .nav-menu a[aria-current="page"] { color: #fff; text-decoration: none; }
.nav-menu .nav-cta { margin-top: 16px; }
.nav-menu .nav-cta .btn { width: 100%; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav-menu ul { display: flex; align-items: center; gap: 2px; }
  .nav-menu li + li { border-top: 0; }
  .nav-menu a {
    padding: 9px 11px;
    border-radius: 8px;
    font-size: .92rem;
    white-space: nowrap;
    color: #b9c3d0;
  }
  .nav-menu a:hover { background: rgba(255,255,255,.09); color: #fff; }
  .nav-menu a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }
  .nav-menu .nav-cta { margin: 0 0 0 10px; }
  .nav-menu .nav-cta .btn { width: auto; padding: 9px 17px; min-height: 42px; font-size: .93rem; white-space: nowrap; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  color: #fff;
  background: var(--ink-deep);
  isolation: isolate;
  overflow: hidden;
}
/* Real <img> rather than a CSS background: it gets srcset, so phones do not
   download the full-size photo, and it decodes as a high-priority image. */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(29,43,57,.58) 0%, rgba(29,43,57,.78) 55%, rgba(29,43,57,.92) 100%);
  z-index: -1;
}
@media (max-width: 700px) {
  .hero::before {
    background: linear-gradient(180deg, rgba(29,43,57,.74) 0%, rgba(29,43,57,.86) 55%, rgba(29,43,57,.95) 100%);
  }
}
.hero-inner { padding: clamp(64px, 13vw, 128px) 0 clamp(52px, 10vw, 104px); max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: .45em; text-wrap: balance; }
.hero p { color: #cfd8e3; font-size: clamp(1.02rem, 2.1vw, 1.19rem); margin-bottom: 1.7em; max-width: 34em; }
.hero .btn-row { margin-bottom: 2rem; }

.hero-since {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #e7edf4;
  margin-bottom: 1.3rem;
}
.hero-since::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(223,105,26,.30);
}

/* --- Page banner (inner pages) ------------------------------------------ */
.page-banner {
  background: var(--ink-deep);
  color: #fff;
  padding: clamp(40px, 7vw, 66px) 0 clamp(36px, 6vw, 58px);
  border-bottom: 4px solid var(--accent);
}
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #b6c1cf; font-size: 1.08rem; max-width: 44em; margin: 0; }

/* --- Breadcrumb --------------------------------------------------------- */
.crumbs { font-size: .87rem; color: #93a0b1; margin-bottom: .9rem; }
.crumbs a { color: #cbd4de; }
.crumbs span { padding: 0 .45em; opacity: .55; }

/* --- Quick contact strip ------------------------------------------------ */
.quickbar { background: var(--paper-2); border-bottom: 1px solid var(--paper-3); }
.quickbar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--paper-3);
}
.quickbar-item {
  background: var(--paper-2);
  padding: 18px 4px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.quickbar-item .ico { color: var(--accent); flex: none; }
.quickbar-item .k {
  display: block;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.quickbar-item .v { display: block; font-weight: 700; color: var(--ink); font-size: 1.02rem; }
a.quickbar-item:hover { text-decoration: none; }
a.quickbar-item:hover .v { color: var(--accent); }
@media (min-width: 760px) {
  .quickbar-grid { grid-template-columns: repeat(3, 1fr); }
  .quickbar-item { padding: 20px 22px; justify-content: center; }
}

/* --- Cards -------------------------------------------------------------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 880px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card--lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6dde5; }

.card-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 15px;
}

/* --- Feature list ------------------------------------------------------- */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li {
  position: relative;
  padding-left: 32px;
  margin-bottom: .72em;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23df691a' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--ink .ticks li::before { background-color: rgba(255,255,255,.12); }
.ticks strong { color: var(--ink); }
.section--ink .ticks strong { color: #fff; }

/* --- Certification badges ----------------------------------------------- */
.badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  list-style: none;
  margin: 0; padding: 0;
}
.badges li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  box-shadow: var(--shadow-sm);
  font-weight: 650;
  color: var(--ink);
  font-size: .95rem;
}
.badges img { max-height: 38px; width: auto; flex: none; }
.badges .enterprise img { max-height: 22px; }

/* --- Media / figures ---------------------------------------------------- */
.figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper-2);
  box-shadow: var(--shadow-md);
}
.figure img { width: 100%; }
.figure figcaption {
  padding: 13px 18px;
  font-size: .92rem;
  color: var(--muted);
  background: var(--paper);
  border-top: 1px solid var(--paper-3);
}

.media {
  display: grid;
  gap: clamp(24px, 4vw, 46px);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .media { grid-template-columns: 1fr 1fr; }
  .media--flip .media-text { order: 2; }
}

/* --- Gallery ------------------------------------------------------------ */
.gallery { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .gallery--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery--3 { grid-template-columns: repeat(3, 1fr); } }

/* --- Before / after comparison ------------------------------------------ */
.stages { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) {
  .stages { grid-template-columns: repeat(3, 1fr); }
  .stages--2 { grid-template-columns: repeat(2, 1fr); }
}

.stage { position: relative; }
.stage .figure { height: 100%; display: flex; flex-direction: column; }
.stage .figure img { flex: 1 1 auto; object-fit: cover; }
.stage-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  background: var(--ink);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 999px;
}
.stage-tag--after { background: var(--accent); }

/* --- Contact / info panels ---------------------------------------------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--paper-3);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 { margin-bottom: .7em; }

.nap { font-style: normal; margin: 0 0 1.3em; font-size: 1.06rem; }
.nap strong { color: var(--ink); display: block; font-size: 1.12rem; margin-bottom: .15em; }

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 13px; align-items: flex-start; padding: 13px 0; }
.contact-list li + li { border-top: 1px solid var(--paper-3); }
.contact-list .ico { color: var(--accent); flex: none; margin-top: 3px; }
.contact-list .k {
  font-size: .72rem; letter-spacing: .11em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; display: block;
}
.contact-list .v { font-weight: 650; color: var(--ink); font-size: 1.04rem; }
.contact-list a.v:hover { color: var(--accent); }

.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--paper-3); }
.hours th { font-weight: 650; color: var(--ink); }
.hours td { text-align: right; color: var(--body); font-variant-numeric: tabular-nums; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: 0; }
.hours .closed { color: var(--muted); }

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--paper-3);
  background: var(--paper-2);
}
.map-embed iframe { display: block; width: 100%; height: 380px; border: 0; }

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 52px;
  margin-bottom: 1.35em;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
}
.steps strong { color: var(--ink); display: block; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%);
  color: #fff;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); max-width: 40em; margin-inline: auto; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; }
.cta-band .btn--ghost { border-color: rgba(255,255,255,.7); }
.cta-band .btn--solid { background: #fff; color: var(--accent-dk); border-color: #fff; }
.cta-band .btn--solid:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

/* --- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--ink-deep);
  color: #97a3b2;
  padding: clamp(44px, 6vw, 66px) 0 0;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: 1fr;
  padding-bottom: 34px;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; } }

.site-footer h4 {
  color: #fff;
  font-size: .78rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 1.1em;
}
.site-footer a { color: #b9c4d1; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .62em; }
.site-footer address { font-style: normal; line-height: 1.75; }
.site-footer .footer-brand {
  display: flex; align-items: center; gap: 11px;
  color: #fff; margin-bottom: 1rem;
}
.site-footer .footer-brand img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.site-footer .footer-brand span { font-weight: 800; font-size: 1.05rem; letter-spacing: -.015em; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .87rem;
  color: #7d8a9a;
}
.footer-bottom .tagline { font-style: italic; color: #b9c4d1; }
@media (min-width: 620px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* --- Sticky mobile call bar --------------------------------------------- */
.callbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255,255,255,.16);
  box-shadow: 0 -4px 20px rgba(29,43,57,.22);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.callbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 8px;
  background: var(--ink-deep);
  color: #fff;
  font-weight: 700;
  font-size: .97rem;
}
.callbar a:hover { text-decoration: none; }
.callbar a.is-call { background: var(--accent); }
@media (min-width: 1040px) { .callbar { display: none; } }
@media (max-width: 1039px) { body { padding-bottom: 62px; } }

/* --- Tesla ---------------------------------------------------------------
   The official "Tesla Approved Body Shop" lockup is black artwork on an
   opaque white background, so it is never recolored -- it sits on a white
   plate wherever the surrounding section is dark.
   ------------------------------------------------------------------------ */
/* Two artwork files, no plate: the black lockup on light backgrounds and a
   reversed white one on dark. The badge itself is now just a sizing wrapper. */
.tesla-badge { display: inline-block; line-height: 0; }
.tesla-badge img { width: 100%; max-width: 172px; height: auto; }
.tesla-badge--sm img { max-width: 132px; }
.tesla-badge--lg img { max-width: 216px; }

.tesla-chip {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: #e7edf4;
  font-size: .95rem;
  transition: background-color .18s ease, border-color .18s ease, transform .12s ease;
}
.tesla-chip:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.tesla-chip .tesla-badge {
  flex: none;
  padding-right: 16px;
  border-right: 1px solid rgba(255,255,255,.3);
}
.tesla-chip-text strong { color: #fff; font-weight: 750; }
@media (max-width: 560px) {
  .tesla-chip { border-radius: var(--radius-sm); align-items: flex-start; flex-wrap: wrap; }
  .tesla-chip svg { display: none; }
}

.tesla-band {
  background: #17222d;
  color: #b9c6d2;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.tesla-band h2, .tesla-band h3 { color: #fff; }
.tesla-band .lead { color: #d3dde6; }
.tesla-band .tesla-badge { display: block; margin-bottom: 1.5rem; }

.page-banner .tesla-badge { display: block; margin-bottom: 1.4rem; }

.ticks--light li { color: #c5d0da; }
.ticks--light li::before { background-color: rgba(255,255,255,.13); }
.ticks--light strong { color: #fff; }

.badges .badge-tesla { padding: 10px 14px; gap: 12px; }

.tesla-note {
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--paper-3);
  padding-top: 1.1rem;
  margin-top: 2.4rem;
}
.section--ink .tesla-note, .tesla-band .tesla-note {
  color: #8b9aa8;
  border-top-color: rgba(255,255,255,.12);
}

/* --- Team ---------------------------------------------------------------- */
.stat-num {
  font-size: clamp(2.1rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--accent);
  margin: 0 0 .35rem;
  font-variant-numeric: tabular-nums;
}
.card.center h3 { margin-bottom: .5em; }
.card.center p:not(.stat-num) { color: var(--muted); font-size: .97rem; }

/* Used only once individual team members are added; see index.html. */
.team-photo {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 1.1rem;
}
.team-role {
  color: var(--accent);
  font-weight: 700;
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .8em;
}

/* --- Editorial note ------------------------------------------------------
   Staging-only callout. build.py strips these from production builds.
   ------------------------------------------------------------------------ */
.editor-note {
  background: repeating-linear-gradient(45deg, #fff8e6, #fff8e6 14px, #fdf2d6 14px, #fdf2d6 28px);
  border-bottom: 3px solid #e0a800;
  color: #5c4708;
  padding: 22px 0;
  font-size: .96rem;
}
.editor-note p { margin-bottom: .7em; }
.editor-note strong { color: #3d2f05; }
.editor-note ul { margin: 0 0 .9em; padding-left: 1.25em; }
.editor-note li { margin-bottom: .5em; }
.editor-note-tag {
  display: inline-block;
  background: #e0a800;
  color: #2b2100;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: .9em !important;
}

/* --- Utilities ---------------------------------------------------------- */
.prose { max-width: 62ch; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 1.4rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --- Scroll reveal ------------------------------------------------------
   Gated on .js so that with JavaScript off nothing is ever hidden. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s cubic-bezier(.22,.7,.3,1);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .site-header, .callbar, .cta-band, .nav-toggle { display: none !important; }
  body { color: #000; font-size: 12pt; padding-bottom: 0; }
  .hero, .page-banner, .site-footer { background: #fff !important; color: #000 !important; }
  .hero h1, .page-banner h1, .site-footer h4 { color: #000 !important; }
  .hero::before { display: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
