/**
Theme Name: GranoVita
Author: Oleksandr Bludov
Description: ГРАНО ВІТА – офіційний дистриб'ютор агрохімії та засобів захисту рослин оптом.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
**/

html {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

:root {
  --heading-font: "Orelega One", serif;
  --text-font: "Manrope", sans-serif;

  --green-dark-base: #088136;
  --green-dark-200: #06672b;
  --green-dark-400: #054d20;
  --green-dark-600: #033416;
  --green-dark-800: #021a0b;
  --green-light-base: #56ff96;
}

body {
  font-family: var(--text-font);
  background-color: #ffffff;
  margin: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--heading-font);
}

.container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 56px;
  padding-right: 56px;
  width: 100%;
}

main > section {
  margin-block-end: 152px;
}

.header {
  position: fixed;
  top: 24px;
  left: 24px;
  right: 24px;
  border-radius: 1000px;
  height: 64px;
  background-color: #ffffff;
  box-shadow:
    rgba(60, 64, 67, 0.15) 0px 1px 2px 0px,
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
  z-index: 1000;
}

.header-fullwidth {
  inset: 0;
  border-radius: 0;
  padding: 0 44px; /* TODO: fix hardcoded value */
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.menu {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 12px;
}

.menu-list {
  margin: 0;
  margin-inline-start: 32px;
  padding: 0;
  display: flex;
  gap: 32px;
  list-style: none;
}

.menu-link {
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-dark-800);
}

.menu-link:hover {
  color: var(--green-dark-200);
}

.menu-right-container {
  display: flex;
  margin-left: auto;
  gap: 24px;
}

.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #edd413;
  color: var(--green-dark-600);
  height: 48px;
  padding: 20px;
  border: none;
  border-radius: 1000px;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}

.menu-btn {
  margin-left: auto;
}

.schedule {
  display: flex;
  flex-direction: column;
  margin-left: auto;
}

.schedule span {
  text-align: right;
}

.schedule-title {
  font-style: normal;
  font-weight: 700;
  font-size: 0.875;
  line-height: 150%;
}

.schedule-val {
  font-style: normal;
  font-weight: 500;
  font-size: 0.75;
  line-height: 150%;
}

.hero {
  position: relative;
  padding-top: 224px;
  height: 100vh;
  width: 100%;
  background-color: var(--green-dark-base);
  overflow: visible;
}

.hero-shape {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100vh + 40px);

  background: url("/wp-content/uploads/granovita/tractor.png") no-repeat;
  background-position: left -60% bottom -50px;
  background-size: cover;
  background-color: var(--green-dark-base);

  mask-image: url("../svg/decoration.svg"), linear-gradient(black, black);
  -webkit-mask-image:
    url("../svg/decoration.svg"), linear-gradient(black, black);

  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-position:
    bottom center,
    top center;
  -webkit-mask-position:
    bottom center,
    top center;
  mask-size:
    100% 40px,
    100% 100vh;
  -webkit-mask-size:
    100% 40px,
    100% 100vh;
  -webkit-mask-composite: source-over;
  mask-composite: add;
}

.hero-title {
  color: #ffffff;
  font-style: normal;
  font-weight: 400;
  font-size: 4rem;
  line-height: 110%;
  letter-spacing: -0.01em;
  margin-block: 16px;
  margin-block-end: 40px;
}

.hero-title-cta {
  color: var(--green-light-base);
}

.text-official {
  display: flex;
  align-items: center;
  gap: 8px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 150%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d9ef82;
}

.btn-icon-left {
  display: inline-flex;
  align-items: center;
  padding-left: 8px;
  padding-right: 32px;
  gap: 16px;
  height: 72px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: #ffffff;
  border-radius: 1000px;
  background-color: var(--green-dark-200);
  backdrop-filter: blur(16px);
}

.btn-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 100%;
  background-color: #ffffff;
}

.section-title {
  font-style: normal;
  font-weight: 400;
  font-size: 3rem;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: var(--green-dark-600);
  margin: 0;
}

.section-title-cta {
  color: var(--green-dark-200);
}

.section-separator {
  width: 100%;
  border: 1px solid #2d2741;
}

.categories-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-block-end: 48px;
}

.benefits {
  list-style: none;
  margin-block-start: 12px;
  margin: 0;
  padding: 0;
}

.benefits .benefits-item:not(:last-child) {
  margin-bottom: 12px;
}

.benefits-item {
  display: flex;
  align-items: center;
  gap: 4px;

  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--green-dark-600);
}

.benefits-item img {
  margin-right: 8px;
}

.benefits b {
  font-style: normal;
  font-weight: 800;
  font-size: 1rem;
  line-height: 150%;
  color: var(--green-dark-600);
}

.categories-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.categories-card {
  position: relative;
  display: flex;
  height: 312px;
  background-color: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
}

.categories-card-bg {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.categories-card-link {
  display: flex;
  align-items: center;
  position: absolute;
  gap: 4px;
  bottom: 24px;
  left: 24px;
  background-color: #ffffff;
  border-radius: 12px;
  z-index: 1;
  padding: 12px 16px;

  font-style: normal;
  font-weight: 600;
  font-size: 1rem;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: var(--green-dark-600);
  text-decoration: none;
}

.categories-card-link_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  text-decoration: none;
}

.categories-card:hover {
  transform: translateY(-8px);
}

