/* ===== SERVICE HERO: photo background, copy left, quote form right ===== */
.service-hero {
  position: relative;
  min-height: clamp(38rem, 92vh, 58rem);
  overflow: hidden;
  background: #060606;
  color: #ffffff;
}

.service-hero__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.service-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-hero__img--top {
  object-position: top;
}

.service-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 4, 4, 0.58) 0%, rgba(4, 4, 4, 0.32) 46%, rgba(4, 4, 4, 0.62) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.22) 100%);
}

.service-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 3rem;
  align-items: center;
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 6rem 1.5rem;
  min-height: inherit;
}

/* Left column: copy */
.service-hero__copy {
  padding-right: 1.5rem;
}

.service-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  padding: 0.8rem 1rem;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.service-hero__title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.service-hero__subtitle {
  max-width: 36rem;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 1.3vw, 1.16rem);
  line-height: 1.85;
}

.service-hero__cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.service-hero__cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 8, 0.6);
  padding: 0.88rem 1.6rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 160ms, background-color 160ms;
}

.service-hero__cta-link:hover {
  border-color: rgba(123, 187, 39, 0.8);
  background: rgba(123, 187, 39, 0.16);
}

/* Right column: form panel */
.service-hero__form-wrap {
  background: rgba(8, 8, 8, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  padding: 2rem 1.8rem;
}

.service-hero__form-title {
  margin: 0 0 1.4rem;
  color: #7bbb27;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-hero__form-status {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
}

.service-hero__form-status:empty {
  display: none;
}

.service-hero__form-status[data-state="success"] {
  color: #7bbb27;
}

.service-hero__form-status[data-state="error"] {
  color: #ff8a8a;
}

.service-hero__form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.service-hero__form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.service-hero__form-input,
.service-hero__form-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.78rem 1rem;
  color: #ffffff;
  font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 160ms;
}

.service-hero__form-input::placeholder,
.service-hero__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.service-hero__form-input:focus,
.service-hero__form-textarea:focus {
  border-color: rgba(123, 187, 39, 0.6);
}

.service-hero__form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23ffffff99' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 0.9rem;
  padding-right: 2.4rem;
}

.service-hero__form-select option {
  background: #161616;
  color: #ffffff;
}

.service-hero__form-select:invalid {
  color: rgba(255, 255, 255, 0.4);
}

.service-hero__form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.2rem 0;
}

.service-hero__form-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  cursor: pointer;
}

.service-hero__form-checkbox-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #7bbb27;
  cursor: pointer;
  flex-shrink: 0;
}

.service-hero__form-textarea {
  resize: vertical;
  min-height: 5rem;
}

.service-hero__form-submit {
  width: 100%;
  border: none;
  background: #7bbb27;
  padding: 1rem 1.5rem;
  color: #101010;
  font-family: 'Montserrat', 'Montserrat Fallback', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms;
}

.service-hero__form-submit:hover,
.service-hero__form-submit:focus-visible {
  background: #5c9319;
}

@media (max-width: 1023px) {
  .service-hero__inner {
    grid-template-columns: 1fr;
    padding: 4.5rem 1.5rem;
    gap: 2.5rem;
  }

  .service-hero__copy {
    padding-right: 0;
  }
}

@media (max-width: 767px) {
  .service-hero {
    min-height: unset;
  }

  .service-hero__inner {
    padding: 3rem 1rem 3.5rem;
    gap: 2rem;
  }

  .service-hero__form-wrap {
    padding: 1.6rem 1.2rem;
  }

  .service-hero__form-row {
    grid-template-columns: 1fr;
  }
}

/* Lighter overlay lets the photo show through; a soft shadow keeps the copy readable on bright shots */
.service-hero__title,
.service-hero__subtitle,
.service-hero__eyebrow {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

/* Tablet/mobile: photo becomes a full-width band on top (whole car visible), fading into the copy and form */
@media (max-width: 1023px) {
  .service-hero__media,
  .service-hero__overlay {
    inset: 0 0 auto;
    aspect-ratio: 16 / 10;
  }

  .service-hero__overlay {
    background: linear-gradient(180deg, rgba(6, 6, 6, 0.12) 0%, rgba(6, 6, 6, 0) 35%, rgba(6, 6, 6, 0.55) 75%, #060606 100%);
  }

  .service-hero__img--top {
    object-position: center;
  }

  .service-hero .service-hero__inner {
    padding-top: calc(100vw * 10 / 16 - 5rem);
  }
}

@media (max-width: 767px) {
  .service-hero__media,
  .service-hero__overlay {
    aspect-ratio: 4 / 3;
  }

  .service-hero .service-hero__inner {
    padding-top: calc(100vw * 3 / 4 - 4rem);
  }
}

