/* ===========================
   Carcleaning de Leeuw - Stylesheet
   =========================== */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #c0392b;
  --color-primary-dark: #a93226;
  --color-primary-light: #e74c3c;
  --color-dark: #1a1a1a;
  --color-dark-alt: #2c2c2c;
  --color-light: #f8f8f8;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-border: #e0e0e0;
  --color-success: #27ae60;
  --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-body: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
  --transition: 0.3s ease;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover,
a:focus-visible {
  color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--color-dark);
}

/* --- Skip Link (WCAG) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: 12px 24px;
  border-radius: var(--radius);
  z-index: 1000;
  font-weight: 600;
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.header {
  background: var(--color-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

.header__logo:hover,
.header__logo:focus-visible {
  color: var(--color-primary-light);
}

.header__logo img {
  width: 48px;
  height: 48px;
  border-radius: 0;
  object-fit: contain;
}

/* --- Navigation --- */
.nav__list {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav__link {
  color: var(--color-white);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav__link:hover,
.nav__link:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav__link[aria-current="page"] {
  background: var(--color-primary);
  color: var(--color-white);
}

.nav__cta {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

/* --- Mobile Menu Toggle --- */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-white);
}

.nav__toggle svg {
  width: 28px;
  height: 28px;
}

/* --- Hero --- */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
              url('../img/hero-banner.png') center / cover no-repeat;
  color: var(--color-white);
  padding: 80px 24px;
  text-align: center;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--color-white);
}

.hero__title span {
  color: var(--color-primary-light);
}

.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
  border-color: var(--color-white);
  backdrop-filter: blur(4px);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--color-white);
  color: var(--color-dark);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline-dark:hover,
.btn--outline-dark:focus-visible {
  background: var(--color-primary);
  color: var(--color-white);
}

/* --- USP Bar --- */
.usp-bar {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 20px 24px;
}

.usp-bar__list {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
}

.usp-bar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
}

.usp-bar__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* --- Sections --- */
.section {
  padding: 80px 24px;
}

.section--alt {
  background: var(--color-light);
}

.section__header {
  text-align: center;
  margin-bottom: 48px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}

.section__subtitle {
  color: var(--color-text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.services-grid .service-card:nth-child(-n+3) {
  grid-column: span 2;
}

.services-grid .service-card:nth-child(4) {
  grid-column: 1 / 4;
}

.services-grid .service-card:nth-child(5) {
  grid-column: 4 / 7;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--color-border);
}

.services-grid .service-card:nth-child(n+4) .service-card__image {
  height: 300px;
}

.service-card__body {
  padding: 24px;
}

.service-card__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.service-card__desc {
  color: var(--color-text-light);
  margin-bottom: 16px;
  line-height: 1.6;
}

.service-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card__price {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary);
}

.service-card__link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* --- Why Choose Us --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.benefit-card {
  text-align: center;
  padding: 32px 24px;
}

.benefit-card__icon {
  width: 64px;
  height: 64px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.benefit-card__icon svg {
  width: 32px;
  height: 32px;
}

.benefit-card__title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.benefit-card__desc {
  color: var(--color-text-light);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--color-text);
  font-family: var(--font-body);
}

.faq-item__question:hover {
  color: var(--color-primary);
}

.faq-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 0 20px;
  color: var(--color-text-light);
  line-height: 1.7;
  overflow: hidden;
  transition: height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item:not([open]) .faq-item__answer {
  height: 0;
  opacity: 0;
  padding: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  color: var(--color-white);
  padding: 64px 24px;
  text-align: center;
}

.cta-banner__title {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 12px;
  color: var(--color-white);
}

.cta-banner__text {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  font-size: 1.1rem;
}

.cta-banner__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Contact Info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info__icon svg {
  width: 24px;
  height: 24px;
}

.contact-info__label {
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info__value {
  color: var(--color-text-light);
}

.contact-info__value a {
  color: var(--color-text-light);
}

.contact-info__value a:hover {
  color: var(--color-primary);
}

/* --- Forms --- */
.form {
  max-width: 100%;
}

.form__group {
  margin-bottom: 20px;
}

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.form__required {
  color: var(--color-primary);
}

.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  background: var(--color-white);
  color: var(--color-text);
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-primary);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__hint {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form__hint a {
  text-decoration: underline;
}

/* Honeypot */
.form__hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-border);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox__img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__close:hover,
.lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background var(--transition);
}

.lightbox__nav:hover,
.lightbox__nav:focus-visible {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
    font-size: 1.5rem;
  }

  .lightbox__nav--prev {
    left: 8px;
  }

  .lightbox__nav--next {
    right: 8px;
  }
}

/* --- Instagram Grid --- */
.instagram-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.instagram-item {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--color-border);
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}

.instagram-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity var(--transition);
}

.instagram-item:hover img {
  transform: scale(1.05);
}

.instagram-item:hover .instagram-item__overlay,
.instagram-item:focus-visible .instagram-item__overlay {
  opacity: 1;
}

