/* ============================================================
   TRANSMISSIONS 4 LESS — Design System
   Concept: the repair ticket / work order. Every block on this
   site behaves like a line item on a shop ticket: a stamped
   eyebrow, a clear field, a result. Palette pulled from the
   shop's actual ASE Master Technician certifications.
   ============================================================ */

:root {
  /* --- Color: lifted from the ASE badge + shop signage --- */
  --navy:        #18222C;   /* ticket board / steel */
  --navy-2:      #212E3B;   /* lighter steel panel  */
  --ase-blue:    #2E5FA3;   /* ASE gear blue        */
  --ase-blue-d:  #1F4377;
  --amber:       #E8A13D;   /* hazard-stripe amber  */
  --amber-d:     #C5811F;
  --paper:       #F4F1EA;   /* aged ticket paper    */
  --paper-2:     #ECE6D9;
  --ink:         #22262B;   /* charcoal print       */
  --ink-soft:    #4B5258;
  --line:        #D8D0BD;   /* perforation / rule   */
  --ok-green:    #3C7A4E;

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", -apple-system, sans-serif;
  --font-mono: "Roboto Mono", "Courier New", monospace;

  --radius: 3px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin: 0;
  line-height: 1.15;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber-d);
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber-d);
  display: inline-block;
}

/* Visible keyboard focus, everywhere */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--ase-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ============================================================
   TOP STRIP — ticket header fields (phone / hours / address)
   ============================================================ */
.top-strip {
  background: var(--navy);
  color: #D9DEE4;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border-bottom: 3px solid var(--amber);
}
.top-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  padding: 9px 24px;
  align-items: center;
  justify-content: space-between;
}
.top-strip .field { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.top-strip .field b { color: var(--amber); font-weight: 600; }
.top-strip a.tel { color: #fff; font-weight: 600; letter-spacing: 0.02em; }
.top-strip a.tel:hover { color: var(--amber); }

/* ============================================================
   NAVIGATION — ticket-tab style
   ============================================================ */
.site-nav {
  background: var(--navy-2);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #324354;
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}
.brand .gear {
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.brand small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: var(--amber);
  font-weight: 400;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 22px 16px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C7CFD8;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.nav-links a.active { color: #fff; border-bottom-color: var(--amber); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #41566c;
  border-radius: var(--radius);
  color: #fff;
  padding: 8px 10px;
  font-size: 1.1rem;
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--navy-2);
    border-bottom: 3px solid var(--amber);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 16px 24px; border-bottom: 1px solid #2b3a49; border-left: 3px solid transparent; }
  .nav-links a.active { border-left-color: var(--amber); border-bottom-color: #2b3a49; }
}

/* ============================================================
   HERO — the ticket stub
   ============================================================ */
.hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 64px 0 0;
}
.hero::before {
  /* subtle diagonal hazard texture, very low opacity */
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(232,161,61,0.05) 0 14px, transparent 14px 28px);
  pointer-events: none;
}
.hero .wrap { position: relative; max-width: 760px; padding-bottom: 64px; }
.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 18px;
}
.hero-copy h1 span { color: var(--amber); }
.hero-copy p {
  color: #C7CFD8;
  font-size: 1.1rem;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px;}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .12s, background .15s, color .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #f2b659; }
.btn-outline { border-color: #4a5e72; color: #fff; }
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }

