/**
 * Automech-inspired design layer (Tokotema automotive kit).
 *
 * @package WP_Garage
 */

:root {
  --am-dark: #0b0f19;
  --am-dark-2: #121826;
  --am-accent: #f5a623;
  --am-accent-hover: #e09410;
  --am-primary: #ff6b00;
  --am-primary-hover: #e55f00;
  --am-green: #22a559;
  --am-green-hover: #1a8446;
  --am-text: #1a1f2e;
  --am-muted: #6b7280;
  --am-border: #e5e7eb;
  --am-bg: #ffffff;
  --am-bg-alt: #f4f6f9;
  --am-radius: 10px;
  --am-radius-lg: 16px;
  --am-shadow: 0 12px 40px rgba(11, 15, 25, 0.08);
  --am-header-h: 80px;
  --font-heading: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
}

body {
  font-family: var(--font-body);
  color: var(--am-text);
}

h1,
h2,
h3,
h4,
.section-title,
.site-title {
  font-family: var(--font-heading);
}

/* Top bar */
.header-topbar {
  background: var(--am-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  display: none;
}

.header-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}

.header-topbar a {
  color: #fff;
}

.header-topbar a:hover {
  color: var(--am-accent);
}

.header-topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .header-topbar {
    display: block;
  }
}

/* Header */
.site-header {
  background: var(--am-bg);
  box-shadow: 0 1px 0 var(--am-border);
  transition: background 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--am-shadow);
}

.header-inner {
  min-height: var(--am-header-h);
}

.nav-menu>li>a {
  position: relative;
  color: var(--am-text);
  font-weight: 600;
  font-size: 15px;
}

.nav-menu>li>a:hover,
.nav-menu>li.current-menu-item>a,
.nav-menu>li.current-menu-ancestor>a {
  color: var(--am-primary);
}

/* Nav — submenu / dropdown */
.nav-menu>li {
  position: relative;
}

.nav-menu>li.menu-item-has-children>a,
.nav-menu>li.has-dropdown>a {
  padding-right: 26px;
}

.nav-menu>li.menu-item-has-children>a::after,
.nav-menu>li.has-dropdown>a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.65;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-menu>li.menu-item-has-children:hover>a::after,
.nav-menu>li.has-dropdown:hover>a::after,
.nav-menu>li.menu-item-has-children:focus-within>a::after,
.nav-menu>li.has-dropdown:focus-within>a::after {
  transform: rotate(-135deg);
  margin-top: -2px;
  opacity: 1;
}

.nav-menu .sub-menu,
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
  z-index: 100;
}

.nav-menu>li:hover>.sub-menu,
.nav-menu>li:hover>.dropdown,
.nav-menu>li:focus-within>.sub-menu,
.nav-menu>li:focus-within>.dropdown {
  display: block;
  animation: amSubmenuIn 0.2s ease;
}

@keyframes amSubmenuIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu .sub-menu li,
.nav-menu .dropdown li {
  margin: 0;
  padding: 0;
}

.nav-menu .sub-menu a,
.nav-menu .dropdown a {
  display: block;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--am-text);
  line-height: 1.4;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

.nav-menu .sub-menu a:hover,
.nav-menu .dropdown a:hover,
.nav-menu .sub-menu .current-menu-item>a,
.nav-menu .dropdown .current-menu-item>a {
  background: rgba(255, 107, 0, 0.08);
  color: var(--am-primary);
  padding-left: 22px;
}

/* Nested submenu (flyout right) */
.nav-menu .sub-menu .sub-menu,
.nav-menu .dropdown .dropdown {
  top: -8px;
  left: 100%;
  margin-left: 4px;
}

.nav-menu .sub-menu .menu-item-has-children>a::after,
.nav-menu .dropdown .has-dropdown>a::after {
  transform: rotate(-45deg);
  margin-top: -3px;
  right: 14px;
}

@media (max-width: 1023px) {

  .nav-menu>li.menu-item-has-children>a::after,
  .nav-menu>li.has-dropdown>a::after {
    transform: rotate(45deg);
    margin-top: -4px;
  }

  .nav-menu>li.menu-item-has-children.is-submenu-open>a::after,
  .nav-menu>li.has-dropdown.is-submenu-open>a::after {
    transform: rotate(-135deg);
    margin-top: -2px;
  }

  .main-nav.is-open .nav-menu>li {
    width: 100%;
  }

  .main-nav.is-open .nav-menu>li>a {
    padding: 12px 0;
    border-bottom: 1px solid var(--am-border);
  }

  .main-nav.is-open .nav-menu .sub-menu,
  .main-nav.is-open .nav-menu .dropdown {
    display: none;
    position: static;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 0 0 8px 12px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: none;
  }

  .main-nav.is-open .nav-menu>li.is-submenu-open>.sub-menu,
  .main-nav.is-open .nav-menu>li.is-submenu-open>.dropdown {
    display: block;
  }

  .main-nav.is-open .nav-menu .sub-menu a,
  .main-nav.is-open .nav-menu .dropdown a {
    padding: 10px 12px;
    font-size: 14px;
    white-space: normal;
    border-radius: var(--am-radius);
  }

  .main-nav.is-open .nav-menu .sub-menu a:hover,
  .main-nav.is-open .nav-menu .dropdown a:hover {
    padding-left: 16px;
  }

  .main-nav.is-open .nav-menu .sub-menu .sub-menu,
  .main-nav.is-open .nav-menu .dropdown .dropdown {
    padding-left: 12px;
    margin-left: 0;
  }
}

.btn-primary {
  background: var(--am-primary);
  border-color: var(--am-primary);
}

.btn-primary:hover {
  background: var(--am-primary-hover);
  border-color: var(--am-primary-hover);
}

.btn-accent {
  background: var(--am-accent);
  border-color: var(--am-accent);
  color: var(--am-dark);
}

.btn-accent:hover {
  background: var(--am-accent-hover);
  color: var(--am-dark);
}

.btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-light:hover {
  background: #fff;
  color: var(--am-dark);
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--am-dark);
}

.btn-white:hover {
  background: var(--am-bg-alt);
  border-color: var(--am-bg-alt);
  color: var(--am-dark);
}

.btn-green {
  background: var(--am-green);
  border-color: var(--am-green);
  color: #fff;
}

.btn-green:hover {
  background: var(--am-green-hover);
  border-color: var(--am-green-hover);
  color: #fff;
}

/* Banner slider — Slick */
.home-banner-slider {
  position: relative;
  background: var(--am-dark);
}

.home-banner-slick {
  min-height: 360px;
}

.home-banner-slick .slick-list,
.home-banner-slick .slick-track {
  min-height: inherit;
}

@media (min-width: 768px) {
  .home-banner-slick {
    min-height: 480px;
  }
}

@media (min-width: 1200px) {
  .home-banner-slick {
    min-height: 560px;
  }
}

.home-banner-slick .banner-slide {
  position: relative;
  min-height: inherit;
  outline: none;
}

