/* PEK Automotive v193 — phone-only homepage refinement.
   This stylesheet is loaded with media="(max-width: 760px)" so the desktop
   composition remains unchanged. */

:root {
  --home-mobile-gutter: 18px;
  --home-mobile-header: 70px;
  --home-mobile-radius: 20px;
  --home-mobile-section: 72px;
  --home-mobile-hero-media: clamp(292px, 44svh, 405px);
  --home-mobile-hero-media-offset: 18px;
}

html {
  scroll-padding-top: var(--home-mobile-header);
}

body.home-page {
  overflow-x: hidden;
  background: #000;
}

/* Header and navigation */
html body.home-page #siteFixedHeader,
html body.home-page #siteFixedHeader.is-scrolled,
html body.home-page #siteFixedHeader.is-light {
  height: var(--home-mobile-header) !important;
  min-height: var(--home-mobile-header) !important;
  max-height: var(--home-mobile-header) !important;
  padding: 0 var(--home-mobile-gutter) !important;
  border-bottom-color: rgba(255,255,255,.09) !important;
}

html body.home-page #siteFixedHeader .brand-logo {
  width: auto !important;
  height: 39px !important;
  max-height: 39px !important;
}

html body.home-page #siteFixedHeader .nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  background: rgba(255,255,255,.025);
}

html body.home-page #siteFixedHeader .nav-toggle span {
  position: absolute;
  width: 16px;
  height: 1.5px;
  margin: 0;
  transform: translateY(-3px);
  transition: transform .22s ease, opacity .22s ease;
}

html body.home-page #siteFixedHeader .nav-toggle span:last-child {
  transform: translateY(3px);
}

html body.home-page #siteFixedHeader .nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

html body.home-page #siteFixedHeader .nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

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

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

html body.home-page #siteFixedHeader .main-nav > a,
html body.home-page #siteFixedHeader .main-nav > .dropdown > .nav-link {
  min-height: 58px;
  padding: 0 4px !important;
  border-bottom: 1px solid rgba(255,255,255,.11);
  font-size: 13px !important;
  letter-spacing: .12em !important;
}

html body.home-page #siteFixedHeader .main-nav .nav-cta {
  width: 100%;
  min-height: 58px !important;
  height: 58px !important;
  padding: 0 4px !important;
  justify-content: space-between;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 0 !important;
}

html body.home-page #siteFixedHeader .nav-dropdown {
  width: 100%;
}

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

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

html body.home-page #siteFixedHeader .dropdown-menu a {
  min-height: 43px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: rgba(255,255,255,.72) !important;
  font-size: 11px;
}

/* Hero: video first, copy below, no desktop overlap. */
/* Override the older full-viewport cover rule only on phones. */
html body.home-page main > section.hero:first-child,
html body.home-page main > section#top.hero:first-child {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

.home-page .hero {
  display: block;
  height: auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #000;
}

.home-page .hero::before {
  opacity: .22;
  background-size: 44px 44px;
}

.home-page .hero::after {
  z-index: 2;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,.02) 0%,
      rgba(0,0,0,.02) 35%,
      rgba(0,0,0,.32) 49%,
      rgba(0,0,0,.88) 62%,
      #000 73%,
      #000 100%);
}

.home-page .hero-media {
  position: absolute !important;
  z-index: 1;
  top: calc(var(--home-mobile-header) + var(--home-mobile-hero-media-offset)) !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  height: var(--home-mobile-hero-media) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden;
  opacity: 1 !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

.home-page .hero-media video {
  position: relative !important;
  left: -8vw !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  filter: brightness(1.12) contrast(1.06) saturate(1.04) !important;
  transform: scale(1.03) !important;
  transform-origin: center center !important;
  translate: none !important;
}

.home-page .hero-inner {
  position: relative;
  z-index: 3;
  width: 100% !important;
  min-height: 0 !important;
  display: flex;
  align-items: flex-start;
  padding: calc(var(--home-mobile-header) + var(--home-mobile-hero-media) + var(--home-mobile-hero-media-offset) - 18px) var(--home-mobile-gutter) max(28px, env(safe-area-inset-bottom)) !important;
}

.home-page .hero-copy {
  width: 100% !important;
  max-width: 460px;
}

.home-page .hero .eyebrow {
  max-width: 31ch;
  margin: 0 0 12px;
  color: #b89b5e !important;
  font-size: 9px !important;
  line-height: 1.45;
  letter-spacing: .17em;
}

.home-page .hero h1 {
  max-width: 100%;
  margin: 0 0 14px;
  font-size: clamp(44px, 13vw, 56px) !important;
  line-height: .87;
  letter-spacing: -.064em;
}

.home-page .hero h1 .title-gold {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  font-size: .88em;
}

.home-page .lead {
  max-width: 31ch;
  margin: 0;
  color: rgba(255,255,255,.69);
  font-size: 15px !important;
  line-height: 1.5;
  letter-spacing: -.01em;
}

.home-page .hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px !important;
  margin-top: 22px !important;
}

