/* Shared site styles used by every page. */

:root {
  color-scheme: dark;
  --red: #c8102e;
  --red-dark: #9b0c23;
  --red-glow: rgba(200, 16, 46, 0.25);
  --black: #080808;
  --surface: #131313;
  --surface2: #1c1c1c;
  --border: #2a2a2a;
  --text: #f0f0f0;
  --text-muted: #888;
  --white: #ffffff;
  --nav-height: clamp(70px, 8vw, 80px);
}

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

html {
  scroll-behavior: smooth;
}

html.hash-load-no-smooth {
  scroll-behavior: auto;
}

body {
  background: var(--black);
  color: var(--text);
  font-family: "Barlow", sans-serif;
}

.legal-inline-link {
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.legal-inline-link:hover {
  color: var(--white);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  text-align: center;
}

.footer-legal-links a {
  color: var(--text-muted);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-legal-links a:hover {
  color: var(--red);
}

html[data-theme="light"] .legal-inline-link:hover {
  color: #050505;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #000;
  border-bottom: 1px solid var(--border);
  height: clamp(70px, 8vw, 80px);
  margin: 0;
  border-top: none;
}

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.burger {
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 1002;
  display: none;
  visibility: hidden;
  pointer-events: none;
  flex-direction: column;
  justify-content: space-between;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .burger {
    display: flex;
    visibility: visible;
    pointer-events: auto;
  }
}

@media (min-width: 901px) {
  .burger {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.burger span {
  display: block;
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.burger.open span:nth-child(1) {
  transform: translateY(10.8px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-10.8px) rotate(-45deg);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

.nav-logo {
  --nav-logo-height: clamp(30px, 4vw, 48px);
  display: flex;
  align-items: center;
  height: 100%;
  width: calc(var(--nav-logo-height) * 6.814);
  flex-shrink: 0;
  margin-right: clamp(24px, 4vw, 64px);
  text-decoration: none;
}

.nav-logo-mark {
  display: block;
  width: 100%;
  height: var(--nav-logo-height);
  background-image: url("../images/banner.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

html[data-theme="light"] .nav-logo-mark {
  background-image: url("../images/bannerwhite.png");
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2vw, 36px);
  list-style: none;
  flex: 1;
  justify-content: flex-start;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: clamp(13px, 1.3vw, 20px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

@media (min-width: 901px) and (max-width: 1240px) {
  .nav-inner {
    padding-inline: clamp(12px, 1.6vw, 20px);
  }

  .nav-logo {
    --nav-logo-height: clamp(30px, 3.35vw, 42px);
    margin-right: clamp(14px, 2vw, 28px);
  }

  .nav-links {
    gap: clamp(10px, 1.35vw, 18px);
  }

  .nav-links a {
    font-size: clamp(13px, 1.42vw, 17px);
    letter-spacing: clamp(0.035em, 0.06vw, 0.07em);
  }

  .nav-right {
    gap: clamp(8px, 1vw, 12px);
  }

  .nav-auth {
    margin-right: clamp(4px, 0.8vw, 10px);
  }

  .nav-auth.signed-in .nav-auth-button {
    padding-inline: clamp(7px, 0.9vw, 10px);
  }
}

.nav-links a:hover {
  color: var(--red);
}

.nav-links a.active {
  color: var(--red);
}

.nav-auth {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: clamp(10px, 1.25vw, 18px);
}

.nav-auth-button {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: row;
  gap: 8px;
  border: 1px solid rgba(200, 16, 46, 0.65);
  border-radius: 999px;
  background: rgba(200, 16, 46, 0.12);
  color: var(--white);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.nav-auth-button:hover,
.nav-auth.open .nav-auth-button {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-1px);
}

.nav-auth-button svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.nav-auth.signed-in .nav-auth-button {
  width: auto;
  min-width: 42px;
  height: auto;
  min-height: 42px;
  padding: 6px 11px;
  border-radius: 999px;
}

.nav-auth-name {
  max-width: 120px;
  overflow: hidden;
  color: currentColor;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-auth-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(290px, calc(100vw - 32px));
  padding: 12px;
  display: grid;
  gap: 10px;
  background: rgba(8, 8, 8, 0.98);
  border: 1px solid rgba(200, 16, 46, 0.55);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.nav-auth-menu.login-mode {
  width: min(460px, calc(100vw - 32px));
  padding: 22px;
  border-color: rgba(200, 16, 46, 0.86);
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(255, 255, 255, 0.025) 42%, rgba(8, 8, 8, 0.98)),
    rgba(8, 8, 8, 0.98);
}

.nav-auth-menu.account-mode {
  width: min(310px, calc(100vw - 32px));
}

.nav-auth-identity {
  display: grid;
  gap: 4px;
  padding: 8px 12px 12px;
  border-bottom: 1px solid rgba(200, 16, 46, 0.38);
}

.nav-auth.open .nav-auth-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-auth-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 16px;
  width: 12px;
  height: 12px;
  background: inherit;
  border-left: 1px solid rgba(200, 16, 46, 0.55);
  border-top: 1px solid rgba(200, 16, 46, 0.55);
  transform: rotate(45deg);
}

.nav-auth-option {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--white);
  text-decoration: none;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  font: inherit;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.nav-auth-option:hover {
  background: rgba(200, 16, 46, 0.15);
  border-color: var(--red);
  transform: translateY(-1px);
}

.nav-auth-option.primary {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  border-color: rgba(200, 16, 46, 0.85);
  background: rgba(200, 16, 46, 0.18);
}

.nav-login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
}

.nav-login-panel h3 {
  margin: 0;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 0.85;
  text-transform: uppercase;
}

.nav-login-panel p {
  margin: -8px 0 6px;
  color: #d0d0d0;
  font-size: 0.95rem;
}

.nav-login-panel .nav-auth-option.primary {
  display: flex;
  justify-content: center;
  min-height: 48px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
}

.nav-auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  color: #dcdcdc;
  font-family: "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.nav-auth-divider span {
  height: 1px;
  background: rgba(200, 16, 46, 0.65);
}

.nav-auth-form {
  display: grid;
  gap: 14px;
}

.nav-auth-form label {
  display: grid;
  gap: 9px;
}

.nav-auth-form label > span,
.nav-password-row {
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
}

.nav-password-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-password-row a,
.nav-auth-register a {
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav-auth-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(200, 16, 46, 0.9);
  border-radius: 6px;
  background: #050505;
  color: var(--white);
  font: 500 1rem "Barlow", sans-serif;
  outline: none;
  padding: 14px 16px;
}

.nav-auth-form input:focus {
  border-color: var(--white);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.22);
}

.nav-password-input {
  position: relative;
  display: block;
  width: 100%;
}

.nav-password-input input {
  padding-right: 58px;
}

.nav-password-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--red) !important;
  cursor: pointer;
  transform: translateY(-50%);
}

.nav-password-toggle:hover,
.nav-password-toggle:focus-visible {
  color: #ff3155 !important;
  background: rgba(200, 16, 46, 0.18);
}

.nav-password-toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.nav-password-toggle svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor !important;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-password-toggle .password-eye-closed,
.nav-password-toggle[aria-pressed="true"] .password-eye-open {
  display: none;
}

.nav-password-toggle[aria-pressed="true"] .password-eye-closed {
  display: block;
}

.nav-auth-submit {
  min-height: 48px;
  border: 1px solid #050505;
  border-radius: 6px;
  background: var(--red);
  color: var(--white);
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-auth-submit:hover {
  background: var(--white);
  border-color: var(--white);
  color: #050505;
}

.nav-auth-error {
  color: #ffd166;
  font-weight: 700;
}

.nav-auth-register {
  margin: 0;
  text-align: center;
}

.nav-auth-google-icon {
  width: 24px;
  height: 24px;
}

.nav-auth-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.nav-auth-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-auth-subtitle {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
  padding: 9px 22px;
  border-radius: 3px;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--red-dark);
}

.mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  min-height: 60px;
  display: flex;
  flex-direction: row;
  background: #56000e;
  z-index: 999;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
}

.mobile-menu.open {
  max-height: 60px;
  opacity: 1;
  pointer-events: auto;
}

.modal-review-button {
  display: block;
  width: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.modal-review-button:hover {
  border-color: var(--red);
  background: var(--surface2);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(200, 16, 46, 0.12);
}

.modal-review-button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.mobile-menu a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 12px 6px;
  color: white;
  text-decoration: none;
  text-align: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.25s ease;
}

.mobile-menu a:last-child {
  border-right: none;
}

.mobile-menu a:hover {
  background: #991229;
}

.floating-book-btn {
  position: fixed;
  top: calc(var(--nav-height) + var(--mobile-menu-height, 0px));
  right: max(0px, env(safe-area-inset-right));
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid #050505;
  border-radius: 0 0 4px 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition:
    top 0.3s ease,
    right 0.3s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.floating-book-btn:hover {
  background: var(--white);
  border-color: var(--red-dark);
  color: var(--red);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-label {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5vw, 56px);
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 16px;
}

.section-title span {
  color: var(--red);
}

@media (max-width: 900px) {
  .floating-book-btn {
    right: max(0px, env(safe-area-inset-right));
  }

  nav .nav-links {
    display: none;
  }

  .nav-auth {
    flex: 0 0 40px;
    margin-left: auto;
    margin-right: 10px;
  }

  .nav-auth-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }

  .nav-auth.signed-in .nav-auth-button {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
  }

  .nav-auth-name {
    display: none;
  }

  .nav-auth-menu {
    top: calc(100% + 12px);
    right: -48px;
  }

  .nav-auth-menu.login-mode {
    width: min(460px, calc(100vw - 22px));
    padding: 20px;
  }

  .nav-auth-menu::before {
    right: 62px;
  }

  .burger {
    flex: 0 0 32px;
    display: flex;
    margin-left: 0;
  }
}

/* Shared modal styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.85);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  width: min(700px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
}

.modal-header h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 900;
  font-size: clamp(24px, 6vw, 34px);
  line-height: 1;
  text-transform: uppercase;
}

.modal-close {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--red);
}

.modal-body {
  padding: clamp(20px, 5vw, 28px);
}

.modal-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 20px;
  border-radius: 4px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  opacity: 0.95;
}

.modal-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-detail {
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 12px 14px;
}

.modal-detail label {
  display: block;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.modal-job-tag,
.modal-job-link {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.modal-job-tag {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border-radius: 3px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
}

.modal-job-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--red);
  text-decoration: none;
}

.modal-review-section {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.service-card {
  cursor: pointer;
}

@media (max-width: 520px) {
  .modal-details {
    grid-template-columns: 1fr;
  }
}


/* Garage color accents */
.review-stars,
.review-cat,
.modal-stars {
  color: #ffd700;
}

.modal-vehicle {
  color: var(--text-muted);
}

.review-vehicle,
.review-meta .vehicle-name,
.job-vehicle {
  color: var(--red);
}

.review-meta,
.review-author,
.job-meta {
  gap: 12px;
}

.service-cat {
  color: #28d17c;
}

.job-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 10px;
  margin: -6px 0 20px;
}

.job-image-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
}