.banner-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.banner-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 45%, rgba(15, 23, 42, 0.2) 100%);
}

.banner-slide-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: inherit;
  padding: 48px 10px 64px;
}

.banner-slide-copy {
  max-width: 620px;
  color: #fff;
}

.banner-slide-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--am-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.banner-slide-title {
  font-size: clamp(28px, 4.5vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.banner-slide-sub {
  font-size: 17px;
  opacity: 0.92;
  margin: 0 0 24px;
  max-width: 520px;
}

.home-banner-slider .banner-slick-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.2s;
  padding: 0;
}

.home-banner-slider .banner-slick-arrow:hover {
  background: rgba(245, 166, 35, 0.85);
  color: var(--am-dark);
}

.home-banner-slider .banner-slick-prev {
  left: 16px;
}

.home-banner-slider .banner-slick-next {
  right: 16px;
}

.home-banner-slider .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 5;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.home-banner-slider .slick-dots li {
  display: inline-block;
  margin: 0 4px;
}

.home-banner-slider .slick-dots li button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.home-banner-slider .slick-dots li button:before {
  display: none;
}

.home-banner-slider .slick-dots li.slick-active button {
  background: var(--am-accent);
  transform: scale(1.15);
}

@media (max-width: 767px) {
  .home-banner-slider .banner-slick-arrow {
    display: none !important;
  }

  .banner-slide-inner {
    padding-bottom: 56px;
  }
}

/* Hero — 2 columns */
.hero-am {
  position: relative;
  background: var(--am-dark);
  color: #fff;
  overflow: hidden;
  padding: 0;
}

.hero-am-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  padding: 56px 0 64px;
}

@media (min-width: 992px) {
  .hero-am-grid {
    grid-template-columns: 1fr 1fr;
    padding: 72px 0 88px;
  }
}

.hero-am-badge {
  display: inline-block;
  background: rgba(245, 166, 35, 0.15);
  color: var(--am-accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-am h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  margin: 0 0 20px;
  font-weight: 800;
}

.hero-am .hero-sub {
  font-size: 18px;
  opacity: 0.9;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-am-visual img {
  width: 100%;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.hero-am-pattern {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.12), transparent 50%),
    linear-gradient(135deg, var(--am-dark) 0%, var(--am-dark-2) 100%);
  z-index: 0;
}

.hero-am .container {
  position: relative;
  z-index: 1;
}

/* Stats */
.stats-band {
  background: var(--am-primary);
  color: #fff;
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  line-height: 1;
}

.stat-item span {
  font-size: 14px;
  opacity: 0.9;
}

/* Section headers */
.section-eyebrow {
  color: var(--am-primary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  color: var(--am-dark);
  font-weight: 800;
}

/* Service cards with image */
.service-card-am {
  background: #fff;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  box-shadow: var(--am-shadow);
  transition: transform 0.25s;
}

.service-card-am:hover {
  transform: translateY(-6px);
}

.service-card-am a {
  color: inherit;
  display: block;
}


.service-card-am-thumb img {
  width: 100%;
  height: auto;
  transition: transform 0.4s;
}

.service-card-am:hover .service-card-am-thumb img {
  transform: scale(1.06);
}

.service-card-am-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  background: var(--am-accent);
  color: var(--am-dark);
  font-weight: 800;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.service-card-am-body {
  padding: 20px 22px 24px;
}

.service-card-am-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.service-card-am-body p {
  margin: 0;
  color: var(--am-muted);
  font-size: 14px;
}

.service-card-am-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--am-primary);
}

/* Why split */
.why-split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .why-split {
    grid-template-columns: 1fr 1fr;
  }
}

.why-split-image img {
  width: 100%;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.why-check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(255, 107, 0, 0.12);
  color: var(--am-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

/* Before / after */
.ba-item-am {
  background: #fff;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  box-shadow: var(--am-shadow);
}

.ba-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.ba-pair img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.ba-label {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--am-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
}

.ba-img-wrap {
  position: relative;
}

/* Reviews */
.review-card-am {
  background: #fff;
  padding: 28px;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
  height: 100%;
}

.review-card-am .review-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.review-card-am .stars .star.filled {
  color: var(--am-accent);
}

/* Process timeline */
.process-timeline {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .process-timeline {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .process-timeline::before {
    content: "";
    position: absolute;
    top: 28px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: var(--am-border);
    z-index: 0;
  }
}

.process-timeline .process-item {
  position: relative;
  z-index: 1;
  background: transparent;
  box-shadow: none;
  padding: 0 8px;
}

.process-timeline .process-num {
  background: var(--am-dark);
  width: 56px;
  height: 56px;
  font-size: 22px;
}

/* CTA band */
.cta-bar {
  background: var(--am-dark);
  position: relative;
  overflow: hidden;
}

.cta-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(245, 166, 35, 0.15), transparent);
}

.cta-bar-inner {
  position: relative;
  z-index: 1;
}

/* Blog cards */
.post-card-am .post-card-meta {
  font-size: 12px;
  color: var(--am-muted);
  margin-bottom: 8px;
}

.post-cat-pill {
  display: inline-block;
  background: rgba(255, 107, 0, 0.1);
  color: var(--am-primary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

/* Page hero (inner) */
.page-hero-am {
  background: var(--am-dark);
  color: #fff;
  padding: 48px 0 56px;
  text-align: center;
}

.page-hero-am h1 {
  margin: 12px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
}

.breadcrumb-wrap {
  background: var(--am-bg-alt);
  border-bottom: 1px solid var(--am-border);
  padding: 12px 0;
  font-size: 14px;
}

.breadcrumb-wrap .rank-math-breadcrumb {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--am-muted);
}

.breadcrumb-wrap .rank-math-breadcrumb p {
  margin: 0;
}

.breadcrumb-wrap .rank-math-breadcrumb a {
  color: var(--am-muted);
  text-decoration: none;
}

.breadcrumb-wrap .rank-math-breadcrumb a:hover {
  color: var(--am-primary);
}

.breadcrumb-wrap .rank-math-breadcrumb .last {
  color: var(--am-dark);
  font-weight: 600;
}

.breadcrumb-wrap .rank-math-breadcrumb .separator {
  color: var(--am-muted);
  opacity: 0.65;
}

/* Footer */
.site-footer {
  background: var(--am-dark);
  color: rgba(255, 255, 255, 0.72);
  padding-top: 0;
  border-top: 4px solid var(--am-primary);
}

.footer-main {
  display: grid;
  gap: 36px 32px;
  padding-top: 40px;
  padding-bottom: 40px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .footer-main {
    grid-template-columns: 1.35fr 1fr 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .footer-main:has(.footer-map) {
    grid-template-columns: 1.4fr 1fr 0.9fr 0.9fr 1.15fr;
  }
}

.footer-desc {
  margin: 14px 0 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-width: 36ch;
}

.site-footer h3 {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.site-footer h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 36px;
  height: 2px;
  background: var(--am-primary);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 10px;
}

.site-footer li:last-child {
  margin-bottom: 0;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--am-primary);
}

.footer-about p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-contact-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--am-primary);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-contact-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 3px;
}

