@import url("WebsiteStyle.css");

.home-hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background: var(--ink);
}

.hero-media-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  grid-template-rows: 1fr 1fr;
  min-height: 690px;
  gap: 2px;
  opacity: 0.82;
}

.hero-media-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-img {
  grid-row: 1 / 3;
  object-position: center 20%;
}

.hero-media-grid img:nth-child(2) { object-position: center 20%; }
.hero-media-grid img:nth-child(3) { object-position: center; }

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 24, 32, 0.78), rgba(16, 24, 32, 0.26) 54%, rgba(16, 24, 32, 0.06));
}

.home-hero-copy {
  position: absolute;
  left: clamp(24px, 7vw, 92px);
  bottom: clamp(40px, 9vw, 110px);
  z-index: 2;
  max-width: 720px;
  color: var(--cream);
}

.home-hero-copy .eyebrow {
  color: #f4c7a1;
}

.home-hero-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(3.4rem, 9vw, 8rem);
  line-height: 0.9;
}

.home-hero-copy p {
  max-width: 540px;
  font-size: 1.08rem;
  line-height: 1.7;
}

.quick-categories {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.quick-categories a {
  display: grid;
  place-items: center;
  min-height: 76px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
}

.quick-categories a:hover {
  background: var(--sage);
}

.collections,
.new-arrivals-row {
  padding: 76px clamp(20px, 5vw, 72px);
}

.centered-heading {
  display: block;
  padding: 0;
  text-align: center;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.collection-grid.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.collection-card {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 8px;
  color: var(--cream);
  text-decoration: none;
  background: var(--ink);
}

.collection-card img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.collection-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(16, 24, 32, 0.58), rgba(16, 24, 32, 0));
}

.collection-card span {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 3.1rem);
  line-height: 1;
}

.collection-card:hover img {
  transform: scale(1.04);
  opacity: 0.98;
}

.arrival-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.arrival-card {
  display: block;
  color: var(--ink);
  text-decoration: none;
}

.arrival-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #eee1d2;
  object-position: center top;
}

.arrival-card span,
.arrival-card strong {
  display: block;
  margin-top: 10px;
}

.arrival-card span {
  font-weight: 800;
}

.arrival-card strong {
  color: var(--muted);
}

.sale-callout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  padding: 72px clamp(20px, 5vw, 72px);
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sale-callout img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--cream);
}

.sale-callout p {
  color: var(--muted);
  line-height: 1.7;
}

.promo {
  margin: 76px clamp(20px, 5vw, 72px);
}

@media (max-width: 900px) {
  .announcement-bar {
    flex-wrap: wrap;
    gap: 10px 24px;
  }

  .hero-media-grid,
  .sale-callout {
    grid-template-columns: 1fr;
  }

  .hero-media-grid {
    min-height: 620px;
  }

  .hero-media-grid img:not(.hero-main-img) {
    display: none;
  }

  .quick-categories,
  .collection-grid.three-up,
  .arrival-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .announcement-bar span:nth-child(2),
  .announcement-bar span:nth-child(3) {
    display: none;
  }

  .home-hero,
  .hero-media-grid {
    min-height: 560px;
  }

  .home-hero-copy h1 {
    font-size: 3.5rem;
  }

  .quick-categories,
  .collection-grid,
  .collection-grid.three-up,
  .arrival-grid,
  .sale-callout {
    grid-template-columns: 1fr;
  }

  .collection-card,
  .collection-card img {
    min-height: 340px;
  }
}