.text-normal {
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 160%;
  color: var(--green-dark-600);
  text-decoration: none;
}

.text-white {
  color: #ffffff !important;
}

.about-content {
  max-width: 600px;
}

.about-content .section-title {
  margin-bottom: 32px;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stats {
  display: flex;
  align-items: flex-start;
  gap: 56px;
  margin-top: 72px;
}

.stats-item {
  display: flex;
  flex-direction: column;
}

.stats-item-val {
  font-family: var(--heading-font);
  font-style: normal;
  font-weight: 400;
  font-size: 48px;
  line-height: 100%;
  color: var(--green-dark-base);
}

.news-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-block-end: 48px;
}

.news-buttons {
  display: flex;
}

.news-buttons > a + a {
  margin-left: 12px;
}

.btn-telegram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #0088cc;
  border-radius: 1000px;
  height: 48px;
  padding: 16px;
  font-style: normal;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 150%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
}

.news-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.news-card {
  display: flex;
  flex-direction: column;
  position: relative;
  display: flex;
  height: auto;
  background-color: #f9f9f9;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s;
}

.news-card:hover {
  transform: translateY(-8px);
}

.news-card-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.news-card-content {
  padding: 24px;
}

.news-card-title {
  font-style: normal;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: var(--green-dark-600);
  text-decoration: none;

  display: -webkit-box;
  max-width: 100%;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-card-title::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.news-card-date {
  display: block;
  font-style: normal;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 150%;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #484848;
  margin-top: 24px;
}

.contact-block_form {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  padding: 32px;
  background: #ffffff;
  box-shadow:
    0px 8px 24px rgba(0, 0, 0, 0.05),
    0px 1px 1px rgba(0, 0, 0, 0.05);
  box-shadow:
    0px 8px 24px color(display-p3 0 0 0 / 0.05),
    0px 1px 1px color(display-p3 0 0 0 / 0.05);
  border-radius: 32px;
  gap: 32px;
}

.footer-container {
  position: relative;
}

.footer-container::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('/wp-content/uploads/form-bg.png') no-repeat;
}

.contact-block_form > .btn-close {
  position: absolute;
  top: 32px;
  right: 32px;
}

.title-form {
  font-style: normal;
  font-weight: 400;
  font-size: 1.5rem;
  line-height: 150%;
  color: var(--green-dark-600);
  margin: 0;
}

.btn-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.btn-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: #edd413;
  color: var(--green-dark-600);
  height: 58px;
  padding: 24px;
  border: none;
  border-radius: 1000px;
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}

.contact-form-inputs > input {
  width: 100%;
}

.contact-form-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input[type="text"],
input[type="tel"] {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  gap: 8px;
  height: 58px;
  background: #f2f2f2;
  border-radius: 1000px;
  border: none;

  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 160%;
  color: var(--green-dark-600);
}

input[type="text"]::placeholder,
input[type="tel"]::placeholder {
  font-style: normal;
  font-weight: 400;
  font-size: 1rem;
  line-height: 160%;
  color: #484848;
  opacity: 0.8;
}

.about-graphics {
  position: relative;
}

.circle-logo {
  position: absolute;
  top: 80px;
  right: 80px;
  width: 92px;
  height: 92px;
}

.circle-logo img {
  position: relative;
  display: block;
  z-index: 1;
}

.circle-logo::before {
  content: "";
  position: absolute;
  display: block;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%) scale(0.33);
  box-sizing: border-box;
  border-radius: 1000px;
  background-color: var(--green-dark-base);
  animation: pulse-ring 1s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.33);
  }
  80%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

.footer {
  position: relative;
  background-color: #19142b;
  padding: 32px 0 80px 0;
  margin-top: auto; 
}

.footer::before {
  content: "";
  position: absolute;
  left: 0;
  top: -40px;
  width: 100%;
  height: 40px;
  transform: rotate(180deg);
  -webkit-mask-image: url("../svg/decoration.svg");
  mask-image: url("../svg/decoration.svg");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-size: 100% 40px;
  mask-size: 100% 40px;
  -webkit-mask-position: bottom;
  mask-position: bottom;
  background-color: #19142b;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.footer .section-title {
  color: #ffffff;
}

.footer .text-normal {
  color: #c6c1d7;
}

.contact-block {
  display: flex;
  flex-wrap: wrap;
}

.contact-block .contact-block_form {
  flex-basis: 45%;
}

.contact-block .contact-block_content {
  flex-basis: 55%;
  padding: 32px 96px;
}

.contacts-detailed-list {
  list-style: none;
  margin: 88px 0 0 0;
  padding: 0;
}

.contacts-detailed-list li + li {
  margin-top: 16px;
}

.contacts-detailed-list li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.text-sm {
  font-style: normal;
  font-weight: 400;
  font-size: 0.75rem;
  line-height: 160%;
  color: #c7c1d8;
  margin: 0;
}

.footer-block {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-socials-list {
  display: flex;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-logo-info {
  display: flex;
  gap: 64px;
  align-items: flex-start;
}

.btn-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 100%;
  background-color: #d9ef82;
}

.container404 {
  height: calc(100% - 190px);
  width: 100%;
  display: flex;
  flex-direction: column;
  position: fixed;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.container404 .btn-cta {
  margin-top: 32px;
}

.background404 {
  position: absolute;
  top: 30%;
  z-index: -1;
}

.footer-detailed {
  margin-block-start: 152px;
}