/* Better Nutrition — stile Maurten */

:root {
  --m-bg: #ffffff;
  --m-bg-soft: #f7f7f7;
  --m-text: #111111;
  --m-muted: #6b6b6b;
  --m-line: #e8e8e8;
  --m-nav: 56px;
  --m-font: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --m-ease: cubic-bezier(.25,.1,.25,1);
  --m-max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--m-font);
  font-size: 15px;
  background: var(--m-bg);
  color: var(--m-text);
  line-height: 1.5;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* —— NAV —— */
.m-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--m-nav);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.m-nav.is-solid { border-bottom-color: var(--m-line); }
.m-nav__bar {
  max-width: var(--m-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 16px;
}
@media (min-width: 900px) {
  .m-nav__bar { grid-template-columns: 44px 1fr auto auto; }
}
.m-nav__brand {
  justify-self: center;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: -.01em;
}
.m-nav__links {
  display: none;
  gap: 28px;
  font-size: .82rem;
  font-weight: 500;
}
.m-nav__links a:hover { opacity: .55; }
.m-nav__actions { justify-self: end; }
.m-nav__cart { font-size: .82rem; font-weight: 500; }
.m-nav__cart:hover { opacity: .55; }
.m-nav__menu-btn {
  width: 44px; height: 44px;
  border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.m-nav__menu-btn span { width: 18px; height: 1.5px; background: #111; }
@media (min-width: 900px) {
  .m-nav__menu-btn { display: none; }
  .m-nav__links { display: flex; }
  .m-nav__brand { justify-self: start; grid-column: 2; }
  .m-nav__actions { grid-column: 4; }
}

.m-drawer {
  position: fixed; inset: 0; z-index: 199;
  background: #fff;
  padding: 80px 32px;
}
.m-drawer[hidden] { display: none !important; }
.m-drawer__close {
  position: absolute; top: 16px; right: 24px;
  border: none; background: none;
  font-size: .85rem; font-weight: 500; cursor: pointer;
}
.m-drawer__nav {
  display: flex; flex-direction: column; gap: 24px;
  font-size: 1.6rem; font-weight: 500; letter-spacing: -.02em;
}

/* —— HERO CAROUSEL —— */
.m-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  background: #000;
  overflow: hidden;
}
.m-hero__track { position: relative; width: 100%; height: 100%; }
.m-hero__slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .8s var(--m-ease), visibility .8s;
}
.m-hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.m-hero__media {
  position: absolute; inset: 0;
}
.m-hero__media video,
.m-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.m-hero__media--light { background: var(--m-bg-soft); }
.m-hero__media--light img {
  object-fit: contain;
  padding: 80px 40px 120px;
}
.m-hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 100%);
}
.m-hero__media--light::after {
  background: linear-gradient(180deg, transparent 50%, rgba(255,255,255,.9) 100%);
}
.m-hero__copy {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 24px 100px;
  max-width: var(--m-max);
  margin: 0 auto;
  color: #fff;
}
.m-hero__copy--dark { color: var(--m-text); }
.m-hero__copy h1 {
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.m-hero__copy p {
  font-size: clamp(.95rem, 1.8vw, 1.15rem);
  margin: 0;
  opacity: .85;
  max-width: 480px;
}
.m-hero__copy--dark p { color: var(--m-muted); opacity: 1; }
.m-hero__dots {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; gap: 8px;
}
.m-hero__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  padding: 0;
  transition: background .3s, transform .3s;
}
.m-hero__dots button.is-active {
  background: #fff;
  transform: scale(1.2);
}

