/* ---- mobile-about-v195.css ---- */
/* v195 — About Us phone-only corrections. Desktop is untouched. */

body.subpage .about-story-grid,
body.subpage .about-story-heading {
  min-width: 0 !important;
  width: 100% !important;
}

body.subpage .about-story-heading h2 {
  width: 100% !important;
  max-width: 100% !important;
  margin-right: 0 !important;
  font-size: clamp(32px, 9.8vw, 42px) !important;
  line-height: .96 !important;
  letter-spacing: -.055em !important;
  overflow: visible !important;
}

body.subpage .about-story-heading h2 span {
  display: block !important;
  max-width: 100% !important;
  white-space: normal !important;
}

@media (max-width: 350px) {
  body.subpage .about-story-heading h2 {
    font-size: 31px !important;
  }
}


/* v195 — compact About Us mobile flow. Removes viewport-forced empty space. */
body.subpage .about-page > .about-hero-new,
body.subpage main.about-page > section:first-child {
  min-height: 0 !important;
  height: auto !important;
}

body.subpage .about-hero-new {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  align-items: stretch !important;
  align-content: start !important;
  gap: 30px !important;
  padding: 88px 18px 48px !important;
  overflow: visible !important;
}

body.subpage .about-hero-new .about-hero-image {
  order: 1 !important;
  width: 100% !important;
  height: clamp(220px, 55vw, 280px) !important;
  margin: 0 !important;
}

body.subpage .about-hero-new .about-hero-content {
  order: 2 !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 8px !important;
}

body.subpage .about-hero-new .subpage-kicker {
  margin-bottom: 16px !important;
}

body.subpage .about-hero-new .about-hero-content h1 {
  margin-bottom: 18px !important;
}

body.subpage .about-hero-new .about-hero-content p:last-child {
  margin-bottom: 0 !important;
}

body.subpage .about-story-section {
  padding-top: 58px !important;
  padding-bottom: 64px !important;
}

body.subpage .about-story-grid {
  row-gap: 30px !important;
}

@media (max-width: 380px) {
  body.subpage .about-hero-new {
    gap: 24px !important;
    padding-top: 82px !important;
    padding-bottom: 42px !important;
  }

  body.subpage .about-story-section {
    padding-top: 50px !important;
  }
}

/* ---- mobile-about-v202.css ---- */
/* PEK Automotive v202 — phone-only About Us hero order.
   Text appears above the company image. Desktop remains unchanged. */
@media (max-width: 760px) {
  body.subpage .about-hero-new .about-hero-content {
    order: 1 !important;
  }

  body.subpage .about-hero-new .about-hero-image {
    order: 2 !important;
  }

  body.subpage .about-hero-new {
    gap: 28px !important;
  }

  body.subpage .about-hero-new .about-hero-content p:last-child {
    margin-bottom: 0 !important;
  }
}

/* ---- mobile-about-v203.css ---- */
/* PEK Automotive v203 — mobile-only About Us sliders */
@media (max-width: 760px) {
  .subpage .about-mission-section,
  .subpage .about-values-section {
    overflow: hidden;
  }

  .subpage .mission-editorial-grid,
  .subpage .values-grid.values-grid-redesigned {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 1px 8px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    touch-action: pan-x pinch-zoom;
  }

  .subpage .mission-editorial-grid::-webkit-scrollbar,
  .subpage .values-grid.values-grid-redesigned::-webkit-scrollbar {
    display: none;
  }

  .subpage .mission-editorial-card,
  .subpage .values-grid.values-grid-redesigned .values-card,
  .subpage .values-grid.values-grid-redesigned .values-card-wide {
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    grid-column: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box !important;
    transform: none !important;
  }

  .subpage .mission-editorial-card {
    min-height: 310px !important;
    padding: 30px !important;
  }

  .subpage .mission-editorial-card h3 {
    margin-top: 34px !important;
  }

  .subpage .values-grid.values-grid-redesigned .values-card,
  .subpage .values-grid.values-grid-redesigned .values-card-wide {
    min-height: 310px !important;
    align-content: start !important;
    padding: 26px 24px !important;
  }

  .subpage .about-slider-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 17px;
  }

  .subpage .about-values-slider-dots {
    margin-top: 18px;
  }

  .subpage .about-slider-dot {
    width: 10px;
    min-width: 10px;
    height: 10px;
    min-height: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(184,155,94,.35);
    box-shadow: none;
    transition: width .22s ease, background-color .22s ease, transform .22s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .subpage .about-mission-section .about-slider-dot {
    background: rgba(255,255,255,.28);
  }

  .subpage .about-slider-dot.is-active {
    width: 28px;
    background: #b89b5e;
  }

  .subpage .values-actions {
    margin-top: 34px !important;
  }
}

