/* ================================================================
   8LIEN × BIKE & BUTTER — Partner Page
   Dark industrial theme · Pink accent #ff677e
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;900&family=Barlow:wght@300;400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────────── */
:root {
  --black:      #080808;
  --black-2:    #111111;
  --black-3:    #1a1a1a;
  --black-4:    #222222;
  --border:     rgba(255,255,255,0.08);
  --white:      #ffffff;
  --white-dim:  rgba(255,255,255,0.55);
  --white-faint:rgba(255,255,255,0.12);
  --pink:       #ff677e;
  --pink-dim:   rgba(255,103,126,0.15);
  --pink-glow:  rgba(255,103,126,0.35);
  --font-head:  'Barlow Condensed', sans-serif;
  --font-body:  'Barlow', sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; width: 100%; }

/* ── Nav (inherits B&B style.css nav, dark override) ───────────── */
.partner-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8,8,8,0.95);
  backdrop-filter: blur(12px);
  z-index: 100;
}

.partner-nav .nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  font-family: var(--font-body);
}

.partner-nav .logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
}

.partner-nav .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  flex-shrink: 0;
}

.partner-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.partner-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.partner-nav .nav-links a {
  font-size: 13px;
  color: var(--white-dim);
  transition: color 0.15s;
  font-family: var(--font-body);
}

.partner-nav .nav-links a:hover { color: var(--white); }
.partner-nav .nav-links a.active { color: var(--pink); font-weight: 600; }

.partner-nav .nav-signin {
  font-size: 13px;
  color: var(--white-dim);
  font-family: var(--font-body);
}

.partner-nav .nav-signin:hover { color: var(--white); }

/* Partners dropdown in nav */
.nav-partners-wrap {
  position: relative;
}

.nav-partners-wrap > a {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--pink);
  font-weight: 600;
  cursor: pointer;
}

.nav-partners-wrap > a svg {
  width: 10px;
  height: 10px;
  transition: transform 0.2s;
}

.nav-partners-wrap:hover > a svg { transform: rotate(180deg); }

/* Bridge: invisible block that fills the gap between trigger and dropdown
   so moving the mouse downward doesn't lose hover state */
.nav-partners-wrap::before {
  content: '';
  position: absolute;
  top: 100%;
  left: -20px;
  right: -20px;
  height: 18px;
  display: none;
}
.nav-partners-wrap:hover::before { display: block; }

.nav-partners-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 170px;
  box-shadow: 0 20px 48px rgba(0,0,0,0.7);
  z-index: 200;
}

.nav-partners-wrap:hover .nav-partners-dropdown { display: block; }

.nav-partners-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--white-dim);
  transition: all 0.15s;
}

.nav-partners-dropdown a:hover {
  background: var(--white-faint);
  color: var(--white);
}

.nav-partners-dropdown .partner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  flex-shrink: 0;
}

/* ── Nav vertical alignment fix ───────────────────────────────────
   Normalizes line-height so "Our Brands", the other nav links, and
   Sign In / user chip all sit on the same baseline.
   ─────────────────────────────────────────────────────────────── */
.partner-nav .nav-links a,
.partner-nav .nav-signin,
#auth-area a {
  line-height: 1;
}
.nav-partners-wrap > a {
  line-height: 1;
}

/* ── User chip (signed-in) — dark theme ─────────────────────────── */
.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--black-2);
  cursor: pointer;
}
.user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.user-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--white);
  white-space: nowrap;
}
.user-menu {
  position: absolute;
  top: 42px;
  right: 0;
  background: var(--black-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  display: none;
  z-index: 200;
}
.user-chip.open .user-menu { display: block; }
.user-menu a {
  display: block;
  font-size: 12px;
  color: #ff8a8a;
  padding: 6px 8px;
  border-radius: 6px;
}
.user-menu a:hover { background: var(--white-faint); }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 92vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://8lienbike.com/cdn/shop/files/8LIEN_AETHER_5_1_1946x.jpg?v=1765503069');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease-out;
}

.hero-bg.loaded { transform: scale(1); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8,8,8,1) 0%,
    rgba(8,8,8,0.5) 50%,
    rgba(8,8,8,0.15) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 64px;
  max-width: 900px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--pink);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(72px, 10vw, 120px);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title span {
  color: var(--pink);
  display: block;
}

.hero-sub {
  font-size: 16px;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #ff4d67;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--pink-glow);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white-dim);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-ghost:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.3);
}

/* ── Distributor badge strip (auto-scrolling) ──────────────────── */
.badge-strip {
  background: var(--pink);
  overflow: hidden;
  padding: 14px 0;
}

.badge-strip-track {
  display: inline-flex;
  align-items: center;
  gap: 40px;
  padding-left: 60px;
  animation: badge-scroll 26s linear infinite;
}