.footer-contact-value {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 280px;
}

a.footer-contact-value:hover {
  color: var(--am-primary);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-social a:hover {
  border-color: var(--am-primary);
  background: rgba(255, 107, 0, 0.12);
  color: var(--am-primary);
}

.footer-map .map-embed {
  border-radius: var(--am-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-map .map-embed iframe {
  display: block;
  width: 100%;
  height: 160px;
  border: 0;
}

@media (min-width: 768px) {
  .footer-map .map-embed iframe {
    height: 180px;
  }
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0 22px;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom p {
  margin: 0;
}

/* Mobile sticky */
.mobile-sticky-cta {
  background: var(--am-dark);
  border-top: 2px solid var(--am-accent);
}

.mobile-sticky-cta .sticky-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.sticky-call {
  color: var(--am-accent) !important;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    border-top: 0;
    border-right: 2px solid var(--am-accent);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
  }

  .mobile-sticky-cta .sticky-btn {
    border-color: rgba(255, 255, 255, 0.12);
  }
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 190;
  width: 46px;
  height: 46px;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: var(--am-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--am-accent);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--am-accent);
  outline-offset: 2px;
}

@media (max-width: 767px) {
  .back-to-top {
    right: 14px;
    bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}

/* Service single — Automech Service Details */
.service-detail-hero {
  background: var(--am-dark);
  color: #fff;
  padding: 48px 0 64px;
}

.service-detail-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .service-detail-hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.service-detail-hero .section-eyebrow {
  color: var(--am-accent);
}

.service-detail-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.service-detail-lead {
  font-size: 18px;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 0 28px;
}

.service-detail-hero-media img {
  width: 100%;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.service-offer-intro {
  font-size: 18px;
  max-width: 820px;
  margin: 0 0 24px;
  color: var(--am-text-muted);
}

.service-offer-list {
  display: grid;
  gap: 12px 32px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  max-width: 900px;
}

@media (min-width: 768px) {
  .service-offer-list {
    grid-template-columns: 1fr 1fr;
  }
}

.service-offer-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.5;
}

.service-offer-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--am-primary);
  font-weight: 700;
}

.service-offer-extra,
.service-offer-content {
  max-width: 820px;
  color: var(--am-text-muted);
}

.service-promo-band {
  background: linear-gradient(135deg, var(--am-dark) 0%, var(--am-dark-2) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}

.service-promo-band .section-eyebrow {
  color: var(--am-accent);
}

.service-promo-band h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  margin: 0 0 12px;
  font-weight: 800;
}

.service-promo-band p {
  margin: 0;
  opacity: 0.88;
  font-size: 18px;
}

.service-subcards-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .service-subcards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-subcard {
  background: #fff;
  border-radius: var(--am-radius-lg);
  overflow: hidden;
  box-shadow: var(--am-shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.service-subcard:hover {
  transform: translateY(-4px);
  box-shadow: var(--am-shadow);
}

.service-subcard-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.service-subcard-body {
  padding: 22px 24px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-subcard-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.service-subcard-body p {
  margin: 0 0 16px;
  color: var(--am-text-muted);
  flex: 1;
}

.service-subcard-link {
  font-weight: 700;
  color: var(--am-primary);
}

.service-booking-form-wrap {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 32px;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow-sm);
}

.service-booking-head {
  margin-bottom: 32px;
}

/* Service category — Automech landing (match kit mockup) */
.service-cat-am {
  overflow: hidden;
}

.service-cat-am .section-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.service-cat-am .section-title {
  text-transform: uppercase;
  font-weight: 800;
  line-height: 1.15;
}

/* Hero */
.scat-hero {
  position: relative;
  color: #fff;
  padding: 72px 0 0;
  background: var(--am-dark);
}

.scat-hero-bg,
.scat-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.scat-hero-bg {
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.scat-hero-overlay {
  background: linear-gradient(105deg, rgba(11, 15, 25, 0.97) 42%, rgba(11, 15, 25, 0.55) 100%);
}

.scat-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
  padding-bottom: 56px;
}

@media (min-width: 992px) {
  .scat-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.scat-hero .section-eyebrow {
  color: var(--am-primary);
  margin-bottom: 12px;
}

.scat-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
  text-transform: uppercase;
}

.scat-lead {
  font-size: 16px;
  opacity: 0.82;
  max-width: 480px;
  margin: 0 0 32px;
  line-height: 1.7;
}

.scat-hero .hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.scat-hero-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}

.scat-hero-media>img {
  width: 100%;
  display: block;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.scat-play-btn {
  position: absolute;
  inset: auto 24px 24px auto;
  width: auto;
  height: auto;
  background: transparent;
}

.scat-play-btn span {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--am-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.scat-brand-bar {
  position: relative;
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
}

.scat-brand-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px 16px;
}

@media (min-width: 768px) {
  .scat-brand-inner {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scat-brand-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.scat-brand-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.scat-brand-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

/* Experience band (dark) */
.scat-exp-band {
  background: var(--am-dark);
  color: #fff;
  padding: 0;
}

.scat-exp-grid {
  display: grid;
  gap: 0;
  align-items: stretch;
}

@media (min-width: 992px) {
  .scat-exp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scat-exp-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
}

.scat-exp-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  gap: 28px;
}

.scat-exp-circle {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 3px solid var(--am-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.scat-exp-circle strong {
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
  color: var(--am-primary);
}

.scat-exp-circle span {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.3;
  max-width: 100px;
}

.scat-learn-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.scat-learn-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: border-color 0.2s, background 0.2s;
}

.scat-learn-btn:hover .scat-learn-play {
  border-color: var(--am-primary);
  background: var(--am-primary);
}

/* Quality care (light) */
.scat-quality {
  background: #fff;
  padding: 72px 0 0;
}

.scat-quality-head {
  max-width: 720px;
  margin-bottom: 36px;
}

.scat-quality-head .section-eyebrow {
  color: var(--am-primary);
}

.scat-pillars {
  display: grid;
  gap: 16px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .scat-pillars {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scat-pillar {
  background: var(--am-dark);
  color: #fff;
  padding: 28px 22px;
  border-radius: 4px;
  text-align: center;
}

.scat-pillar-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scat-pillar-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.scat-pillar strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.scat-pillar p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.scat-quality-wide {
  width: 100%;
  margin-top: 0;
}

.scat-quality-wide img {
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
}

/* Services grid */
.scat-grid {
  background: var(--am-bg-alt);
  padding: 72px 0 0;
}

.scat-section-head {
  margin-bottom: 48px;
}

.scat-section-head .section-eyebrow {
  color: var(--am-primary);
}

.scat-section-head .section-desc {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--am-muted);
}

.scat-icon-grid {
  display: grid;
  gap: 24px;
}

.hub-services-pagination {
  margin-top: 40px;
}

.hub-services-pagination .page-numbers {
  text-decoration: none;
}

.hub-services-pagination .page-numbers:hover {
  border-color: var(--am-primary);
  color: var(--am-primary);
}

@media (min-width: 768px) {
  .scat-icon-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scat-icon-card {
  background: #fff;
  text-align: center;
  border: 1px solid var(--am-border);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.scat-icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--am-shadow);
}

.scat-icon-card a {
  color: inherit;
  display: block;
}

.scat-icon-card-icon {
  width: 100%;
  height: auto;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scat-icon-card-body {
  padding: 10px;
  overflow: hidden;
}

.scat-icon-card-icon img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.scat-icon-fallback {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.1);
  color: var(--am-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.scat-icon-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.scat-icon-card p {
  margin: 0 0 18px;
  color: var(--am-muted);
  font-size: 14px;
  line-height: 1.6;
}

.scat-read-more {
  color: var(--am-green);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  float: right;
}

/* Mid CTA strip */
.scat-mid-cta {
  background: var(--am-dark);
  color: #fff;
  padding: 28px 0;
  margin-top: 48px;
}

.scat-mid-cta-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.scat-mid-cta h2 {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 800;
  text-transform: uppercase;
  flex: 1;
  min-width: 220px;
}

/* Why choose — dark */
.scat-features {
  background: var(--am-dark);
  color: #fff;
  padding: 72px 0;
}

.scat-features .section-eyebrow {
  color: var(--am-primary);
}

.scat-features .section-title {
  color: #fff;
}

.scat-features-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 48px;
}

.scat-feat-badge {
  background: var(--am-primary);
  color: #fff;
  padding: 18px 22px;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.35;
  max-width: 180px;
}

.scat-feat-grid {
  display: grid;
  gap: 32px 24px;
}

@media (min-width: 768px) {
  .scat-feat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scat-feat-item {
  padding-top: 0;
  border: none;
}

.scat-feat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--am-primary);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.scat-feat-item h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
}

.scat-feat-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  line-height: 1.6;
}

/* Testimonials */
.scat-reviews {
  background: #fff;
  padding: 72px 0;
}

.scat-reviews-split {
  display: grid;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .scat-reviews-split {
    grid-template-columns: 1fr 1fr;
  }
}

.scat-reviews-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.scat-reviews-cards {
  display: grid;
  gap: 20px;
  align-content: center;
}

.scat-avatar-ph {
  background: var(--am-bg-alt);
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 50%;
}

/* Process — 3 circles */
.scat-process {
  background: var(--am-bg-alt);
  padding: 72px 0;
}

.scat-process .process-timeline {
  display: grid;
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .scat-process .process-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .scat-process .process-timeline::before {
    display: none;
  }
}

.scat-process .process-item {
  background: transparent;
  box-shadow: none;
  padding: 0 12px;
}

.scat-process .process-num {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--am-primary);
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scat-process .process-item h3 {
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.scat-process .process-item p {
  font-size: 14px;
  color: var(--am-muted);
  margin: 0;
}

/* Detail section */
.scat-detail {
  background: #fff;
  padding: 72px 0;
}

.scat-detail-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 992px) {
  .scat-detail-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.scat-detail-head .section-eyebrow {
  color: var(--am-primary);
}

.scat-detail-boxes {
  display: grid;
  gap: 14px;
  margin: 28px 0 32px;
}

@media (min-width: 480px) {
  .scat-detail-boxes {
    grid-template-columns: 1fr 1fr;
  }
}

.scat-detail-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--am-dark);
  color: #fff;
  padding: 20px 18px;
  border-radius: 4px;
}

.scat-detail-box img {
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.scat-detail-check {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--am-primary);
  font-weight: 800;
}

.scat-detail-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  text-transform: uppercase;
}

.scat-detail-box p {
  margin: 0;
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

.scat-detail-media img {
  width: 100%;
  object-fit: cover;
  min-height: 400px;
}

/* Appointment bar */
.scat-appointment {
  background: var(--am-dark);
  color: #fff;
  padding: 36px 0;
  border-top: 3px solid var(--am-primary);
}

.scat-appointment-inner {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 992px) {
  .scat-appointment-inner {
    grid-template-columns: minmax(220px, 340px) 1fr;
    gap: 32px;
  }
}

.scat-appointment-copy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.scat-appointment-icon {
  width: 48px;
  height: 48px;
  background: var(--am-primary);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.scat-appointment-copy h2 {
  margin: 0;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.25;
}

.scat-appointment-form {
  background: transparent;
}

.scat-appointment-form .booking-form {
  max-width: none;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .scat-appointment-form .booking-form {
    grid-template-columns: repeat(3, 1fr) auto;
    align-items: end;
  }
}

.scat-appointment-form .form-row {
  margin: 0;
}

.scat-appointment-form .form-row:has(textarea) {
  display: none;
}

.scat-appointment-form .form-row label {
  font-size: 11px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 6px;
}

.scat-appointment-form input,
.scat-appointment-form select {
  background: rgb(255, 255, 255);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #000;
  border-radius: 4px;
  padding: 12px 14px;
  width: 100%;
}

.scat-appointment-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.scat-appointment-form .btn-primary {
  width: 100%;
  white-space: nowrap;
  padding: 12px 24px;
  background: var(--am-green);
  border-color: var(--am-green);
}

.scat-appointment-form .form-notice {
  grid-column: 1 / -1;
}

.service-cat-pagination {
  margin-top: 40px;
}

.service-cat-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.service-cat-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--am-border);
  font-weight: 600;
  color: var(--am-dark);
  background: #fff;
}

.service-cat-pagination .page-numbers.current {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

/* Services hub page — category cards */
.scat-cat-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .scat-cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.scat-cat-card {
  background: #fff;
  border: 1px solid var(--am-border);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  border: none;
}

.scat-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--am-shadow);
}

.scat-cat-card a {
  color: inherit;
  display: block;
  height: 100%;
}

.scat-cat-card-thumb img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.scat-cat-card-body {
  padding: 10px;
}

.scat-cat-card-body h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.scat-cat-card-body p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--am-muted);
  line-height: 1.55;
}