.home-page .hero-actions .btn {
  width: 100%;
  min-height: 46px !important;
  padding: 0 18px !important;
  justify-content: space-between;
  border-color: rgba(255,255,255,.18);
  background: rgba(16,16,16,.78);
  font-size: 10px !important;
  letter-spacing: .14em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.home-page .hero-actions .btn::after {
  content: "↗";
  color: var(--premium-gold);
  font-size: 14px;
  line-height: 1;
}

/* Editorial introduction */
.home-page .home-intro-section {
  padding: var(--home-mobile-section) 0;
}

.home-page .premium-container {
  width: calc(100% - (2 * var(--home-mobile-gutter)));
}

.home-page .home-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.home-page .section-label {
  margin-bottom: 14px;
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .17em;
}

.home-page .home-intro-heading h2,
.home-page .premium-section-head h2,
.home-page .premium-cta-inner h2 {
  font-size: clamp(38px, 11vw, 48px) !important;
  line-height: .91;
  letter-spacing: -.055em;
}

.home-page .home-intro-copy {
  padding-top: 0;
}

.home-page .home-intro-copy .home-intro-lead {
  margin-bottom: 18px;
  font-size: 19px;
  line-height: 1.48;
}

.home-page .home-intro-copy p {
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.72;
}

.home-page .home-intro-actions {
  margin-top: 24px;
}

.home-page .home-intro-actions .premium-text-link {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 17px;
  justify-content: space-between;
  font-size: 10px;
}

/* Product lines */
.home-page .home-products-section {
  padding: var(--home-mobile-section) 0;
}

.home-page .premium-section-head {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 38px;
}

.home-page .premium-section-head > p:last-child {
  margin: 0;
  font-size: 15px;
  line-height: 1.68;
}

.home-page .product-line-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.home-page .product-line-card,
.home-page .product-line-card:last-child {
  grid-column: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--home-mobile-radius);
  border-color: rgba(255,255,255,.12) !important;
  transform: none !important;
}

.home-page .product-line-card .product-line-hover-video,
.home-page .product-line-card .product-line-reverse-video {
  width: 100% !important;
  aspect-ratio: 5 / 4 !important;
  object-fit: contain !important;
  background: #fff !important;
}

.home-page .product-line-content {
  min-height: 0;
  padding: 22px 20px 22px;
}

.home-page .product-line-content span {
  font-size: 9px;
  letter-spacing: .15em;
}

.home-page .product-line-content h3 {
  margin: 9px 0 12px;
  font-size: clamp(34px, 11vw, 45px);
  line-height: .92;
}

.home-page .product-line-content p {
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.62;
}

.home-page .product-line-content strong {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  justify-content: space-between;
  font-size: 9px;
  line-height: 1.2;
}

/* Contact CTA */
.home-page .premium-cta-section {
  padding: var(--home-mobile-section) 0;
}

.home-page .premium-cta-inner {
  display: grid;
  gap: 30px;
}

.home-page .premium-cta-button {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  justify-content: space-between;
  font-size: 10px;
}

/* Footer */
.home-page .site-footer {
  padding: 54px var(--home-mobile-gutter) max(18px, env(safe-area-inset-bottom));
}

.home-page .footer-inner {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
}

.home-page .site-footer .footer-brand img {
  width: 118px !important;
}

.home-page .footer-text {
  max-width: 34ch;
  margin: 18px 0 22px;
  font-size: 13px;
  line-height: 1.65;
}

.home-page .footer-social-link {
  width: 24px;
  height: 24px;
}

.home-page .footer-links-col {
  grid-template-columns: 1fr 1fr;
  gap: 24px 18px;
}

.home-page .footer-col h3 {
  margin-bottom: 14px;
  font-size: 10px;
}

.home-page .footer-col a {
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
}

.home-page .footer-bottom {
  width: 100%;
  margin-top: 34px;
  padding-top: 16px;
  text-align: left;
  font-size: 10px;
}

@media (max-width: 370px) {
  .home-page .hero h1 {
    font-size: 42px !important;
  }

  .home-page .hero-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .home-page .footer-links-col {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) {
  :root {
    --home-mobile-hero-media: 286px;
    --home-mobile-hero-media-offset: 12px;
  }

  .home-page .hero-inner {
    padding-top: calc(var(--home-mobile-header) + var(--home-mobile-hero-media) + var(--home-mobile-hero-media-offset) - 14px) !important;
  }

  .home-page .hero h1 {
    font-size: clamp(42px, 12vw, 50px) !important;
  }

  .home-page .hero-actions {
    margin-top: 18px !important;
  }

  .home-page .hero-actions .btn {
    min-height: 43px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-media video,
  .home-page .product-line-hover-video,
  .home-page .product-line-reverse-video {
    transform: none !important;
  }
}