.modal-review-card {
  margin-top: 14px;
  background: var(--black);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: clamp(18px, 4vw, 24px);
}

.modal-review-card .review-stars {
  margin-bottom: 0;
}

.modal-review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.modal-review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(200, 16, 46, 0.15);
  border: 2px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.review-name {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  text-transform: uppercase;
}

.modal-review-card .review-vehicle {
  color: var(--text-muted);
  font-size: 12px;
}

.modal-review-card .review-text {
  margin-bottom: 18px;
}


.modal-review-card .review-title {
  color: var(--red);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 800;
  font-size: clamp(18px, 4vw, 22px);
  line-height: 1.15;
  text-transform: uppercase;
}


/* Theme toggle */
html[data-theme="light"] {
  color-scheme: light;
  --black: #f7f7f5;
  --surface: #ffffff;
  --surface2: #ececea;
  --border: #d7d7d2;
  --text: #171717;
  --text-muted: #5f5f5f;
  --white: #080808;
  --red-glow: rgba(200, 16, 46, 0.14);
}

html[data-theme="light"] body,
html[data-theme="light"] nav,
html[data-theme="light"] .mobile-menu {
  background: var(--black);
}

.theme-toggle {
  position: fixed;
  right: 14px;
  bottom: calc(70px + var(--floating-footer-lift, 0px));
  z-index: 6000;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid #050505;
  background: var(--red);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.used-car-offer-button {
  position: fixed;
  right: 14px;
  bottom: calc(14px + var(--floating-footer-lift, 0px));
  z-index: 5990;
  min-height: 44px;
  border: 1px solid #050505;
  border-radius: 5px;
  padding: 10px 15px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  font: 900 clamp(13px, 1.1vw, 16px) "Barlow Condensed", sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.used-car-offer-button:hover {
  transform: translateY(-2px);
  background: #fff;
  color: var(--red);
}

.used-car-offer-overlay {
  position: fixed;
  inset: 0;
  z-index: 7000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.used-car-offer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.used-car-offer-modal {
  position: relative;
  width: min(620px, 100%);
  border: 2px solid var(--red);
  border-radius: 7px;
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at 100% 0, rgba(200, 16, 46, 0.18), transparent 34%),
    #111;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.62);
  color: #fff;
}

.used-car-offer-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  padding: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
}

.used-car-offer-close:hover {
  color: var(--red);
}

.used-car-offer-kicker {
  margin-bottom: 9px;
  color: var(--red);
  font: 900 clamp(14px, 1.4vw, 18px) "Barlow Condensed", sans-serif;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.used-car-offer-modal h2 {
  margin: 0;
  font: 900 clamp(38px, 6vw, 64px)/0.95 "Barlow Condensed", sans-serif;
  text-transform: uppercase;
}

.used-car-offer-modal > p {
  margin: 20px 0 24px;
  color: #b8b8b8;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
}

.used-car-offer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.used-car-offer-actions a {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(200, 16, 46, 0.78);
  border-radius: 5px;
  padding: 14px;
  background: #070707;
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.used-car-offer-actions a:hover {
  border-color: #fff;
  background: rgba(200, 16, 46, 0.16);
}

.used-car-offer-actions strong {
  color: var(--red);
  font: 900 18px "Barlow Condensed", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.used-car-offer-actions span {
  overflow-wrap: anywhere;
  font-size: 14px;
}

body.used-car-modal-open {
  overflow: hidden;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: #080808;
  background: #ffffff;
  color: var(--red);
}

/* Light mode launch polish */
html[data-theme="light"] .floating-book-btn,
html[data-theme="light"] .nav-cta,
html[data-theme="light"] .modal-job-tag {
  color: #ffffff !important;
}

html[data-theme="light"] .modal-close,
html[data-theme="light"] .review-close {
  color: #080808 !important;
}

html[data-theme="light"] .modal-close:hover,
html[data-theme="light"] .review-close:hover {
  color: var(--red) !important;
}

html[data-theme="light"] .job-image-gallery img,
html[data-theme="light"] .modal-img {
  opacity: 1 !important;
  filter: none !important;
}

/* Light mode nav polish */
html[data-theme="light"] nav {
  background: #ffffff;
  border-bottom-color: #deded8;
}

html[data-theme="light"] .mobile-menu {
  background: #ffffff;
  border-bottom: 1px solid #deded8;
}

html[data-theme="light"] .mobile-menu a {
  color: #171717;
  border-color: #deded8;
}

html[data-theme="light"] .mobile-menu a:hover,
html[data-theme="light"] .mobile-menu a.active {
  color: var(--red);
  background: #f1f1ee;
}

/* Light mode filter and burger polish */
html[data-theme="light"] .filter-btn.active,
html[data-theme="light"] .admin-filter-bar .filter-btn.active {
  color: #ffffff !important;
}

html[data-theme="light"] .burger span,
html[data-theme="light"] .burger.open span {
  background: #080808;
}

html[data-theme="light"] .nav-auth-button {
  background: rgba(200, 16, 46, 0.1);
  color: #050505;
}

html[data-theme="light"] .nav-auth-button:hover,
html[data-theme="light"] .nav-auth.open .nav-auth-button {
  background: var(--red);
  color: #fff;
}

html[data-theme="light"] .nav-auth-menu {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .nav-auth-menu.login-mode {
  background:
    linear-gradient(135deg, rgba(200, 16, 46, 0.12), rgba(255, 255, 255, 0.94) 38%, rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.98);
}

html[data-theme="light"] .nav-auth-option {
  color: #050505;
  background: rgba(0, 0, 0, 0.025);
}

html[data-theme="light"] .nav-login-panel h3,
html[data-theme="light"] .nav-login-panel p,
html[data-theme="light"] .nav-auth-form label > span,
html[data-theme="light"] .nav-password-row,
html[data-theme="light"] .nav-password-row a,
html[data-theme="light"] .nav-auth-register a {
  color: #050505;
}

html[data-theme="light"] .nav-auth-form input {
  background: #fff;
  color: #050505;
}

html[data-theme="light"] .nav-auth-option:hover {
  background: rgba(200, 16, 46, 0.1);
}

/* Desktop theme toggle sizing */
@media (min-width: 801px) {
  .theme-toggle {
    right: 24px;
    bottom: calc(86px + var(--floating-footer-lift, 0px));
    width: 58px;
    height: 58px;
    font-size: 26px;
    border-radius: 999px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  }

  .used-car-offer-button {
    right: 24px;
    bottom: calc(24px + var(--floating-footer-lift, 0px));
    min-height: 50px;
    padding-inline: 18px;
  }
}

@media (max-width: 800px) {
  .theme-toggle {
    right: 14px;
    bottom: calc(70px + var(--floating-footer-lift, 0px));
    width: 44px;
    height: 44px;
    font-size: 20px;
    border-radius: 999px;
  }

  .used-car-offer-actions {
    grid-template-columns: 1fr;
  }
}

/* Touch press affordances */
@media (hover: none) and (pointer: coarse) {
  .floating-book-btn:active,
  .theme-toggle:active,
  .used-car-offer-button:active,
  .nav-cta:active,
  .mobile-menu a:active,
  button:active,
  a[class*="btn"]:active,
  .filter-btn:active,
  .review-arrow:active,
  .modal-close:active,
  .review-close:active {
    transform: translateY(-2px) scale(0.98);
  }
}

/* Touch hover affordances */
@media (hover: none) and (pointer: coarse) {
  .floating-book-btn.touch-hover,
  .theme-toggle.touch-hover,
  .used-car-offer-button.touch-hover,
  .nav-cta.touch-hover,
  .mobile-menu a.touch-hover,
  button.touch-hover,
  a[class*="btn"].touch-hover,
  .filter-btn.touch-hover,
  .review-arrow.touch-hover,
  .modal-close.touch-hover,
  .review-close.touch-hover {
    transform: translateY(-2px) scale(0.98);
  }
}

/* Viewport-clamped shared modals */
.modal-overlay {
  padding: clamp(12px, 3vw, 24px);
}

.modal {
  width: min(100%, 760px);
  max-width: calc(100vw - clamp(24px, 6vw, 48px));
  max-height: calc(100dvh - clamp(24px, 6vw, 48px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-img,
.job-modal-photo {
  max-height: min(46dvh, 420px);
  object-fit: cover;
}

@media (max-width: 800px) {
  .modal {
    width: min(100%, 430px);
    max-width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px);
  }
}

/* Shared token-based icon rendering */
.gg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-style: normal;
}
.gg-icon::before { display: block; }
.gg-icon-oil::before { content: "\1F6E2\FE0F"; }
.gg-icon-search::before { content: "\1F50D"; }
.gg-icon-wrench::before { content: "\1F527"; }
.gg-icon-lightning::before { content: "\26A1"; }
.gg-icon-chain::before { content: "\26D3\FE0F"; }
.gg-icon-gasket::before { content: "\1F300"; }
.gg-icon-brakes::before { content: "\1F6D1"; }
.gg-icon-suspension::before { content: "\1F529"; }
.gg-icon-transmission::before { content: "\2699\FE0F"; }
.gg-icon-ac::before { content: "\2744\FE0F"; }
.gg-icon-car::before { content: "\1F697"; }
.gg-icon-pin::before { content: "\1F4CD"; }
.gg-icon-phone::before { content: "\1F4DE"; }
.gg-icon-mail::before { content: "\2709\FE0F"; }
.gg-icon-clock::before { content: "\1F550"; }

.review-modal,
.modal-overlay {
  box-sizing: border-box;
  padding: clamp(12px, 3vw, 24px);
}

.review-modal-content,
.modal {
  margin-left: auto;
  margin-right: auto;
}
