/*
Theme Name: SSK Mechanics by Shuaib
Theme URI: https://sskmechanics.com
Author: Shuaib Sakunder
Author URI: https://sskmechanics.com
Description: Custom WordPress theme for SSK Mechanics Ltd — Bradford's leading mobile mechanic. Built specifically for the SSK Mechanics plugin. Features mobile-first responsive design, accessible navigation, and lazy-loaded assets for high Core Web Vitals scores.
Version: 1.6.0
Requires at least: 6.0
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ssk-mechanics
Tags: business, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, threaded-comments
*/

/* ============================================================
   1. RESET & DESIGN TOKENS
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; line-height: 1.15; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; max-width: 100vw; }
img, picture, video { max-width: 100%; display: block; height: auto; }

/* === A11Y: keyboard focus visible everywhere === */
:focus-visible {
  outline: 3px solid var(--ssk-red, #d6001c);
  outline-offset: 2px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* === A11Y: respect reduced-motion preference === */
@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;
  }
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

:root {
  /* Brand */
  --ssk-red:        #d6001c;
  --ssk-red-dk:     #a80016;
  --ssk-red-lt:     #fff0f2;
  --ssk-black:      #0d0e10;
  --ssk-ink:        #16181d;
  --ssk-steel:      #5a6473;
  --ssk-mist:       #f0f4f8;
  --ssk-line:       #e3e7ee;
  --ssk-white:      #ffffff;
  --ssk-green:      #0d7f3f;
  --ssk-amber:      #c07000;
  --ssk-plate:      #f5c518;
  --ssk-plate-blue: #003399;

  /* Type */
  --ssk-font-heading: 'Barlow Condensed', 'Impact', Arial, sans-serif;
  --ssk-font-body:    'DM Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Layout */
  --ssk-max:  1180px;
  --ssk-gap:  clamp(16px, 4vw, 40px);
  --ssk-radius: 12px;

  /* Header */
  --ssk-header-h: 72px;
  --ssk-topbar-h: 36px;
}

body {
  font-family: var(--ssk-font-body);
  color: var(--ssk-ink);
  background: #fff;
  line-height: 1.65;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--ssk-header-h);
}


h1, h2, h3, h4, h5, h6 { font-family: var(--ssk-font-heading); font-weight: 800; line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.3px; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); }

p { margin: 0 0 1em; }
a:not(.no-underline) { transition: color .15s; }
a:hover { color: var(--ssk-red); }

.ssk-container { max-width: var(--ssk-max); margin: 0 auto; padding: 0 var(--ssk-gap); }

/* ============================================================
   2. HEADER — fixed, clean, responsive
   ============================================================ */
.ssk-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  background: #fff;
  border-bottom: 1px solid var(--ssk-line);
  height: var(--ssk-header-h);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.ssk-header__inner {
  max-width: var(--ssk-max); margin: 0 auto; padding: 0 var(--ssk-gap);
  height: 100%; display: flex; align-items: center; gap: 24px;
}

/* Logo */
.ssk-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.ssk-logo img { width: auto; height: 44px; max-width: 160px; object-fit: contain; }
@media (max-width: 540px) { .ssk-logo img { height: 36px; max-width: 130px; } }

/* Desktop nav */
.ssk-nav { flex: 1; display: flex; justify-content: center; }
.ssk-nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.ssk-nav__item { position: relative; }
.ssk-nav__link {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 14px; font-size: 14px; font-weight: 600;
  color: var(--ssk-ink); border-radius: 8px;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.ssk-nav__link:hover { background: var(--ssk-mist); color: var(--ssk-red); }
.ssk-nav__caret { opacity: .4; transition: transform .2s; }
.ssk-nav__item--has-sub:hover .ssk-nav__caret { transform: rotate(180deg); opacity: .7; }

/* Dropdown mega */
.ssk-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--ssk-line); border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0,0,0,.12); padding: 20px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: all .2s ease; z-index: 100; min-width: 520px;
}
.ssk-nav__item--has-sub:hover .ssk-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.ssk-dropdown__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ssk-dropdown__col { display: flex; flex-direction: column; gap: 2px; }
.ssk-dropdown__label {
  font-size: 10px; font-weight: 700; color: var(--ssk-steel);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 6px 12px; margin-bottom: 4px;
}
.ssk-dropdown__col a {
  display: block; padding: 8px 12px; font-size: 14px; font-weight: 500;
  color: var(--ssk-ink); border-radius: 8px; text-decoration: none; transition: all .12s;
}
.ssk-dropdown__col a:hover { background: var(--ssk-mist); color: var(--ssk-red); }

