/*
 * why-choose-garage.css - Why Choose Us GARAGE widget only.
 * Scoped under .why-choose-garage; theme tokens for colours.
 */

.why-choose-garage {
  /* Matches markup (.bg-white): light band, dark type — no dark-theme glass */
  --why-choose-garage-bg: #ffffff;
  --why-choose-garage-cutout-bg: transparent;
  --why-choose-garage-text: #0f172a;
  --why-choose-garage-muted: #4b5563;
  --why-choose-garage-accent-text: color-mix(in srgb, var(--primary, #b33f00) 70%, #111827);
  --why-choose-garage-border: var(--border-color, #e6e6e6);
  --why-choose-garage-frame-border-width: 3px;
  --why-choose-garage-frame-border-half: 1.5px;
  --why-choose-garage-chevron-width: 68px;
  background: var(--why-choose-garage-bg);
  color: var(--why-choose-garage-text);
  padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}

.why-choose-garage__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.why-choose-garage__inner > * {
  min-width: 0;
}

.why-choose-garage__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.5rem;
  color: var(--why-choose-garage-text);
}

.why-choose-garage__subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--why-choose-garage-muted);
  margin: 0 0 1.25rem;
  max-width: 540px;
}

@media (max-width: 767px) {
  .why-choose-garage__inner {
    grid-template-columns: 1fr;
  }
}

.why-choose-garage__carousel {
  position: relative;
  margin-bottom: 1.25rem;
}

.why-choose-garage__carousel__nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.why-choose-garage__carousel__btn {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--why-choose-garage-border);
  border-radius: 0.25rem;
  background: var(--bg-light, #f5f5f5);
  color: var(--why-choose-garage-text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.why-choose-garage__carousel__btn:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
  background: color-mix(in srgb, var(--primary) 8%, var(--bg-light));
}

.why-choose-garage__carousel__slides {
  position: relative;
  min-height: 5rem;
}

.why-choose-garage__carousel__slide {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
  pointer-events: none;
}

.why-choose-garage__carousel__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.why-choose-garage__carousel__item {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--why-choose-garage-accent-text);
  -webkit-text-stroke: 0;
  paint-order: normal;
  margin: 0.25rem 0 0.5rem;
}

.why-choose-garage__carousel__desc {
  font-size: 0.9rem;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--why-choose-garage-muted);
  margin: 0 0 0.5rem;
  max-width: 480px;
}

.why-choose-garage__btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--why-choose-garage-text);
  background: transparent;
  border: 2px solid var(--why-choose-garage-border);
  border-radius: 0.25rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.why-choose-garage__btn:hover {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  color: var(--why-choose-garage-text);
}
/* Chevron ">" divider – thin line only, no filled background; inner is transparent so only the stroke shows */
.why-choose-garage__right {
  position: relative;
  overflow: visible;
}

.why-choose-garage__right::before,
.why-choose-garage__right::after {
  content: "";
  position: absolute;
  left: calc(-1 * var(--why-choose-garage-chevron-width));
  top: 0;
  width: var(--why-choose-garage-chevron-width);
  height: 100%;
  pointer-events: none;
}

.why-choose-garage__right::before {
  background:
    linear-gradient(
      to bottom right,
      transparent calc(50% - var(--why-choose-garage-frame-border-half)),
      var(--why-choose-garage-border) calc(50% - var(--why-choose-garage-frame-border-half)),
      var(--why-choose-garage-border) calc(50% + var(--why-choose-garage-frame-border-half)),
      transparent calc(50% + var(--why-choose-garage-frame-border-half))
    ) top / 100% 50% no-repeat,
    linear-gradient(
      to top right,
      transparent calc(50% - var(--why-choose-garage-frame-border-half)),
      var(--why-choose-garage-border) calc(50% - var(--why-choose-garage-frame-border-half)),
      var(--why-choose-garage-border) calc(50% + var(--why-choose-garage-frame-border-half)),
      transparent calc(50% + var(--why-choose-garage-frame-border-half))
    ) bottom / 100% 50% no-repeat;
  z-index: 2;
}

.why-choose-garage__right::after {
  display: none;
}

@media (max-width: 767px) {
  .why-choose-garage__right::before,
  .why-choose-garage__right::after {
    display: none;
  }
}
 

/* Picture area: rectangle (same form as snippet), border only, no background; above chevron pseudo-elements */
.why-choose-garage__image-wrap {
  position: relative;
  z-index: 3;
  overflow: hidden;
  border-radius: 0 0.5rem 0.5rem 0;
  border: var(--why-choose-garage-frame-border-width) solid var(--why-choose-garage-border);
  border-left: 0;
  background: transparent;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  isolation: isolate;
}

/* In-flow so image gives wrap its size and displays; overlay/circle sit on top via absolute */
.why-choose-garage__image-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.why-choose-garage__image-wrap .why-choose-garage__img,
.why-choose-garage__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: top;
  box-shadow: none;
}

/* Keep image protection overlay invisible (no border/ring artifacts); stack above image. */
.why-choose-garage__image-wrap .protected-logo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

.why-choose-garage__circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(120px, 40%);
  height: min(120px, 40%);
  border-radius: 50%;
  background: var(--overlay-dark);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-on-dark-strong, #fff);
  text-align: center;
  padding: 0.5rem;
  z-index: 2;
}
