/*
Theme Name: MY TYRES Theme
Theme URI: https://example.com/
Author: MY TYRES LTD
Author URI: https://example.com/
Description: Custom WordPress theme for MY TYRES London, built for premium service pages, TPMS, mobile tyre fitting and tracking.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mytyres
*/

/* 1. Make layout stable and mobile-safe */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  -webkit-text-size-adjust: 100%; /* stops iOS from randomly zooming text */
}

/* Prevent horizontal scrolling on small screens */
body {
  overflow-x: hidden;
	background: #050505;

}

/* Media elements scale instead of causing scrollbars */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Avoid layout jump when images load by centering + background-color */
img {
  object-fit: cover;
 
}

/* 2. Typography tuned for mobile */
body,
p {
  font-family: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", "Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

/* Scale headings down slightly on mobiles */
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.3rem; }
}

/* 3. Link + tap target hygiene */
a {
  text-decoration: none;
  color: inherit;
}

a:hover,
a:focus {
  color: var(--mt-yellow);
}

/* Make buttons and important links easy to tap */
a,
button {
  min-height: 44px;           /* Google & Apple recommend 44px tap areas */
  padding: 0.4rem 0.8rem;
  touch-action: manipulation; /* cuts the old 300ms tap delay */
}

/* 4. Smooth scrolling without jank */
html {
  scroll-behavior: smooth;
}

/* 5. Respect users who hate motion – good for UX and battery */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Wrapper */
.mt-google-reviews {
    margin-top: 32px;
}

/* Header: badge + copy */
.mt-google-reviews-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 16px;
}

/* Google badge */
.mt-google-badge {
    background: #ffffff;
    color: #111111;
    border-radius: 8px;
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    font-size: 13px;
}