.badge-strip:hover .badge-strip-track {
  animation-play-state: paused;
}

@keyframes badge-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.badge-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
}

.badge-strip-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.badge-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,0.3);
  flex-shrink: 0;
}

/* ── Section base ──────────────────────────────────────────────── */
.section {
  padding: 100px 60px;
}

.section-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.section-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 560px;
  line-height: 1.8;
}

/* ── About section ─────────────────────────────────────────────── */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  border-top: 1px solid var(--border);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 48px;
}

.stat-box {
  background: var(--black-3);
  padding: 28px 24px;
}

.stat-box:first-child { border-radius: 8px 0 0 0; }
.stat-box:nth-child(2) { border-radius: 0 8px 0 0; }
.stat-box:nth-child(3) { border-radius: 0 0 0 8px; }
.stat-box:last-child { border-radius: 0 0 8px 0; }

.stat-number {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--pink);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 12px;
  font-weight: 400;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap img {
  border-radius: 4px;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-image-tag {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: var(--pink);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 3px;
}

/* ── Products section ──────────────────────────────────────────── */
.products-section {
  background: var(--black-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.product-card {
  background: var(--black-3);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s;
  position: relative;
}

.product-card:hover { transform: translateY(-4px); }
.product-card:hover .product-card-overlay { opacity: 1; }

.product-card-img {
  aspect-ratio: 3/2;
  object-fit: cover;
  width: 100%;
  transition: transform 0.5s;
}

.product-card:hover .product-card-img { transform: scale(1.04); }

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,103,126,0.12);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.product-card-body {
  padding: 24px;
}

.product-card-cat {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 8px;
}

.product-card-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
  line-height: 1.1;
}

.product-card-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.product-card-price {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}

.product-card-price span {
  font-size: 12px;
  font-weight: 400;
  color: var(--white-dim);
  font-family: var(--font-body);
}

.product-enquire {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pink);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}

.product-card:hover .product-enquire { gap: 10px; }

/* ── Image placeholder for products ───────────────────────────── */
.img-placeholder {
  background: var(--black-4);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3/2;
  width: 100%;
}

.img-placeholder span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}

/* ── Tech features section ─────────────────────────────────────── */
.features-section {
  border-top: 1px solid var(--border);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin-top: 56px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  grid-column: 1 / -1;
}

.feature-item {
  background: var(--black-3);
  padding: 40px 36px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.feature-item.wide {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 48px;
  align-items: center;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--pink-dim);
  border: 1px solid var(--pink-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--pink);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
}

.feature-text-title {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.2px;
  margin-bottom: 8px;
}

.feature-text-body {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.7;
}

/* ── Gallery strip ─────────────────────────────────────────────── */
.gallery-section {
  padding: 0;
  border-top: 1px solid var(--border);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 340px 340px;
  gap: 2px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: var(--black-3);
  /* Ensures the cell always occupies its grid slot even when img is hidden */
  min-height: 340px;
}

.gallery-item.tall {
  grid-row: 1 / 3;
  min-height: 682px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
  /* Ensure img fills the cell completely regardless of source dimensions */
  display: block;
  position: absolute;
  inset: 0;
}

.gallery-item:hover img { transform: scale(1.05); }

/* ── CTA section ───────────────────────────────────────────────── */
.cta-section {
  padding: 120px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,103,126,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section .section-title {
  font-size: clamp(48px, 7vw, 96px);
  margin-bottom: 20px;
}

.cta-section .section-body {
  margin: 0 auto 40px;
  text-align: center;
  max-width: 480px;
}

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* ── Footer ────────────────────────────────────────────────────── */
.partner-footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--white-dim);
}

.footer-brand a { color: var(--pink); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--white-dim);
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--white); }

/* ── Mobile nav hamburger ──────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: 12px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 57px;
  left: 0; right: 0;
  background: var(--black-2);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  padding: 12px 0 16px;
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 12px 24px;
  font-size: 14px;
  color: var(--white-dim);
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:hover { color: var(--white); background: var(--white-faint); }

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .partner-nav .nav-links,
  .partner-nav #auth-area { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { padding: 0 24px 48px; }
  .hero-title { font-size: 56px; }

  .badge-strip-track { padding-left: 24px; }

  .section { padding: 64px 24px; }

  .about-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-image-wrap { order: -1; }
  .about-image-tag { left: 0; }

  .products-grid { grid-template-columns: 1fr; }
  .products-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; }
  .feature-item.wide { flex-direction: column; gap: 24px; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery-item.tall { grid-row: auto; }

  .cta-section { padding: 80px 24px; }
  .partner-footer {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 32px 24px;
  }
}

@media (min-width: 769px) {
  .nav-hamburger { display: none; }
  .mobile-menu { display: none !important; }
}