@import url("https://fonts.googleapis.com/css2?family=Mulish:wght@400;600;700;800&family=Poppins:wght@400;500;600;700&display=swap");

/* =========================================================
   RESTART METABOLISMU – RESPONSIVNÍ HERO
   Desktop: fotografie přes celý blok + text v překryvu
   Mobil/tablet: samostatná vertikální fotografie
   ========================================================= */

html {
  scroll-behavior: smooth;
}

/* Shoptet – odstranění nadbytečného horního odsazení */
body.type-index #content-wrapper,
body.type-index .content-wrapper-in,
body.type-index #content,
body.type-index #content > .container-narrow,
body.type-index .welcome-wrapper,
body.homepage #content-wrapper,
body.homepage .content-wrapper-in,
body.homepage #content,
body.homepage #content > .container-narrow,
body.homepage .welcome-wrapper {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

body.type-index .welcome-wrapper,
body.homepage .welcome-wrapper {
  display: block !important;
}

/* HERO */
.rm-hero {
  position: relative !important;
  left: 50% !important;
  width: 100vw !important;
  margin-left: -50vw !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: #f7f3ed !important;
  box-sizing: border-box !important;
}

.rm-hero *,
.rm-hero *::before,
.rm-hero *::after {
  box-sizing: border-box !important;
}

/* Obrázek přes celý desktopový hero blok */
.rm-hero__media {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
}

.rm-hero__media picture,
.rm-hero__media img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.rm-hero__media img {
  object-fit: cover !important;
  object-position: center center !important;
}

/* Přechod pro perfektní čitelnost textu */
.rm-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.98) 0%,
      rgba(255,255,255,.96) 27%,
      rgba(255,255,255,.82) 40%,
      rgba(255,255,255,.28) 56%,
      rgba(255,255,255,0) 72%
    ) !important;
}

/* Vnitřní obsah */
.rm-hero__inner {
  position: relative !important;
  z-index: 2 !important;
  width: min(1440px, calc(100% - 72px)) !important;
  min-height: clamp(650px, 78vh, 840px) !important;
  margin: 0 auto !important;
  padding: clamp(72px, 7vw, 112px) 0 clamp(68px, 7vw, 104px) !important;
  display: flex !important;
  align-items: center !important;
}

/* Text vlevo */
.rm-hero__content {
  width: min(640px, 47%) !important;
  margin-left: clamp(24px, 4vw, 74px) !important;
}

.rm-hero__eyebrow {
  margin: 0 0 20px !important;
  font-family: "Mulish", sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  letter-spacing: .18em !important;
  text-transform: uppercase !important;
  color: #235b4d !important;
}

.rm-hero h1 {
  max-width: 650px !important;
  margin: 0 !important;
  font-family: "Poppins", sans-serif !important;
  font-size: clamp(54px, 4.8vw, 80px) !important;
  font-weight: 700 !important;
  line-height: 1.03 !important;
  letter-spacing: -.055em !important;
  color: #151515 !important;
}

.rm-hero__highlight {
  display: block !important;
  margin-top: 8px !important;
  color: #63b84b !important;
}

.rm-hero__text {
  max-width: 520px !important;
  margin: 30px 0 0 !important;
  font-family: "Mulish", sans-serif !important;
  font-size: clamp(18px, 1.35vw, 22px) !important;
  font-weight: 400 !important;
  line-height: 1.7 !important;
  color: #3e3e3e !important;
}

.rm-hero__text strong {
  color: #1d1d1d !important;
  font-weight: 700 !important;
}

/* CTA */
.rm-hero__actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 15px !important;
  margin-top: 34px !important;
}

.rm-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 56px !important;
  padding: 15px 28px !important;
  border: 1.5px solid transparent !important;
  border-radius: 999px !important;
  font-family: "Mulish", sans-serif !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    color .2s ease !important;
}

