:root {
  --container-size: 1200px;
  --gutter-v: 60px;
  --gutter-h: 20px;

  --color-primary: #0e4596;
  --color-primary--light: #dfebfd;
  --color-secondary: #82af54;
  --color-secondary--light: #d0ebb4;
  --color-borders: #d9dee4;
  --color-title: #1f2124;
  --color-text: #71747a;

  --color-text_invert: #fff;

  --font-text: "Ubuntu", sans-serif;
  --font-title: "Rozha One", serif;
}

/* Reset */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

address {
  font-style: normal;
}

img {
  display: block;
  max-width: 100%;
}

html,
body {
  font-family: var(--font-text);
  font-size: 18px;

  max-width: 100vw;
  overflow-x: hidden;
}

/* Typography */
h2,
h3 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
}

h2 {
  /* font-size: 1.8rem; */
  font-size: clamp(1.5rem, 3.6vw, 2.6rem);
  &.large {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }
  .subtitle + & {
    padding-top: 0.2em;
  }
}

h3 {
  font-family: var(--font-text);
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  text-transform: uppercase;
}

:where(p) {
  color: var(--color-text);
}

.subtitle {
  font-size: 1.05rem;
  text-transform: uppercase;
  font-family: var(--font-text);
  color: var(--color-title);
}

small {
  color: #acb1b7;
}

@media screen and (width >= 768px) {
}
@media screen and (width >= 1024px) {
  .subtitle {
    font-size: 1.15rem;
  }
}

/*****     LAYOUT    *******/
.container {
  max-width: var(--container-size);
  margin-inline: auto;
  padding-inline: var(--gutter-h);
}

.row {
  display: grid;
  gap: 2rem;
  @media screen and (width >= 768px) {
    grid-template-columns: 1fr 1fr;
  }
}

/* HEADER */
header {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  margin-top: 20px;
  z-index: 9;
  /* padding-inline: var(--gutter-h); */
  .header__inner {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 40px;
    padding-block: calc(var(--gutter-h) / 2);

    background: white;
    border-radius: 4rem;

    box-shadow: 5px 4px 8px 2px #0000001f;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    order: 2;
    span {
      display: block;
      height: 2px;
      background: var(--color-primary);
      border-radius: 2px;
      transition:
        transform 0.25s,
        opacity 0.25s;
    }
    [aria-expanded="true"] span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }
    [aria-expanded="true"] span:nth-child(2) {
      opacity: 0;
    }
    [aria-expanded="true"] span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }
    @media screen and (width >= 768px) {
      display: none;
    }
  }

  #main-nav {
    .nav-links {
      flex-direction: column;
      gap: 18px;
    }
    @media screen and (width < 768px) {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      background: var(--bg);
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
      padding: 20px var(--pad-h);
      z-index: 99;
      &.nav-open {
        display: block;
      }
    }
    @media screen and (width >= 768px) {
      /* display: flex; */
      .nav-links {
        display: flex;
        flex-flow: row;
        gap: 48px;
        font-size: 14px;
        font-weight: 500;
        letter-spacing: 0.01em;
        li {
          /* text-transform: uppercase; */
          a {
            color: var(--color-primary);
            transition: color 0.2s;
            &:hover {
              color: var(--color-primary);
            }
          }
        }
      }
    }
  }
}

