/* ============================================================
   Home Page — Redesign (2026-10-09, client reference)
   Sections: hero, products, heritage, commitment, featured,
   emotional banner, CTA. Dark header + footer untouched.
   ============================================================ */

/* ---------- Shared bits ---------- */
.link-arrow {
  color: var(--accent-color);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.link-arrow:hover { color: var(--accent-hover); }

.section-eyebrow {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-color);
  margin-bottom: var(--space-sm);
}
.section-eyebrow.light { color: var(--accent-color); }
.section-header { text-align: center; margin-bottom: var(--space-xl); }
.section-title {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  color: var(--primary-color);
  line-height: var(--lh-tight);
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin: var(--space-md) 0;
}
.hero-actions .btn { text-decoration: none; }

/* ============================================================
   1. HERO — full-bleed bakery image, cream gradient, left text
   ============================================================ */
.home-hero {
  position: relative;
  margin-top: var(--header-h, 130px);
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.home-hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/home-hero-gemini.jpg') center 35% / cover no-repeat;
}
.home-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    var(--bg-light) 20%,
    rgba(248, 243, 234, 0.94) 38%,
    rgba(248, 243, 234, 0.45) 60%,
    rgba(248, 243, 234, 0) 82%);
}
.home-hero .container { position: relative; z-index: 1; width: 100%; }
.home-hero-content { max-width: 620px; padding: var(--space-xl) 0; }
.home-hero .hero-eyebrow {
  display: block;
  font-family: var(--font-primary);
  font-size: var(--fs-small);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-color);
  margin-bottom: var(--space-sm);
}
.home-hero .hero-title {
  font-family: var(--font-primary);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  color: var(--primary-color);
  margin: 0 0 var(--space-md);
}
.home-hero .hero-desc {
  font-size: 1.05rem;
  color: var(--color-ink-700);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-md);
}
.hero-badges {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
}
.hero-badges li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--primary-color);
}
.hero-badges svg { color: var(--accent-color); flex-shrink: 0; }

/* ============================================================
   2. OUR PRODUCTS — 4 photo cards
   ============================================================ */
.home-products { padding: var(--space-2xl) 0; }
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.product-cat-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.product-cat-media { overflow: hidden; border-radius: var(--radius-md) var(--radius-md) 0 0; }
.product-cat-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-standard);
}
.product-cat-card:hover .product-cat-media img { transform: scale(1.06); }
.product-cat-body { padding: var(--space-md); display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.product-cat-body h3 {
  font-family: var(--font-primary);
  font-size: 1.15rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-color);
  margin: 0;
}
.product-cat-body p { color: var(--text-muted); font-size: 0.95rem; margin: 0; flex: 1; }
.product-cat-body .link-arrow { margin-top: 0.5rem; font-size: 0.95rem; }

/* ============================================================
   3. OUR HERITAGE — split image + text + mini stats
   ============================================================ */
.home-heritage { background: var(--color-white); padding: var(--space-2xl) 0; }
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.heritage-media img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  display: block;
}
.heritage-content .section-title { margin-bottom: var(--space-md); }
.heritage-content > p { color: var(--color-ink-700); margin-bottom: var(--space-md); }
.heritage-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin: 0 0 var(--space-lg);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.heritage-stat { display: flex; gap: 0.75rem; align-items: flex-start; }
.heritage-stat svg { color: var(--accent-color); flex-shrink: 0; margin-top: 2px; }
.heritage-stat strong { display: block; font-family: var(--font-primary); color: var(--primary-color); font-size: 1rem; }
.heritage-stat span { font-size: var(--fs-small); color: var(--text-muted); }

/* ============================================================
   4. OUR COMMITMENT — intro + 3 icon features
   ============================================================ */
.home-commitment { padding: var(--space-2xl) 0; }
.commitment-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.5fr;
  gap: var(--space-xl);
  align-items: center;
}
.commitment-intro .section-title { margin-bottom: var(--space-md); }
.commitment-intro > p { color: var(--color-ink-700); margin-bottom: var(--space-md); }
.commitment-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--grid-gap);
}
.commitment-card { text-align: center; padding: var(--space-lg) var(--space-md); }
.commitment-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(var(--accent-color-rgb), 0.16);
  color: var(--accent-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-sm);
}
.commitment-card h3 {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: var(--primary-color);
  margin: 0 0 0.4rem;
}
.commitment-card p { font-size: 0.9rem; color: var(--text-muted); margin: 0; }

/* ============================================================
   5. FEATURED PRODUCTS — image + name rows
   ============================================================ */
.home-featured { background: var(--color-white); padding: var(--space-2xl) 0; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap);
}
.featured-card {
  background: transparent;
  border: none;
  box-shadow: none;
  text-align: center;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}
.featured-card:hover { transform: translateY(-4px); box-shadow: none; }
.featured-media { overflow: hidden; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.featured-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform var(--duration-base) var(--ease-standard);
}
.featured-card:hover .featured-media img { transform: scale(1.05); }
.featured-card h3 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--primary-color);
  margin: var(--space-sm) 0 0.2rem;
}
.featured-card p { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }

/* ============================================================
   6. EMOTIONAL BANNER — chai image, dark overlay, centered text
   ============================================================ */
.home-banner {
  position: relative;
  background: url('../assets/home-banner-gemini.jpg') center 40% / cover no-repeat;
  padding: var(--space-2xl) 0;
  text-align: center;
  color: var(--color-white);
  overflow: hidden;
}
.home-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(43, 24, 8, 0.62);
}
.home-banner .container { position: relative; z-index: 1; max-width: 760px; }
.home-banner h2 {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  margin: 0 0 var(--space-sm);
}
.home-banner p { color: rgba(255, 255, 255, 0.88); margin-bottom: var(--space-sm); }
.home-banner .banner-tagline { color: var(--color-white); font-size: 1.05rem; margin: 0; }

/* ============================================================
   7. CTA
   ============================================================ */
.home-cta { padding: var(--space-2xl) 0; text-align: center; }
.home-cta h2 {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  color: var(--primary-color);
  margin: 0 0 var(--space-sm);
}
.home-cta > .container > p { color: var(--text-muted); margin-bottom: var(--space-md); }
.cta-actions { justify-content: center; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .home-products-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .commitment-grid { grid-template-columns: 1fr; }
  .heritage-grid { grid-template-columns: 1fr; }
  .heritage-media img { height: 340px; }
}

@media (max-width: 899px) {
  /* Hero: full readable overlay on small screens */
  .home-hero { min-height: 0; }
  .home-hero-bg::after {
    background: linear-gradient(180deg,
      rgba(248, 243, 234, 0.96) 0%,
      rgba(248, 243, 234, 0.88) 55%,
      rgba(248, 243, 234, 0.72) 100%);
  }
  .home-hero-content { max-width: 100%; padding: var(--space-lg) 0 var(--space-xl); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-badges { gap: var(--space-sm) var(--space-md); }

  .commitment-features { grid-template-columns: 1fr; }
  .home-products, .home-heritage, .home-commitment,
  .home-featured, .home-banner, .home-cta { padding: var(--space-xl) 0; }
}

@media (max-width: 560px) {
  .home-products-grid { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .featured-media img { height: 150px; }
  .heritage-stats { grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
  .heritage-media img { height: 260px; }
}
