/* === SERVICES PAGE === */

:root{
  --glow: rgba(196, 30, 58, 0.28);
  --glow-2: rgba(196, 30, 58, 0.18);
  --stroke: rgba(255,255,255,0.10);
}

/* --- Section base + background wash --- */
.section-services{
  padding: 120px 0 72px;
  position: relative;
  overflow: hidden;
}

.section-services::before{
  content:"";
  position:absolute;
  inset:-220px -120px auto -120px;
  height: 520px;
  background:
    radial-gradient(600px 260px at 50% 40%, rgba(196,30,58,0.16), transparent 65%),
    radial-gradient(520px 240px at 70% 10%, rgba(196,30,58,0.10), transparent 60%);
  pointer-events:none;
  filter: blur(6px);
  opacity: .70;
}

/* --- Header area --- */
.section-services .section-header{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 70px 0 64px;
  position: relative;
  z-index: 1;
}

/* RED PILL */
.section-services .section-subtitle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(196,30,58,0.35);
  background: rgba(196,30,58,0.10);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 0;
}

/* If h3 is empty, still show "OUR SERVICES" */
.section-services .section-subtitle:empty::before{
  content:"OUR SERVICES";
}

/* BIG HERO TITLE */
.section-services .section-title{
  font-size: clamp(38px, 4.6vw, 64px);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--text);
  text-align:center;
  text-wrap: balance;
}

/* DESCRIPTION line under title */
.section-services .section-description{
  max-width: 760px;
  margin: 0 auto;
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  text-align:center;
}

/* If description is empty, show the reference line */
.section-services .section-description:empty::before{
  content:"From repairs to complete refurbishment, we offer comprehensive services to keep your wheels looking their best.";
}

/* --- Grid wrapper --- */
.services-grid{
  display: grid;
  gap: 56px;
  padding: 28px 0 16px;
  position: relative;
  z-index: 1;
}

/* --- Service Card (two-column, alternating) --- */
.service-card{
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(26px, 3.2vw, 56px);
  align-items: center;

  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

/* Red glow halo behind each card */
.service-card::before{
  content:"";
  position:absolute;
  inset: -36px -28px;
  border-radius: 34px;
  background:
    radial-gradient(520px 240px at 18% 55%, var(--glow), transparent 65%),
    radial-gradient(520px 240px at 82% 45%, var(--glow-2), transparent 70%);
  filter: blur(8px);
  opacity: .95;
  pointer-events:none;
  z-index: 0;
}

/* Alternating layout
   Without JavaScript: every 2nd card in a grid flips.
   With JavaScript (js/service-filter.js adds .js-alt): the script marks
   every 2nd *visible* card with .is-alt, so the zig-zag stays correct
   when a category is selected. */
.services-grid:not(.js-alt) .service-card:nth-child(even),
.service-card.is-alt{
  grid-template-columns: 0.85fr 1.15fr;
}

.services-grid:not(.js-alt) .service-card:nth-child(even) .service-image,
.service-card.is-alt .service-image{ order: 2; }
.services-grid:not(.js-alt) .service-card:nth-child(even) .service-content,
.service-card.is-alt .service-content{ order: 1; }

/* hidden by the category buttons */
.section-services .service-card[hidden],
.section-services .services-grid[hidden],
.section-services .section-header[hidden]{
  display: none !important;
}

/* --- Image panel --- */
.service-image{
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  z-index: 1;
  min-height: 320px;
}

.service-image img{
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  filter: saturate(1.02) contrast(1.02);
}

/* "Quote on request" badge */
.service-image::after{
  content: "Quote on request";
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

/* --- Content panel --- */
.service-content{
  position: relative;
  z-index: 1;
  padding: 8px 2px;
}

/* Red square icon chip */
.service-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 14px 26px rgba(196,30,58,0.25);
  margin-bottom: 16px;
}

/* Title + text */
.service-content .card-title{
  font-size: clamp(26px, 2.8vw, 36px);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  color: var(--text);
}

.service-content .card-text{
  color: rgba(255,255,255,0.70);
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 560px;
}

/* Features list: 2 columns with red ring bullets */
.service-features{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 30px;
  margin: 0 0 22px;
  padding: 0;
}

.service-features li{
  position: relative;
  padding-left: 30px;
  color: rgba(255,255,255,0.78);
  font-size: 14px;
}

.service-features li::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0.48em;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(196,30,58,0.95);
  box-shadow: 0 0 0 4px rgba(196,30,58,0.08);
  transform: translateY(-50%);
}

/* Quote button */
.quote-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(196,30,58,0.22);
  transition: transform .18s ease, background-color .18s ease, filter .18s ease;
}

.quote-btn:hover{
  background: var(--red-dark);
  transform: translateY(-1px);
  filter: brightness(.98);
}

.quote-btn:active{
  transform: translateY(0px);
}

/* --- CTA section --- */
.cta-section{
  padding: 86px 0 96px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before{
  content:"";
  position:absolute;
  inset: -220px -120px auto -120px;
  height: 520px;
  background:
    radial-gradient(680px 260px at 50% 20%, rgba(196,30,58,0.14), transparent 65%);
  pointer-events:none;
  filter: blur(8px);
  opacity: .85;
}

.cta-section .container{
  position: relative;
  z-index: 1;
}

.cta-title{
  font-size: clamp(30px, 3.2vw, 46px);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.cta-text{
  max-width: 820px;
  margin: 0 auto 22px;
  color: rgba(255,255,255,0.70);
}

.cta-actions{
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-actions .btn-primary,
.cta-actions .btn-secondary{
  padding: 12px 20px;
  border-radius: 12px;
}

/* --- Responsive --- */
@media (max-width: 980px){
  .service-card,
  .service-card:nth-child(even),
  .service-card.is-alt{
    grid-template-columns: 1fr;
  }

  .service-card:nth-child(even) .service-image,
  .service-card:nth-child(even) .service-content,
  .service-card.is-alt .service-image,
  .service-card.is-alt .service-content{
    order: initial;
  }

  .service-image,
  .service-image img{
    min-height: 260px;
  }

  .service-features{
    grid-template-columns: 1fr;
  }

  .service-card::before{
    inset: -28px -18px;
  }
}

@media (max-width: 600px){
  .section-services{
    padding-top: 96px;
  }

  .section-services .section-header{
    padding: 54px 0 52px;
  }
}

@media (max-width: 520px){
  .services-grid{
    gap: 44px;
  }

  .service-image::after{
    top: 12px;
    right: 12px;
    font-size: 12px;
    padding: 8px 10px;
  }
}
/* --- Second heading: Body, Spray & Motorbike services --- */
.section-services .body-work-header{
  padding: 110px 0 40px;
}

.section-services .body-work-header .section-title{
  font-size: clamp(30px, 3.6vw, 48px);
}

.section-services .body-work-header.is-first{
  padding-top: 0;
}

@media (max-width: 600px){
  .section-services .body-work-header{
    padding: 80px 0 32px;
  }
}

@media (max-width: 600px){
  .section-services .body-work-header.is-first{
    padding-top: 0;
  }
}

/* --- Category buttons (All / Wheels & Tyres / Brakes / ...) --- */
.service-filters{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.filter-chip{
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.85);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-chip:hover{
  border-color: rgba(196,30,58,0.55);
  color: #fff;
}

.filter-chip.is-active{
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(196,30,58,0.30);
}

.filter-chip:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 520px){
  .service-filters{ gap: 8px; }
  .filter-chip{ padding: 9px 14px; font-size: 13px; }
}