.hero {
  background-color: var(--color-primary);

  overflow: hidden;

  h2 {
    color: var(--color-text_invert);
    font-size: clamp(1.8rem, 3.6vw, 3rem);
  }
  .subtitle {
    color: var(--color-secondary);
    max-width:;
  }

  .hero__wrapper {
    display: grid;
    gap: var(--gutter-v);
    min-height: max(100dvh, 600px);
  }
  .deco {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    img {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .col-text {
    --bottom-spacer: 120px;

    padding: 40px var(--gutter-h) calc(var(--bottom-spacer) * 1.4);
    display: grid;
    gap: 2rem;
    position: relative;
    &::before {
      content: "";
      display: none;
      position: absolute;
      bottom: 0;
      right: 0;
      width: 60%;
      height: var(--bottom-spacer);
      /* background-image: url("data:image/svg+xml,%3Csvg width='438' height='277' viewBox='0 0 438 277' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M392.991 1H631.217L391.535 198.808C331.708 248.186 256.679 275.164 179.199 275.164H2.19922L141.752 115.289V115.288C205.011 42.6934 296.713 1.00008 392.991 1Z' stroke='%2382AF54' stroke-width='2'/%3E%3C/svg%3E%0A"); */
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 709 551'%3E%3Cpath fill='%2382af54' d='M466.7,350.7c-59.8-49.4-135.5-76.6-213-76.6h-37.6c64.5-7.1,126.2-33,176.6-74.6L634.5,0h-241c-96.7,0-188.5,41.8-252,114.6L.5,276.2h75.7l139.3,159.5c63.5,72.8,155.3,114.6,252,114.6h241l-241.8-199.6ZM4.9,274.2L143,115.9C206.1,43.5,297.4,2,393.5,2h235.4l-237.5,196c-59.5,49.1-134.7,76.1-211.7,76.1H4.9ZM217,434.4l-138.1-158.2h174.8c77,0,152.2,27,211.7,76.1l237.5,196h-235.4c-96.1,0-187.4-41.5-250.5-113.9Z'/%3E%3C/svg%3E");
      background-size: contain;
      background-repeat: no-repeat;
      background-position: bottom right;
    }
  }

  @media screen and (width >= 768px) {
    .hero__wrapper {
      display: grid;
      grid-template-columns: 1fr 500px;
      .deco {
        aspect-ratio: unset;
      }
      .col-text {
        --bottom-spacer: 250px;
        padding: 200px 5% var(--bottom-spacer) 0;
      }
    }
  }
}

.below-hero {
  background-color: var(--color-primary);
  padding-block: 155px;

  position: relative;

  --spacer: 310px;

  &::before {
    content: "";
    display: block;
    position: absolute;
    top: calc(-1 * var(--spacer) / 2);
    right: 0;
    transform: translateX(40%);
    width: auto;
    aspect-ratio: 708 / 550;
    height: var(--spacer);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1.1' viewBox='0 0 709 551'%3E%3Cpath fill='%2382af54' d='M466.7,350.7c-59.8-49.4-135.5-76.6-213-76.6h-37.6c64.5-7.1,126.2-33,176.6-74.6L634.5,0h-241c-96.7,0-188.5,41.8-252,114.6L.5,276.2h75.7l139.3,159.5c63.5,72.8,155.3,114.6,252,114.6h241l-241.8-199.6ZM4.9,274.2L143,115.9C206.1,43.5,297.4,2,393.5,2h235.4l-237.5,196c-59.5,49.1-134.7,76.1-211.7,76.1H4.9ZM217,434.4l-138.1-158.2h174.8c77,0,152.2,27,211.7,76.1l237.5,196h-235.4c-96.1,0-187.4-41.5-250.5-113.9Z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: bottom right;
  }
  
  p {
    font-size: 1.12rem;
    color: var(--color-text_invert);
    max-width: 36.5ch;
  }
  .below-hero__wrapper {
    display: grid;
    gap: 90px 60px;
  }

  .col-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 580px;
    margin-left: auto;
    figure {
      display: flex;
      flex-flow: column;
      align-items: center;
      figcaption {
        text-align: center;
        line-height: 1.2;
        width: min(256px, 100%);
        color: white;
        font-weight: 700;
        padding-top: 1em;
      }
    }
  }

  @media screen and (width >= 768px) {
    --spacer: min(48vw, 500px);
    .col-badges {
      grid-template-columns: 1fr 1fr;
      gap: 4rem;
    }
  }
}

.banner {
  display: flex;
  align-items: center;
  min-height: max(100dvh, 600px);

  --p-vertical: 200px;
  padding-block: var(--p-vertical);
  
  background: url("../images/lacteos-fucnionales_banner.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;

  overflow-y: hidden;

  .container {
    z-index: 5;
    position: relative;
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;

    background-color: black;
    opacity: 0.4;
    mix-blend-mode: multiply;
  }

  .deco-line__wrapper {
    width: min(100%, 940px);
    margin-inline: auto;

    position: relative;
    /* padding-bottom: var(--p-vertical); */

    &::before {
      content: "";
      display: block;
      width: 1px;
      height: max(50dvh, 200px);
      position: absolute;
      left: 50%;
      background: #fff;
      top: calc(100% + 2rem);
    }

    p,
    h2 {
      text-align: center;
      color: #fff;
    }
    .subtitle {
      padding-bottom: 1em;
    }
  }

  &.banner-gamas {
    background-image: url("../images/lacteos-fucnionales_banner-gamas.webp");
    h2 {
      line-height: 1.3;
    }
  }
}

.product {
  padding-block: 100px;

  .subtitle {
    color: var(--color-secondary);
  }
  h2 {
    margin-bottom: 1em;
  }
  h3 {
    margin-top: 3em;
  }
  small {
    display: block;
    margin-top: 1em;
  }
  p {
  }


  .eco__wrapper {
    display: flex;
    flex-flow: column;
    object-fit: contain;
    gap: 2rem;
    img {
      width: min(100%, 83px);
    }
  }

  .img-w-badge__wrapper {
    --badge-spacer-v: min(70px, 15%);
    --badge-spacer-h: min(90px, 16%);

    position: relative;
    padding-left: var(--badge-spacer-h);
    padding-bottom: var(--badge-spacer-v);

    .badge__wrapper {
      position: absolute;
      left: 0;
      bottom: 0;
      width: min(233px, 42%);
      aspect-ratio: 1 / 1;
      /* bottom: -70px; */
    }

    .img__wrapper {
      aspect-ratio: 488 / 546;
      position: relative;
      border-radius: 8rem 0 8rem 0;
      overflow: hidden;

      img {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
      }
    }
    &.img-w-badge__wrapper--left {
      padding-left: 0;
      /* padding-bottom: 0; */
      padding-right: var(--badge-spacer-h);
      padding-bottom: var(--badge-spacer-v);

      .img__wrapper {
        border-radius: 0 8rem 0 8rem;
      }
      .badge__wrapper {
        left: auto;
        right: 0;
        bottom: 0;
      }
    }
  }
}

.table {
  padding-block: 100px;
  h3 {
    text-align: center;
    padding-bottom: 2em;
  }


  
  .table-toggle {
    display: flex;
    margin-inline: auto;
    margin-top: 1rem;
    align-items: center;
    gap: 8px;
    background: none;
    border: 0 none;
    /* border: 2px solid var(--primary-color); */
    color: var(--color-secondary);
    padding: 10px 20px;
    /* border-radius: 6px; */
    font-weight: 500;
    font-size: 18px;
    
    text-transform: uppercase;
    
    cursor: pointer;
    transition: all 0.2s ease;
    svg {
      width: 1.5em;
      transform: rotate(180deg);
      transition: transform 0.2s ease-in;
    }
    
    &[aria-expanded="true"] {
      svg {
        transform: rotate(0deg);
      }
    }


    &:hover {
      
    }

  }

  .collapsible-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    .inner-content {
      min-height: 0;
    }
    &.is-open {
      grid-template-rows: 1fr;
    }
  }


  .table__wrapper {
    padding: 30px;
    border-radius: 4rem 0 4rem;
    border: 1px solid var(--color-borders);

    display: grid;
    gap: 3rem;
    overflow: auto;




    table {
      width: 100%;
      text-align: center;
      thead {
        tr {
          td {
            /* text-align: center; */
            padding: 16px 10px;
            border-radius: 2rem 2rem 0 0;
            background-color: var(--color-primary--light);
            color: var(--color-primary);
          }
        }
      }
      tbody {
        tr {
          td {
            border-bottom: 1px dotted var(--color-borders);
            padding: 24px 10px;
            color: #71747a;
            &:first-child {
              color: var(--color-secondary);
            }
          }
        }
      }
    }

    p {
      color: #acb1b7;
    }
    @media screen and (width >= 600px) {
      padding: 70px 80px;
    }
  }
}

ul {
  li {
  }
  &.list--icons {
    padding-top: 54px;
    li {
      display: flex;
      gap: 1rem;
      align-items: center;
      font-size: 1.1rem;
      color: var(--color-primary);
      .icon__wrapper {
        display: inline-block;
        padding: 20px;
        border-radius: 50%;
        background-color: var(--color-secondary--light);
      }
      padding-block: 32px;
      border-bottom: 1px solid var(--color-borders);
      &:first-child {
        padding-top: 0;
      }
      &:last-child {
        padding-bottom: 0;
        border-bottom: 0;
      }
    }
  }
}

.wellness {
  .img-w-badge__wrapper {
    --badge-spacer-v: min(70px, 15%);
    --badge-spacer-h: min(90px, 16%);

    position: relative;
    padding-left: var(--badge-spacer-h);
    padding-bottom: var(--badge-spacer-v);

    .badge__wrapper {
      position: absolute;
      left: 0;
      top: 40px;
      h2 {
        border-radius: 1em 0 1em 0;
        color: #fff;
        padding: 0.6em 1em;
        width: 29ch;
        background-color: var(--color-primary);
        font-size: clamp(0.8rem, 2.4vw, 2rem);
      }
    }

    .img__wrapper {
      aspect-ratio: 1000 / 600;
      position: relative;
      border-radius: 8rem 0 8rem 0;
      overflow: hidden;

      img {
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
      }
    }
  }
}

.foodservice {
  padding-block: 160px 120px;
  background: var(--color-secondary);

  text-align: center;

  color: var(--color-text_invert);

  position: relative;

  --deco-size: min(25vw, 250px);
  &::before,
  &::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    height: var(--deco-size);
    aspect-ratio: 500 / 270;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: top right;
  }
  &::before {
    left: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='511' height='277' viewBox='0 0 511 277' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M392.991 275.164H631.217L391.535 77.3564C331.708 27.9784 256.679 1.00008 179.199 1H2.19922L141.752 160.875V160.876C205.011 233.471 296.713 275.164 392.991 275.164Z' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
    transform: scaleX(-1);
  }
  
  &::after {
    left: auto;
    right: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='511' height='277' viewBox='0 0 511 277' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M392.991 275.164H631.217L391.535 77.3564C331.708 27.9784 256.679 1.00008 179.199 1H2.19922L141.752 160.875V160.876C205.011 233.471 296.713 275.164 392.991 275.164Z' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
  }

  p {color: inherit;}

  .title__wrapper {
    max-width: 626px;
    margin-inline: auto;
    margin-bottom: 5rem;
  }
  .subtitle {
    color: var(--color-primary--light);
    margin-bottom: 1em;
  }
  h2 {
    margin-bottom: 0.8em;
    max-width: 16ch;
    margin-inline: auto;

  }
  h3 {
    color: var(--color-secondary--light);
  }

  ul.list--icons {
    li {
      color: var(--color-text_invert);
      border-color: var(--color-text_invert);
    }
  }
  
  @media screen and (width >= 1000px) {
    ul.list--icons {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      li {
        padding-block: 32px !important;
        text-align: left;
        border-right: 1px solid #fff;
        border-bottom: 0;
        padding-inline: 32px;
        &:first-child {
          padding-left: 0;
        }
        &:last-child {
          padding-right: 0 !important;
          border-right: 0 none;
        }
      }
    }
  }

}

