/* ============================================
   styles.css — Platinum Tyres Limited
   Shared across all pages
   ============================================ */

:root {
  --wp--preset--color--contrast: #000;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

/* ── HEADER ── */
header {
  background: #000;
  padding: 0;
  text-align: center;
}
.site-logo {
  display: inline-block;
  margin-bottom: 20px;
}
.site-logo img {
  width: auto;
  margin: 0 auto;
}

/* ── NAV ── */
nav {
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 0;
}
nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
nav ul li a {
  display: block;
  padding: 6px 22px;
  font-size: 20px;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.2px;
  transition: color 0.2s;
}
nav ul li a:hover { color: #ccc; }
nav ul li a.active { color: #ccc; font-weight: 700; }

/* ── MOBILE MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin: 0 auto 16px;
}
.hamburger span { display: block; width: 26px; height: 2px; background: #fff; }

.mobile-menu {
  display: flex;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 40px 40px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobile-menu a {
  display: block;
  padding: 18px 0;
  font-size: 22px;
  font-weight: 500;
  color: #111;
  border-bottom: 1px solid #f0f0f0;
  text-align: center;
  width: 100%;
  max-width: 320px;
  transition: color 0.2s;
}
.mobile-menu a:hover { color: #555; }
.mobile-menu-close {
  position: fixed;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 28px;
  color: #111;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  padding: 4px 8px;
}
.mobile-menu-socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}
.mobile-menu-socials a {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  border-bottom: none !important;
  padding: 0 !important;
}
.mobile-menu-socials a img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── INNER PAGE HERO ── */
.page-hero {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 14px;
  max-width: 1368px;
  width: calc(100% - 32px);
  margin: 16px auto;
}
.page-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background-color: var(--wp--preset--color--contrast) !important;
  opacity: 0.45;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 40px 48px;
  max-width: 700px;
}
.page-hero-content h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero-content p {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,0.9);
  line-height: 1.6;
  max-width: 520px;
}

/* ── BRANDS CAROUSEL ── */
.brands-section { background: #000; padding: 50px 20px; }
.brands-carousel-wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brands-arrow {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.2s;
  user-select: none;
}
.brands-arrow:hover { background: rgba(255,255,255,0.18); }
.brands-viewport { overflow: hidden; flex: 1; }
.brands-track { display: flex; gap: 16px; transition: transform 0.4s ease; }
.brand-item {
  flex: 0 0 calc(20% - 13px);
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.brand-item img { max-height: 56px; width: auto; max-width: 100%; object-fit: contain; }
.brand-item span { font-size: 12px; color: #333; font-weight: 500; text-align: center; }

/* ── PROMO GRID (inner pages) ── */
.promo-grid {
  display: flex;
  gap: 16px;
  max-width: 1368px;
  width: calc(100% - 32px);
  margin: 0 auto 16px;
  min-height: 500px;
}
.promo-photo { flex: 0 0 33.33%; overflow: hidden; border-radius: 14px; }
.promo-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.promo-logo {
  flex: 0 0 calc(66.66% - 16px);
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
}
.promo-logo img { max-width: 100%; width: 100%; height: 100%; object-fit: cover; }

/* ── SOCIAL SECTION ── */
.social-section { background: #000; padding: 60px 20px 50px; text-align: center; }
.social-section h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.social-section p { font-size: 16px; color: #ccc; line-height: 1.6; margin-bottom: 44px; }
.social-grid {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 900px;
  margin: 0 auto;
}
.social-link {
  display: block;
  width: 190px; height: 190px;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.2s;
}
.social-link:hover { transform: scale(1.04); opacity: 0.9; }
.social-link img { width: 100%; height: 100%; object-fit: cover; }

/* ── FOOTER ── */
footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 60px 40px 0;
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 80px;
  padding-bottom: 50px;
}
.footer-brand-name { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 8px; letter-spacing: -0.5px; }
.footer-tagline { font-size: 14px; color: #aaa; margin-bottom: 28px; }
.footer-address { font-style: normal; font-size: 15px; color: #fff; line-height: 1.9; }
.footer-address a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 20px; letter-spacing: 0.2px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col ul a { font-size: 15px; color: #aaa; transition: color 0.2s; }
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom span { font-size: 13px; color: #666; }

/* ── WHATSAPP WIDGET ── */
.wa-widget {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  background: #fff;
  border-radius: 40px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-size: 14px;
  font-weight: 500;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: box-shadow 0.2s;
}
.wa-widget:hover { box-shadow: 0 6px 28px rgba(0,0,0,0.35); }
.wa-icon {
  width: 38px; height: 38px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wa-icon svg { width: 22px; height: 22px; fill: #fff; }
.wa-text { display: flex; flex-direction: column; line-height: 1.2; }
.wa-label { font-size: 11px; color: #999; display: flex; align-items: center; gap: 6px; }
.wa-online { display: inline-block; background: #25d366; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 6px; border-radius: 10px; letter-spacing: 0.5px; }
.wa-cta { font-size: 14px; font-weight: 600; color: #111; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  nav ul { display: none; }
  .footer-main { grid-template-columns: 1fr; gap: 36px; }
  .social-link { width: 140px; height: 140px; }
  .brand-item { flex: 0 0 calc(33.33% - 11px); }
  .page-hero-content { padding: 32px 24px 40px; }
  .promo-grid { flex-direction: column; width: calc(100% - 32px); min-height: unset; }
  .promo-photo { flex: none; width: 100%; height: 320px; }
  .promo-logo { flex: none; width: 100%; min-height: 300px; }
}
@media (max-width: 600px) {
  .brand-item { flex: 0 0 calc(50% - 8px); }
  .social-link { width: 120px; height: 120px; }
  footer { padding: 50px 24px 0; }
  .footer-main { padding: 0 0 40px; }
}

/* ============================================
   PAGE-SPECIFIC STYLES
   ============================================ */

/* ── SOCIAL MEDIA page title ── */
.page-title { padding: 70px 24px 60px; text-align: center; }
.page-title h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; color: #fff; margin-bottom: 14px; letter-spacing: -0.5px; }
.page-title p { font-size: 16px; color: #ccc; }

/* ── PART WORN — A-rated section ── */
.arated-section { padding: 70px 40px; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.arated-text h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.1; }
.arated-text p { font-size: 16px; color: #bbb; line-height: 1.8; margin-bottom: 16px; }
.arated-badge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.badge-circle { width: 160px; height: 160px; border-radius: 50%; border: 4px solid #25d366; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(37,211,102,0.08); }
.badge-letter { font-size: 72px; font-weight: 900; color: #25d366; line-height: 1; }
.badge-sub { font-size: 13px; color: #888; text-align: center; letter-spacing: 1px; text-transform: uppercase; }

/* ── 24HR CALLOUT — info cards ── */
.callout-info { padding: 70px 40px; max-width: 1200px; margin: 0 auto; }
.callout-info h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 48px; text-align: center; }
.callout-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.callout-card { background: #111; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 36px 28px; text-align: center; }
.callout-card .cc-icon { font-size: 44px; margin-bottom: 18px; }
.callout-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.callout-card p { font-size: 14px; color: #888; line-height: 1.7; }

/* ── 24HR CALLOUT — mobile images ── */
.mobile-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 0 16px; max-width: 1400px; margin: 0 auto 16px; }
.mobile-images img { width: 100%; height: auto; display: block; border-radius: 14px; }

/* ── 24HR CALLOUT — CTA strip ── */
.cta-strip { background: #111; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); padding: 50px 40px; text-align: center; }
.cta-strip h2 { font-size: clamp(24px, 4vw, 40px); font-weight: 800; color: #fff; margin-bottom: 10px; }
.cta-strip p { font-size: 16px; color: #aaa; margin-bottom: 28px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-call { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #000; font-size: 16px; font-weight: 800; padding: 14px 32px; border-radius: 40px; transition: opacity 0.2s; }
.btn-call:hover { opacity: 0.88; }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25d366; color: #fff; font-size: 16px; font-weight: 700; padding: 14px 32px; border-radius: 40px; transition: background 0.2s; }
.btn-wa:hover { background: #1ebe5c; }
.btn-wa svg { width: 20px; height: 20px; fill: #fff; }

/* ── VISIT US — layout ── */
.visit-layout { display: flex; gap: 16px; max-width: 1368px; width: calc(100% - 32px); margin: 0 auto 16px; min-height: 500px; }
.visit-photo { flex: 0 0 55%; overflow: hidden; border-radius: 14px; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; }
.visit-info { flex: 1; background: #111; border-radius: 14px; padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }
.visit-info h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; margin-bottom: 28px; }
.visit-detail { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.visit-detail-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.visit-detail-body strong { display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: #888; text-transform: uppercase; margin-bottom: 6px; }
.visit-detail-body p { font-size: 16px; color: #fff; line-height: 1.6; }
.visit-detail-body a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.btn-directions { display: inline-flex; align-items: center; gap: 10px; margin-top: 32px; background: #fff; color: #000; font-size: 15px; font-weight: 700; padding: 13px 28px; border-radius: 40px; transition: opacity 0.2s; align-self: flex-start; }
.btn-directions:hover { opacity: 0.85; }

/* ── RESPONSIVE — page specific ── */
@media (max-width: 900px) {
  .arated-section { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px; }
  .callout-cards { grid-template-columns: 1fr; }
  .callout-info { padding: 50px 24px; }
  .mobile-images { grid-template-columns: 1fr; }
  .visit-layout { flex-direction: column; width: calc(100% - 32px); min-height: unset; }
  .visit-photo { flex: none; width: 100%; height: 280px; }
  .visit-info { padding: 40px 28px; }
}

/* ── LEGAL PAGES (terms & privacy) ── */
.legal-page { max-width: 860px; margin: 0 auto; padding: 60px 40px 80px; }
.legal-inner h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #fff; margin-bottom: 8px; }
.legal-updated { font-size: 13px; color: #666; margin-bottom: 48px; }
.legal-inner h2 { font-size: 20px; font-weight: 700; color: #fff; margin: 36px 0 12px; }
.legal-inner p { font-size: 15px; color: #bbb; line-height: 1.8; margin-bottom: 14px; }
.legal-inner ul { padding-left: 24px; margin-bottom: 14px; }
.legal-inner ul li { font-size: 15px; color: #bbb; line-height: 1.8; }
.legal-inner a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ── FOOTER LEGAL LINKS ── */
.footer-legal-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-legal-list a { font-size: 15px; color: #aaa; text-decoration: none; transition: color 0.2s; }
.footer-legal-list a:hover { color: #fff; }

/* ── TREAD DEPTH SECTION (part-worn page) ── */
.tread-section { background: #111; padding: 70px 24px; }
.tread-inner { max-width: 1200px; margin: 0 auto; }
.tread-inner h2 { font-size: clamp(24px, 3.5vw, 38px); font-weight: 800; color: #fff; margin-bottom: 16px; text-align: center; }
.tread-warning { text-align: center; font-size: 16px; color: #bbb; margin-bottom: 48px; }
.tread-warning strong { color: #e74c3c; }
.tread-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tread-card { background: #1a1a1a; border: 1px solid rgba(255,255,255,0.08); border-radius: 12px; padding: 32px 24px; text-align: center; }
.tread-card--highlight { border-color: #25d366; background: rgba(37,211,102,0.06); }
.tread-num { font-size: 52px; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 8px; }
.tread-num span { font-size: 22px; font-weight: 600; color: #888; }
.tread-card--highlight .tread-num { color: #25d366; }
.tread-label { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #888; margin-bottom: 12px; }
.tread-card--highlight .tread-label { color: #25d366; }
.tread-card p { font-size: 13.5px; color: #888; line-height: 1.7; }

@media (max-width: 900px) {
  .tread-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .tread-cards { grid-template-columns: 1fr; }
}

/* ── HERO CONTAIN VARIANT (shows full image, no crop) ── */
.page-hero--contain {
  background: #000;
  min-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.page-hero--contain .page-hero-img {
  position: relative;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.page-hero--contain .page-hero-overlay {
  position: absolute;
  inset: 0;
}
.page-hero--contain .page-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 32px 40px;
  text-align: center;
  width: 100%;
}
@media (min-width: 901px) {
  .page-hero--contain .page-hero-content {
    top: 0;
    transform: translateX(-50%);
    padding-top: 116px;
  }
}

/* ── HERO TOP CENTRE VARIANT (cover image, text centred) ── */
.page-hero--top-centre {
  justify-content: center;
  align-items: center;
}
.page-hero--top-centre .page-hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 32px 40px;
  text-align: center;
  width: 100%;
}

/* ── Cookie consent banner ─────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #111;
  color: #fff;
  padding: 18px 24px;
  display: none;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: 'Inter', sans-serif;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner-text {
  font-size: 14px;
  line-height: 1.5;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}
.cookie-banner-text a { color: #fff; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  justify-content: flex-end;
}
.cookie-banner-btn {
  padding: 10px 22px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: 0;
  font-family: inherit;
  transition: opacity 0.2s;
}
.cookie-banner-btn:hover { opacity: 0.85; }
.cookie-banner-btn--accept { background: #fff; color: #000; }
.cookie-banner-btn--reject {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
@media (max-width: 600px) {
  .cookie-banner { padding: 16px; }
  .cookie-banner-actions { flex-direction: column-reverse; }
  .cookie-banner-btn { width: 100%; }
}