/* Home Page Premium Styles */
.premium-home-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: .5rem 0 3rem;
}

/* Hero Section */
.home-hero {
  position: relative;
  min-height: 420px;
  padding: clamp(2.2rem, 5vw, 4.5rem);
  border-radius: 24px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0d3428 0%, #164d3b 50%, #1d5c48 100%);
  isolation: isolate;
  box-shadow: 0 12px 36px rgba(13, 52, 40, 0.15);
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0 0 0 38%;
  content: "";
  background: linear-gradient(90deg, rgba(13, 52, 40, 0.98) 0%, rgba(13, 52, 40, 0.82) 45%, rgba(13, 52, 40, 0.25) 100%),
              url("../img/ia-hero.webp") center/cover;
}

.hero-copy {
  max-width: 620px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem .9rem;
  border-radius: 99px;
  background: rgba(220, 232, 173, 0.2);
  border: 1px solid rgba(220, 232, 173, 0.35);
  color: #dce8ad;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.home-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.home-hero p {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.8rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.5rem;
}

.button-brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.4rem;
  border-radius: 12px;
  color: var(--premium-ink, #18221d);
  background: var(--premium-lime, #dce8ad);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: all .2s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.button-brand:hover {
  background: #e8f3bc;
  color: var(--premium-ink, #18221d);
  transform: translateY(-2px);
}

.button-secondary {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.3rem;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
  transition: all .2s ease;
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-pill {
  font-size: .82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

/* Trust / Feature Cards - Highlighted like user image */
.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  margin: 1.8rem 0 2.5rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 18px;
  background: var(--premium-surface, #ffffff);
  box-shadow: 0 8px 24px rgba(24, 34, 29, 0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}

.trust-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(24, 34, 29, 0.08);
}

.trust-item .icon-box {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  color: var(--premium-green, #164d3b);
  background: #edf3df;
  border: 1px solid #d2d8cf;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.trust-item strong {
  display: block;
  font-size: .98rem;
  font-weight: 800;
  color: var(--premium-ink, #18221d);
  margin-bottom: .2rem;
}

.trust-item small {
  color: var(--premium-muted, #5e6b63);
  font-size: .84rem;
  font-weight: 500;
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.2rem;
}

.section-heading h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--premium-ink, #18221d);
}

.section-heading a {
  color: var(--premium-green, #164d3b);
  font-size: .88rem;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: transform .2s ease;
}

.section-heading a:hover {
  transform: translateX(3px);
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.2rem;
}

.category-card {
  position: relative;
  min-height: 180px;
  padding: 1.4rem;
  border-radius: 20px;
  overflow: hidden;
  color: #ffffff;
  background: var(--premium-green, #164d3b);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(24, 34, 29, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.category-card:nth-child(1) { background: linear-gradient(135deg, #164d3b 0%, #0d3428 100%); }
.category-card:nth-child(2) { background: linear-gradient(135deg, #c87825 0%, #9a5312 100%); }
.category-card:nth-child(3) { background: linear-gradient(135deg, #2b614e 0%, #174235 100%); }
.category-card:nth-child(4) { background: linear-gradient(135deg, #9b5c4e 0%, #753b28 100%); }
.category-card:nth-child(5) { background: linear-gradient(135deg, #8a7322 0%, #5e4f13 100%); }

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(24, 34, 29, 0.15);
}

.category-card i {
  font-size: 2rem;
}

.category-card h3 {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  left: 1.2rem;
  margin: 0;
  font-family: "DM Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
}

/* Product & Store Cards Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
}

.home-product-card {
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.home-product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(24, 34, 29, 0.08);
}

.home-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.2;
  object-fit: cover;
  background: #e5ebe3;
}

.home-card-image {
  display: block;
  overflow: hidden;
}

.section-subtitle {
  margin: .35rem 0 0;
  color: var(--premium-muted, #5e6b63);
  font-size: .9rem;
}

.home-subheading {
  margin: 0 0 1rem;
  color: var(--premium-ink, #18221d);
  font-size: 1.15rem;
  font-weight: 800;
}

.home-empty-state {
  grid-column: 1 / -1;
  padding: 1.5rem;
  border: 1px dashed var(--premium-line, #d2d8cf);
  border-radius: 12px;
  color: var(--premium-muted, #5e6b63);
  text-align: center;
}

.product-info {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info small {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--premium-green, #164d3b);
  margin-bottom: .3rem;
}

.product-info h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--premium-ink, #18221d);
  margin: 0 0 .8rem;
  line-height: 1.35;
  flex: 1;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding-top: .6rem;
  border-top: 1px dashed var(--premium-line, #d2d8cf);
}

.product-price {
  font-size: .98rem;
  font-weight: 800;
  color: var(--premium-green, #164d3b);
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .4rem .8rem;
  background: rgba(22, 77, 59, 0.08);
  color: var(--premium-green, #164d3b);
  border-radius: 10px;
  font-size: .82rem;
  font-weight: 800;
  text-decoration: none;
  transition: all .2s ease;
}

.product-link:hover {
  background: var(--premium-green, #164d3b);
  color: #ffffff;
}

/* Purpose Banner */
.purpose-banner {
  background: linear-gradient(135deg, var(--premium-surface, #ffffff) 0%, #f0f4ea 100%);
  border: 1px solid var(--premium-line, #d2d8cf);
  border-radius: 24px;
  padding: 2.5rem;
  margin: 3rem 0 1.5rem;
  box-shadow: 0 8px 30px rgba(24, 34, 29, 0.04);
}

.purpose-banner-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: center;
}

.purpose-kicker {
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--premium-green, #164d3b);
  margin-bottom: .6rem;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.purpose-banner h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 800;
  color: var(--premium-ink, #18221d);
  margin-bottom: 1rem;
}

.purpose-banner p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--premium-muted, #5e6b63);
  margin-bottom: 1.5rem;
}

.purpose-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
}

.btn-purpose-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.3rem;
  background: var(--premium-green, #164d3b);
  color: #ffffff;
  font-weight: 800;
  font-size: .9rem;
  border-radius: 12px;
  text-decoration: none;
  transition: background .2s ease;
}

.btn-purpose-primary:hover {
  background: var(--premium-green-dark, #0d3428);
  color: #ffffff;
}

.btn-purpose-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.2rem;
  background: rgba(22, 77, 59, 0.08);
  color: var(--premium-green, #164d3b);
  font-weight: 800;
  font-size: .9rem;
  border-radius: 12px;
  text-decoration: none;
}

.btn-purpose-secondary:hover {
  background: rgba(22, 77, 59, 0.15);
  color: var(--premium-green, #164d3b);
}

@media (max-width: 991px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .purpose-banner-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .trust-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .home-hero { min-height: 460px; padding: 2rem 1.4rem; }
  .home-hero::after { inset: 35% 0 0; background: linear-gradient(0deg, rgba(13, 52, 40, 0.98), rgba(13, 52, 40, 0)), url("../img/ia-hero.webp") center/cover; }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-home-page .product-grid {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 .1rem .75rem;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .premium-home-page .product-grid > .home-product-card {
    flex: 0 0 min(78vw, 290px);
    scroll-snap-align: start;
  }

  .premium-home-page .product-grid > .home-empty-state {
    flex: 0 0 100%;
  }
}