/* Header right */
.ssk-header__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ssk-header__phone {
  display: flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--ssk-ink);
  text-decoration: none; transition: color .15s;
}
.ssk-header__phone:hover { color: var(--ssk-red); }
.ssk-header__cta-btn {
  background: var(--ssk-red); color: #fff !important;
  font-weight: 700; font-size: 14px;
  padding: 10px 22px; border-radius: 10px;
  text-decoration: none; transition: background .15s; white-space: nowrap;
}
.ssk-header__cta-btn:hover { background: var(--ssk-red-dk); }

/* Hamburger */
.ssk-hamburger {
  display: none; width: 40px; height: 40px;
  background: var(--ssk-mist); border: none; border-radius: 8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  cursor: pointer;
}
.ssk-hamburger__bar {
  display: block; width: 20px; height: 2px; background: var(--ssk-ink);
  border-radius: 2px; transition: all .2s;
}
.ssk-hamburger[aria-expanded="true"] .ssk-hamburger__bar:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ssk-hamburger[aria-expanded="true"] .ssk-hamburger__bar:nth-child(2) { opacity: 0; }
.ssk-hamburger[aria-expanded="true"] .ssk-hamburger__bar:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

@media (max-width: 960px) {
  .ssk-nav { display: none; }
  .ssk-hamburger { display: flex; }
  .ssk-header__phone span { display: none; }
}
@media (max-width: 540px) {
  .ssk-header__phone { display: none; }
  .ssk-logo__tag { display: none; }
}

/* ============================================================
   3. MOBILE PANEL
   ============================================================ */
.ssk-mobile-panel {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,.5); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: all .25s;
}
.ssk-mobile-panel.is-open { opacity: 1; visibility: visible; }
.ssk-mobile-panel__scroll {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 90vw); background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.ssk-mobile-panel.is-open .ssk-mobile-panel__scroll { transform: none; }

.ssk-mobile-panel__head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--ssk-line); flex-shrink: 0;
}
.ssk-mobile-panel__close {
  width: 36px; height: 36px; border: none; background: var(--ssk-mist);
  border-radius: 8px; font-size: 16px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}

.ssk-mobile-panel__nav { flex: 1; padding: 12px 16px; }
.ssk-mobile-panel__section { margin-bottom: 16px; }
.ssk-mobile-panel__label {
  display: block; padding: 6px 12px; font-size: 10px; font-weight: 700;
  color: var(--ssk-steel); text-transform: uppercase; letter-spacing: 1px;
}
.ssk-mobile-panel__section a {
  display: block; padding: 11px 12px; font-size: 15px; font-weight: 600;
  color: var(--ssk-ink); border-radius: 8px; text-decoration: none;
}
.ssk-mobile-panel__section a:hover { background: var(--ssk-mist); }

.ssk-mobile-panel__foot {
  padding: 16px 20px; border-top: 1px solid var(--ssk-line); flex-shrink: 0;
}
.ssk-mobile-panel__cta {
  display: block; background: var(--ssk-red); color: #fff !important;
  text-align: center; font-weight: 700; font-size: 16px;
  padding: 14px; border-radius: 12px; text-decoration: none;
  transition: background .15s;
}
.ssk-mobile-panel__cta:hover { background: var(--ssk-red-dk); }
.ssk-mobile-panel__contact {
  display: flex; justify-content: center; gap: 20px; margin-top: 12px;
}
.ssk-mobile-panel__contact a {
  font-size: 13px; font-weight: 600; color: var(--ssk-ink); text-decoration: none;
}

/* ============================================================
   4. MOBILE MENU PANEL
   ============================================================ */