.mt-google-badge-top {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

/* Simple "Google" text logo */
.mt-google-logo {
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 18px;
    line-height: 1;
}

.mt-google-logo .g   { color: #4285F4; }
.mt-google-logo .o1  { color: #EA4335; }
.mt-google-logo .o2  { color: #FBBC05; }
.mt-google-logo .g2  { color: #4285F4; }
.mt-google-logo .l   { color: #34A853; }
.mt-google-logo .e   { color: #EA4335; }

.mt-google-badge-label {
    font-size: 15px;
    font-weight: 500;
}

.mt-google-badge-bottom {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mt-google-badge-rating {
    font-weight: 700;
    font-size: 16px;
}

.mt-google-badge-stars {
    color: #FFD400;
    letter-spacing: 2px;
}

.mt-google-badge-count {
    font-size: 12px;
    color: #666666;
}

.mt-google-badge-sub {
    margin-top: 2px;
    font-size: 11px;
    color: #777777;
}

/* Slider container */
.testimonials-slider {
    position: relative;
    margin-top: 18px;
}

/* Cards (slides) */
.testimonial-card {
    background-color: #101010;
    border-radius: 10px;
    padding: 18px 20px;
    border: 1px solid #333333;
    max-width: 680px;
    margin: 0 auto;

    opacity: 0;
    visibility: hidden;
    transform: translateX(15px);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.testimonial-card.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Rating row inside card */
.testimonial-rating-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
}

.testimonial-stars {
    color: #FFD400;
    letter-spacing: 1px;
}

.testimonial-source {
    font-size: 12px;
    text-transform: uppercase;
    color: #bbbbbb;
}

.testimonial-quote {
    font-size: 14px;
    margin-bottom: 14px;
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .mt-google-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-card {
        max-width: 100%;
    }
}


main.site-main {
  margin-top: 0;
  margin-bottom: 0;
}


/* ===== Google reviews section ===== */

.mt-google-reviews {
  margin: 40px 0;
}

/* Centre heading + lead text */
.mt-google-reviews .section-heading,
.mt-google-reviews .section-lead {
  text-align: center;
}

/* Header: badge + text */
.mt-google-reviews-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* Google badge */
.mt-google-badge {
  background: #ffffff;
  color: #111111;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  font-size: 13px;
}

.mt-google-badge-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* Google text logo */
.mt-google-logo {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 18px;
  line-height: 1;
}

.mt-google-logo .g   { color: #4285F4; }
.mt-google-logo .o1  { color: #EA4335; }
.mt-google-logo .o2  { color: #FBBC05; }
.mt-google-logo .g2  { color: #4285F4; }
.mt-google-logo .l   { color: #34A853; }
.mt-google-logo .e   { color: #EA4335; }

.mt-google-badge-label {
  font-size: 15px;
  font-weight: 500;
}

.mt-google-badge-bottom {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mt-google-badge-rating {
  font-weight: 700;
  font-size: 16px;
}

.mt-google-badge-stars {
  color: #FFD400;
  letter-spacing: 2px;
}

.mt-google-badge-count {
  font-size: 12px;
  color: #666666;
}

.mt-google-badge-sub {
  margin-top: 2px;
  font-size: 11px;
  color: #777777;
}

/* ===== Slider ===== */

/* Slider container – 3 columns on desktop */
.testimonials-slider {
  max-width: 1120px;
  margin: 24px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Hide all slides by default */
.testimonials-slider .testimonial-card {
  background-color: #101010;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #333333;
  margin: 0;
  display: none;  /* only .is-active will show */
}

/* Show active ones (up to 3 at a time) */
.testimonials-slider .testimonial-card.is-active {
  display: block;
}

/* Mobile: stack them 1 per row */
@media (max-width: 768px) {
  .testimonials-slider {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-slider .testimonial-card {
    padding: 18px 16px;
  }
}


/* Rating row inside card */
.testimonial-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.testimonial-stars {
  color: #FFD400;
  letter-spacing: 1px;
}

.testimonial-source {
  font-size: 12px;
  text-transform: uppercase;
  color: #bbbbbb;
}

.testimonial-quote {
  font-size: 14px;
  margin-bottom: 14px;
}

/* Avatar with Google profile photo */
.testimonial-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #222222;
  flex-shrink: 0;
}

.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testimonial-meta {
  font-size: 13px;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .testimonials-slider .testimonial-card {
    padding: 18px 16px;
  }
}

/* Slider container – 3 columns on desktop */
.testimonials-slider {
  max-width: 1120px;
  margin: 24px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Hide all slides by default */
.testimonials-slider .testimonial-card {
  background-color: #101010;
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid #333333;
  margin: 0;
  display: none;  /* only .is-active will show */
}

/* Show active ones (up to 3 at a time) */
.testimonials-slider .testimonial-card.is-active {
  display: block;
}

/* Mobile: stack them 1 per row */
@media (max-width: 768px) {
  .testimonials-slider {
    grid-template-columns: minmax(0, 1fr);
  }

  .testimonials-slider .testimonial-card {
    padding: 18px 16px;
  }
}

/* === Tyre brand strip – full-width sliding logos (scoped to this page) === */

.mt-tr-page .mt-brand-strip {
  background-color: #ffffff;
  padding: 18px 0;
  border-top: 1px solid #e5e5e5;
  border-bottom: 1px solid #e5e5e5;
  color: #000000;
  overflow: hidden;

  /* full-bleed across viewport */
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
}

.mt-tr-page .mt-brand-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.mt-tr-page .mt-brand-strip-label {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #111111;
}

/* viewport for track */
.mt-tr-page .mt-brand-strip-marquee {
  overflow: hidden;
}

/* MOVING TRACK – this is what scrolls */
.mt-tr-page .mt-brand-logos {
  display: inline-flex !important;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap !important;
  width: max-content;
  animation: mt-tr-brand-scroll 30s linear infinite !important;
  will-change: transform;
}

.mt-tr-page .mt-brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mt-tr-page .mt-brand-logo img {
  display: block;
  height: 40px;
  width: auto;
}

/* scrolling animation */
@keyframes mt-tr-brand-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}


@media (max-width: 640px) {
  .mt-tr-page .mt-brand-strip-label {
    font-size: 13px;
  }
  .mt-tr-page .mt-brand-logo img {
    height: 32px;
  }
}
