/* =============================================================================
   Starvac Nutrition — landing page
   Faithful rebuild of the original WordPress homepage (OceanWP + Elementor):
   pink & white, Inter light display title, Roboto body, Quicksand accents,
   brush-stroke wave dividers and circular photos.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand */
  --pink: #e4247c;
  --green: #659c52;

  /* Ink */
  --ink: #4a4a4a;
  --ink-strong: #1a1a1a;
  --ink-list: #474747;
  --ink-nav: #555555;
  --ink-link: #333333;

  /* Surfaces */
  --surface: #ffffff;
  --footer-band: #222222;
  --footer-bottom: #1b1b1b;
  --header-border: #f1f1f1;

  /* Typography */
  --font-body: sans-serif;
  --font-display: "Inter", sans-serif;
  --font-text: "Roboto", sans-serif;
  --font-accent: "Quicksand", sans-serif;

  /* Layout */
  --header-height: 74px;
  --container-max: 1200px;
  --section-max: 1400px;
  --column-gap: 10px;
  --widget-gap: 20px;
}

/* -----------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink-link);
  text-decoration: none;
}

p {
  margin: 0 0 20px;
}

strong {
  font-weight: 600;
}

figure {
  margin: 0;
}

.sprite {
  display: none;
}

/* Sections stack in source order, each one covering the 1px wave overhang of
   the previous one */
main > section {
  position: relative;
}

/* -----------------------------------------------------------------------------
   Reusable primitives
   -------------------------------------------------------------------------- */
.container {
  width: var(--container-max);
  max-width: 90%;
  margin-inline: auto;
}

.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 3px;
  background-color: var(--pink);
  color: #fff;
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
  transition: all 0.3s;
}

/* Brush-stroke divider. The SVG overflows by 0.65px on each side (clipped by
   the wrapper) so no seam shows at the section edges. */
.wave {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave svg {
  position: relative;
  left: 50%;
  display: block;
  width: calc(100% + 1.3px);
  transform: translateX(-50%);
  fill: #fff;
}

.wave--top {
  top: -1px;
}

.wave--bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

/* Same rasterisation as the original theme (keeps the thin strokes soft) */
#wave-brush path {
  transform-origin: center;
  transform: rotateY(0deg);
}

/* -----------------------------------------------------------------------------
   Site header
   -------------------------------------------------------------------------- */
.site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--header-border);
  background-color: var(--surface);
}

.site-header__inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  height: var(--header-height);
}

.site-header__logo {
  align-self: center;
}

/* Inline image: its line box is exactly the image height */
.site-header__logo img {
  vertical-align: middle;
  width: auto;
  max-width: 189px;
  transition: opacity 0.3s ease-in-out;
}

.site-header__logo:hover img {
  opacity: 0.6;
}

/* Centred on the header, independent of the logo width */
.site-nav {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.site-nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  display: block;
  padding: 0 15px;
  color: var(--ink-nav);
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: var(--header-height);
  letter-spacing: 0.6px;
}

.site-nav__link:hover {
  color: var(--pink);
}

.site-nav__label {
  position: relative;
}

/* Underline that grows from the left on hover */
.site-nav__label::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--pink);
  visibility: hidden;
  transform: scaleX(0);
  transform-origin: bottom left;
  transition: all 0.25s ease-out;
}

.site-nav__link:hover .site-nav__label::after {
  visibility: visible;
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 11.66px; /* icon advance + word space + 6px, as in the original theme */
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-nav);
  font-family: var(--font-accent);
  font-size: 16px;
  font-weight: 600;
  line-height: var(--header-height);
  letter-spacing: 0.6px;
  cursor: pointer;
}

.menu-toggle:hover {
  color: var(--pink);
}

.menu-toggle__icon {
  width: 14px;
  height: 16px;
  fill: currentColor;
}

.menu-toggle__label--close,
.is-nav-open .menu-toggle__label {
  display: none;
}

.is-nav-open .menu-toggle__label--close {
  display: inline;
}

.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  display: none;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background-color: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.is-nav-open .mobile-nav {
  display: block;
}

.mobile-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-nav__list li {
  border-bottom: 1px solid rgba(0, 0, 0, 0.035);
}

.mobile-nav__link {
  display: block;
  padding: 12px 40px;
}

.mobile-nav__link:hover {
  color: var(--pink);
}

/* -----------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  display: flex;
  align-items: flex-start;
  min-height: 60vh;
  background: url("assets/hero-vegetables.webp") right center / auto no-repeat;
}

.hero__content {
  position: relative;
  width: 50%;
  padding-top: 5%; /* 10% of the column */
}

