/**
 * Japan Bicycles — Premium light editorial theme
 * Accent bronze #8B6914 / gold #D4AF37 · Cream #F7F5F0
 */

:root {
  --color-bg: #F7F5F0;
  --color-surface: #FFFFFF;
  --color-surface-alt: #F0EDE6;
  --color-accent: #8B6914;
  --color-accent-soft: #D4AF37;
  --color-text: #1A1814;
  --color-muted: #6B6560;
  --color-border: rgba(26, 24, 20, 0.10);
  --color-border-strong: rgba(26, 24, 20, 0.16);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --radius: 2px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --space-section: clamp(3rem, 6vw, 5.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

html.lenis,
html.lenis body {
  height: auto;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(139, 105, 20, 0.18);
  color: var(--color-text);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--color-text);
  color: #fff;
  padding: 0.75rem 1rem;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ---------- Typography ---------- */
.font-display,
h1, h2, h3 {
  font-family: var(--font-display);
}

.section-label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.section-lead {
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-muted);
}

.thin-rule {
  height: 1px;
  background: var(--color-border);
  border: 0;
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-ghost {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

.btn-primary:hover {
  background: #6f5410;
  border-color: #6f5410;
}

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-dark {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.btn-dark:hover {
  background: #2e2a24;
}

/* ---------- Forms ---------- */
.input-field,
.textarea-field,
.select-field {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.input-field:focus,
.textarea-field:focus,
.select-field:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139, 105, 20, 0.12);
}

.textarea-field {
  min-height: 140px;
  resize: vertical;
}

.form-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 245, 240, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 30px -18px rgba(26, 24, 20, 0.18);
}

.header-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-soft));
  transition: width 0.1s linear;
}

.nav-link {
  display: block;
  padding: 0.65rem 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  transition: color 0.3s var(--ease);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-accent);
}

.primary-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem 1.5rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}

.primary-nav.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .primary-nav {
    display: block !important;
    position: static;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
}

/* ---------- Hero — minimal editorial ---------- */
.hero-editorial {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  padding: 3rem 0 4rem;
  overflow: hidden;
}

.hero-editorial__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-editorial__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: grayscale(0.25) contrast(1.05);
}
.hero-editorial__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(247, 245, 240, 0.97) 0%, rgba(247, 245, 240, 0.88) 48%, rgba(247, 245, 240, 0.72) 100%);
}
.hero-editorial > .mx-auto,
.hero-editorial > .hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-editorial__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-editorial__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-editorial__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }
}

.hero-editorial__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.hero-editorial__eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  word-break: keep-all;
  overflow-wrap: normal;
  line-break: strict;
}

.hero-title .line {
  display: block;
}

.hero-title .accent {
  color: var(--color-accent);
  font-style: italic;
}

.hero-sub {
  color: var(--color-muted);
}

.hero-stats {
  border-top: 1px solid var(--color-border);
}

.hero-visual {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

.hero-visual__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  box-shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1024px) {
  .hero-visual__frame {
    aspect-ratio: 3 / 4;
  }
}

.hero-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-visual__caption {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--color-border);
  backdrop-filter: blur(8px);
}

.hero-scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.scroll-indicator__line {
  display: block;
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: clamp(2.75rem, 5.5vw, 4.75rem);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-section);
  }
}

.section--alt {
  background: var(--color-surface);
}

.section--warm {
  background: var(--color-surface-alt);
}

.section--ink {
  background: var(--color-text);
  color: #F7F5F0;
}

.section--ink .section-title {
  color: #F7F5F0;
}

.section--ink .section-lead,
.section--ink .text-muted {
  color: rgba(247, 245, 240, 0.65);
}

.section--ink .section-label {
  color: var(--color-accent-soft);
}

/* ---------- Cards ---------- */
.bike-card,
.news-card,
.category-card,
.dealer-card,
.feature-card {
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.bike-card:hover,
.news-card:hover,
.dealer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -28px rgba(26, 24, 20, 0.22);
}

.feature-card {
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  height: 100%;
}

.feature-card__rule {
  width: 2.5rem;
  height: 1px;
  background: var(--color-accent);
  margin-bottom: 1.25rem;
}