.contact {
  padding-block: 100px;

  .contact__wrapper {
    background: var(--color-primary);
    border-radius: 4rem 0 4rem 0;
    padding: 40px;
  }
  color: var(--color-text_invert);

  .subtitle {
    color: var(--color-secondary);
  }
  h2 {
    padding-bottom: 1em;
  }

  address {
    display: grid;
    gap: 1em;
    p {
      color: var(--color-text_invert);
      a, span {
        display: grid;
        grid-template-columns: 24px 1fr;
        gap: 1em;
      }
    }
  }

  .img__wrapper {
    position: relative;
    aspect-ratio: 426 / 404;
    overflow: hidden;
    border-radius: 2rem 0 2rem 0;
    img {
      position: absolute;
      top: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center bottom;
    }
  }
  @media screen and (width >= 600px) {
    .contact__wrapper {
      padding: 100px;
      border-radius: 8rem 0 8rem 0;
    }
    .img__wrapper {
      border-radius: 4rem 0 4rem 0;
    }
  }
}

footer {
  margin-top: 200px;
  background-color: var(--color-primary);
  color: white;

  .main__footer {
    padding-block: 50px;
  }
  .main__footer--wrapper {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-flow: column;
  }

  .copy {
    border-top: 1px solid white;
    padding-block: 16px;
    text-align: center;
    p {
      color: inherit;
      font-size: 14px;
      font-weight: 400;
    }
  }

  @media screen and (min-width: 600px) {
    .main__footer--wrapper {
      flex-flow: row;
      justify-content: space-between;
      align-items: center;
    }
    .nav {
      ul {
        display: flex;
        flex-flow: row;
        gap: 1em;
      }
    }
  }
}