/* ---- mobile-about-v204.css ---- */
/* PEK Automotive v204 — compact mobile spacing in About Us Values slider */
@media (max-width: 760px) {
  body.subpage .about-values-section {
    padding-top: 56px !important;
    padding-bottom: 64px !important;
  }

  body.subpage .about-values-section .values-header.premium-section-head {
    margin: 0 auto 24px !important;
    gap: 0 !important;
  }

  body.subpage .about-values-section .values-intro {
    display: none !important;
  }

  body.subpage .about-values-section .values-grid.values-grid-redesigned {
    margin-top: 0 !important;
  }

  body.subpage .about-values-section .about-values-slider-dots {
    margin-top: 14px !important;
  }
}

/* ---- mobile-menu-v196.css ---- */
/* PEK Automotive v196 — one unified phone navigation on every page.
   Loaded only up to 760px; desktop navigation remains unchanged. */

:root {
  --pek-mobile-header-height: 70px;
  --pek-mobile-menu-gutter: 18px;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: var(--pek-mobile-header-height);
  }

  body.nav-open {
    overflow: hidden !important;
  }

  html body #siteFixedHeader,
  html body #siteFixedHeader.is-scrolled,
  html body #siteFixedHeader.is-light,
  html body #siteFixedHeader.media-static-header {
    position: fixed !important;
    z-index: 10000 !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: var(--pek-mobile-header-height) !important;
    min-height: var(--pek-mobile-header-height) !important;
    max-height: var(--pek-mobile-header-height) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 var(--pek-mobile-menu-gutter) !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.09) !important;
    border-radius: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  html body #siteFixedHeader .brand {
    position: static !important;
    width: auto !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html body #siteFixedHeader .brand-logo {
    width: auto !important;
    height: 39px !important;
    max-width: none !important;
    max-height: 39px !important;
    display: block !important;
    margin: 0 !important;
    object-fit: contain !important;
    filter: none !important;
  }

  html body #siteFixedHeader .nav-toggle {
    position: relative !important;
    inset: auto !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    min-height: 42px !important;
    display: inline-grid !important;
    place-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid rgba(255,255,255,.34) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.025) !important;
    box-shadow: none !important;
    color: #fff !important;
    transform: none !important;
  }

  html body #siteFixedHeader .nav-toggle span {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    width: 16px !important;
    height: 1.5px !important;
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    background: #fff !important;
    transform: translate(-50%, -4px) !important;
    transition: transform .22s ease, opacity .22s ease !important;
  }

  html body #siteFixedHeader .nav-toggle span:last-child {
    transform: translate(-50%, 3px) !important;
  }

  html body #siteFixedHeader .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translate(-50%, -50%) rotate(45deg) !important;
  }

  html body #siteFixedHeader .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
  }

  html body #siteFixedHeader .main-nav {
    position: fixed !important;
    z-index: 9999 !important;
    inset: var(--pek-mobile-header-height) 0 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: calc(100dvh - var(--pek-mobile-header-height)) !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 18px var(--pek-mobile-menu-gutter) max(28px, env(safe-area-inset-bottom)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(0,0,0,.985) !important;
    box-shadow: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-8px) !important;
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  }

  html body #siteFixedHeader .main-nav.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  html body #siteFixedHeader .main-nav > a,
  html body #siteFixedHeader .main-nav > .nav-dropdown > .nav-link {
    position: relative !important;
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: .12em !important;
    text-align: left !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    transform: none !important;
  }

  html body #siteFixedHeader .main-nav > a[aria-current="page"] {
    color: #c4a25e !important;
  }

  html body #siteFixedHeader .main-nav .nav-cta,
  html body #siteFixedHeader .main-nav .nav-contact,
  html body #siteFixedHeader .main-nav .nav-careers,
  html body #siteFixedHeader .main-nav .nav-services {
    width: 100% !important;
    min-height: 58px !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 0 4px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.11) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
  }

  html body #siteFixedHeader .main-nav .nav-cta[aria-current="page"],
  html body #siteFixedHeader .main-nav .nav-services[aria-current="page"] {
    color: #c4a25e !important;
  }

  html body #siteFixedHeader .nav-dropdown {
    position: relative !important;
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html body #siteFixedHeader .nav-dropdown > .dropdown-toggle::after {
    content: "+" !important;
    position: absolute !important;
    right: 4px !important;
    top: 50% !important;
    color: #c4a25e !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    transform: translateY(-50%) !important;
  }

  html body #siteFixedHeader .nav-dropdown.is-open > .dropdown-toggle::after {
    content: "−" !important;
  }

  html body #siteFixedHeader .dropdown-menu {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    max-height: 0 !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 0 0 12px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: max-height .28s ease, padding .28s ease !important;
  }

  html body #siteFixedHeader .nav-dropdown.is-open .dropdown-menu {
    max-height: 270px !important;
    padding: 8px 0 12px 12px !important;
  }

  html body #siteFixedHeader .dropdown-menu a {
    width: 100% !important;
    min-height: 43px !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 10px !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255,255,255,.07) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(255,255,255,.72) !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---- mobile-buttons-v198.css ---- */
