/* WP Garage Theme - Mobile First */
:root {
  --color-primary: #ff6b00;
  --color-primary-dark: #e55f00;
  --color-dark: #0b0f19;
  --color-text: #333;
  --color-muted: #666;
  --color-bg: #fff;
  --color-bg-alt: #f5f6f8;
  --color-border: #e0e0e0;
  --color-zalo: #0068ff;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;
  --radius: 8px;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --header-h: 70px;
  --sticky-cta-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-bg);
  padding-bottom: var(--sticky-cta-h);
}
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
.aligncenter{text-align: center;margin: auto;}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.section-alt { background: var(--color-bg-alt); }
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-zalo { background: var(--color-zalo); color: #fff; border-color: var(--color-zalo); }
.btn-zalo:hover { opacity: .9; color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}
.site-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
}
.custom-logo { max-height: 50px; width: auto; }

.main-nav { display: none; }
.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: block;
  padding: 10px 12px;
  color: var(--color-dark);
  font-weight: 500;
  font-size: 14px;
}
.nav-menu .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 50;
}
.nav-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #fff;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 50;
}
.nav-menu .has-dropdown:hover .dropdown,
.nav-menu .menu-item-has-children:hover > .sub-menu,
.nav-menu .menu-item-has-children:focus-within > .sub-menu { display: block; }
.nav-menu .dropdown a,
.nav-menu .sub-menu a { padding: 8px 16px; font-size: 14px; display: block; color: var(--color-text); }
.nav-menu .dropdown a:hover,
.nav-menu .sub-menu a:hover { background: var(--color-bg-alt); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle .bar { width: 24px; height: 2px; background: var(--color-dark); }

@media (min-width: 1024px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .hide-mobile { display: block; }
}
@media (max-width: 1023px) {
  .hide-mobile { display: none; }
  .main-nav.is-open {
    display: block;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 16px;
    max-height: 80vh;
    overflow-y: auto;
  }
  .main-nav.is-open .nav-menu { flex-direction: column; }
  .main-nav.is-open .dropdown,
  .main-nav.is-open .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding-left: 16px;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--color-dark) center/cover no-repeat;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,.85), rgba(232,93,4,.4));
}
.hero-content { position: relative; z-index: 1; padding: 60px 16px; }
.hero h1 { font-size: clamp(26px, 5vw, 42px); margin: 0 0 16px; line-height: 1.2; }
.hero-sub { font-size: 18px; opacity: .95; margin-bottom: 24px; max-width: 600px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Section titles */
.section-title { font-size: clamp(22px, 4vw, 32px); margin: 0 0 12px; color: var(--color-dark); }
.section-desc { color: var(--color-muted); margin-bottom: 32px; }

/* Grids */
.service-grid, .post-grid, .why-grid, .reviews-grid, .repair-grid, .process-grid, .ba-grid {
  display: grid;
  gap: 24px;
}
.service-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.post-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.service-grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.why-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reviews-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.repair-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.process-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.ba-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* Cards */
.service-card, .post-card a{
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s;
}
.service-card:hover, .post-card:hover { transform: translateY(-4px); }
.service-card a, .post-card-link { color: inherit; display: block;}
.service-card-icon { font-size: 32px; margin-bottom: 12px; }
.post-card-placeholder { background: linear-gradient(135deg, #ddd, #eee); }
.post-card-body { padding: 16px; }
.post-card h3, .service-card h3 { margin: 0 0 8px; font-size: 18px; color: var(--color-dark); }
.read-more { font-size: 14px; color: var(--color-primary); font-weight: 600; }

/* Why / Reviews */
.why-item { text-align: center;}
.why-icon { font-size: 36px; display: block; margin-bottom: 12px; }
.review-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stars .star { color: #ddd; }
.stars .star.filled { color: #f5a623; }
.review-text { font-style: italic; margin: 12px 0; }
.review-author { font-weight: 600; color: var(--color-muted); font-size: 14px; }

/* Process */
.process-item {
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.process-num {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 20px;
  margin-bottom: 12px;
}

/* CTA Bar */
.cta-bar { background: var(--color-dark); color: #fff; }
.cta-bar-title { margin: 0 0 20px; font-size: 24px; text-align: center; }
.cta-bar-inner { text-align: center; padding: 40px 16px; }
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-bar .btn-outline { color: #fff; border-color: #fff; }
.cta-bar .btn-outline:hover { background: #fff; color: var(--color-dark); }

/* Breadcrumb */
.breadcrumb-wrap { background: var(--color-bg-alt); padding: 12px 0; font-size: 14px; }
.breadcrumb { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: 8px; color: var(--color-muted); }

/* Blog layout */
.blog-layout { display: grid; gap: 32px; }
@media (min-width: 992px) {
  .blog-layout { grid-template-columns: 1fr 300px; }
}
.blog-header h1 { font-size: clamp(24px, 4vw, 36px); margin: 8px 0; }
.blog-cat { font-size: 13px; text-transform: uppercase; font-weight: 600; }
.blog-meta { color: var(--color-muted); font-size: 14px; }
.blog-featured { margin: 24px 0; border-radius: var(--radius); overflow: hidden; }
.entry-content { max-width: 100%; }
.entry-content h2 { font-size: 22px; margin-top: 32px; }
.entry-content h3 { font-size: 18px; }

.garage-info-box {
  background: var(--color-bg-alt);
  padding: 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--color-primary);
}

/* Service single */
.service-hero h1 { font-size: clamp(26px, 4vw, 38px); }
.service-hero .lead { font-size: 18px; color: var(--color-muted); }
.repair-item { background: #fff; padding: 20px; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Footer */
.site-footer { background: var(--color-dark); color: #ccc; padding-top: 48px; }
.footer-main {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  padding-bottom: 32px;
}
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #ccc; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; text-align: center; font-size: 14px; }
.map-embed iframe { width: 100%; height: 200px; border: 0; border-radius: var(--radius); }

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0,0,0,.12);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sticky-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-dark);
  border-right: 1px solid var(--color-border);
}
.sticky-btn:last-child { border-right: none; }
.sticky-call { color: var(--color-primary); }
.sticky-zalo { color: var(--color-zalo); }
.sticky-maps { color: #34a853; }
.sticky-btn .icon { font-size: 20px; }

@keyframes stickyCtaPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.35);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(229, 57, 53, 0);
  }
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    top: 50%;
    bottom: auto;
    left: auto;
    right: 18px;
    flex-direction: column;
    width: 78px;
    padding-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    transform: translateY(-50%);
    animation: stickyCtaPulse 1.6s ease-in-out infinite;
  }

  .mobile-sticky-cta .sticky-btn {
    min-height: 70px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-sticky-cta .sticky-btn:last-child {
    border-bottom: 0;
  }
}

/* Booking form */
.booking-form { max-width: 480px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 16px;
}
.form-notice { padding: 12px; border-radius: var(--radius); margin-bottom: 16px; }
.form-notice.success { background: #d4edda; color: #155724; }
.form-notice.error { background: #f8d7da; color: #721c24; }

.booking-layout, .contact-layout { display: grid; gap: 32px; }
@media (min-width: 768px) {
  .booking-layout, .contact-layout { grid-template-columns: 1fr 320px; }
}

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 32px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.pagination .current { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* Rank Math breadcrumb override */
.rank-math-breadcrumb { font-size: 14px; }
.rank-math-breadcrumb a { color: var(--color-muted); }