@media (max-width: 768px) {
  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 24px 24px;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.footer__title {
  color: var(--color-white);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.footer__list li {
  margin-bottom: 8px;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.75);
}

.footer__list a:hover {
  color: var(--color-white);
}

.footer__social {
  display: flex;
  gap: 12px;
}

.footer__social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: background var(--transition);
}

.footer__social a:hover {
  background: var(--color-primary);
}

.footer__social svg {
  width: 20px;
  height: 20px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* --- Map --- */
.map-wrapper {
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 32px;
}

.map-wrapper iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* --- Page Header --- */
.page-header {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-alt) 100%);
  color: var(--color-white);
  padding: 48px 24px;
  text-align: center;
}

.page-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header__desc {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 16px 24px;
  font-size: 0.9rem;
}

.breadcrumbs__list {
  display: flex;
  gap: 8px;
  max-width: var(--max-width);
  margin: 0 auto;
  flex-wrap: wrap;
}

.breadcrumbs__sep {
  color: var(--color-text-light);
}

.breadcrumbs__current {
  color: var(--color-text-light);
}

/* --- Opening Hours --- */
.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--color-border);
}

.hours-table td,
.hours-table th {
  padding: 10px 0;
  font-weight: normal;
  text-align: left;
}

.hours-table th {
  padding-right: 24px;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--color-text-light);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }

  .nav__list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
  }

  .nav__list.is-open {
    display: flex;
  }

  .nav__link {
    display: block;
    width: 100%;
  }

  .hero {
    padding: 48px 24px;
  }

  .section {
    padding: 48px 24px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .usp-bar__list {
    gap: 16px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid .service-card:nth-child(-n+3),
  .services-grid .service-card:nth-child(4),
  .services-grid .service-card:nth-child(5) {
    grid-column: auto;
  }

  .service-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section--gallery {
    padding-left: 8px;
    padding-right: 8px;
  }

  .gallery-grid {
    gap: 8px;
  }

  .gallery-item {
    border-radius: 4px;
  }
}

/* --- Service Detail Page --- */
.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.service-detail__image {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.service-detail__content h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--color-dark);
}

.service-detail__content p {
  margin-bottom: 16px;
  line-height: 1.7;
}

.service-detail__list {
  list-style: none;
  margin-bottom: 24px;
}

.service-detail__list li {
  padding: 6px 0;
  padding-left: 28px;
  position: relative;
  line-height: 1.6;
}

.service-detail__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

/* Pricing table */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table thead {
  background: var(--color-dark);
  color: var(--color-white);
}

.pricing-table th,
.pricing-table td {
  padding: 14px 20px;
  text-align: left;
}

.pricing-table th {
  font-weight: 600;
  font-size: 0.95rem;
}

.pricing-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.pricing-table tbody tr:nth-child(even) {
  background: var(--color-light);
}

.pricing-table .pricing-table__price {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.pricing-table .pricing-table__example {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

.pricing-note {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 8px;
  font-style: italic;
}

.service-cta {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .service-detail {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pricing-table th,
  .pricing-table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }
}

/* --- Driving Car Animation --- */
.driving-car {
  position: fixed;
  bottom: -6px;
  left: -100px;
  z-index: 999;
  pointer-events: none;
  animation: drive 10s linear infinite;
}

@media (max-width: 768px) {
  .driving-car {
    bottom: -8px;
    transform: scale(0.8);
    transform-origin: bottom left;
  }
}

.driving-car__body {
  position: relative;
  display: inline-block;
  white-space: nowrap;
  animation: stutter 0.12s ease-in-out infinite;
}

.driving-car__emoji {
  font-size: 48px;
  display: inline-block;
  transform: scaleX(-1);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  animation: car-clean 10s linear infinite;
}

/* Dirt spots on dirty car */
.driving-car__dirt {
  position: absolute;
  width: 8px;
  height: 8px;
  background: rgba(101, 67, 33, 0.7);
  border-radius: 50%;
  animation: dirt-hide 10s linear infinite, dirt-wobble 0.4s ease-in-out infinite;
}

.driving-car__dirt:nth-child(2) {
  top: 8px;
  left: 12px;
  width: 10px;
  height: 10px;
  animation-delay: 0s, 0s;
}

.driving-car__dirt:nth-child(3) {
  top: 18px;
  right: 6px;
  width: 7px;
  height: 7px;
  animation-delay: 0s, 0.15s;
}

.driving-car__dirt:nth-child(4) {
  bottom: 12px;
  left: 22px;
  width: 9px;
  height: 9px;
  animation-delay: 0s, 0.3s;
}

/* Wash cloud effect at midpoint */
.driving-car__wash {
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -10px;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  opacity: 0;
  animation: wash-cloud 10s linear infinite;
  pointer-events: none;
}

/* Sparkles on clean car */
.driving-car__sparkle {
  position: absolute;
  font-size: 18px;
  opacity: 0;
  animation: sparkle-show 10s linear infinite;
  pointer-events: none;
}

.driving-car__sparkle:nth-child(6) {
  top: -16px;
  left: 6px;
  animation-delay: 0s;
}

.driving-car__sparkle:nth-child(7) {
  top: -12px;
  left: 30px;
  animation-delay: 0.25s;
}

.driving-car__sparkle:nth-child(8) {
  top: -2px;
  left: 46px;
  animation-delay: 0.5s;
}

/* Exhaust smoke */
.driving-car__smoke {
  position: absolute;
  left: -4px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  background: rgba(160, 160, 160, 0.4);
  border-radius: 50%;
  animation: smoke 0.5s ease-out infinite;
}

.driving-car__smoke:nth-child(10) {
  animation-delay: 0.15s;
  left: -12px;
  bottom: 12px;
}

.driving-car__smoke:nth-child(11) {
  animation-delay: 0.3s;
  left: -22px;
  bottom: 18px;
}

@keyframes drive {
  0% { left: -100px; }
  100% { left: calc(100vw + 100px); }
}

@keyframes stutter {
  0%, 100% { transform: translateY(0) rotate(-0.3deg); }
  50% { transform: translateY(-1.5px) rotate(0.3deg); }
}

/* Car goes from brownish/dirty to clean and shiny */
@keyframes car-clean {
  0%, 42% {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) sepia(0.6) saturate(0.4) brightness(0.75);
  }
  48%, 52% {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) sepia(0) saturate(1) brightness(1);
  }
  55%, 100% {
    filter: drop-shadow(0 2px 8px rgba(255,255,255,0.5)) sepia(0) saturate(1.2) brightness(1.1);
  }
}

