/* ============================================================
   IR home page — mockup v3
   ============================================================ */

body#index {
  background: var(--ndx-ir-page-bg) url("../img/imgbg.png") no-repeat center top;
  background-size: cover;
}

body#index #wrapper,
body#index #wrapper .center-column.page,
body#index .page-content--home {
  background: transparent;
}

.page-content--home {
  padding: 0.5rem 0 1.5rem;
}

/* Hero */
.ndx-ir-home-hero {
  margin: 0 0 0.875rem;
}

.ndx-ir-home-hero__frame {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem;
  box-shadow: 0 0.35rem 1.25rem rgba(46, 54, 7, 0.12);
}

.ndx-ir-home-hero__image {
  display: block;
  width: 100%;
  height: auto;
  min-height: 12.5rem;
  object-fit: cover;
  object-position: center;
}

.ndx-ir-home-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 52%;
  padding: 1.5rem 1.75rem;
  background: linear-gradient(
    90deg,
    rgba(248, 248, 239, 0.94) 0%,
    rgba(248, 248, 239, 0.82) 58%,
    rgba(248, 248, 239, 0) 100%
  );
}

.ndx-ir-home-hero__title {
  margin: 0 0 0.65rem;
  color: #2e3607;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.15;
}

.ndx-ir-home-hero__lead {
  margin: 0 0 1rem;
  max-width: 22rem;
  color: #4a5240;
  font-size: 0.9375rem;
  line-height: 1.45;
}

#index a.ndx-ir-home-hero__cta,
.page-content--home a.ndx-ir-home-hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.55rem 1rem;
  border-radius: 0.35rem;
  background: #82a439;
  color: #f5f9ec;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

#index a.ndx-ir-home-hero__cta .material-icons,
.page-content--home a.ndx-ir-home-hero__cta .material-icons {
  font-size: 1rem;
  line-height: 1;
  color: inherit;
}

#index a.ndx-ir-home-hero__cta:hover,
#index a.ndx-ir-home-hero__cta:focus,
.page-content--home a.ndx-ir-home-hero__cta:hover,
.page-content--home a.ndx-ir-home-hero__cta:focus {
  background: #6d9430;
  color: #fff;
  text-decoration: none;
}

/* Trust bars */
.ndx-ir-home-trust {
  margin: 0 0 0.875rem;
  padding: 0.75rem 0.875rem;
  border: 1px solid var(--ndx-color-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 0.15rem 0.65rem rgba(46, 54, 7, 0.06);
}

.ndx-ir-home-trust__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ndx-ir-home-trust--primary .ndx-ir-home-trust__list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndx-ir-home-trust--secondary .ndx-ir-home-trust__list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndx-ir-home-trust__list--compact .ndx-ir-home-trust__label {
  font-size: 0.6875rem;
  line-height: 1.35;
}

.ndx-ir-home-trust__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.ndx-ir-home-trust__icon {
  flex: 0 0 auto;
  color: #82a439;
  font-size: 1.375rem;
  line-height: 1;
}

.ndx-ir-home-trust__flag {
  flex: 0 0 auto;
  font-size: 1.125rem;
  line-height: 1;
}

.ndx-ir-home-trust__label {
  color: #2e3607;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}

.ndx-ir-home-trust__sub {
  font-weight: 400;
  color: #4a5240;
}

/* Category cards */
.ndx-ir-home-categories {
  margin: 0 0 0.875rem;
}

.ndx-ir-home-categories__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.ndx-ir-home-category-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ndx-color-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.15rem 0.65rem rgba(46, 54, 7, 0.06);
}

.ndx-ir-home-category-card__media {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.ndx-ir-home-category-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.ndx-ir-home-category-card__media--product {
  background: #f8f8ef;
}

.ndx-ir-home-category-card__media--product img {
  object-fit: contain;
  padding: 0.85rem;
}

.ndx-ir-home-category-card__media:hover img,
.ndx-ir-home-category-card__media:focus img {
  transform: scale(1.03);
}

.ndx-ir-home-category-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.65rem 0.85rem;
  text-align: center;
}

.ndx-ir-home-category-card__title {
  margin: 0 0 0.25rem;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.2;
}

.ndx-ir-home-category-card__title a {
  color: #2e3607;
  text-decoration: none;
}

.ndx-ir-home-category-card__title a:hover,
.ndx-ir-home-category-card__title a:focus {
  color: var(--ndx-color-accent);
}

.ndx-ir-home-category-card__meta {
  margin: 0 0 0.65rem;
  color: #4a5240;
  font-size: 0.6875rem;
}

.ndx-ir-home-category-card__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 0.45rem 0.85rem;
  border-radius: 0.3rem;
  background: #82a439;
  color: #f5f9ec;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.ndx-ir-home-category-card__btn:hover,
.ndx-ir-home-category-card__btn:focus {
  background: #6d9430;
  color: #fff;
  text-decoration: none;
}

/* Featured products */
.ndx-ir-home-featured {
  margin: 1rem 0 0;
}

.ndx-ir-home-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0 0 0.875rem;
  color: #2e3607;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.ndx-ir-home-section-title__leaf {
  color: #82a439;
  font-size: 1.125rem;
  line-height: 1;
}

.page-content--home .ps-featuredproducts .module-products.container {
  max-width: none;
  padding: 0;
}

.page-content--home .ps-featuredproducts .products {
  --bs-gutter-x: 0.65rem;
  --bs-gutter-y: 0.65rem;
}

.page-content--home .ps-featuredproducts .product-miniature {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--ndx-color-border);
  border-radius: 0.5rem;
  min-height: 0;
  padding: 0.5rem;
}

.page-content--home .ps-featuredproducts .product-miniature .price {
  color: var(--ndx-color-price);
  font-weight: 700;
}

/* SEO block at bottom */
.page-content--home .ndx-home-seo {
  margin-top: 1.5rem;
  padding: 1rem 0.875rem;
  border: 1px solid var(--ndx-color-border);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.72);
}

.page-content--home .ndx-home-seo__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.page-content--home .ndx-home-seo__lead {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #4a5240;
}

.page-content--home .ndx-home-about {
  display: none;
}

@media (max-width: 991.98px) {
  .ndx-ir-home-hero__overlay {
    max-width: 100%;
    padding: 1rem;
    background: linear-gradient(
      180deg,
      rgba(248, 248, 239, 0.92) 0%,
      rgba(248, 248, 239, 0.55) 100%
    );
  }

  .ndx-ir-home-trust__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ndx-ir-home-categories__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ndx-ir-home-trust__list,
  .ndx-ir-home-trust__list--compact {
    grid-template-columns: 1fr;
  }
}
