/* index.css */

/* ── Split Hero Section — Diagonal Editorial Layout ──── */
.main-hero.split-layout {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background-color: var(--bg-primary);
}

/* ── Text Side ── */
.hero-text-side {
  position: relative;
  z-index: 2;
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px 10% 100px 10%;
  background-color: var(--bg-primary);
  /* Diagonal cut — the cream side extends past the midpoint then angles away */
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}

.hero-text-side::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 1px;
  background: transparent; /* clean edge, no visible border on the diagonal */
}

/* ── Image Side ── */
.hero-image-side {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 55%;
  z-index: 1;
  overflow: hidden;
}

/* Gradient fade at the bottom to eliminate the hard cutoff edge when scrolling */
.hero-image-side::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero-image-side .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: heroImageReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroImageReveal {
  from {
    transform: scale(1.06);
    opacity: 0.8;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* ── Animations ── */
@keyframes contentReveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Title ── */
.main-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.08;
  margin-bottom: var(--sp-4);
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: contentReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

/* ── Subtitle ── */
.main-hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--t-lg);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-7);
  max-width: 420px;
  animation: contentReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

/* ── Button Pair ── */
.main-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: contentReveal 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.main-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 32px;
  font-family: var(--font-label);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-hero-actions .btn-primary {
  background: var(--rose-gold);
  color: #fff;
  border: 2px solid var(--rose-gold);
}

.main-hero-actions .btn-primary:hover {
  background: #b07d5a;
  border-color: #b07d5a;
}

.main-hero-actions .btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--text-primary);
}

.main-hero-actions .btn-outline:hover {
  background: var(--text-primary);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 992px) {
  .main-hero.split-layout {
    flex-direction: column;
    min-height: 100vh;
  }

  .hero-text-side {
    flex: none;
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    padding: 120px 32px 80px;
    align-items: center;
    text-align: center;
    order: 1;
  }

  .hero-image-side {
    position: relative;
    width: 100%;
    flex: 1;
    order: 2;
    margin-top: -10%; /* overlap for the diagonal on mobile */
  }

  .hero-image-side .hero-image {
    object-position: 80% center; /* Shift the image so the vertical background line is off-screen */
  }

  .main-hero-title {
    white-space: normal;
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .main-hero-subtitle {
    max-width: 100%;
  }

  .main-hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-hero-actions .btn {
    padding: 0 24px;
    height: 48px;
    font-size: 12px;
  }
}

/* ── Featured Collection ────────────────────────────── */
.featured-collection {
  padding: 100px 24px;
  background: var(--bg-primary);
  position: relative;
  z-index: 3;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  font-family: var(--font-label);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--rose-gold);
  margin-bottom: var(--sp-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--t-3xl);
  font-weight: 400;
  color: var(--text-primary);
}

.collection-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-6);
  align-items: center;
}

.collection-card {
  position: relative;
  text-decoration: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.collection-card:nth-child(1) {
  grid-column: 1 / 8;
  z-index: 2;
}

.collection-card:nth-child(2) {
  grid-column: 8 / 13;
  margin-top: 120px;
  z-index: 1;
}

.collection-card:nth-child(3) {
  grid-column: 2 / 7;
  margin-top: -60px;
  z-index: 1;
}

.collection-card:nth-child(4) {
  grid-column: 7 / 13;
  z-index: 2;
}

.collection-card:hover {
  transform: translateY(-8px);
}

.collection-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-md, 16px);
  box-shadow: 0 16px 40px rgba(44, 24, 16, 0.08);
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.8s ease;
}

.collection-card:hover .collection-img {
  transform: scale(1.02);
  box-shadow: 0 24px 64px rgba(44, 24, 16, 0.12);
}

.collection-info {
  position: relative;
  margin-top: var(--sp-4);
  background: transparent;
  display: flex;
  justify-content: flex-end;
  padding: 0 16px;
}

.collection-link {
  font-family: var(--font-label);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 2px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.collection-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: width 0.3s ease, left 0.3s ease;
}

.collection-card:hover .collection-link {
  opacity: 1;
}

.collection-card:hover .collection-link::after {
  width: 100%;
  left: 0;
}

@media (max-width: 900px) {
  /* Keep the asymmetric editorial grid on mobile, just scale down the spacing */
  .collection-grid {
    gap: var(--sp-4);
  }
  .collection-card:nth-child(2) {
    margin-top: 60px; /* Reduced from 120px */
  }
  .collection-card:nth-child(3) {
    margin-top: -30px; /* Reduced from -60px */
  }
}

/* Make it more alive on mobile */
.collection-card {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

@media (hover: none) {
  .collection-card:active {
    transform: scale(0.96);
    opacity: 0.85;
  }
}

@media (max-width: 768px) {
  .main-hero-bg {
    background-attachment: scroll;
  }
}