/* —— LINKS & BUTTONS —— */
.m-link {
  display: inline-block;
  margin-top: 16px;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border: 1px solid var(--m-text);
  border-radius: 0;
  background: transparent;
  color: var(--m-text);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.m-btn:hover { background: var(--m-text); color: #fff; }
.m-btn--dark {
  background: var(--m-text);
  color: #fff;
  border-color: var(--m-text);
}
.m-btn--dark:hover { background: #333; }

/* —— SECTIONS —— */
.m-section {
  padding: 80px 24px;
  max-width: var(--m-max);
  margin: 0 auto;
  border-bottom: 1px solid var(--m-line);
}
.m-section__head { max-width: 640px; margin-bottom: 48px; }
.m-section__title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -.03em;
  margin: 0 0 16px;
}
.m-section__intro {
  font-size: 1rem;
  color: var(--m-muted);
  line-height: 1.65;
  margin: 0;
}
.m-section__foot { margin-top: 40px; }

/* —— PRODUCT ROW —— */
.m-product-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.m-product-tile {
  display: flex;
  flex-direction: column;
  transition: opacity .25s;
}
.m-product-tile:hover { opacity: .75; }
.m-product-tile__img {
  aspect-ratio: 1;
  background: var(--m-bg-soft);
  overflow: hidden;
  margin-bottom: 16px;
}
.m-product-tile__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--m-ease);
}
.m-product-tile:hover .m-product-tile__img img { transform: scale(1.03); }
.m-product-tile__cat {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--m-muted);
}
.m-product-tile strong {
  display: block;
  font-size: .95rem;
  font-weight: 500;
  margin: 4px 0 8px;
  line-height: 1.35;
}
.m-product-tile__cta {
  font-size: .8rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* —— SCIENCE —— */
.m-science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}
.m-science-card {
  padding: 32px;
  background: var(--m-bg-soft);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background .25s;
}
.m-science-card:hover { background: #efefef; }
.m-science-card__label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--m-muted);
  margin-bottom: 8px;
}
.m-science-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.m-science-stats {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--m-line);
}
.m-science-stats strong {
  display: block;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -.03em;
}
.m-science-stats span {
  font-size: .75rem;
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* —— FEATURE (product detail) —— */
.m-section--products {
  max-width: none;
  padding: 0;
  border: none;
}
.m-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  border-bottom: 1px solid var(--m-line);
}
.m-feature--flip .m-feature__visual { order: 2; }
.m-feature__visual {
  background: var(--m-bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.m-feature__visual img {
  max-height: 420px;
  width: auto;
  object-fit: contain;
}
.m-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 48px;
  max-width: 560px;
}
.m-feature__phase {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--m-muted);
  margin-bottom: 12px;
}
.m-feature__copy h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}
.m-feature__copy > p {
  color: var(--m-muted);
  line-height: 1.65;
  margin: 0 0 12px;
}
.m-feature__usage {
  font-size: .88rem;
  padding: 12px 0;
  border-top: 1px solid var(--m-line);
  margin: 12px 0 16px !important;
}
.m-feature__price {
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 20px;
}

/* —— STRATEGY —— */
.m-strategy-list {
  list-style: none;
  padding: 0; margin: 0;
  max-width: 640px;
}
.m-strategy-list li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--m-line);
}
.m-strategy-list time {
  font-size: .75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--m-muted);
}
.m-strategy-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.m-strategy-list p {
  margin: 0;
  font-size: .9rem;
  color: var(--m-muted);
}

/* —— FAQ —— */
.m-faq { max-width: 640px; }
.m-faq details {
  border-bottom: 1px solid var(--m-line);
  padding: 20px 0;
}
.m-faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq p {
  margin: 12px 0 0;
  color: var(--m-muted);
  font-size: .92rem;
  line-height: 1.6;
}

/* —— FOOTER —— */
.m-footer {
  padding: 60px 24px 32px;
  background: var(--m-bg);
  border-top: 1px solid var(--m-line);
}
.m-footer__top {
  max-width: var(--m-max);
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.m-footer__brand strong {
  display: block;
  font-size: .95rem;
  margin-bottom: 10px;
}
.m-footer__brand p,
.m-footer__col span,
.m-footer__col a {
  display: block;
  font-size: .82rem;
  color: var(--m-muted);
  line-height: 1.6;
  margin-bottom: 4px;
}
.m-footer__col a:hover { color: var(--m-text); }
.m-footer__label {
  display: block;
  font-size: .72rem !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--m-text) !important;
  margin-bottom: 10px !important;
  font-weight: 500;
}
.m-footer__bottom {
  max-width: var(--m-max);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--m-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .75rem;
  color: var(--m-muted);
}

/* —— RESPONSIVE —— */
@media (max-width: 900px) {
  .m-product-row { grid-template-columns: 1fr; }
  .m-science-grid { grid-template-columns: 1fr; }
  .m-feature { grid-template-columns: 1fr; }
  .m-feature--flip .m-feature__visual { order: 0; }
  .m-feature__copy { padding: 40px 24px; }
  .m-feature__visual { padding: 40px 24px; min-height: 50vh; }
  .m-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .m-footer__top { grid-template-columns: 1fr; }
  .m-strategy-list li { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-hero__slide { transition: none; }
}
