/* =========================================================
   UK Motor Centre – Home (assets/css/home.css)
   Scoped to homepage layout, hero, finder, services grid,
   tyre picks, copy content, and GMB embed.
   ========================================================= */

/* Extra theme vars (header already sets core brand colours) */
:root {
  --ukmc-navy: #07283c;
  --ukmc-yellow: #f6b818;
}

/* =========================
   HERO SECTION
   ========================= */

.ukmc-home .ukmc-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(4,55,92,0.35) 0%, rgba(2,28,48,0.96) 100%),
    #021824;
}

/* Left BG image */
.ukmc-home .ukmc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://ukmotorcentreltd.co.uk/wp-content/uploads/2025/11/unnamed-1.webp")
    center left / cover no-repeat;
  filter: saturate(1.05);
  opacity: 0.55;
  pointer-events: none;
}

/* Right BG image */
.ukmc-home .ukmc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("https://ukmotorcentreltd.co.uk/wp-content/uploads/2025/11/unnamed.webp")
    center right / cover no-repeat;
  opacity: 0.45;
  pointer-events: none;
}

/* Hero inner layout */
.ukmc-home .ukmc-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(58px, 4.2vw, 78px) clamp(16px, 4.5vw, 50px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

/* Hero text */
.ukmc-home .ukmc-hero__branding {
  color: #fff;
  max-width: 420px;
}

.ukmc-home .ukmc-hero__title {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.05;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.ukmc-home .ukmc-hero__title span {
  color: #ffdf46;
}

.ukmc-home .ukmc-hero__sub {
  font-size: 0.95rem;
  opacity: 0.92;
  margin: 0;
}

/* Hero tabs */
.ukmc-home .ukmc-hero__tabs {
  display: inline-flex;
  gap: 10px;
  margin-top: 1.5rem;
  background: rgba(2, 19, 34, 0.3);
  padding: 5px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.ukmc-home .ukmc-hero__tabs .tab {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  color: #ffffff;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

.ukmc-home .ukmc-hero__tabs .tab.is-active,
.ukmc-home .ukmc-hero__tabs .tab:hover {
  background: #ffffff;
  color: #07283c;
  border-color: rgba(7, 40, 60, 0.16);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
}

/* =========================
   HERO QUICK GALLERY
   ========================= */

.ukmc-home .ukmc-quick-gallery {
  position: relative;
  margin-top: 18px;
  width: 260px;
}

.ukmc-home .ukmc-quick-gallery__slide {
  display: none;
  width: 260px;
  height: 160px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

.ukmc-home .ukmc-quick-gallery__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ukmc-home .ukmc-quick-gallery__slide.is-active {
  display: block;
}

.ukmc-home .ukmc-quick-gallery .nav {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ukmc-home .ukmc-quick-gallery .nav.prev {
  right: 34px;
}

/* =========================
   TYRE FINDER
   ========================= */

.ukmc-home .ukmc-tyre-finder {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
  padding: 1.2rem 1.2rem 1rem;
  backdrop-filter: blur(4px);
}

.ukmc-home .ukmc-finder-grid {
  display: grid;
  grid-template-columns: 1.1fr repeat(4, minmax(90px, 1fr)) auto;
  gap: 0.65rem;
  align-items: flex-end;
}

.ukmc-home .ukmc-tyre-finder label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: #07283c;
  font-weight: 600;
  letter-spacing: .03em;
}

.ukmc-home .ukmc-tyre-finder .lbl {
  text-transform: uppercase;
}

.ukmc-home .ukmc-tyre-finder input[type="text"],
.ukmc-home .ukmc-tyre-finder select,
.ukmc-home .ukmc-tyre-finder input {
  border: 1px solid rgba(7, 40, 60, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  background: #ffffff;
  min-height: 36px;
}

.ukmc-home .ukmc-tyre-finder .reg input {
  background: #013f9c;
  color: #ffffff;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: none;
}

.ukmc-home .ukmc-tyre-finder .reg .lbl {
  color: #013f9c;
}

.ukmc-home .ukmc-tyre-finder .btn-search {
  border: none;
  background: #07283c;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.74rem 1.2rem;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
  min-height: 38px;
  transition: .15s ease;
  white-space: nowrap;
}

.ukmc-home .ukmc-tyre-finder .btn-search:hover {
  background: #ffb509;
  color: #021824;
}

.ukmc-home .ukmc-finder-note {
  margin-top: 0.7rem;
  font-size: 0.7rem;
  color: #07283c;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.ukmc-home .ukmc-finder-note input[type="radio"] {
  accent-color: #ffb509;
}

/* =========================
   SERVICES GRID (ICONS)
   ========================= */

.ukmc-services {
  background: #f3f4f6;
  padding: 40px 0 70px;
}

.ukmc-services .container {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px;
}

/* Grid layout */
.ukmc-services .services-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.ukmc-services .card {
  background: #ffffff;
  border: 1px solid var(--ukmc-border, #e5e7eb);
  border-radius: 14px;
  padding: 14px 10px 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(15, 23, 42, .03);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  align-items: stretch;
}

.ukmc-services .card__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  text-decoration: none;
}

/* Fixed-size thumb so images never blow out */
.ukmc-services .card__thumb {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2px auto 4px;
}

.ukmc-services .card__thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.ukmc-services .card__title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
}

/* Hover */
.ukmc-services .card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .15);
  border-color: #111827;
}

/* Responsive grid columns */
@media (max-width: 1200px) {
  .ukmc-services .services-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .ukmc-services .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ukmc-services .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 420px) {
  .ukmc-services .services-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   TYRE PICKS (YELLOW BAND)
   ========================= */

.ukmc-tyre-picks {
  background: var(--ukmc-yellow);
  padding: 3rem 0 3.2rem;
}

.ukmc-tyre-picks__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 30px);
}

.ukmc-tyre-picks__title {
  font-size: 2.1rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 2.1rem;
  color: #0a0a0a;
}

.ukmc-tyre-picks__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

.tyre-card {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .08);
  padding: 1.5rem 1.5rem 1.1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 420px;
}

.tyre-card__logo img {
  max-height: 48px;
  object-fit: contain;
  margin: 0 auto;
}

.tyre-card__image {
  width: 100%;
  max-height: 170px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid rgba(0, 0, 0, .12);
  padding-bottom: .7rem;
}

.tyre-card__image img {
  max-height: 170px;
  object-fit: contain;
}

.tyre-card__title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #111;
}

