/* ─────────────────────────────────────────────────────────────────────────
   homepage.css
   Hero slider · Video · Collections horizontal scroll · Journal grid
   ───────────────────────────────────────────────────────────────────────── */

/* ── 1. HERO SLIDER ────────────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background: var(--ink);
}

/* Individual slides */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s var(--ease-standard);
  pointer-events: none;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* Background image */
.slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.slide.is-active .slide-bg {
  transform: scale(1);
}

/* Dark overlay for text legibility */
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(16,12,8,0.25) 0%,
    rgba(16,12,8,0.10) 40%,
    rgba(16,12,8,0.65) 75%,
    rgba(16,12,8,0.90) 100%
  );
}

/* Slide text — centred at bottom */
.slide-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0 var(--gutter) 180px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  transform: translateY(12px);
  transition: transform 1.2s var(--ease-out), opacity 1.2s ease;
  opacity: 0;
  z-index: 2;
}
.slide.is-active .slide-content {
  transform: translateY(0);
  opacity: 1;
  transition-delay: 0.3s;
}

.slide-eyebrow {
  color: rgba(240,230,210,0.55);
  letter-spacing: var(--tracking-widest);
}

.slide-heading {
  font-size: clamp(4rem, 10vw, 11rem);
  color: var(--ivory);
  line-height: var(--leading-display);
  letter-spacing: -0.03em;
  max-width: 900px;
}
.slide-heading em {
  color: var(--gold-bright);
  font-style: italic;
}

.slide-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--size-tag);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--ivory);
  border: 1px solid rgba(240,230,210,0.45);
  padding: 13px 36px;
  text-decoration: none;
  margin-top: var(--space-3);
  transition: border-color var(--duration-base) ease,
              background   var(--duration-base) ease,
              color        var(--duration-base) ease;
}
.slide-cta:hover {
  border-color: var(--gold-bright);
  background: rgba(201,168,76,0.12);
  color: var(--gold-bright);
}

/* Dot navigation */
.slider-dots {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-2);
  z-index: 3;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(240,230,210,0.35);
  border: none;
  cursor: none;
  transition: background var(--duration-base) ease,
              transform  var(--duration-base) ease;
  padding: 0;
}
.slider-dot.is-active {
  background: var(--gold-bright);
  transform: scale(1.4);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  z-index: 3;
  animation: fadeIn 2s ease 2s both;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(rgba(201,168,76,0.5), transparent);
  animation: pulse 2.5s ease-in-out infinite;
}

/* ── 2. ARTISANAL VIDEO ─────────────────────────────────────────────────── */
.video-section {
  background: var(--cream);
  padding: var(--space-24) 0 0;
}

.video-statement-wrap {
  max-width: 860px;
  margin: 0 auto var(--space-16);
  padding: 0 var(--gutter);
  text-align: center;
}
.video-statement {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.4rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-dark);
  letter-spacing: var(--tracking-display);
}
.video-statement span {
  font-style: italic;
  color: var(--text-mid);
  font-size: 0.88em;
}

/* Full-width video frame */
.video-frame {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--ink-mid);
  position: relative;
}
.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Placeholder */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(16,12,8,0.6), rgba(16,12,8,0.6)),
    url('/images/hero.jpg') center/cover no-repeat;
}
.video-placeholder-inner {
  text-align: center;
  color: var(--ivory-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.video-placeholder-inner p {
  font-family: var(--font-body);
  font-size: var(--size-sm);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: rgba(196,180,154,0.55);
}

/* ── 3. COLLECTIONS SECTION ─────────────────────────────────────────────── */
.collections-section {
  background: var(--cream);
  padding: var(--space-24) 0 0;
  overflow: hidden;
}

/* Centred header */
.collections-header {
  text-align: center;
  padding: 0 var(--gutter) var(--space-12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.collections-header .display {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--text-dark);
}
.collections-sub {
  font-size: var(--size-base);
  color: var(--text-mid);
  line-height: var(--leading-loose);
  max-width: 460px;
}
.collections-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--size-tag);
  font-weight: 400;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--text-dark);
  border: 1px solid var(--cream-border);
  padding: 12px 32px;
  text-decoration: none;
  transition: border-color var(--duration-base) ease,
              color        var(--duration-base) ease;
  margin-top: var(--space-2);
}
.collections-cta:hover {
  border-color: var(--gold);
  color: var(--gold-deep);
}