.scat-cat-count {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--am-primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-services .scat-grid {
  padding-bottom: 20px;
}

.page-services .scat-mid-cta {
  margin-top: 48px;
}

/* Legacy service cat (page hub) */
.service-cat-hero {
  background: var(--am-dark);
  color: #fff;
  padding: 48px 0 64px;
}

.service-cat-hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .service-cat-hero-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

.service-cat-hero .section-eyebrow {
  color: var(--am-accent);
}

.service-cat-hero h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.service-cat-lead {
  font-size: 18px;
  opacity: 0.9;
  max-width: 540px;
  margin: 0 0 28px;
}

.service-cat-hero-media img {
  width: 100%;
  border-radius: var(--am-radius-lg);
  box-shadow: var(--am-shadow);
}

.service-cat-filter-wrap {
  background: #fff;
  border-bottom: 1px solid var(--am-border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 20px rgba(11, 15, 25, 0.04);
}

.service-cat-filter-wrap .container {
  position: relative;
}

.service-cat-filter-wrap .container::before,
.service-cat-filter-wrap .container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 4px;
  width: 28px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

.service-cat-filter-wrap .container::before {
  left: 0;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.service-cat-filter-wrap .container::after {
  right: 0;
  background: linear-gradient(270deg, #fff 0%, rgba(255, 255, 255, 0) 100%);
}

.service-cat-filter-wrap.is-scroll-left .container::before,
.service-cat-filter-wrap.is-scroll-right .container::after {
  opacity: 1;
}

.service-cat-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  padding: 4px 4px 10px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 107, 0, 0.45) transparent;
}

.service-cat-filter::-webkit-scrollbar {
  height: 5px;
}

.service-cat-filter::-webkit-scrollbar-track {
  background: transparent;
  margin: 0 8px;
}

.service-cat-filter::-webkit-scrollbar-thumb {
  background: rgba(255, 107, 0, 0.35);
  border-radius: 999px;
}

.service-cat-filter::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 107, 0, 0.55);
}

