/* shared styles */

:root {
  --black: #0d0d0d;
  --black-soft: #161616;
  --red: #c8202f;
  --red-dark: #97121e;
  --white: #ffffff;
  --gray-light: #f4f4f4;
  --gray-mid: #8a8a8a;
  --gray-border: #2a2a2a;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(0,0,0,.25);
}

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

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: #1c1c1c;
  background: var(--white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Oswald', 'Segoe UI', Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 .5em;
  color: var(--black);
}

p { margin: 0 0 1em; color: #3a3a3a; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding-left: 1.1em; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--red); }

/* Header */
.site-header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-logo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-text {
  font-family: 'Oswald', sans-serif;
  line-height: 1.1;
}
.brand-text .b1 { font-size: 17px; font-weight: 700; letter-spacing: .5px; }
.brand-text .b2 { font-size: 12px; color: var(--red); font-weight: 600; letter-spacing: 1px; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
nav.main-nav a:hover,
nav.main-nav a.active { border-color: var(--red); color: var(--red); }

.header-cta { display: flex; align-items: center; gap: 14px; }
.header-phone {
  color: var(--white);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}
.header-phone span { color: var(--red); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
}

/* Top info bar */
.topbar {
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  text-align: center;
  padding: 6px 10px;
  font-family: 'Oswald', sans-serif;
  letter-spacing: .5px;
}

/* Hero */
.hero {
  background:
    linear-gradient(120deg, rgba(13,13,13,.94), rgba(13,13,13,.8)),
    radial-gradient(circle at 80% 20%, rgba(200,32,47,.35), transparent 55%),
    url('/images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  padding: 90px 20px 70px;
}
.hero .container { text-align: left; }
.hero h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  max-width: 720px;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  color: #d8d8d8;
  font-size: 18px;
  max-width: 560px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-rating {
  margin-top: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ddd;
  font-size: 15px;
}
.hero-rating .stars { color: #ffb400; letter-spacing: 2px; }

/* Page header (interior pages) */
.photo-band { height: 320px; background: url('/images/secondary.jpg') center / cover no-repeat fixed; }

.page-header {
  background: var(--black);
  color: var(--white);
  padding: 60px 20px;
  text-align: center;
  border-bottom: 4px solid var(--red);
}
.page-header h1 { color: var(--white); }
.page-header p { color: #cfcfcf; max-width: 600px; margin: 0 auto; }

/* Trust badges */
.badges {
  background: var(--gray-light);
  padding: 30px 20px;
}
.badges .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.badge-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid #e4e4e4;
  border-radius: 30px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  color: #222;
}
.badge-chip .dot { color: var(--red); font-size: 18px; line-height: 0; }

/* Sections */
section { padding: 70px 20px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .eyebrow {
  color: var(--red);
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
}

/* Services grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: var(--black);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

/* Dark CTA band */
.cta-band {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 60px 20px;
}
.cta-band h2 { color: var(--white); }
.cta-band p { color: #ccc; }
.cta-band .hero-actions { justify-content: center; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 26px;
  border-left: 4px solid var(--red);
}
.testimonial .stars { color: #ffb400; letter-spacing: 2px; margin-bottom: 10px; display: block; }
.testimonial p.quote { font-style: italic; color: #333; font-size: 15px; }
.testimonial .who { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 14px; color: var(--black); }
.testimonial .when { font-size: 12px; color: var(--gray-mid); }

.rating-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0 auto 40px;
}
.rating-score {
  font-family: 'Oswald', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--black);
}
.rating-banner .stars { color: #ffb400; font-size: 22px; letter-spacing: 3px; }
.rating-banner .count { color: var(--gray-mid); font-size: 14px; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 50px;
  align-items: start;
}
.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ececec;
  font-size: 15px;
  color: #333;
}
.value-list li .check { color: var(--red); font-weight: 700; }

.team-note {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 26px;
  margin-top: 20px;
}
.team-note h3 { font-size: 17px; }

/* Quote form */
.quote-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 34px;
  border-left: 4px solid var(--red);
}
.quote-card h2 { margin-bottom: 8px; }
.quote-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.form-row { display: flex; gap: 14px; }
.form-row > * { flex: 1; min-width: 0; }
.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14.5px;
  color: #1c1c1c;
  background: var(--white);
}
.quote-form textarea { resize: vertical; }
.quote-form button { align-self: flex-start; }

/* Status Board */
.status-search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--gray-light);
  padding: 24px;
  border-radius: var(--radius);
  margin-bottom: 36px;
}
.status-search input {
  flex: 1;
  min-width: 140px;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
.status-search button { flex-shrink: 0; }

.status-cards { display: flex; flex-direction: column; gap: 18px; }
.status-card {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 14px rgba(0,0,0,.04);
}
.status-card .top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.status-card .vehicle { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 18px; color: var(--black); }
.status-card .plate {
  font-family: 'Oswald', sans-serif;
  background: var(--black);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 13px;
  letter-spacing: 1px;
}
.status-card .mechanic { font-size: 13.5px; color: var(--gray-mid); }

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.pill-inspection { background: #eef1ff; color: #3949ab; }
.pill-waiting { background: #fff3e0; color: #e65100; }
.pill-repair { background: #fde8e8; color: var(--red); }
.pill-final { background: #fff8e1; color: #b8860b; }
.pill-complete { background: #e6f7ec; color: #1e7e34; }

.stepper {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  position: relative;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 9px; left: 0; right: 0;
  height: 3px;
  background: #e6e6e6;
  z-index: 0;
}
.step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.step .dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #e6e6e6;
  border: 3px solid var(--white);
}
.step.done .dot { background: var(--red); }
.step span.label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .3px; color: var(--gray-mid); text-align: center; }
.step.done span.label { color: var(--black); font-weight: 600; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--gray-mid); }

/* Admin */
.login-box {
  max-width: 380px;
  margin: 0 auto;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 36px;
}
.login-box label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #333; }
.login-box input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
}
.login-box .btn { width: 100%; margin-top: 20px; }
.login-error { color: var(--red); font-size: 13.5px; margin-top: 10px; display: none; }

.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.admin-table th, .admin-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #ececec; font-size: 14px; }
.admin-table th { font-family: 'Oswald', sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; color: var(--gray-mid); }
.admin-table select, .admin-table input {
  padding: 7px 8px;
  border: 1px solid #dcdcdc;
  border-radius: 5px;
  font-size: 13.5px;
  font-family: inherit;
  width: 100%;
}
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.add-car-form {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  background: var(--gray-light);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}
.add-car-form input, .add-car-form select {
  padding: 10px;
  border: 1px solid #dcdcdc;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
}
.save-msg { font-size: 12.5px; color: #1e7e34; margin-left: 8px; display: none; }

/* Service photo cards */
.service-photo { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 50px;
}
.info-card {
  background: var(--black);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px;
}
.info-card h3 { color: var(--white); font-size: 18px; margin-top: 22px; }
.info-card h3:first-child { margin-top: 0; }
.info-card p, .info-card a { color: #d8d8d8; font-size: 15px; }
.info-card a.link-red { color: var(--red); font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.hours-table td { padding: 6px 0; font-size: 14.5px; color: #d8d8d8; border-bottom: 1px solid #262626; }
.hours-table td:last-child { text-align: right; color: var(--white); font-weight: 600; }

.review-list { display: flex; flex-direction: column; gap: 18px; }
.review {
  background: var(--white);
  border: 1px solid #ececec;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.review .stars { color: #ffb400; letter-spacing: 2px; }
.review p.quote { margin: 8px 0 10px; color: #333; font-size: 15px; }
.review .meta { font-size: 13px; color: var(--gray-mid); }
.review .meta strong { color: var(--black); }

/* Footer */
footer.site-footer {
  background: var(--black-soft);
  color: #bbb;
  padding: 50px 20px 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}
.footer-grid h4 { color: var(--white); font-size: 15px; }
.footer-grid a { display: block; color: #b6b6b6; font-size: 14px; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--red); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { font-family: 'Oswald', sans-serif; color: var(--white); font-weight: 700; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  font-size: 12.5px;
  color: #777;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Mobile */
@media (max-width: 900px) {
  .grid, .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 20px 20px;
    gap: 14px;
    display: none;
    border-bottom: 3px solid var(--red);
  }
  nav.main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-phone { display: none; }
  .grid, .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { flex-direction: column; }
  .add-car-form { grid-template-columns: 1fr; }
  .admin-table { display: block; overflow-x: auto; white-space: nowrap; }
  .hero { padding: 60px 20px 50px; text-align: center; }
  .hero .container { text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-rating { justify-content: center; }
}
