/*
  Theme name: Brindes Verdes
*/

:root {
  --primary: #003e37;
  --primary-light: #c8e302;
  --primary-opaque: #b8ce7d;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --border-radius-sm: 0.25rem;
  --border-radius: 0.5rem;
  --border-radius-lg: 1rem;
  --transition: all 0.3s ease;
  --site-width: 1665px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  /* color: var(--gray-800); */
  color: var(--black);
  background-color: var(--white);
}

img {
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

button {
  border: none;
}

.center-container {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* #TOP RIBBON */
.top-ribbon {
  padding: 1rem 2rem;
  width: 100%;
  background-color: #eeebea;
  color: var(--primary);
  font-weight: 300;
  text-transform: uppercase;
  font-size: 0.75rem;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-weight: 300;
    display: inline;
    font-size: 0.75rem;
  }

  @media screen and (max-width: 768px) {
    /* display: none; */
    padding: 0.5rem 1rem;
    text-align: center;
  }

  .center-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 0.5rem;
      align-items: center;
    }
  }
  .contact {
    text-decoration: none;
    color: var(--primary);
    .number {
      font-weight: 700;
      display: inline-block;
    }
  }
}

.mobile-logo {
  display: none;
  @media screen and (max-width: 768px) {
    display: block;
    position: absolute;
    top: 2rem;
    left: 2rem;
  }
}

/* #MENU */
.menu {
  .center-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 1rem;

    position: relative;
    background: var(--white);

    @media (max-width: 768px) {
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
      align-items: flex-start;
      justify-content: flex-start;
    }

    .submenu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      width: 100%;
      background-color: var(--white);
      padding: 1rem;
      z-index: 100;
      padding: 3rem 2rem;

      align-items: center;
      justify-content: flex-start;
      gap: 2rem;
      border-top: solid 1px var(--primary-light);

      ul {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 1rem;

        li {
          a {
            padding: 0;
          }
        }
      }

      @media screen and (max-width: 768px) {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100%;
        background: #fff;
        transform: translate(100%);
        transition: transform 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        overflow-y: scroll;
        &.open {
          transform: translateX(0);
          ul {
            display: flex;
            flex-direction: column;
            transform: translateX(0);
            position: relative;
          }
        }
      }
    }

    .has-submenu {
      /* position: relative;
      padding-right: 1.2rem; */
      &:hover {
        .submenu {
          display: flex;
        }
      }
      > a {
        position: relative;
        padding-right: 1.3rem;
      }
      > a::after {
        content: '';
        display: block;
        width: 0;
        height: 0;
        border-top: 6px solid black;
        border-bottom: 6px solid transparent;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;

        margin-left: 0.5rem;

        position: absolute;
        top: 55%;
        right: 0;
        transform: translateY(-50%);
        transition: transform 0.3s ease-in-out;

        @media screen and (max-width: 768px) {
          border-top: 6px solid transparent;
          border-bottom: 6px solid transparent;
          border-left: 6px solid black;
          border-right: 6px solid transparent;
          top: 50%;
        }
      }
    }
  }
  .logo {
    flex: 1;
    text-align: center;
  }
  ul {
    display: flex;
    gap: 3rem;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 1rem;
      padding-bottom: 2rem;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: #fff;
      z-index: 99;
      align-items: center;
      justify-content: center;
      /* display: none; */
      transform: translateX(100%);
      transition: transform 0.3s ease-in-out;

      &.open {
        transform: translateX(0);
      }
    }

    li {
      font-size: 0.875rem;
      text-transform: uppercase;
      font-weight: 300;
      a {
        text-decoration: none;
        color: var(--primary);
        display: block;
        height: 100%;
        padding: 2rem 0;
        transition: var(--transition);

        @media screen and (max-width: 768px) {
          padding: 0;
          font-size: 1.2rem;
          font-weight: 500;
        }

        &:hover {
          color: var(--primary-light);
        }
      }
    }
  }
  .search-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    .search-form {
      flex: 1;
    }
    .field-container {
      display: flex;
      gap: 1.3rem;
      align-items: center;
      /* flex: 1; */
      border-bottom: solid 1px var(--primary);
      input {
        outline: none;
        border: none;
        font-family: 'Inter';
        text-decoration: none;
        height: 42px;
        font-size: 0.875rem;
        color: var(--primary);
        width: 100%;
        /* border: solid 1px var(--primary); */
      }
    }
    .cart-link {
      color: var(--primary);
      text-decoration: none;
      position: relative;

      display: block;

      .cart-items-number {
        position: absolute;
        top: -6px;
        right: -6px;
        width: 14px;
        height: 14px;
        border-radius: 14px;
        background-color: var(--primary-light);
        color: var(--primary);
        display: inline-block;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 0.6rem;
        font-weight: 700;
        /* border: solid 1px red; */
      }
    }
  }
}