.service-cat-pill {
  flex-shrink: 0;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--am-border);
  background: #fff;
  color: var(--am-dark);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.service-cat-pill:hover {
  border-color: var(--am-primary);
  color: var(--am-primary);
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.12);
  transform: translateY(-1px);
}

.service-cat-pill.is-active {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.28);
}

.service-cat-pill.is-active:hover {
  color: #fff;
  background: var(--am-primary-hover);
  border-color: var(--am-primary-hover);
}

.service-cat-intro {
  max-width: 760px;
  margin: 0 auto 40px;
}

.service-cat-pagination {
  margin-top: 40px;
}

.service-cat-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.service-cat-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--am-border);
  font-weight: 600;
  color: var(--am-dark);
}

.service-cat-pagination .page-numbers.current {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

.cta-bar-copy {
  text-align: center;
}

@media (min-width: 768px) {
  .cta-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    text-align: left;
  }

  .cta-bar-copy {
    text-align: left;
    flex: 1;
  }
}

.cta-bar-desc {
  margin: 8px 0 0;
  opacity: 0.85;
  font-size: 16px;
}

.service-hero-am {
  display: grid;
  gap: 32px;
  align-items: end;
}

@media (min-width: 992px) {
  .service-hero-am {
    grid-template-columns: 1.2fr 1fr;
  }
}

.service-hero-am .service-hero-image img {
  border-radius: var(--am-radius-lg);
  width: 100%;
}

.service-sidebar-cta {
  background: var(--am-bg-alt);
  padding: 24px;
  border-radius: var(--am-radius-lg);
  border-left: 4px solid var(--am-primary);
  position: sticky;
  top: 100px;
}

.content-with-sidebar {
  display: grid;
  gap: 40px;
}

@media (min-width: 992px) {
  .content-with-sidebar {
    grid-template-columns: 1fr 320px;
  }
}

.site-branding .custom-logo,
.site-logo-link img {
  max-height: 48px;
  width: auto;
  display: block;
}

.footer-logo .custom-logo {
  max-height: 40px;
  margin-bottom: 16px;
}

/* AOS — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body.aos-disabled [data-aos] {
  opacity: 1 !important;
  transform: none !important;
}

/* Contact page — Automech Contact Us */
.page-contact .section {
  padding: 20px 0;
}

.pct-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .pct-hero {
    min-height: 340px;
  }
}

.pct-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.pct-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.55) 0%, rgba(11, 15, 25, 0.82) 100%);
}

.pct-hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 64px;
}

.pct-hero .section-eyebrow {
  color: var(--am-accent);
  margin-bottom: 12px;
}

.pct-hero h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
}

/* Touch — info + portrait */
.pct-touch {
  background: var(--am-bg);
}

.pct-touch-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 992px) {
  .pct-touch-grid {
    grid-template-columns: 1fr minmax(280px, 42%);
    gap: 56px;
  }
}

.pct-touch-title {
  margin: 0 0 32px;
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 520px;
}

.pct-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pct-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.pct-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--am-dark);
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pct-info-icon--zalo {
  background: var(--color-zalo, #0068ff);
  font-weight: 800;
  font-size: 18px;
}

.pct-info-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--am-muted);
  margin-bottom: 4px;
}

.pct-info-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--am-dark);
  text-decoration: none;
}

a.pct-info-value:hover {
  color: var(--am-primary);
}

.pct-info-hours {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  color: var(--am-muted);
  line-height: 1.5;
}

.pct-info-map-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--am-primary);
}

.pct-touch-media img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

/* Booking block */
.pct-booking {
  background: var(--am-bg-alt);
}

.pct-booking-head {
  display: grid;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}

@media (min-width: 768px) {
  .pct-booking-head {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.pct-booking-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 480px;
}

.pct-booking-media img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.pct-booking-form-wrap {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  padding: 28px 24px 32px;
  box-shadow: var(--am-shadow);
}

@media (min-width: 768px) {
  .pct-booking-form-wrap {
    padding: 36px 40px 40px;
  }
}

.booking-form--contact {
  max-width: none;
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .booking-form--contact {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
  }

  .booking-form--contact .form-row--note,
  .booking-form--contact .form-row--submit,
  .booking-form--contact .form-notice {
    grid-column: 1 / -1;
  }
}

.booking-form--contact .form-row {
  margin: 0;
}

.booking-form--contact .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--am-muted);
  margin-bottom: 8px;
}

.booking-form--contact input,
.booking-form--contact select,
.booking-form--contact textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  font-size: 15px;
  background: #fff;
}

.booking-form--contact textarea {
  min-height: 120px;
  resize: vertical;
}

.booking-form--contact .form-row--submit .btn-primary {
  width: 100%;
  padding: 16px 32px;
  background: var(--am-dark);
  border-color: var(--am-dark);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  border-radius: 4px;
}

.booking-form--contact .form-row--submit .btn-primary:hover {
  background: var(--am-primary);
  border-color: var(--am-primary);
}

/* FAQ */
.pct-faq {
  background: var(--am-bg);
}

.pct-faq-grid {
  display: grid;
  gap: 40px;
}

@media (min-width: 992px) {
  .pct-faq-grid {
    grid-template-columns: minmax(260px, 36%) 1fr;
    gap: 56px;
    align-items: start;
  }
}

.pct-faq-title {
  margin: 0 0 28px;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.15;
}

.pct-support-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 480px) {
  .pct-support-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pct-support-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  background: var(--am-bg-alt);
}

.pct-support-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.pct-support-avatar--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--am-dark);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
}

.pct-support-card strong {
  display: block;
  font-size: 14px;
  text-transform: uppercase;
}

