/* Advanced motion style: original high-end editorial/agency-inspired direction */

:root {
  --motion-black: #080b0a;
  --motion-ink: #101412;
  --motion-line: rgba(132, 204, 22, 0.18);
  --motion-glow: rgba(132, 204, 22, 0.28);
  --motion-lime: #a3e635;
  --motion-cyan: #67e8f9;
  --motion-panel: rgba(10, 15, 13, 0.86);
  --motion-text-soft: rgba(255,255,255,.72);
}

body {
  background:
    radial-gradient(circle at 8% 4%, rgba(132,204,22,.13), transparent 30vw),
    radial-gradient(circle at 88% 18%, rgba(103,232,249,.12), transparent 28vw),
    linear-gradient(180deg, #f7f9f6 0%, #ffffff 34%, #f3f7f1 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .38;
  background-image:
    linear-gradient(rgba(8,11,10,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8,11,10,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

body.motion-ready {
  cursor: none;
}

.motion-cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(45, 80, 22, 0.55);
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .25s ease, height .25s ease, background .25s ease;
  mix-blend-mode: difference;
}

.motion-cursor.is-hover {
  width: 54px;
  height: 54px;
  background: rgba(45, 80, 22, 0.16);
}

.motion-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-banner {
  transform-origin: center top;
}

.top-category-nav {
  position: sticky;
  top: var(--header-height);
  z-index: 1500;
  padding: 8px 24px 10px;
  background: rgba(247,249,246,.7);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid rgba(8,11,10,.07);
  overflow: visible;
}

.top-category-nav-inner,
.category-topnav-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1180px;
  margin: 0 auto;
  overflow: visible;
  min-height: 42px;
}

.top-category-item {
  position: relative;
  flex: 0 0 auto;
  padding: 4px 0;
}

.top-category-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 20px;
  border-radius: 9999px;
  border: 1px solid rgba(8,11,10,.09);
  background: rgba(255,255,255,.72);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 8px 24px rgba(0,0,0,.04);
  transition: transform .28s var(--ease-out-expo), color .28s, background .28s, box-shadow .28s, border-color .28s;
}

.top-category-link:hover,
.top-category-link.active {
  color: #fff;
  background: var(--motion-black);
  border-color: rgba(163,230,53,.5);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(11,13,16,.18), 0 0 28px rgba(163,230,53,.18);
}

.top-subcategory-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 190px;
  max-width: 260px;
  padding: 8px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: 0 18px 44px rgba(11,13,16,.14);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 3000;
}

.top-subcategory-menu::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.top-category-item:hover .top-subcategory-menu,
.top-category-item:focus-within .top-subcategory-menu,
.top-category-item.has-subcategories:hover .top-subcategory-menu,
.top-category-item.has-subcategories:focus-within .top-subcategory-menu,
.top-category-item.submenu-open .top-subcategory-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.top-subcategory-link {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
  line-height: 1.25;
  white-space: normal;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

.top-subcategory-link:hover,
.top-subcategory-link:focus {
  color: var(--text-primary);
  background: rgba(45,80,22,.08);
  transform: translateX(2px);
  outline: none;
}

.portfolio-layout {
  margin-top: calc(var(--header-height) + 46px);
}

.portfolio-content {
  max-width: none;
  margin: 0 auto;
  padding: 0 18px 80px;
}

.hero-banner::before {
  content: none !important;
  display: none !important;
}

.hero-banner::after {
  content: none !important;
  display: none !important;
}

.content::before {
  content: var(--hero-motion-title, 'GOLF CART TECHNOLOGY');
  display: block;
  position: relative;
  z-index: 4;
  margin: 0 0 -150px;
  font-size: clamp(4.2rem, 13vw, 14.5rem);
  line-height: .72;
  letter-spacing: -0.105em;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.36);
  background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(163,230,53,.92), rgba(103,232,249,.52), rgba(255,255,255,.16));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  pointer-events: none;
  width: 8ch;
  max-width: 8ch;
  overflow: visible;
  white-space: normal;
  word-break: break-all;
  padding-left: 1ch;
  text-indent: -1ch;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.34));
  border-right: .045em solid rgba(163,230,53,.72);
  transform: translateX(-12vw);
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation:
    heroTitleSlideIn .75s cubic-bezier(.16,1,.3,1) forwards,
    heroTitleType 2.35s steps(22, end) .72s forwards,
    heroCaretBlink .72s steps(1, end) .72s 5,
    heroTitleFlow 7s ease-in-out 3.6s infinite;
}

.portfolio-content::before { content: none !important; display: none !important; }

@keyframes heroTitleSlideIn {
  to { transform: translateX(0); opacity: 1; }
}