.tyre-card__text {
  font-size: .85rem;
  line-height: 1.5;
  color: #222;
  flex: 1 1 auto;
}

.tyre-card__btn {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: 8px;
  padding: .7rem 1rem .65rem;
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  text-align: center;
  letter-spacing: .01em;
}

.tyre-card__btn.is-orange { background:#dd5b27; }
.tyre-card__btn.is-blue   { background:#005baa; }
.tyre-card__btn:hover     { filter:brightness(1.03); }

/* =========================
   COPY / USP SECTION
   ========================= */

.ukmc-copy-slab {
  background: #ffffff;
  padding: 2.6rem 0 3.1rem;
}

.ukmc-copy-slab__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px);
}

.ukmc-copy-slab__cols {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: flex-start;
}

.ukmc-copy-slab h3 {
  margin: .2rem 0 .6rem;
  font-weight: 700;
  color: #0e2033;
}

.h2-tight {
  margin: .9rem 0 .6rem;
  font-size: 1.35rem;
  font-weight: 800;
}

.two-col-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 2rem;
  margin-bottom: 1rem;
}

.two-col-bullets ul {
  margin: .2rem 0 0;
  padding-left: 1.1rem;
}

.two-col-bullets li + li {
  margin-top: .3rem;
}

.two-col-bullets a {
  text-decoration: none;
  color: #0a2e57;
}

.two-col-bullets a:hover {
  text-decoration: underline;
}

.service-links {
  padding-left: 1.1rem;
  margin: .5rem 0 1rem;
}

.service-links li + li {
  margin-top: .35rem;
}

.service-links a {
  color: #0a2e57;
  text-decoration: none;
  font-weight: 600;
}

.service-links a:hover {
  text-decoration: underline;
}

.col--promo .promo-img {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .08);
}