body.news .search-container {
  flex: 0 0 10%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  z-index: 88;
  position: absolute;
  top: 2.7rem;
  right: 1rem;
}

.submenu-toggle {
  font-size: 1.5rem;
  /* display: none; */

  &.close {
    display: none;

    @media screen and (max-width: 768px) {
      display: block;
    }
  }
}

.close-menu {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  margin-left: auto;
  display: block;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .menu-toggle,
  .submenu-toggle {
    display: block;
  }

  .submenu-toggle {
    &.close {
      color: var(--primary);
      z-index: 88;
      position: absolute;
      top: 2rem;
      right: 1rem;
      border: none;
      background: none;
    }
  }

  .search-container {
    /* flex-direction: column; */
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.top-marquee {
  overflow: hidden;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 1rem 0;
}

.marquee {
  display: flex;
  width: max-content; /* faz a linha ter o width de ambos os grupos */
  animation: marquee 15s linear infinite;
}

.marquee__group {
  display: flex;
  gap: 3rem; /* espaçamento interno */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-container {
  width: 100%;
  min-height: 800px;
  position: relative;
  overflow: hidden;

  @media screen and (max-width: 768px) {
    max-height: 350px;
    min-height: 350px;
  }

  .hero-fade-slider {
    position: relative;
    height: 100%;
  }
}

.single-hero-container {
  width: 100%;
  height: 345px;
  position: relative;
  overflow: hidden;
  background-color: #eaeaea;

  .title {
    text-align: right;
    font-size: 4rem;
    font-weight: 600;
    color: var(--white);
    position: absolute;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    display: block;
    max-width: 45%;
    line-height: 1.2;

    @media screen and (max-width: 768px) {
      max-width: 100%;
      font-size: 2.5rem;
    }
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
  }

  @media screen and (max-width: 768px) {
    max-height: 200px;
  }
}

.hero-slide {
  width: 100%;
  height: 100%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  min-height: 800px;

  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;

  &.slide-1 {
    background: url('./img/hero.png') no-repeat center center / cover;
  }
  &.slide-2 {
    background: url('https://images.pexels.com/photos/5868121/pexels-photo-5868121.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=2')
      no-repeat center center / cover;
  }

  &.active {
    opacity: 1;
    z-index: 1;
  }

  @media screen and (max-width: 768px) {
    min-height: 350px;
    max-height: 350px;
    background-attachment: scroll;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    height: 100%;
    padding: 2rem;
    gap: 1rem;
    text-align: right;
    .hero-tag {
      font-size: 1rem;
      color: var(--white);
      font-weight: 300;
      text-transform: uppercase;
    }
    .hero-title {
      font-size: 5.625rem;
      color: var(--white);
      font-weight: 700;
      line-height: 1;
      @media screen and (max-width: 768px) {
        font-size: 3rem;
      }
    }
    .hero-descr {
      font-size: 1.625rem;
      color: var(--white);
      font-weight: 300;
      @media screen and (max-width: 768px) {
        font-size: 1rem;
      }
    }
    .hero-btn {
      background-color: var(--primary-light);
      color: var(--primary);
      padding: 0.7rem 2rem;
      border-radius: 40px;
      font-size: 1rem;
      font-weight: 300;
      text-transform: uppercase;
      transition: var(--transition);
      text-decoration: none;
      min-width: 150px;
      text-align: center;
      &:hover {
        background-color: var(--primary-light);
      }
    }
  }
}

.hero-pagination {
  position: absolute;
  bottom: 2rem;
  right: 0;
  left: 0;
  z-index: 10;
  @media screen and (max-width: 768px) {
    bottom: 1rem;
  }
  .centered {
    padding: 0 2rem;
    width: 100%;
    max-width: var(--site-width);
    margin: 0 auto;
    display: block;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 8px;
  }
}

.hero-dot {
  width: 36px;
  height: 4px;
  background-color: #eaeae2;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.hero-dot.active {
  background-color: var(--primary-light);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 4rem;
  .section-tag {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 300;
    text-transform: uppercase;
  }
  .section-title {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 700;
    line-height: 1;

    &.regular {
      font-weight: 400;
    }
  }

  &.light {
    .section-tag {
      color: var(--white);
    }
    .section-title {
      color: var(--white);
    }
  }
}

.section-text {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 400;
  line-height: 1.7;

  a {
    color: var(--primary);
    text-decoration: none;
    &:hover {
      color: var(--primary-light);
    }
    /* text-decoration: underline; */
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--primary);
    display: inline;
    font-weight: 400;
  }
}

.section-spacer {
  height: 6.5625rem;
  @media screen and (max-width: 768px) {
    height: 3.125rem;
  }
}

.main-container {
  display: flex;
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  padding: 0 1rem;
  gap: 3.125rem;
  margin-top: 3.125rem;

  &.col {
    flex-direction: column;
    gap: 0;
    @media screen and (max-width: 768px) {
      /* flex-direction: column-reverse; */
    }
  }

  .main-container-col-2 {
    @media screen and (max-width: 768px) {
      flex-direction: column-reverse;
    }
  }

  @media screen and (max-width: 768px) {
    flex-direction: column-reverse;
  }

  .main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
  }
}

.main-text {
  font-size: 1rem;
  font-weight: 400;
  color: var(--primary);
  a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    &:hover {
      text-decoration: underline;
      color: var(--primary-light);
    }
  }
}

