/*
 * SANUMCOR G6 Home visual system.
 * Scope: Git-owned Homepage root, premium visual rhythm, and product cards.
 */

body.sanumcor-page-home {
  overflow-x: hidden;
}

.sanumcor-home {
  --home-canvas: var(--sanumcor-canvas, #F5ECE0);
  --home-surface: var(--sanumcor-surface, #FBF9F5);
  --home-elevated: var(--sanumcor-surface-elevated, #FFFDFC);
  --home-editorial: var(--sanumcor-surface-editorial, #F4E7CF);
  --home-ink: var(--sanumcor-ink, #171916);
  --home-muted: var(--sanumcor-muted, #59615B);
  --home-anchor: var(--sanumcor-anchor, #26372E);
  --home-anchor-hover: var(--sanumcor-anchor-hover, #1D2A24);
  --home-accent: var(--sanumcor-accent, #C09334);
  --home-border: var(--sanumcor-border, #DED3C4);
  --home-border-strong: var(--sanumcor-border-strong, #CDBB9F);
  --home-focus: var(--sanumcor-focus, #8A672C);
  color: var(--home-ink);
  background: var(--home-canvas);
}

.sanumcor-home *,
.sanumcor-home *::before,
.sanumcor-home *::after {
  box-sizing: border-box;
}

.sanumcor-home img {
  display: block;
  max-width: 100%;
  height: auto;
}

.sanumcor-home-shell {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.sanumcor-home-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(36px, 6vw, 60px) 0 clamp(32px, 5vw, 46px);
  border-bottom: 1px solid var(--home-border);
  background:
    linear-gradient(180deg, rgba(251, 249, 245, 0.4) 0%, rgba(245, 236, 224, 0.48) 100%),
    radial-gradient(circle at 50% 39%, rgba(255, 253, 248, 0.38) 0%, rgba(255, 253, 248, 0.2) 34%, rgba(255, 253, 248, 0) 62%),
    url("../images/home/sanumcor-home-ambient-hero.png");
  background-position: center center, center center, center center;
  background-size: cover;
}

.sanumcor-home-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  max-width: 1080px;
  gap: 0;
}

.sanumcor-home-rail {
  max-width: 54rem;
  margin: 0 auto 20px;
  color: color-mix(in srgb, var(--home-anchor) 82%, var(--home-muted));
  font-size: clamp(0.78rem, 1.7vw, 0.92rem);
  font-weight: 760;
  letter-spacing: 0.06em;
  line-height: 1.48;
  text-align: center;
  text-transform: uppercase;
}

.sanumcor-home h1,
.sanumcor-home h2,
.sanumcor-home h3,
.sanumcor-home p {
  margin-top: 0;
}

.sanumcor-home h1 {
  width: min(100%, 1040px);
  margin: 0 auto 20px;
  color: var(--home-ink);
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 10.7vw, 5.05rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.02;
  text-align: center;
}

.sanumcor-home-lead {
  max-width: 47rem;
  margin: 0 auto;
  color: var(--home-muted);
  font-size: clamp(1.02rem, 2vw, 1.22rem);
  font-weight: 450;
  line-height: 1.62;
  text-align: center;
}

.sanumcor-home-lead span {
  display: inline;
}

.sanumcor-home-primary-link,
.sanumcor-home-product-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 7px;
  font-weight: 820;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.sanumcor-home-primary-link {
  justify-self: center;
  min-width: min(100%, 214px);
  margin-top: 30px;
  padding: 0 28px;
  border: 1px solid var(--home-anchor);
  background: var(--home-anchor);
  color: var(--sanumcor-light-text, #FFFDFC);
  font-size: 0.82rem;
}

.sanumcor-home-primary-link:hover,
.sanumcor-home-primary-link:focus-visible,
.sanumcor-home-product-action:hover,
.sanumcor-home-product-action:focus-visible {
  border-color: var(--home-anchor-hover);
  background: var(--home-anchor-hover);
  color: var(--sanumcor-light-text, #FFFDFC);
}

.sanumcor-home-primary-link:focus-visible,
.sanumcor-home-product-card__link:focus-visible,
.sanumcor-home-product-action:focus-visible,
.sanumcor-home-product-card__commerce .added_to_cart:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--home-focus) 72%, transparent);
  outline-offset: 4px;
}

.sanumcor-home-support {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 5vw, 48px) 0 clamp(46px, 6.4vw, 78px);
  background: var(--home-canvas);
}

.sanumcor-home-support::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(245, 236, 224, 0.62) 0%, rgba(251, 249, 245, 0.58) 46%, rgba(245, 236, 224, 0.66) 100%),
    radial-gradient(ellipse at 50% 40%, rgba(255, 253, 248, 0.18) 0%, rgba(255, 253, 248, 0) 58%),
    url("../images/home/sanumcore-Sunlit-Beige-Studio.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

.sanumcor-home-support > .sanumcor-home-shell {
  position: relative;
  z-index: 1;
}

.sanumcor-home-support h2,
.sanumcor-home-why h2 {
  margin-inline: auto;
  margin-bottom: clamp(26px, 5vw, 48px);
  color: var(--home-ink);
  font-size: clamp(2rem, 6.8vw, 3rem);
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.08;
  text-align: center;
}

.sanumcor-home-support h2 {
  max-width: min(100%, 18.5em);
}

.sanumcor-home-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.sanumcor-home-product-card {
  position: relative;
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--home-border-strong) 72%, transparent);
  border-radius: 20px;
  background:
    linear-gradient(
      180deg,
      var(--home-elevated) 0%,
      color-mix(in srgb, var(--home-surface) 82%, var(--home-canvas)) 58%,
      var(--home-canvas) 100%
    );
  box-shadow: 0 16px 42px rgba(69, 45, 19, 0.07);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.sanumcor-home-product-card:focus-within,
.sanumcor-home-product-card:hover {
  border-color: color-mix(in srgb, var(--home-border-strong) 92%, transparent);
  box-shadow: 0 20px 52px rgba(69, 45, 19, 0.085);
  transform: translateY(-1px);
}

.sanumcor-home-product-card__media {
  display: grid;
  min-height: 0;
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: color-mix(in srgb, var(--home-canvas) 72%, var(--home-border));
}

.sanumcor-home-product-card__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.sanumcor-home-product-card__body {
  min-width: 0;
  padding: clamp(22px, 4.8vw, 28px) clamp(20px, 4.6vw, 28px) 0;
}

.sanumcor-home-product-card h3 {
  margin-bottom: 11px;
  color: var(--home-ink);
  font-size: clamp(1.32rem, 5.1vw, 1.5rem);
  font-weight: 820;
  letter-spacing: 0.035em;
  line-height: 1.12;
}

.sanumcor-home-product-card__link {
  color: inherit;
  text-decoration: none;
}

.sanumcor-home-product-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 20px;
}

.sanumcor-home-product-card__trigger {
  margin-bottom: 8px;
  color: var(--home-anchor);
  font-size: clamp(1rem, 3vw, 1.12rem);
  font-weight: 720;
  line-height: 1.38;
}

.sanumcor-home-product-card__support {
  margin-bottom: 0;
  color: var(--home-muted);
  font-size: 0.97rem;
  line-height: 1.62;
}

.sanumcor-home-product-card__commerce {
  display: grid;
  gap: 14px;
  align-self: end;
  padding: 18px clamp(20px, 4.6vw, 28px) clamp(22px, 4.8vw, 28px);
}

.sanumcor-home-product-card__price {
  color: var(--home-ink);
  font-size: 1.04rem;
  font-weight: 820;
  line-height: 1.35;
}

.sanumcor-home-product-action {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid var(--home-anchor);
  background: var(--home-anchor);
  color: var(--sanumcor-light-text, #FFFDFC);
  font-size: 0.78rem;
}

.sanumcor-home-product-action.loading {
  opacity: 0.68;
}

.sanumcor-home-product-action.added {
  border-color: color-mix(in srgb, var(--home-anchor) 82%, var(--home-accent));
  background: color-mix(in srgb, var(--home-anchor) 82%, var(--home-accent));
}

.sanumcor-home-product-card__commerce .added_to_cart {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--home-anchor) 22%, var(--home-border));
  border-radius: 7px;
  color: var(--home-anchor);
  font-size: 0.74rem;
  font-weight: 820;
  letter-spacing: 0.07em;
  text-decoration: none;
  text-transform: uppercase;
}

.sanumcor-home-why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(46px, 6vw, 78px) 0 clamp(24px, 4vw, 36px);
  border-top: 1px solid var(--home-border);
  background:
    radial-gradient(circle at 14% 14%, rgba(255, 253, 248, 0.42) 0%, rgba(255, 253, 248, 0) 38%),
    linear-gradient(145deg, var(--home-editorial) 0%, color-mix(in srgb, var(--home-editorial) 90%, var(--home-canvas)) 58%, #EEDBB8 100%);
}

.sanumcor-home-why > .sanumcor-home-shell {
  position: relative;
  z-index: 1;
}

.sanumcor-home-why h2 {
  max-width: min(100%, 21em);
}

.sanumcor-home-why__grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--home-border-strong);
}

.sanumcor-home-why__item {
  padding: clamp(22px, 5vw, 34px) 0;
  border-bottom: 1px solid var(--home-border-strong);
}

.sanumcor-home-why__item h3 {
  max-width: 26em;
  margin-bottom: 12px;
  color: var(--home-ink);
  font-size: clamp(1.22rem, 4.8vw, 1.58rem);
  font-weight: 640;
  letter-spacing: 0;
  line-height: 1.22;
}

.sanumcor-home-why__item p {
  max-width: 34rem;
  margin-bottom: 0;
  color: var(--home-muted);
  line-height: 1.62;
}

@media (min-width: 760px) {
  .sanumcor-home-shell {
    width: min(100% - 64px, 1200px);
  }

  .sanumcor-home-hero__inner {
    text-align: center;
  }

  .sanumcor-home h1 {
    font-size: clamp(4rem, 6.45vw, 5.05rem);
  }

  .sanumcor-home-hero {
    background-position: center center, center center, center 54%;
  }

  .sanumcor-home-lead span {
    display: block;
  }

  .sanumcor-home-product-card {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1fr);
    align-items: center;
  }

  .sanumcor-home-product-card__commerce {
    grid-column: 2;
  }

  .sanumcor-home-product-card__media {
    min-height: 0;
  }

  .sanumcor-home-product-card__media img {
    max-height: none;
  }

  .sanumcor-home-why__item {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }

  .sanumcor-home-why__item h3 {
    margin-bottom: 0;
  }
}

@media (max-width: 480px) {
  .sanumcor-home-hero {
    background-position: center center, center center, 50% 50%;
  }

  .sanumcor-home-support::before {
    background:
      linear-gradient(180deg, rgba(245, 236, 224, 0.54) 0%, rgba(251, 249, 245, 0.5) 44%, rgba(245, 236, 224, 0.58) 100%),
      radial-gradient(ellipse at 50% 40%, rgba(255, 253, 248, 0.14) 0%, rgba(255, 253, 248, 0) 62%),
      url("../images/home/sanumcore-Sunlit-Beige-Studio.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
  }
}

@media (min-width: 1080px) {
  .sanumcor-home-hero {
    padding-top: 60px;
  }

  .sanumcor-home-product-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.08fr);
    gap: 22px;
  }

  .sanumcor-home-product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
  }

  .sanumcor-home-product-card__commerce {
    grid-column: auto;
  }

  .sanumcor-home-product-card__media {
    min-height: 0;
  }

  .sanumcor-home-product-card__media img {
    max-height: none;
  }

  .sanumcor-home-why__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
  }

  .sanumcor-home-why__item {
    display: block;
    padding: 26px 28px 28px;
    border-bottom: 0;
    border-right: 1px solid var(--home-border-strong);
  }

  .sanumcor-home-why__item:last-child {
    border-right: 0;
  }
}