@keyframes heroTitleType {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

@keyframes heroCaretBlink {
  0%, 100% { border-right-color: rgba(45,80,22,.72); }
  50% { border-right-color: transparent; }
}

@keyframes heroTitleFlow {
  0% { background-position: 0% 50%; transform: translateY(8px); opacity: .72; }
  50% { background-position: 100% 50%; transform: translateY(0); opacity: 1; }
  100% { background-position: 0% 50%; transform: translateY(8px); opacity: .72; }
}

.portfolio-content .hero-banner {
  border-radius: 0;
  min-height: 0;
  height: auto;
  aspect-ratio: 16 / 7;
  display: block;
  opacity: 1 !important;
  visibility: visible !important;
  background: #0b0f0d;
  width: 100vw;
  max-width: none;
  margin-left: calc(50% - 50vw);
  border: 0;
  box-shadow: none;
}

.portfolio-content .hero-banner .banner-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.portfolio-content .banner-slider,
.portfolio-content .banner-slide,
.portfolio-content .banner-slide img {
  min-height: 0;
  height: 100%;
}

.portfolio-content .banner-slide.active {
  opacity: 1 !important;
  transform: scale(1) !important;
  z-index: 2;
}

.portfolio-content .banner-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none !important;
}

.portfolio-content .banner-arrow {
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 20;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  opacity: 1;
  background: rgba(8,11,10,.68);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(16px);
}

.portfolio-content .banner-prev { left: 28px; }
.portfolio-content .banner-next { right: 28px; }

.portfolio-content .banner-dots {
  z-index: 20;
  bottom: 24px;
}

.portfolio-content .products-section {
  margin-top: 72px;
}

.portfolio-content .products-section,
.story-section,
.showcase-section,
.build-section,
.confidence-section,
.tech-section,
.faq-section {
  position: relative;
}

.portfolio-content .products-section::before,
.story-section::before,
.showcase-section::before,
.confidence-section::before,
.faq-section::before {
  content: '';
  display: block;
  width: min(128px, 22vw);
  height: 2px;
  margin: 0 0 24px;
  background: linear-gradient(90deg, var(--motion-lime), rgba(103,232,249,.72), transparent);
}

.portfolio-content .products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-content .product-card {
  min-height: auto;
  border-radius: 8px;
  border: 1px solid rgba(8,11,10,.08);
  background: rgba(255,255,255,.74);
  box-shadow: 0 18px 60px rgba(8,11,10,.08);
  overflow: hidden;
  transform-style: preserve-3d;
}

.portfolio-content .product-card-image {
  aspect-ratio: 4 / 3;
  border-radius: 8px 8px 0 0;
}

.portfolio-content .product-card-body {
  padding: 14px 16px 16px;
}

.portfolio-content .product-card-title {
  font-size: clamp(1rem, 1.25vw, 1.28rem);
  line-height: 1.18;
  letter-spacing: 0;
  margin-bottom: 8px;
}

.portfolio-content .product-card-desc {
  max-width: 46ch;
  font-size: .82rem;
  line-height: 1.5;
}

.portfolio-content .product-card-price {
  margin-top: 10px;
  font-size: 1rem;
}

.product-card.spotlight-card,
.solution-card.spotlight-card,
.confidence-item.spotlight-card,
.tech-block.spotlight-card,
.faq-list details.spotlight-card,
.build-step.spotlight-card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  isolation: isolate;
}

.product-card.spotlight-card::before,
.solution-card.spotlight-card::before,
.confidence-item.spotlight-card::before,
.tech-block.spotlight-card::before,
.faq-list details.spotlight-card::before,
.build-step.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity .28s ease;
  background: radial-gradient(circle 240px at var(--mx) var(--my), rgba(163,230,53,.22), transparent 62%);
}

.product-card.spotlight-card:hover::before,
.solution-card.spotlight-card:hover::before,
.confidence-item.spotlight-card:hover::before,
.tech-block.spotlight-card:hover::before,
.faq-list details.spotlight-card:hover::before,
.build-step.spotlight-card:hover::before {
  opacity: 1;
}

.product-card.spotlight-card > *,
.solution-card.spotlight-card > *,
.confidence-item.spotlight-card > *,
.tech-block.spotlight-card > *,
.faq-list details.spotlight-card > *,
.build-step.spotlight-card > * {
  position: relative;
  z-index: 2;
}

.story-section {
  padding: 80px 4vw;
  margin-top: 86px;
  color: white;
  border-radius: 10px;
  background:
    radial-gradient(circle at 14% 18%, rgba(163,230,53,.22), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(103,232,249,.16), transparent 32%),
    linear-gradient(135deg, #07100b, #101511 52%, #050706);
  box-shadow: 0 34px 90px rgba(0,0,0,.22);
  overflow: hidden;
}

.story-section .section-kicker,
.build-section .section-kicker,
.faq-section .section-kicker {
  color: var(--motion-lime);
}

.story-section .section-heading-row h2,
.story-section .section-heading-row p {
  color: white;
}

.story-section .section-heading-row p {
  color: var(--motion-text-soft);
}

.solution-card,
.confidence-item {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden;
}

.solution-card h3,
.solution-card p {
  color: white;
}

.solution-card p {
  color: var(--motion-text-soft);
}

.solution-number {
  color: var(--motion-cyan);
}

.showcase-title,
.faq-section h2,
.section-heading-row h2,
.build-copy h2 {
  letter-spacing: 0;
}

.build-section {
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(8,11,10,.96), rgba(16,24,18,.94)),
    radial-gradient(circle at 20% 20%, rgba(163,230,53,.32), transparent 36%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 34px 90px rgba(0,0,0,.22);
}

.build-step {
  border-radius: 8px;
  overflow: hidden;
}

.confidence-section {
  padding: 54px 0;
}

.confidence-item {
  background: rgba(255,255,255,.8);
  border-color: rgba(8,11,10,.08);
  box-shadow: 0 18px 50px rgba(8,11,10,.07);
}

.tech-section {
  margin-top: 70px;
  padding: 90px 4vw 70px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 20% 20%, rgba(163,230,53,.16), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,.58), rgba(255,255,255,.18));
  border: 1px solid rgba(8,11,10,.07);
}

