/* ==========================================================================
   ILAMA BOOKS — HOMEPAGE STYLES
   Scoped to #il-home so nothing leaks to other pages.
   ========================================================================== */

#il-home {
  font-family: "Lato", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--il-ink);
  line-height: 1.6;
  background: var(--il-bg);
}

/* ---------- Eyebrow label ---------- */
#il-home .il-eyebrow {
  color: var(--il-accent);
  font-size: 15px;
  letter-spacing: .5px;
  margin-bottom: 8px;
}

/* =====================================================================
   HERO
   ===================================================================== */

#il-home .il-hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: clamp(380px, 34vw, 560px);
  padding: 40px 0;
  background: #fbf4e8 url("https://www.ilamabooks.com/wp-content/uploads/2026/10/WhatsApp-Image-2026-10-03-at-5.34.14-PM.webp") left center / cover no-repeat;
}
#il-home .il-hero__inner {
  max-width: 450px;
  width: 100%;
  margin-right: 5%;
  text-align: center;
}
#il-home .il-hero__title {
  font-size: clamp(22px, 2.6vw, 38px);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 14px;
}
#il-home .il-hero__text {
  margin: 0 auto 22px;
  color: #4a4a4a;
  font-size: clamp(13px, 1.1vw, 16px);
}
#il-home .il-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =====================================================================
   HIGHLIGHTS STRIP
   ===================================================================== */

#il-home .il-highlights {
  border-bottom: 1px solid #eee;
  background: #fff;
  display: flex;
  justify-content: center;
}
#il-home .il-highlights__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
  text-align: center;        /* ← centers the text inside each cell */
  justify-items: center;     /* ← centers block children inside each cell */

}
#il-home .il-highlights__item {
  display: flex;
  flex-direction: column;
  text-align: center;
}
#il-home .il-highlights__item strong { font-size: 15px; }
#il-home .il-highlights__item span   { font-size: 13px; color: var(--il-muted); }

/* =====================================================================
   GENERIC SECTION WRAPPER
   ===================================================================== */

#il-home .il-section { padding: 70px 0; }
#il-home .il-section__head { text-align: center; margin-bottom: 40px; }

#il-home .il-section__title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 800;
}
/* Decorative lines either side of section headings */
#il-home .il-section__head .il-section__title::before,
#il-home .il-section__head .il-section__title::after {
  content: "";
  width: 56px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255,100,40,.15), var(--il-accent));
}
#il-home .il-section__head .il-section__title::after { transform: scaleX(-1); }

#il-home .il-section__sub { color: var(--il-muted); margin-top: 8px; }

/* =====================================================================
   BOOK GRID
   ===================================================================== */

#il-home .il-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#il-home .il-card {
  background: #fff;
  border-radius: var(--il-radius);
  box-shadow: var(--il-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}
#il-home .il-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0,0,0,.14);
}
#il-home .il-card__media {
  display: block;
  background: var(--il-bg-soft);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  cursor: pointer;
}
#il-home .il-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#il-home .il-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  justify-content: flex-end;
}
#il-home .il-card__title {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
  margin-bottom: 4px;
}

/* =====================================================================
   ABOUT
   ===================================================================== */

#il-home .il-about {
  background: var(--il-bg-soft);
  padding: 70px 0;
}
#il-home .il-about__inner { max-width: 760px; }
#il-home .il-about__text { text-align: center; }
#il-home .il-about__text .il-section__title { margin-bottom: 24px; }
#il-home .il-about__text p { color: var(--il-muted); margin-bottom: 16px; }
#il-home .il-about__text p strong {
  color: var(--il-ink);
  font-size: 1.1rem;
}

/* =====================================================================
   WHY CHOOSE US (features grid)
   ===================================================================== */

#il-home .il-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#il-home .il-feature {
  background: #fff;
  padding: 26px 20px;
  border-radius: var(--il-radius);
  box-shadow: var(--il-shadow);
  text-align: center;
}
#il-home .il-feature__title {
  color: var(--il-accent);
  font-size: 20px;
  margin-bottom: 8px;
}
#il-home .il-feature p { font-size: 15px; color: var(--il-muted); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

@media (max-width: 1024px) {
  #il-home .il-grid     { grid-template-columns: repeat(3, 1fr); }
  #il-home .il-features { grid-template-columns: repeat(2, 1fr); }
  #il-home .il-highlights__list { grid-template-columns: repeat(2, 1fr); }
  #il-home .il-hero__inner { max-width: 50%; margin-right: 2%; }
}

@media (max-width: 782px) {
  #il-home .il-hero {
    justify-content: center;
    background-position: 30% center;
    min-height: clamp(320px, 60vw, 480px);
  }
  #il-home .il-hero__inner {
    max-width: 100%;
    margin-right: 0;
    background: rgba(251,244,232,0.85);
    padding: 24px 16px;
    border-radius: var(--il-radius);
  }
}

@media (max-width: 600px) {
  #il-home .il-hero,
  #il-home .il-section,
  #il-home .il-about { padding: 48px 0; }

  #il-home .il-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  #il-home .il-features { grid-template-columns: 1fr; }

  #il-home .il-section__head .il-section__title::before,
  #il-home .il-section__head .il-section__title::after { width: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  #il-home .il-card { transition: none; }
}