.ssk-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity .25s;
}
.ssk-mobile-menu.is-open { display: block; opacity: 1; }
.ssk-mobile-menu__panel {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(360px, 92vw);
  background: #fff;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.ssk-mobile-menu.is-open .ssk-mobile-menu__panel { transform: translateX(0); }
.ssk-mobile-menu__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ssk-line);
}
.ssk-mobile-menu__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--ssk-mist);
  border-radius: 8px;
  font-size: 18px;
}
.ssk-mobile-menu__body { padding: 16px 12px; flex: 1; }
.ssk-mobile-menu__group { margin-bottom: 20px; }
.ssk-mobile-menu__title {
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  color: var(--ssk-steel);
  text-transform: uppercase;
  letter-spacing: .8px;
}
.ssk-mobile-menu__link {
  display: block;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  color: var(--ssk-ink);
}
.ssk-mobile-menu__link:hover, .ssk-mobile-menu__link:focus { background: var(--ssk-mist); }
.ssk-mobile-menu__foot {
  padding: 16px 20px;
  border-top: 1px solid var(--ssk-line);
}
.ssk-mobile-menu__foot .ssk-btn-book { display: block; text-align: center; }

/* ============================================================
   5. PAGE LAYOUTS
   ============================================================ */
.ssk-page-hero {
  background: linear-gradient(135deg, var(--ssk-black) 0%, var(--ssk-ink) 100%);
  color: #fff;
  padding: clamp(56px, 8vw, 96px) var(--ssk-gap) clamp(40px, 6vw, 72px);
  text-align: center;
}
.ssk-page-hero__inner { max-width: 900px; margin: 0 auto; }
.ssk-page-hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--ssk-red);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.ssk-page-hero__title {
  font-size: clamp(32px, 5vw, 56px);
  color: #fff;
  margin: 0 0 16px;
}
.ssk-page-hero__lead {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 auto 24px;
}

.ssk-page-content {
  padding: clamp(40px, 6vw, 80px) var(--ssk-gap);
}
.ssk-page-content__inner { max-width: 100%; margin: 0 auto; }

.ssk-prose { max-width: 100%; line-height: 1.75; }
.ssk-prose h2 { margin-top: 1.8em; }
.ssk-prose h3 { margin-top: 1.4em; }
.ssk-prose ul, .ssk-prose ol { padding-left: 22px; margin-bottom: 1em; }
.ssk-prose li { margin-bottom: .4em; }
.ssk-prose a { color: var(--ssk-red); text-decoration: underline; }

/* ============================================================
   6. FAQ ACCORDION
   ============================================================ */