/* Horizontal margins are a share of the column width */
.hero__title {
  margin: 0 0 35px 8%;
  color: var(--pink);
  font-family: var(--font-display);
  font-size: 55px;
  font-weight: 300;
  line-height: 1;
  text-transform: uppercase;
}

.hero__text {
  margin-left: 8%;
  color: var(--ink-strong);
  font-family: var(--font-text);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8em;
}

/* -----------------------------------------------------------------------------
   Login call to action (button over the pineapple)
   -------------------------------------------------------------------------- */
.login__inner {
  position: relative;
  max-width: var(--section-max);
  margin-inline: auto;
  padding: 170px 0 150px;
  background: url("assets/pineapple.webp") center / contain no-repeat;
  text-align: center;
}

.login__button {
  transform: translateY(-34px);
}

/* -----------------------------------------------------------------------------
   Benefits
   -------------------------------------------------------------------------- */
.benefits {
  display: flex;
  background-image: url("assets/benefits-background.webp");
}

/* Washes the background photo out */
.benefits::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #fff;
  opacity: 0.59;
}

.benefits .wave--top svg {
  height: 225px;
}

.benefits__media,
.benefits__content {
  position: relative;
  width: 50%;
  padding: var(--column-gap);
}

.benefits__image {
  display: block;
  margin-inline: auto;
}

.benefits__title {
  margin: 140px 0 var(--widget-gap);
  color: var(--green);
  font-family: var(--font-accent);
  font-size: 41px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: overline;
  text-transform: uppercase;
}

.benefits__list {
  color: var(--ink-list);
  font-family: var(--font-accent);
  font-size: 18px;
  text-align: center;
}

/* -----------------------------------------------------------------------------
   Experts call to action
   -------------------------------------------------------------------------- */
.experts {
  background: url("assets/raspberries.webp") 2% 100% / 30% auto no-repeat;
}

.experts__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: var(--section-max);
  min-height: 278px;
  margin-inline: auto;
  padding: var(--column-gap);
  text-align: center;
}

.experts__text {
  margin-bottom: 40px; /* paragraph + widget spacing */
  color: var(--pink);
  font-family: var(--font-accent);
  font-size: 24px;
}

/* -----------------------------------------------------------------------------
   Gallery
   -------------------------------------------------------------------------- */
.gallery__inner {
  display: flex;
  align-items: center;
  max-width: var(--section-max);
  min-height: 400px;
  margin-inline: auto;
}

.gallery__item {
  width: 33.333%;
  padding: var(--column-gap);
  text-align: center;
}

.gallery__image {
  vertical-align: middle;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='89' height='89' viewBox='0 0 89 89'%3E%3Ccircle cx='44.5' cy='44.5' r='44.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* -----------------------------------------------------------------------------
   Site footer
   -------------------------------------------------------------------------- */
.site-footer__band {
  height: 60px;
  background-color: var(--footer-band);
}

.site-footer__bottom {
  padding: 15px 0;
  background-color: var(--footer-bottom);
  font-size: 12px;
  line-height: 1;
}

.site-footer__copyright {
  margin-block: 0;
  text-align: center;
}

/* -----------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero {
    flex-wrap: wrap;
    min-height: 45vh;
    padding-bottom: 1px; /* empty second column of the original layout */
    background-position: center;
  }

  .hero__content {
    width: 70%;
    padding: 7% 7% 0; /* 10% of the column */
  }

  .hero__title {
    margin: 15% 0 35px;
    font-size: 52px;
  }

  .benefits__image {
    margin-top: 155px;
  }

  .experts {
    background-position: 0 0;
  }
}

@media (max-width: 959px) {
  .site-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-footer__band {
    height: 120px;
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    background-position: -750px -47px;
  }

  .hero__content {
    width: 100%;
    padding: 10% 10% 0;
  }

  .hero__title {
    margin-top: 25%;
    font-size: 34px;
  }

  .hero__text {
    font-size: 16px;
  }

  .login__inner {
    margin-top: -30px;
  }

  .login__button {
    margin-top: 17px;
  }

  .benefits {
    flex-wrap: wrap;
    margin-top: -77px;
  }

  .benefits .wave--top svg {
    width: calc(300% + 1.3px);
  }

  .benefits__media,
  .benefits__content {
    width: 100%;
  }

  .benefits__content {
    margin-top: -106px;
  }

  .benefits__title {
    line-height: 1.5;
  }

  .experts {
    background-position: -60% 0;
  }

  .gallery__inner {
    flex-wrap: wrap;
  }

  .gallery__item {
    width: 100%;
  }

  .site-footer__band {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