.pct-support-card span {
  font-size: 12px;
  color: var(--am-muted);
}

.pct-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--am-border);
  border-radius: 4px;
  overflow: hidden;
}

.pct-faq-item {
  border-bottom: 1px solid var(--am-border);
  background: #fff;
}

.pct-faq-item:last-child {
  border-bottom: none;
}

.pct-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.pct-faq-q::-webkit-details-marker {
  display: none;
}

.pct-faq-chevron {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--am-muted);
}

.pct-faq-item[open] .pct-faq-chevron {
  transform: rotate(180deg);
}

.pct-faq-a {
  padding: 0 20px 18px;
  color: var(--am-muted);
  font-size: 14px;
  line-height: 1.65;
}

.pct-faq-a p {
  margin: 0 0 10px;
}

.pct-faq-a p:last-child {
  margin-bottom: 0;
}

/* Full-width map */
.pct-map {
  line-height: 0;
}

.pct-map-embed iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

@media (min-width: 768px) {
  .pct-map-embed iframe {
    height: 440px;
  }
}

.pct-booking-actions {
  margin-top: 24px;
}

/* Booking modal */
body.booking-modal-open {
  overflow: hidden;
}

.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
}

.booking-modal-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 560px;
  max-height: min(94vh, 780px);
  overflow: hidden;
  background: #fff;
  border-radius: var(--am-radius-lg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 64px rgba(11, 15, 25, 0.35);
  outline: none;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-modal.is-open .booking-modal-panel {
  transform: translateY(0) scale(1);
}

.booking-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.booking-modal-close:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: rotate(90deg);
}

.booking-modal-header {
  flex-shrink: 0;
  padding: 28px 52px 24px 28px;
  background: linear-gradient(135deg, var(--am-dark) 0%, var(--am-dark-2) 100%);
  color: #fff;
  border-bottom: 3px solid var(--am-primary);
}

@media (min-width: 480px) {
  .booking-modal-header {
    padding: 32px 56px 28px 32px;
  }
}

.booking-modal-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--am-accent);
}

.booking-modal-header h2 {
  margin: 0 0 10px;
  font-size: clamp(20px, 3vw, 24px);
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
}

.booking-modal-lead {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

.booking-modal-body {
  flex: 1;
  overflow: auto;
  padding: 22px 24px 26px;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 480px) {
  .booking-modal-body {
    padding: 24px 32px 28px;
  }
}

.booking-modal-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.booking-modal-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--am-bg-alt);
  border: 1px solid var(--am-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--am-dark);
}

.booking-modal-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--am-green);
  flex-shrink: 0;
}

.booking-form--modal {
  max-width: none;
  display: grid;
  gap: 14px;
}

@media (min-width: 520px) {
  .booking-form--modal {
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
  }

  .booking-form--modal .form-row--note,
  .booking-form--modal .form-row--submit,
  .booking-form--modal .form-notice {
    grid-column: 1 / -1;
  }
}

.booking-form--modal .form-row {
  margin: 0;
}

.booking-form--modal .form-row label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--am-muted);
  margin-bottom: 6px;
}

.booking-form--modal input,
.booking-form--modal select,
.booking-form--modal textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--am-border);
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  color: var(--am-text);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form--modal input::placeholder,
.booking-form--modal textarea::placeholder {
  color: #9ca3af;
}

.booking-form--modal input:hover,
.booking-form--modal select:hover,
.booking-form--modal textarea:hover {
  border-color: #c5cad3;
}

.booking-form--modal input:focus,
.booking-form--modal select:focus,
.booking-form--modal textarea:focus {
  outline: none;
  border-color: var(--am-primary);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.14);
}

.booking-form--modal select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.booking-form--modal textarea {
  min-height: 96px;
  resize: vertical;
}

.booking-form--modal .form-row--submit {
  margin-top: 4px;
}

.booking-form--modal .form-row--submit .btn-primary {
  width: 100%;
  padding: 15px 24px;
  background: var(--am-primary);
  border-color: var(--am-primary);
  border-radius: 6px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 24px rgba(255, 107, 0, 0.28);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.booking-form--modal .form-row--submit .btn-primary:hover {
  background: var(--am-primary-hover);
  border-color: var(--am-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 107, 0, 0.34);
}

.booking-form--modal .form-row--submit .btn-primary:active {
  transform: translateY(0);
}

.booking-form--modal .form-notice {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  margin: 0;
}

.booking-form--modal .form-notice.success {
  background: rgba(34, 165, 89, 0.1);
  color: #166534;
  border: 1px solid rgba(34, 165, 89, 0.25);
}

.booking-form--modal .form-notice.error {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.booking-modal-hotline {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--am-border);
  text-align: center;
  font-size: 14px;
  color: var(--am-muted);
}

.booking-modal-hotline a {
  font-weight: 800;
  color: var(--am-primary);
  margin-left: 4px;
}

.booking-modal-hotline a:hover {
  color: var(--am-primary-hover);
}

@media (prefers-reduced-motion: reduce) {
  .booking-modal,
  .booking-modal-panel {
    transition: none;
  }

  .booking-modal-panel {
    transform: none;
  }

  .booking-modal-close:hover {
    transform: none;
  }
}

/* Single blog post */
.post-single-hero {
  position: relative;
  color: #fff;
  text-align: center;
  overflow: hidden;
  background: var(--am-dark);
}

.post-single-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.post-single-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 15, 25, 0.5) 0%, rgba(11, 15, 25, 0.88) 100%);
}

.post-single-hero-inner {
  position: relative;
  z-index: 1;
  padding: 56px 0 64px;
  max-width: 820px;
  margin: 0 auto;
}

.post-single-hero h1 {
  margin: 12px 0 20px;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 800;
  line-height: 1.15;
}

.post-single-hero .section-eyebrow {
  color: var(--am-accent);
}

.post-single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  opacity: 0.88;
}

.post-single-meta li + li::before {
  content: "·";
  margin-right: 20px;
  opacity: 0.6;
}

.post-single-body {
  padding-top: 48px;
  padding-bottom: 48px;
}

.post-single-layout {
  align-items: start;
}

.post-single-content {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: 15px;
  box-shadow: var(--am-shadow);
}

@media (min-width: 768px) {
  .post-single-content {
    padding: 15px;
  }
}

.post-single-content h2 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin-top: 36px;
}

.post-single-content h3 {
  font-size: 20px;
  margin-top: 28px;
}

.post-single-content img {
  border-radius: var(--am-radius);
}

.post-single-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--am-border);
}

.post-single-tags-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--am-muted);
  margin-right: 4px;
}

.post-single-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--am-bg-alt);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--am-dark);
}

.post-single-tag:hover {
  background: rgba(255, 107, 0, 0.1);
  color: var(--am-primary);
}

.post-single-nav {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

@media (min-width: 640px) {
  .post-single-nav {
    grid-template-columns: 1fr 1fr;
  }
}

.post-single-nav-item {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  background: var(--am-bg-alt);
  color: inherit;
}

.post-single-nav-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--am-muted);
  margin-bottom: 6px;
}