.tech-block {
  border-radius: 10px;
  overflow: hidden;
}

.faq-list details {
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(8,11,10,.06);
}

.magnetic-lift {
  transition: transform .24s var(--ease-out-expo), box-shadow .24s var(--ease-out-expo);
}

.is-magnetic {
  will-change: transform;
}

.text-gradient-pop {
  background: linear-gradient(90deg, #111827, #2d5016, #0891b2, #111827);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  animation: textGradientSweep 7s ease-in-out infinite;
}

@keyframes textGradientSweep {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@media (max-width: 900px) {
  .portfolio-content .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .portfolio-content .product-card { min-height: auto; }
  .portfolio-content { padding: 0 16px 60px; }
  .portfolio-content::before { content: none !important; display: none !important; }
  .portfolio-content .hero-banner {
    aspect-ratio: 4 / 5;
    min-height: 0;
  }
  .portfolio-content .banner-slider,
  .portfolio-content .banner-slide,
  .portfolio-content .banner-slide img {
    min-height: 0;
    height: 100%;
  }
  .top-category-nav-inner,
  .category-topnav-inner {
    justify-content: flex-start;
    overflow-x: visible;
    overflow-y: visible;
  }
  .top-subcategory-menu {
    left: 0;
    transform: translate(0, -6px);
  }
  .top-category-item:hover .top-subcategory-menu,
  .top-category-item:focus-within .top-subcategory-menu {
    transform: translate(0, 0);
  }
}

@media (max-width: 560px) {
  .portfolio-content .products-grid { grid-template-columns: 1fr; }
}

.products-grid,
.showcase-grid {
  perspective: 1200px;
}

.product-card,
.showcase-card,
.tech-block {
  will-change: transform, opacity;
}

.product-card::after,
.showcase-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.18), transparent 45%);
  opacity: 0;
  transition: opacity .35s ease;
}

.product-card:hover::after,
.showcase-card:hover::after {
  opacity: 1;
}

.motion-line-reveal {
  overflow: hidden;
}

.motion-line-reveal > span {
  display: inline-block;
  transform: translateY(110%);
}

.category-page-title,
.product-detail-name {
  letter-spacing: -0.05em;
}

.category-page-header,
.product-detail-top,
.product-detail-content {
  position: relative;
}

.category-page-header::after,
.product-detail-top::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--motion-line), transparent);
  transform: scaleX(0);
  transform-origin: left;
}

.motion-ready .category-page-header::after,
.motion-ready .product-detail-top::after {
  animation: motionLine 1.1s cubic-bezier(.16,1,.3,1) .25s forwards;
}

@keyframes motionLine {
  to { transform: scaleX(1); }
}

@media (max-width: 768px) {
  body.motion-ready { cursor: auto; }
  .motion-cursor { display: none; }
  .content::before { font-size: 3rem; }
}

/* ========== Mobile-only responsive consistency override ========== */
@media (max-width: 900px) {
  .portfolio-content {
    padding: 0 0 56px;
  }

  .portfolio-content .hero-banner,
  .hero-banner {
    height: clamp(430px, 78vh, 680px) !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
  }

  .portfolio-content .hero-banner .banner-slider,
  .portfolio-content .banner-slider,
  .portfolio-content .banner-slide,
  .portfolio-content .banner-slide img,
  .hero-banner .banner-slider,
  .hero-banner .banner-slide,
  .hero-banner .banner-slide img {
    height: 100% !important;
    min-height: 0 !important;
  }

  .portfolio-content .products-section,
  .story-section,
  .showcase-section,
  .build-section,
  .confidence-section,
  .tech-section,
  .faq-section {
    width: calc(100vw - 28px);
  }

  .section-heading-row,
  .build-section {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .confidence-section {
    grid-template-columns: 1fr;
  }

  .story-section,
  .tech-section {
    padding: 44px 20px;
  }

  .neon-track-wrap {
    padding-left: 52px;
    padding-right: 52px;
  }
}

@media (max-width: 560px) {
  .portfolio-content .products-grid,
  .showcase-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-content .hero-banner {
    height: min(78vh, 620px) !important;
    min-height: 460px !important;
  }

  .portfolio-content .banner-prev {
    left: 12px !important;
  }

  .portfolio-content .banner-next {
    right: 12px !important;
  }
}