.col--promo .promo-note {
  margin-top: .6rem;
  background: #efefef;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .9rem;
}

.why-row {
  margin-top: 2.2rem;
}

.why-row h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.why-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
}

.why-grid li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}

.why-grid .ic {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ukmc-yellow);
  color: #0a243a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

/* =========================
   GMB / MAP / REVIEWS EMBED
   ========================= */

.ukmc-gmb-embed {
  background: #ffffff;
  padding: 2rem 0 2.4rem;
}

.ukmc-gmb-embed__inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 32px);
}

.ukmc-gmb-embed .section-title {
  text-align: center;
  margin-bottom: 1rem;
}

.gmb-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
}

.gmb-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.gmb-cta {
  margin-top: 1rem;
  display: flex;
  gap: .6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gmb-cta .btn {
  background: #0a2e57;
  color: #ffffff;
  padding: .6rem 1rem .55rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.gmb-cta .btn:hover {
  filter: brightness(1.05);
}

.gmb-cta .btn-green {
  background: #2aa65a;
}

.gmb-cta .btn-outline {
  background: transparent;
  color: #0a2e57;
  border: 2px solid #0a2e57;
}

/* =========================
   RESPONSIVE TWEAKS
   ========================= */

@media (max-width: 1080px) {
  .ukmc-home .ukmc-hero {
    min-height: auto;
  }
  .ukmc-home .ukmc-hero__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ukmc-home .ukmc-hero::before,
  .ukmc-home .ukmc-hero::after {
    opacity: 0.22;
    background-position: center;
  }
  .ukmc-home .ukmc-finder-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ukmc-tyre-picks__grid {
    grid-template-columns: 1fr 1fr;
  }
  .ukmc-copy-slab__cols {
    grid-template-columns: 1fr;
  }
  .two-col-bullets {
    grid-template-columns: 1fr;
  }
  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ukmc-home .ukmc-hero__tabs {
    flex-wrap: wrap;
  }
  .ukmc-home .ukmc-finder-grid {
    grid-template-columns: 1fr;
  }
  .ukmc-home .ukmc-tyre-finder .btn-search {
    width: 100%;
  }
  .ukmc-tyre-picks__grid {
    grid-template-columns: 1fr;
  }
  .tyre-card {
    min-height: unset;
  }
}


.ukmc-steps {
  padding: 40px 0;
  background: #ffffff;
}

.ukmc-steps__grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.ukmc-step-card {
  position: relative;
  padding: 48px 30px 40px;
  background: #fafafa;
  text-align: center;
  border-right: 1px solid #eeeeee;
}

.ukmc-step-card:last-child {
  border-right: none;
}

/* Big pale step number */
.ukmc-step-card__num {
  position: absolute;
  top: 18px;
  left: 24px;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: #f0f0f0;
  pointer-events: none;
}

/* Icon placeholder */
.ukmc-step-card__icon img {
  display: block;
  margin: 0 auto 18px;
  max-width: 120px;
  height: auto;
}

/* Titles + copy */
.ukmc-step-card h3 {
  margin: 6px 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #111111;
}

.ukmc-step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #333333;
}

/* Callout column */
.ukmc-step-card--callout {
  background: #f7c540;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.ukmc-step-card--callout .ukmc-step-card__num {
  display: none;
}

.ukmc-step-card--callout .ukmc-step-card__icon img {
  max-width: 80px;
  margin-bottom: 18px;
}

.ukmc-step-card__call-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  color: #000;
}

.ukmc-step-card__phone a {
  font-size: 32px;
  font-weight: 800;
  color: #000;
  text-decoration: none;
}

.ukmc-step-card__phone a:hover {
  text-decoration: underline;
}

.ukmc-step-card__subtitle {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: #111;
  max-width: 260px;
}

/* Responsive */
@media (max-width: 991px) {
  .ukmc-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ukmc-steps__grid {
    grid-template-columns: 1fr;
    box-shadow: none;
    border-radius: 0;
  }
  .ukmc-step-card {
    border-right: none;
    border-bottom: 1px solid #eee;
  }
  .ukmc-step-card--callout {
    border-bottom: none;
  }
}