.ssk-faq { padding: clamp(40px, 6vw, 72px) var(--ssk-gap); background: var(--ssk-mist); }
.ssk-faq__inner { max-width: 800px; margin: 0 auto; }
.ssk-faq__title { text-align: center; margin-bottom: 32px; }
.ssk-faq__item {
  background: #fff;
  border: 1px solid var(--ssk-line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}
.ssk-faq__q {
  width: 100%;
  background: none;
  border: none;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  color: var(--ssk-ink);
}
.ssk-faq__icon {
  width: 24px; height: 24px;
  background: var(--ssk-mist);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: transform .2s;
  flex-shrink: 0;
}
.ssk-faq__item[open] .ssk-faq__icon { transform: rotate(45deg); background: var(--ssk-red); color: #fff; }
.ssk-faq__a {
  padding: 0 20px 20px;
  color: var(--ssk-steel);
  font-size: 15px;
  line-height: 1.7;
}
.ssk-faq__a p { margin: 0 0 .8em; }
.ssk-faq__a p:last-child { margin-bottom: 0; }

/* ============================================================
   7. FOOTER
   ============================================================ */
.ssk-site-footer {
  background: var(--ssk-black);
  color: rgba(255,255,255,.65);
  font-size: 14px;
}
.ssk-footer-main {
  padding: clamp(48px, 6vw, 80px) var(--ssk-gap) clamp(24px, 3vw, 40px);
}
.ssk-footer-main__inner {
  max-width: var(--ssk-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
@media (max-width: 860px) { .ssk-footer-main__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .ssk-footer-main__inner { grid-template-columns: 1fr; } }

.ssk-footer__brand h3 { color: #fff; margin-bottom: 16px; }
.ssk-footer__brand p { margin-bottom: 16px; }
.ssk-footer__social { display: flex; gap: 8px; margin-top: 20px; }
.ssk-footer__social a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all .15s;
}
.ssk-footer__social a:hover { background: var(--ssk-red); color: #fff; }
.ssk-footer__social svg { width: 18px; height: 18px; }

.ssk-footer__col h4 {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.ssk-footer__list { list-style: none; padding: 0; margin: 0; }
.ssk-footer__list li { margin-bottom: 8px; }
.ssk-footer__list a { color: rgba(255,255,255,.65); transition: color .15s; font-size: 14px; }
.ssk-footer__list a:hover { color: var(--ssk-red); }

.ssk-footer__reviews {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}
.ssk-footer__reviews-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.ssk-footer__reviews-row a {
  background: rgba(255,255,255,.06);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
}
.ssk-footer__reviews-row a:hover { background: var(--ssk-red); color: #fff; }

.ssk-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px var(--ssk-gap);
  font-size: 12px;
}
.ssk-footer-bottom__inner {
  max-width: var(--ssk-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: rgba(255,255,255,.45);
}
.ssk-footer-bottom__links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   8. BREADCRUMBS
   ============================================================ */
.ssk-breadcrumbs {
  padding: 12px var(--ssk-gap);
  background: var(--ssk-mist);
  border-bottom: 1px solid var(--ssk-line);
  font-size: 13px;
}
.ssk-breadcrumbs__inner { max-width: var(--ssk-max); margin: 0 auto; }
.ssk-breadcrumbs a { color: var(--ssk-steel); }
.ssk-breadcrumbs a:hover { color: var(--ssk-red); }
.ssk-breadcrumbs__current { color: var(--ssk-ink); font-weight: 600; }
.ssk-breadcrumbs__sep { color: var(--ssk-line); margin: 0 8px; }

/* ============================================================
   8. VEHICLE BAR — persistent across site
   ============================================================ */
.ssk-vehicle-bar {
  background: var(--ssk-ink);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.ssk-vehicle-bar__inner {
  max-width: var(--ssk-max); margin: 0 auto;
  padding: 8px var(--ssk-gap);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.ssk-vehicle-bar__info { display: flex; align-items: center; gap: 10px; }
.ssk-vehicle-bar__plate {
  background: #f5c518; border: 2px solid #111; border-radius: 4px;
  padding: 2px 8px; font-family: var(--ssk-font-heading);
  font-size: 14px; font-weight: 800; letter-spacing: 2px; color: #000;
}
.ssk-vehicle-bar__name { color: #fff; font-size: 13px; font-weight: 700; }
.ssk-vehicle-bar__detail { color: rgba(255,255,255,.5); font-size: 12px; }
.ssk-vehicle-bar__actions { display: flex; align-items: center; gap: 12px; }
.ssk-vehicle-bar__pc { color: rgba(255,255,255,.6); font-size: 12px; font-weight: 600; }
.ssk-vehicle-bar__change {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7); border-radius: 6px;
  padding: 4px 12px; font-size: 11px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.ssk-vehicle-bar__change:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 540px) {
  .ssk-vehicle-bar__detail { display: none; }
  .ssk-vehicle-bar__pc { display: none; }
}

/* ============================================================
   9. HERO BUTTONS
   ============================================================ */
.ssk-hero-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 13px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: all .15s; white-space: nowrap;
}
.ssk-hero-btn--red { background: var(--ssk-red); color: #fff !important; }
.ssk-hero-btn--red:hover { background: var(--ssk-red-dk); color: #fff !important; }
.ssk-hero-btn--ghost { background: rgba(255,255,255,.1); color: #fff !important; border: 1px solid rgba(255,255,255,.2); }
.ssk-hero-btn--ghost:hover { background: rgba(255,255,255,.2); color: #fff !important; }
.ssk-hero-btn--wa { background: #25D366; color: #fff !important; }
.ssk-hero-btn--wa:hover { background: #1da851; color: #fff !important; }

/* ============================================================
   10. PROFESSIONAL ICONS
   ============================================================ */
.ssk-icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
.ssk-icon--red { color: var(--ssk-red); }
.ssk-icon--green { color: var(--ssk-green); }
.ssk-icon--white { color: #fff; }

/* ============================================================
   11. UTILITIES
   ============================================================ */
.ssk-screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}

/* Hide WordPress admin bar offset on front */
html[lang] { margin-top: 0 !important; }