.news-content {
  .main-text {
    /* margin-top: 1.5rem; */
  }
  .news-title {
    font-size: 48px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 3.125rem;
    line-height: 1.2;
    /* padding-top: 3.125rem; */

    @media screen and (max-width: 768px) {
      font-size: 2rem;
      padding-top: 0;
    }
  }
  font-weight: 300;
  a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 300;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: var(--primary);
    display: inline;
    font-weight: 300;
  }

  strong {
    font-weight: 600;
  }
  .news-image,
  .img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: block;
    margin-bottom: 3.125rem;
  }
  img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  .more-news {
    margin-top: 3.125rem;
    text-decoration: none;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    &:hover {
      text-decoration: underline;
    }
  }
}

.news-list {
  display: flex;
  flex-direction: column;

  gap: 3.125rem;
  /* margin-top: 3.125rem; */

  li a {
    display: flex;
    gap: 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    text-decoration: none;

    @media screen and (max-width: 768px) {
      flex-direction: column;
    }
    &:hover {
      transform: translateX(8px);
    }
  }
  .news-image {
    flex: 0 0 600px;
    max-width: 100%;
    max-height: 260px;

    overflow: hidden;
    img {
      border-radius: 0.5rem;
      object-fit: cover;
      /* aspect-ratio: 2/1; */
      max-height: 260px;
    }
    @media screen and (max-width: 768px) {
      width: 100%;
      height: auto;
      flex: 1;
    }
  }
  .news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  .news-title {
    font-size: 3rem;
    color: var(--primary);
    font-weight: 600;
    line-height: 1.2;

    @media screen and (max-width: 768px) {
      font-size: 2rem;
    }
  }
}

/* footer */
.footer {
  margin-top: 3.125rem;
  padding: 4rem 0;
  background-color: var(--primary);

  .center-container {
    display: flex;
    justify-content: space-between;
    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 2rem;
    }
  }

  .footer-lists {
    flex: 1;
    display: flex;
    gap: 3rem;

    @media screen and (max-width: 768px) {
      flex-direction: column;
      gap: 2rem;
      display: none;
    }
    ul {
      list-style: none;
      display: flex;
      gap: 1rem;
      flex-direction: column;
      flex: 1;
      li {
        a {
          color: #f0eeed;
          text-decoration: none;
          font-weight: 200;
          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  .footer-content {
    flex: 0 0 30%;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.3rem;
    @media screen and (max-width: 768px) {
      text-align: center;
      align-items: center;
      /* gap: 2rem; */
    }
    .footer-title {
      font-size: 13px;
      color: var(--white);
      text-transform: uppercase;
      font-weight: 300;
    }
    .footer-contact {
      display: flex;
      flex-direction: column;
      justify-content: center;

      .footer-phone {
        font-size: 24px;
        color: var(--primary-light);
        font-weight: 500;
      }
      .footer-email {
        font-size: 14px;
        color: var(--primary-light);
        font-weight: 500;
        text-transform: uppercase;
      }
    }
    p {
      color: #009787;
      font-size: 12px;
      font-weight: 300;
    }
  }
}

/* breadcrumbs */
.breadcrumbs {
  margin-top: 0;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  a,
  span {
    font-size: 1rem;
    color: var(--primary);
    font-weight: 300;
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition);

    @media screen and (max-width: 768px) {
      font-size: 12px;
    }
    &:not(:last-child) {
      &::after {
        content: '>';
        margin: 0 0.5rem;
      }
    }

    &:hover {
      /* text-decoration: underline; */
      color: var(--primary-light);
      &:not(:last-child) {
        &::after {
          color: var(--primary);
        }
      }
    }

    &.active {
      color: var(--primary-light);
    }
  }
}

.mb-1 {
  margin-bottom: 1rem;
}
.mb-2 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.db {
  display: block;
}

.tdu {
  text-decoration: underline;
}

.d-flex {
  display: flex;

  @media screen and (max-width: 768px) {
    flex-direction: column;
  }
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-content: flex-end;
}

.items-center {
  align-items: center;
}
.flex-col {
  flex-direction: column;
}
.gap-1 {
  gap: 1rem;
}

.gap-50 {
  gap: 3.125rem;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 1.2rem 3rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 1.75rem;
  letter-spacing: 0.125rem;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  &:hover {
    opacity: 0.9;
  }
}

.green-link {
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--primary);
  transition: var(--transition);
  &:hover {
    text-decoration: underline;
    opacity: 0.9;
    color: var(--primary-light);
  }
}