/* PEK Automotive v198 — unified mobile button spacing and safe arrow layout.
   Loaded only for screens up to 760px. Desktop remains unchanged. */

@media (max-width: 760px) {
  :root {
    --pek-mobile-btn-height: 52px;
    --pek-mobile-btn-radius: 18px;
    --pek-mobile-btn-padding-x: 18px;
    --pek-mobile-btn-gap: 14px;
    --pek-mobile-btn-font-size: 11px;
  }

  /* Action wrappers */
  .hero-actions,
  .about-actions,
  .services-hero-actions,
  .values-actions,
  .premium-cta-inner,
  .not-found-actions {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .about-actions {
    justify-content: stretch !important;
  }

  /* Unified mobile pill buttons */
  a.btn,
  button.btn,
  a.about-btn,
  a.premium-text-link,
  a.premium-cta-button,
  button.form-submit,
  .services-contact-details .premium-cta-button {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: var(--pek-mobile-btn-height) !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: var(--pek-mobile-btn-gap) !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 13px var(--pek-mobile-btn-padding-x) !important;
    overflow: hidden !important;
    border-radius: var(--pek-mobile-btn-radius) !important;
    font-size: var(--pek-mobile-btn-font-size) !important;
    line-height: 1.28 !important;
    letter-spacing: .11em !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Buttons with an arrow: equal left/right spacing and safe arrow position */
  a.btn,
  a.premium-text-link:has(> span),
  a.premium-cta-button:has(> span) {
    justify-content: space-between !important;
    text-align: left !important;
  }

  /* Buttons without an arrow stay centered */
  button.btn,
  a.about-btn,
  a.premium-text-link:not(:has(> span)),
  a.premium-cta-button:not(:has(> span)),
  button.form-submit {
    justify-content: center !important;
    text-align: center !important;
  }

  a.btn::after,
  a.premium-text-link > span,
  a.premium-cta-button > span {
    position: static !important;
    inset: auto !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 14px !important;
    margin: 0 0 0 auto !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: right !important;
    transform: none !important;
  }

  .about-actions .about-btn,
  .hero-actions .btn,
  .services-hero-actions .premium-cta-button,
  .services-hero-actions .premium-text-link,
  .values-actions .premium-cta-button,
  .values-actions .premium-text-link,
  .premium-cta-inner .premium-cta-button,
  .premium-cta-inner .premium-text-link,
  .home-intro-actions .premium-text-link {
    width: 100% !important;
  }

  /* Service page filter buttons use the same side spacing */
  button.service-tab-button {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    min-height: 68px !important;
    height: auto !important;
    padding: 16px var(--pek-mobile-btn-padding-x) !important;
    overflow: hidden !important;
    border-radius: var(--pek-mobile-btn-radius) !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    text-align: left !important;
  }

  button.service-tab-button > strong,
  button.service-tab-button > span {
    min-width: 0 !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
  }

  /* Contact links as comfortable tap targets */
  .contact-quick-card a,
  .contact-card a {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 40px !important;
    max-width: 100% !important;
    padding: 4px 0 !important;
    line-height: 1.4 !important;
    overflow-wrap: anywhere !important;
  }

  /* Footer social icons */
  .footer-social-link {
    width: 42px !important;
    height: 42px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* ---- About story image mobile proportion fix v263 ---- */
@media (max-width: 760px) {
  body.subpage .about-story-image {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: 4 / 3 !important;
    margin: 4px 0 0 !important;
    overflow: hidden !important;
    border-radius: 22px !important;
  }

  body.subpage .about-story-image img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 22px !important;
  }
}