.collection-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.collection-card img {
  aspect-ratio: 16 / 11;
  width: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.collection-card:hover img {
  transform: scale(1.05);
}

.collection-card__body {
  padding: 1.5rem;
  border-top: 1px solid var(--color-border);
}

/* ---------- Showcase ---------- */
.showcase-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-surface);
}

@media (min-width: 1024px) {
  .showcase-panel {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.showcase-panel__media {
  min-height: 320px;
  background: var(--color-surface-alt);
}

.showcase-panel__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.showcase-panel__body {
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (min-width: 768px) {
  .showcase-panel__body {
    padding: 3.5rem;
  }
}

/* ---------- Lifestyle banner ---------- */
.lifestyle-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.lifestyle-banner__bg {
  position: absolute;
  inset: 0;
}

.lifestyle-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lifestyle-banner__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 24, 20, 0.72) 0%, rgba(26, 24, 20, 0.2) 55%, transparent 100%);
}

.lifestyle-banner__content {
  position: relative;
  z-index: 1;
  padding: 3rem 0;
  color: #fff;
  max-width: 36rem;
}

/* ---------- Awards ---------- */
.award-item {
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .award-item {
    grid-template-columns: 5rem 1fr auto;
    align-items: baseline;
    gap: 2rem;
  }
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-surface-alt);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

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

.gallery-item:nth-child(1),
.gallery-item:nth-child(6) {
  aspect-ratio: 4 / 5;
}

@media (min-width: 768px) {
  .gallery-item:nth-child(1) {
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  height: auto;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2rem;
}

.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.45;
  color: var(--color-text);
}

.testimonials-swiper .swiper-pagination-bullet {
  background: var(--color-muted);
  opacity: 0.35;
}

.testimonials-swiper .swiper-pagination-bullet-active {
  background: var(--color-accent);
  opacity: 1;
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--color-border);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
  padding-left: 1.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__marker {
  position: absolute;
  left: -1.5rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border: 1px solid var(--color-accent);
  background: var(--color-bg);
  border-radius: 0;
  transform: translateX(-50%);
}

/* ---------- Newsletter / CTA ---------- */
.cta-band {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 3rem 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-band {
    padding: 4rem;
  }
}

.newsletter-panel {
  display: grid;
  gap: 2rem;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 2.5rem 2rem;
}

@media (min-width: 768px) {
  .newsletter-panel {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 3rem;
  }
}

/* ---------- Page hero (inner) ---------- */
.page-hero {
  padding: 3.25rem 0 2.25rem;
  border-bottom: 1px solid var(--color-border);
  min-height: 0;
}

.page-hero--compact {
  padding: 2.75rem 0 1.75rem;
  min-height: 0;
}

.category-jump {
  background: rgba(247, 245, 240, 0.95);
}

.category-jump__link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-border);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 160ms var(--ease), border-color 160ms var(--ease), background 160ms var(--ease);
}

.category-jump__link:hover,
.category-jump__link:focus-visible {
  color: var(--color-text);
  border-color: var(--color-accent);
  background: rgba(139, 105, 20, 0.08);
}

.category-band {
  scroll-margin-top: 7rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 0;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---------- Utilities ---------- */
.text-accent { color: var(--color-accent); }
.text-muted { color: var(--color-muted); }
.bg-cream { background: var(--color-bg); }
.bg-surface { background: var(--color-surface); }

.max-w-8xl {
  max-width: 88rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Marquee strip */
.marquee-strip {
  overflow: hidden;
  border-block: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: marquee 40s linear infinite;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-muted);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track,
  .scroll-indicator__line {
    animation: none;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Responsive — no clipped content / usable controls */
@media (max-width: 1023px) {
  .hero-editorial {
    min-height: 0;
    padding: 2.5rem 0 3.5rem;
    overflow: visible;
  }

  .hero-title {
    font-size: clamp(2rem, 8vw, 3.25rem);
  }

  .hero-visual__caption {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 0.75rem;
  }

  .hero-scroll {
    display: none;
  }

  .primary-nav {
    max-height: calc(100svh - var(--header-h, 4.5rem));
    overflow-y: auto;
  }

  .category-jump {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .btn-primary,
  .btn-ghost {
    min-height: 44px;
  }
}

@media (max-width: 639px) {
  .hero-editorial__grid {
    gap: 1.75rem;
  }

  .hero-visual__frame {
    aspect-ratio: 4 / 3;
  }
}