.post-single-nav-item strong {
  font-size: 15px;
  line-height: 1.35;
}

.post-single-nav-next {
  text-align: right;
}

.post-single-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-sidebar-card {
  background: #fff;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
  padding: 24px;
  box-shadow: var(--am-shadow);
}

.post-sidebar-card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
}

.post-sidebar-booking {
  border-left: 4px solid var(--am-primary);
  /* position: sticky;
  top: 96px; */
}

.post-sidebar-booking p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--am-muted);
  line-height: 1.5;
}

.post-sidebar-icon {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: var(--am-primary);
  border-radius: 4px;
  font-size: 20px;
  margin-bottom: 12px;
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

.post-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-sidebar-list li {
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.post-sidebar-list li:last-child {
  margin-bottom: 0;
}

.post-sidebar-list strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--am-muted);
  margin-bottom: 4px;
}

.post-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.post-sidebar-cats {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-sidebar-cats a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--am-border);
  font-weight: 600;
  font-size: 14px;
}

.post-sidebar-cats li:last-child a {
  border-bottom: none;
}

.post-sidebar-back {
  font-size: 14px;
  font-weight: 700;
  color: var(--am-primary);
}

.post-single-related-head {
  margin-bottom: 32px;
  text-align: center;
}

.post-single-related-head .section-title {
  margin: 0;
}
.related-posts{
  padding-top: 15px;
}
.related-posts-slider,
.related-services-slider {
  position: relative;
  display: block;
  margin: 0 -12px;
}

.related-posts-slider .slick-list,
.related-services-slider .slick-list {
  padding: 4px 0 12px;
}

.related-posts-slider .slick-slide,
.related-services-slider .slick-slide {
  height: auto;
  padding: 0 12px;
}

.related-posts-slider .slick-slide > div,
.related-services-slider .slick-slide > div,
.related-posts-slider .post-card,
.related-services-slider .service-card-am {
  height: 100%;
}

.related-posts-slider .post-card-link,
.related-services-slider .service-card-am a {
  height: 100%;
}

.related-slick-arrow {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 50%;
  background: #fff;
  color: var(--am-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.related-slick-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.related-slick-arrow:hover {
  background: var(--am-primary);
  color: #fff;
  transform: translateY(-2px);
}

.related-slick-prev {
  left: -10px;
}

.related-slick-next {
  right: -10px;
}

.related-posts-slider .slick-dots,
.related-services-slider .slick-dots {
  margin-top: 18px;
}

.related-posts-slider .slick-dots li button,
.related-services-slider .slick-dots li button {
  background: rgba(17, 24, 39, 0.18) !important;
}

.related-posts-slider .slick-dots li.slick-active button,
.related-services-slider .slick-dots li.slick-active button {
  background: var(--am-primary) !important;
}

@media (max-width: 767px) {
  .related-slick-prev {
    left: 0;
  }

  .related-slick-next {
    right: 0;
  }
}

.service-grid-3:not(.related-services-slider) {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .service-grid-3:not(.related-services-slider) {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Blog category archive */
.blog-cat-hero .blog-cat-desc {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.88;
}

.blog-cat-hero .blog-cat-desc p:last-child {
  margin-bottom: 0;
}

.blog-cat-count {
  margin: 14px 0 0;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.72;
}

.blog-cat-filter-wrap {
  padding: 20px 0;
  background: var(--am-bg-alt);
  border-bottom: 1px solid var(--am-border);
}

.blog-cat-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(11, 15, 25, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.service-cat-pill.is-active .blog-cat-pill-count {
  background: rgba(255, 255, 255, 0.22);
}

.blog-archive-main {
  padding-top: 48px;
  padding-bottom: 56px;
}

.blog-archive-empty {
  text-align: center;
  padding: 56px 32px;
  background: var(--am-bg-alt);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius-lg);
}

.blog-archive-empty-icon {
  display: block;
  font-size: 40px;
  margin-bottom: 16px;
}

.blog-archive-empty h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.blog-archive-empty p {
  max-width: 480px;
  margin: 0 auto 24px;
  color: var(--am-muted);
  line-height: 1.6;
}

.blog-archive-pagination {
  margin-top: 48px;
}

.blog-archive-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.blog-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  border: 1px solid var(--am-border);
  font-weight: 600;
  color: var(--am-dark);
  background: #fff;
}

.blog-archive-pagination .page-numbers.current {
  background: var(--am-primary);
  border-color: var(--am-primary);
  color: #fff;
}

/* Dòng xe */
.dong-xe-page .breadcrumb-wrap {
  background: var(--am-bg-alt);
  border-bottom: 1px solid var(--am-border);
}

.dong-xe-page .breadcrumb,
.dong-xe-page .rank-math-breadcrumb {
  font-size: 14px;
  color: var(--am-muted);
}

.dong-xe-page .breadcrumb a,
.dong-xe-page .rank-math-breadcrumb a {
  color: var(--am-muted);
}

.dong-xe-page .breadcrumb a:hover,
.dong-xe-page .rank-math-breadcrumb a:hover {
  color: var(--am-primary);
}

/* Hero */
.dong-xe-hero.page-hero-am {
  text-align: left;
}

.dong-xe-hero-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}

.dong-xe-hero--has-logo .dong-xe-hero-inner {
  flex-direction: row;
  align-items: center;
  gap: 24px;
}

.dong-xe-hero-copy {
  min-width: 0;
  flex: 1;
}

.dong-xe-hero.page-hero-am h1 {
  margin: 10px 0 0;
  /* text-align: left; */
}

.dong-xe-hero-lead,
.dong-xe-hero-desc {
  margin: 14px 0 0;
  opacity: 0.88;
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
}

.dong-xe-hero-desc p:last-child {
  margin-bottom: 0;
}

.dong-xe-hero-logo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: var(--am-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}

.dong-xe-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Hub — lưới logo hãng (4 cột) */
.dong-xe-brands-wrap {
  padding-top: 48px;
  padding-bottom: 56px;
}

.dong-xe-brand-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 576px) {
  .dong-xe-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (min-width: 992px) {
  .dong-xe-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}

.dong-xe-brand-card {
  margin: 0;
  height: 100%;
}

.dong-xe-brand-card-link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  min-height: 168px;
  color: var(--am-dark);
  text-decoration: none;
  background: #f4f4f4;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.dong-xe-brand-card-link:hover {
  background: #ececec;
}

.dong-xe-brand-card-link:hover .dong-xe-brand-name {
  color: var(--am-primary);
}

.dong-xe-brand-logo {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 28px 20px 12px;
  background: #f4f4f4;
}

.dong-xe-brand-logo img {
  max-width: 100%;
  max-height: 76px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.dong-xe-brand-logo-placeholder {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #ddd;
}

.dong-xe-brand-name {
  display: block;
  margin: 0;
  padding: 0 12px 22px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  color: var(--am-dark);
  transition: color 0.2s ease;
}

/* Archive con — danh sách bài */
.dong-xe-archive-wrap {
  padding: 15px;
}

.dong-xe-post-grid {
  display: grid;
  gap: 24px 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 576px) {
  .dong-xe-post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .dong-xe-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 24px;
  }
}

.dong-xe-post-card {
  margin: 0;
  border-radius: 5px;
  overflow: hidden;
}

.dong-xe-post-card-link {
  display: block;
  color: var(--am-dark);
  text-decoration: none;
  background: #f5f5f5;
  transition: background 0.2s ease;
}

.dong-xe-post-card-link:hover {
  background: #efefef;
}

.dong-xe-post-card-link:hover .dong-xe-post-title {
  color: var(--am-primary);
}

.dong-xe-post-media {
  position: relative;
  background: #e8e8e8;
}

.dong-xe-post-media img {
  width: 100%;
  height: auto;
  display: block;
}

.dong-xe-post-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: #ddd;
}