/* Dirt visible first half, hidden after wash */
@keyframes dirt-hide {
  0%, 42% { opacity: 1; }
  48%, 100% { opacity: 0; }
}

@keyframes dirt-wobble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(1px, -1px) scale(1.1); }
  50% { transform: translate(-1px, 1px) scale(0.9); }
  75% { transform: translate(1px, 0) scale(1.05); }
}

/* Wash cloud appears at midpoint */
@keyframes wash-cloud {
  0%, 40% { opacity: 0; transform: scale(0.3); }
  44% { opacity: 1; transform: scale(1.2); }
  50% { opacity: 1; transform: scale(1.4); }
  56% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(1.8); }
}

/* Sparkles appear only after wash */
@keyframes sparkle-show {
  0%, 52% { opacity: 0; transform: scale(0.5); }
  56% { opacity: 1; transform: scale(1.2); }
  60% { opacity: 0; transform: scale(0.5); }
  64% { opacity: 1; transform: scale(1.2); }
  68% { opacity: 0; transform: scale(0.5); }
  72% { opacity: 1; transform: scale(1.2); }
  76% { opacity: 0; transform: scale(0.5); }
  80% { opacity: 1; transform: scale(1.2); }
  84%, 100% { opacity: 0; transform: scale(0.5); }
}

@keyframes smoke {
  0% {
    opacity: 0.5;
    transform: scale(1) translate(0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(2.5) translate(-10px, -8px);
  }
}

/* --- Chat Widget --- */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  font-family: var(--font-body);
}

.chatbot__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, background 0.2s ease;
  margin-left: auto;
}

.chatbot__toggle:hover {
  background: var(--color-primary-dark);
  transform: scale(1.08);
}

.chatbot__toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.2s ease;
}

.chatbot.is-open .chatbot__toggle svg {
  transform: rotate(90deg);
}

.chatbot__window {
  display: none;
  width: 370px;
  min-height: 420px;
  max-height: calc(100vh - 120px);
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 12px;
  flex-direction: column;
}

.chatbot.is-open .chatbot__window {
  display: flex;
}

.chatbot__header {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: var(--color-white);
  padding: 4px;
}

.chatbot__header-text {
  flex: 1;
}

.chatbot__header-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.chatbot__header-status {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chatbot__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  animation: chatFadeIn 0.3s ease;
}

@keyframes chatFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chatbot__msg--bot {
  background: var(--color-light);
  color: var(--color-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chatbot__msg--user {
  background: var(--color-primary);
  color: var(--color-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot__options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 16px 12px;
  animation: chatFadeIn 0.3s ease;
  flex-shrink: 0;
}

.chatbot__option {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  transition: border-color 0.2s ease, background 0.2s ease;
  color: var(--color-text);
}

.chatbot__option:hover {
  border-color: var(--color-primary);
  background: rgba(192, 57, 43, 0.05);
  color: var(--color-primary);
}

.chatbot__msg a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: underline;
}

.chatbot__msg--bot a {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .chatbot__window {
    width: calc(100vw - 32px);
    min-height: 0;
    max-height: calc(100vh - 100px);
    max-height: calc(100dvh - 100px);
    position: fixed;
    bottom: 80px;
    right: 16px;
  }

  .chatbot__messages {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  .chatbot__options {
    flex-shrink: 0;
    overflow-y: auto;
    max-height: 40vh;
  }

  .chatbot {
    bottom: 16px;
    right: 16px;
  }

  .chatbot__toggle {
    width: 52px;
    height: 52px;
  }

  .chatbot__toggle svg {
    width: 24px;
    height: 24px;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .nav__toggle,
  .footer,
  .cta-banner {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* --- Reduced Motion (WCAG) --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- High Contrast Mode --- */
@media (forced-colors: active) {
  .btn,
  .nav__link,
  .nav__cta {
    border: 1px solid;
  }
}
