/* ============================================================
   HOME PAGE STYLES — index.css
   ============================================================ */

/* ------------------------------------------------------------
   HERO
   ------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  height: calc(100vh - var(--nav-height));
  max-height: calc(100vh - var(--nav-height));
  overflow: hidden;
}

.hero__photo {
  position: relative;
  overflow: hidden;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transition: transform 8s var(--ease);
}

.hero__photo img:hover {
  transform: scale(1.04);
}

.hero__content {
  background: var(--clr-forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gap-lg) var(--gap-xl);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow like the flair asset */
.hero__content::before {
  content: '';
  position: absolute;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 102, 68, 0.6) 0%, transparent 70%);
  top: 20%;
  left: 10%;
  pointer-events: none;
}

.hero__eyebrow {
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--gap-md);
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  color: var(--clr-white);
  font-weight: 400;
  font-style: italic;
  line-height: 1.15;
  margin-bottom: var(--gap-md);
}

.hero__cta {
  margin-top: var(--gap-sm);
}

.hero__mascot {
  position: absolute;
  bottom: -10px;
  right: var(--gap-lg);
  width: min(240px, 35%);
  pointer-events: none;
  animation: floatBed 4s ease-in-out infinite;
}

.hero__zzz {
  position: absolute;
  bottom: 190px;
  right: calc(var(--gap-lg) + 150px);
  color: var(--clr-white);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.4rem;
  opacity: 0;
  animation: zzz 4s ease-in-out infinite;
}

.hero__zzz:nth-child(4) { animation-delay: 1.2s; font-size: 1rem; bottom: 210px; right: calc(var(--gap-lg) + 120px); }
.hero__zzz:nth-child(5) { animation-delay: 2.4s; font-size: 0.7rem; bottom: 225px; right: calc(var(--gap-lg) + 95px); }

@keyframes floatBed {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes zzz {
  0%   { opacity: 0; transform: translateY(0) translateX(0); }
  30%  { opacity: 0.9; }
  100% { opacity: 0; transform: translateY(-30px) translateX(10px); }
}

/* ------------------------------------------------------------
   FEATURED SECTION
   ------------------------------------------------------------ */
.featured__header {
  text-align: center;
  margin-bottom: var(--gap-lg);
}

.featured__header .label {
  color: var(--clr-forest-light);
  display: block;
  margin-bottom: var(--gap-xs);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap-md);
}

/* ------------------------------------------------------------
   PRODUCT CARD (shared: home + shop)
   ------------------------------------------------------------ */
.product-card {
  display: block;
  background: var(--clr-white);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
  color: var(--clr-text);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(14, 53, 36, 0.12);
}

.product-card__img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--clr-cream-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

/* Placeholder if no image */
.product-card__img--placeholder {
  background: linear-gradient(135deg, var(--clr-cream-dark), var(--clr-cream));
  font-size: 3rem;
  color: var(--clr-forest);
  opacity: 0.3;
}

.product-card__body {
  padding: 1.2rem var(--gap-sm);
}

.product-card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.product-card__type {
  font-size: 0.78rem;
  color: var(--clr-text-muted);
  letter-spacing: 0.05em;
}

.product-card__price {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-forest);
}

.product-card__etsy-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .product-card__etsy-badge {
  opacity: 1;
}

/* ------------------------------------------------------------
   BANNER / ETSY CTA
   ------------------------------------------------------------ */
.etsy-banner {
  background: var(--clr-forest);
  color: var(--clr-white);
  text-align: center;
  padding-block: var(--gap-lg);
}

.etsy-banner h2 {
  color: var(--clr-white);
  margin-bottom: var(--gap-sm);
  font-style: italic;
}

.etsy-banner p {
  opacity: 0.7;
  font-size: 0.95rem;
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--gap-md);
}

/* ------------------------------------------------------------
   ABOUT TEASER (homepage)
   ------------------------------------------------------------ */
.about-teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-xl);
  align-items: center;
}

.about-teaser__text .label {
  color: var(--clr-forest-light);
  display: block;
  margin-bottom: var(--gap-sm);
}

.about-teaser__text h2 {
  margin-bottom: var(--gap-sm);
}

.about-teaser__text p {
  color: var(--clr-text-muted);
  margin-bottom: var(--gap-md);
  max-width: 44ch;
}

.about-teaser__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-teaser__img-frame {
  width: 80%;
  aspect-ratio: 3/4;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--clr-forest);
}

.about-teaser__img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  mix-blend-mode: luminosity;
}

.about-teaser__accent {
  position: absolute;
  bottom: -20px;
  left: 0;
  width: 55%;
  aspect-ratio: 3/4;
  border: 2px solid var(--clr-forest);
  border-radius: var(--radius-sm);
  z-index: -1;
}

/* ------------------------------------------------------------
   RESPONSIVE — HOME
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .hero__photo {
    height: 38vw;
    min-height: 220px;
    max-height: 300px;
  }

  .hero__content {
    padding: var(--gap-lg) var(--gap-md);
    min-height: 55vw;
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-teaser {
    grid-template-columns: 1fr;
  }

  .about-teaser__visual {
    order: -1;
  }

  .about-teaser__img-frame {
    width: 60%;
    aspect-ratio: 4/3;
  }
}

@media (max-width: 560px) {
  .featured__grid {
    grid-template-columns: 1fr;
  }

  .hero__mascot {
    width: 160px;
  }
}