.rm-btn:hover,
.rm-btn:focus {
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

.rm-btn--primary {
  background: #63b84b !important;
  border-color: #63b84b !important;
  color: #fff !important;
  box-shadow: 0 14px 32px rgba(99,184,75,.25) !important;
}

.rm-btn--primary:hover,
.rm-btn--primary:focus {
  background: #56a43f !important;
  border-color: #56a43f !important;
  color: #fff !important;
  box-shadow: 0 18px 38px rgba(99,184,75,.32) !important;
}

.rm-btn--secondary {
  background: rgba(255,255,255,.9) !important;
  border-color: #63b84b !important;
  color: #2f6f24 !important;
  backdrop-filter: blur(5px) !important;
}

.rm-btn--secondary:hover,
.rm-btn--secondary:focus {
  background: #63b84b !important;
  border-color: #63b84b !important;
  color: #fff !important;
}

#produkty,
#jak-funguje {
  scroll-margin-top: 100px;
}

/* MENŠÍ DESKTOPY */
@media (max-width: 1250px) {
  .rm-hero__inner {
    width: min(1180px, calc(100% - 48px)) !important;
  }

  .rm-hero__content {
    width: min(600px, 49%) !important;
    margin-left: 20px !important;
  }

  .rm-hero h1 {
    font-size: clamp(50px, 4.7vw, 68px) !important;
  }

  .rm-hero::after {
    background:
      linear-gradient(
        90deg,
        rgba(255,255,255,.98) 0%,
        rgba(255,255,255,.95) 31%,
        rgba(255,255,255,.76) 46%,
        rgba(255,255,255,.12) 68%,
        rgba(255,255,255,0) 78%
      ) !important;
  }
}

/* TABLET – text nahoře, vertikální fotografie pod ním */
@media (max-width: 900px) {
  .rm-hero {
    background: #ffffff !important;
  }

  .rm-hero::after {
    display: none !important;
  }

  .rm-hero__media {
    position: relative !important;
    inset: auto !important;
    order: 2 !important;
    width: min(720px, calc(100% - 40px)) !important;
    margin: 0 auto 56px !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    box-shadow:
      0 24px 60px rgba(34,43,38,.09),
      0 4px 14px rgba(34,43,38,.04) !important;
  }

  .rm-hero__media picture,
  .rm-hero__media img {
    height: auto !important;
  }

  .rm-hero__media img {
    aspect-ratio: 4 / 5 !important;
    object-fit: cover !important;
    object-position: center center !important;
  }

  .rm-hero {
    display: flex !important;
    flex-direction: column !important;
  }

  .rm-hero__inner {
    order: 1 !important;
    width: min(760px, calc(100% - 40px)) !important;
    min-height: 0 !important;
    padding: 54px 0 42px !important;
    display: block !important;
  }

  .rm-hero__content {
    width: 100% !important;
    max-width: 700px !important;
    margin-left: 0 !important;
  }
}

/* MOBIL */
@media (max-width: 600px) {
  .rm-hero__inner {
    width: calc(100% - 32px) !important;
    padding: 36px 0 32px !important;
  }

  .rm-hero__eyebrow {
    margin-bottom: 14px !important;
    font-size: 12px !important;
    letter-spacing: .15em !important;
  }

  .rm-hero h1 {
    font-size: clamp(40px, 12vw, 54px) !important;
    line-height: 1.05 !important;
  }

  .rm-hero__text {
    margin-top: 22px !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
  }

  .rm-hero__actions {
    flex-direction: column !important;
    align-items: stretch !important;
    margin-top: 26px !important;
  }

  .rm-btn {
    width: 100% !important;
    min-height: 54px !important;
  }

  .rm-hero__media {
    width: calc(100% - 24px) !important;
    margin-bottom: 44px !important;
    border-radius: 18px !important;
  }

  .rm-hero__media img {
    aspect-ratio: 4 / 5 !important;
  }
}