.dong-xe-post-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 12px;
  background: var(--am-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dong-xe-post-title {
  margin: 0;
  padding: 14px 14px 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--am-dark);
  transition: color 0.2s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dong-xe-post-date {
  display: block;
  padding: 0 14px 16px;
  font-size: 14px;
  color: var(--am-muted);
  font-weight: 400;
}

/* Pagination */
.dong-xe-pagination {
  margin-top: 32px;
}

.dong-xe-pagination .nav-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.dong-xe-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 4px;
  background: transparent;
  font-weight: 700;
  font-size: 15px;
  color: var(--am-dark);
}

.dong-xe-pagination .page-numbers:hover {
  color: var(--am-primary);
}

.dong-xe-pagination .page-numbers.current {
  color: var(--am-primary);
  background: transparent;
}

.dong-xe-pagination a.page-numbers.next,
.dong-xe-pagination a.page-numbers.prev {
  background: var(--am-primary);
  color: #fff;
}

.dong-xe-pagination a.page-numbers.next:hover,
.dong-xe-pagination a.page-numbers.prev:hover {
  background: var(--am-primary-hover);
  color: #fff;
}

/* Khối SEO cuối trang */
.dong-xe-seo {
  background: #fff;
  padding: 40px 0 56px;
}

.dong-xe-seo-content {
  color: var(--am-text);
  font-size: 16px;
  line-height: 1.8;
}

.dong-xe-seo-content h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--am-primary);
  margin: 2em 0 0.75em;
}

.dong-xe-seo-content h2:first-child {
  margin-top: 0;
}

.dong-xe-seo-content h3 {
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 800;
  color: var(--am-dark);
  margin: 1.5em 0 0.5em;
}

.dong-xe-seo-content p {
  margin-bottom: 1em;
}

.dong-xe-seo-content ul,
.dong-xe-seo-content ol {
  margin-bottom: 1em;
  padding-left: 1.25em;
}

.dong-xe-empty {
  padding: 32px 0;
  color: var(--am-muted);
  text-align: center;
}

.dong-xe-back-link {
  font-weight: 700;
  color: var(--am-primary);
  text-decoration: none;
}

.dong-xe-back-link:hover {
  color: var(--am-primary-hover);
}

/* Tables — nội dung bài viết, trang, dịch vụ */
.entry-content table,
.post-single-content table,
.dong-xe-seo-content table,
.service-offer-content table,
.page-content table {
  width: 100%;
  margin: 1.5em 0;
  border-collapse: collapse;
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  /* overflow: hidden; */
  font-size: 15px;
  line-height: 1.55;
  background: #fff;
}

.entry-content thead th,
.post-single-content thead th,
.dong-xe-seo-content thead th,
.service-offer-content thead th,
.page-content thead th,
.entry-content tr:first-child th,
.post-single-content tr:first-child th,
.dong-xe-seo-content tr:first-child th,
.service-offer-content tr:first-child th,
.page-content tr:first-child th {
  background: var(--am-dark);
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.entry-content tbody th,
.post-single-content tbody th,
.dong-xe-seo-content tbody th,
.service-offer-content tbody th,
.page-content tbody th {
  background: var(--am-bg-alt);
  font-weight: 700;
  text-align: left;
  padding: 11px 16px;
  border: 1px solid var(--am-border);
  color: var(--am-dark);
}

.entry-content td,
.post-single-content td,
.dong-xe-seo-content td,
.service-offer-content td,
.page-content td {
  padding: 11px 16px;
  border: 1px solid var(--am-border);
  color: var(--am-text);
  vertical-align: top;
}

.entry-content tbody tr:nth-child(even) td,
.post-single-content tbody tr:nth-child(even) td,
.dong-xe-seo-content tbody tr:nth-child(even) td,
.service-offer-content tbody tr:nth-child(even) td,
.page-content tbody tr:nth-child(even) td {
  background: #fafbfc;
}

.entry-content tbody tr:hover td,
.post-single-content tbody tr:hover td,
.dong-xe-seo-content tbody tr:hover td,
.service-offer-content tbody tr:hover td,
.page-content tbody tr:hover td {
  background: rgba(255, 107, 0, 0.04);
}

.entry-content table caption,
.post-single-content table caption,
.dong-xe-seo-content table caption,
.service-offer-content table caption,
.page-content table caption {
  caption-side: bottom;
  padding: 10px 4px 0;
  font-size: 13px;
  color: var(--am-muted);
  text-align: left;
}

/* Gutenberg block table */
.entry-content .wp-block-table,
.post-single-content .wp-block-table,
.dong-xe-seo-content .wp-block-table,
.service-offer-content .wp-block-table,
.page-content .wp-block-table {
  margin: 1.5em 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table table,
.post-single-content .wp-block-table table,
.dong-xe-seo-content .wp-block-table table,
.service-offer-content .wp-block-table table,
.page-content .wp-block-table table {
  margin: 0;
}

.entry-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.post-single-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.dong-xe-seo-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.service-offer-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd),
.page-content .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
  background: #fafbfc;
}

/* Bảng rộng — cuộn ngang trên mobile */
.entry-content,
.post-single-content,
.dong-xe-seo-content,
.service-offer-content,
.page-content {
  overflow-wrap: break-word;
}

@media (max-width: 767px) {
  .entry-content table,
  .post-single-content table,
  .dong-xe-seo-content table,
  .service-offer-content table,
  .page-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .entry-content thead th,
  .post-single-content thead th,
  .dong-xe-seo-content thead th,
  .service-offer-content thead th,
  .page-content thead th,
  .entry-content td,
  .post-single-content td,
  .dong-xe-seo-content td,
  .service-offer-content td,
  .page-content td,
  .entry-content tbody th,
  .post-single-content tbody th,
  .dong-xe-seo-content tbody th,
  .service-offer-content tbody th,
  .page-content tbody th {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;
  }
  .dong-xe-post-grid{
    gap: 15px 20px;
  }
}