/* Ticket stub — the signature element */
.ticket-stub {
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px 6px 0 0;
  padding: 26px 26px 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  position: relative;
}
.ticket-stub::before, .ticket-stub::after {
  content: "";
  position: absolute;
  width: 26px; height: 26px;
  background: var(--navy);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.ticket-stub::before { left: -13px; }
.ticket-stub::after { right: -13px; }
.ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px dashed var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.ticket-head .num { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
.ticket-head h3 { font-size: 1rem; color: var(--navy); }
.ticket-rows { display: flex; flex-direction: column; gap: 10px; padding-bottom: 18px; }
.ticket-row { display: flex; justify-content: space-between; font-size: 0.92rem; gap: 12px; }
.ticket-row .label { color: var(--ink-soft); }
.ticket-row .val { font-weight: 600; text-align: right; }
.ticket-row .val.ok { color: var(--ok-green); }
.ticket-badge {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  padding: 10px 12px; border-radius: var(--radius); margin-top: 4px;
}
.ticket-badge img { width: 34px; height: 34px; object-fit: contain; border-radius: 50%; }
.ticket-badge span { font-size: 0.8rem; font-weight: 600; color: var(--navy); line-height: 1.25; }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 10px; }
.section-head p { color: var(--ink-soft); margin-top: 12px; font-size: 1.05rem; }

.bg-navy { background: var(--navy); color: #fff; }
.bg-navy h2 { color: #fff; }
.bg-navy .section-head p { color: #B9C2CC; }
.bg-paper-2 { background: var(--paper-2); }

/* Service line items */
.line-items { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.line-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.line-item .li-num { font-family: var(--font-mono); color: var(--amber-d); font-size: 0.95rem; }
.line-item .li-title { font-family: var(--font-display); text-transform: uppercase; font-size: 1.02rem; letter-spacing: 0.02em; color: var(--navy); }
.line-item .li-desc { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; font-family: var(--font-body); text-transform: none; letter-spacing: 0; }
.line-item .li-toggle {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--ase-blue);
  border: 1px solid var(--ase-blue); border-radius: var(--radius);
  padding: 7px 12px; background: none; cursor: pointer; white-space: nowrap;
}
.line-item .li-toggle:hover { background: var(--ase-blue); color: #fff; }
.line-item-body {
  grid-column: 1 / -1;
  display: none;
  padding: 4px 4px 12px 86px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.line-item-body.open { display: block; }
.line-item-body img { float: left; width: 180px; margin: 0 18px 12px 0; border-radius: var(--radius); }
.line-item-body p { margin: 0 0 10px; }
.line-item.is-open .li-toggle { background: var(--ase-blue); color: #fff; }

/* Symptom checklist (transmission rebuild) */
.symptom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.symptom-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.96rem; color: var(--ink-soft);
}
.symptom-list b { color: var(--navy); font-family: var(--font-body); }
.symptom-list .mark { color: var(--amber-d); font-weight: 700; flex-shrink: 0; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px;
}
.card .ic { width: 38px; height: 38px; color: var(--ase-blue); margin-bottom: 14px; }
.card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }

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

/* Video card */
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
}
.video-card .video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.video-card .video-head h3 { font-size: 0.95rem; }
.video-card .video-head .eyebrow { margin: 0; }
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--navy);
}
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Credentials strip */
.cred-strip {
  display: flex; gap: 28px; flex-wrap: wrap; align-items: center;
  padding-top: 28px; border-top: 1px solid #324354;
  margin-top: 36px;
}
.cred-strip .cred {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; color: #B9C2CC;
}
.cred-strip img { width: 30px; height: 30px; object-fit: contain; border-radius: 50%; }

/* Cert gallery (about page) */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cert-frame {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; text-align: center;
}
.cert-frame img { border-radius: 2px; margin: 0 auto 10px; max-height: 220px; object-fit: contain; }
.cert-frame .cap { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); }
@media (max-width: 760px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cert-grid { grid-template-columns: 1fr; } }

/* Map + info layout (contact) */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 880px) { .contact-layout { grid-template-columns: 1fr; } }

.info-block { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-block .ic { width: 22px; height: 22px; color: var(--ase-blue); flex-shrink: 0; margin-top: 2px; }
.info-block h4 { font-size: 0.95rem; margin-bottom: 4px; }
.info-block p, .info-block a { color: var(--ink-soft); font-size: 0.94rem; margin: 0; }
.info-block a:hover { color: var(--ase-blue); }

/* Form */
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-family: var(--font-mono); font-size: 0.78rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); font-family: var(--font-body); font-size: 0.98rem;
  background: #fff; color: var(--ink);
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--ase-blue); outline: none; box-shadow: 0 0 0 3px rgba(46,95,163,0.15); }
.form-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none;
  background: #E7F2EA; border: 1px solid var(--ok-green); color: #235636;
  padding: 14px 16px; border-radius: var(--radius); margin-bottom: 18px; font-size: 0.92rem;
}
.form-success.show { display: block; }

/* Map embed frame */
.map-frame {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; background: var(--paper-2);
}
.map-frame img, .map-frame iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }

/* Hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.hours-table td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; color: var(--navy); }
.hours-table tr.closed td:last-child { color: #B23B3B; }
.hours-table tr.lunch td { font-family: var(--font-mono); font-size: 0.82rem; color: var(--amber-d); }

/* Financing band */
.finance-band {
  display: flex; align-items: center; justify-content: space-between; gap: 30px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 32px; flex-wrap: wrap;
}
.finance-band img.koalafi { width: 160px; }
@media (max-width: 700px) { .finance-band { flex-direction: column; text-align: center; } }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4/3; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid .tag {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(24,34,44,0.88), transparent);
  color: #fff; font-family: var(--font-mono); font-size: 0.72rem;
  padding: 24px 10px 8px;
}
@media (max-width: 760px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }

/* Job openings (employment) */
.job-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.job-card h3 { font-size: 1rem; margin-bottom: 6px; }
.job-card .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.job-card .tag-pill {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ase-blue);
  border: 1px solid var(--ase-blue); border-radius: 20px; padding: 3px 10px;
}

/* Footer */
footer {
  background: var(--navy); color: #B9C2CC; padding: 50px 0 24px;
  font-size: 0.92rem; border-top: 4px solid var(--amber);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-grid h5 { color: #fff; font-family: var(--font-display); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a:hover { color: var(--amber); }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 10px; }
.footer-brand .gear { width: 26px; height: 26px; }
footer .legal { border-top: 1px solid #2b3a49; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Skip link for accessibility */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--amber); color: var(--navy); padding: 10px 16px; z-index: 200;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.skip-link:focus { left: 8px; top: 8px; }