/* Scroll container */
.collections-scroll-wrap {
  position: relative;
}
.collections-track {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0 var(--gutter) var(--space-6);
  cursor: grab;
}
.collections-track:active { cursor: grabbing; }
.collections-track::-webkit-scrollbar { display: none; }

/* Collection cards */
.coll-card {
  flex: 0 0 320px;
  height: 460px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  scroll-snap-align: start;
  display: block;
}
.coll-card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
  transition: transform 0.8s var(--ease-out);
}
.coll-card:hover .coll-card-img {
  transform: scale(1.04);
}
/* Gradient at bottom for text */
.coll-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(16,12,8,0.85) 0%,
    rgba(16,12,8,0.20) 55%,
    transparent 100%
  );
  z-index: 1;
}
.coll-card-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: var(--space-6) var(--space-6) var(--space-8);
  z-index: 2;
}
.coll-card-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--ivory);
  display: block;
  letter-spacing: var(--tracking-display);
  line-height: 1.1;
  margin-bottom: var(--space-1);
}
.coll-card-sub {
  font-size: var(--size-tag);
  font-family: var(--font-body);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(196,180,154,0.6);
  display: block;
}

/* Arrow buttons */
.scroll-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--cream);
  border: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  cursor: none;
  z-index: 3;
  box-shadow: 0 2px 16px rgba(26,21,16,0.10);
  transition: background var(--duration-fast) ease,
              border-color var(--duration-fast) ease;
  margin-top: -24px; /* offset for header above */
}
.scroll-arrow:hover {
  background: var(--cream-warm);
  border-color: var(--gold-20);
}
.scroll-arrow--prev { left: var(--space-4); }
.scroll-arrow--next { right: var(--space-4); }

/* ── 4. JOURNAL ─────────────────────────────────────────────────────────── */
.journal-section {
  background: var(--cream);
  padding: var(--space-24) 0 var(--space-36);
  border-top: var(--border-light);
}

.journal-header {
  text-align: center;
  margin-bottom: var(--space-16);
}
.journal-header .display {
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  color: var(--text-dark);
  margin-bottom: var(--space-4);
}
.journal-sub {
  font-size: var(--size-base);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: var(--leading-loose);
}

/* 2×2 grid — KAL style */
.journal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-16) var(--space-8);
}

/* Journal card — image top, text below, no borders */
.journal-card {
  text-decoration: none;
  display: block;
}
.journal-card-img {
  width: 100%;
  aspect-ratio: 3/2;
  background-size: cover;
  background-position: center;
  background-color: var(--cream-deep);
  display: block;
  transition: opacity var(--duration-base) ease;
}
.journal-card:hover .journal-card-img {
  opacity: 0.88;
}
.journal-card-body {
  padding-top: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.journal-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: var(--tracking-display);
}
.journal-card-excerpt {
  font-size: var(--size-base);
  color: var(--text-mid);
  line-height: var(--leading-loose);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.journal-card-read {
  color: var(--text-muted);
  font-size: var(--size-tag);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  transition: color var(--duration-fast) ease;
}
.journal-card:hover .journal-card-read {
  color: var(--gold-deep);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 540px) {
  .slide-heading { font-size: clamp(3rem, 12vw, 6rem); }
  .slide-content { padding: 0 var(--gutter-sm) var(--space-16); }
  .collections-header { padding: 0 var(--gutter-sm) var(--space-10); }
  .collections-track { padding: 0 var(--gutter-sm) var(--space-4); }
  .coll-card { flex: 0 0 260px; height: 380px; }
  .scroll-arrow { display: none; }
  .journal-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .journal-section,
  .video-section,
  .collections-section { padding-top: var(--space-16); }
  .section-inner { padding: 0 var(--gutter-sm); }
}

@media (max-width: 600px) {
  .coll-card { flex: 0 0 220px; height: 320px; }
  .slide-heading { font-size: clamp(2.8rem, 13vw, 5rem); }
  .video-statement { font-size: clamp(1.2rem, 5vw, 1.8rem); }
}
