/*
Theme Name: AgroVerso
Theme URI: https://agroverso.group
Author: Eleven
Author URI: https://eleven.co.ua
Description: Офіційна тема WordPress для AgroVerso. Підтримує Polylang для UA/EN локалізації.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
*/

@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/noto-sans-v42-cyrillic_latin-regular.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 500;
  src: url("fonts/noto-sans-v42-cyrillic_latin-500.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 600;
  src: url("fonts/noto-sans-v42-cyrillic_latin-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 800;
  src: url("fonts/noto-sans-v42-cyrillic_latin-800.woff2") format("woff2");
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans", sans-serif;
  font-weight: 400;
  font-size: 18px;
  color: #6ba66c;
  margin: 0;
}

@media (max-width: 991px) {
  body {
    font-size: 16px;
  }
}

.container-fluid {
  max-width: 1700px;
}

.h1,
h1,
.h2,
h2 {
  font-size: 3.5rem;
  font-weight: 800;
  text-transform: lowercase;
  line-height: 0.9;
  letter-spacing: -0.03em;
}

@media (max-width: 991px) {
  .h1,
  h1,
  .h2,
  h2 {
    font-size: 2.5rem;
  }
}

/* ---------- HEADER ---------- */

.header {
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav {
  padding-top: 15px;
  padding-bottom: 15px;
}

.nav__inner {
  max-width: 1280px;
  padding: 0 2rem !important;
}

.nav__logo img {
  height: 50px;
  width: auto;
}

.nav__links .nav-link {
  display: block;
  padding: 0.4rem 1rem !important;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a2e1c !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav__links .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 1rem;
  width: calc(100% - 2rem);
  height: 2px;
  background-color: #6ba66c;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s cubic-bezier(0.5, 0, 0, 1);
}

.nav__links .nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.nav__lang {
  gap: 0.25rem;
}

.nav__lang-btn {
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid #6ba66c;
  background: transparent;
  color: #1a2e1c;
  padding: 4px 4px 4px 5px;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.2s;
  text-decoration: none;
  margin: 0 3px;
}

.nav__lang-btn--active,
.nav__lang-btn:hover {
  background: #6ba66c;
  border-color: #6ba66c;
  color: #fff;
}

.nav__toggler {
  border: none;
  padding: 0;
}

.nav__toggler:focus {
  box-shadow: none;
}

.nav__toggler span {
  display: block;
  width: 24px;
  height: 2px;
  background: #6ba66c;
  margin: 5px 0;
}

@media (max-width: 1199.98px) {
  .offcanvas {
    max-width: 300px;
  }
  .nav__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 2rem;
  }
  .nav__links .nav-link {
    padding: 0.5rem 0 !important;
  }
  .nav__links .nav-link::after {
    left: 0;
    width: 100%;
  }
}

/* ---------- HERO ---------- */

#hero-carousel {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.hero-inner-wrapper {
  height: 100%;
}

.hero-inner-wrapper .carousel-item {
  height: 100vh;
  min-height: 600px;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-slide-bg.init-zoom {
  animation: zoomOut 20s ease-out forwards;
}

@keyframes zoomOut {
  0% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.carousel-item-next .hero-slide-bg,
.carousel-item-prev .hero-slide-bg {
  transform: scale(1.1);
}

.carousel-item.active .hero-slide-bg {
  transform: scale(1);
  transition: transform 5s ease-out;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
}

.hero-content-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.hero-content-overlay .container {
  pointer-events: auto;
}

.hero-logo-wrapper {
  width: 100%;
  max-width: 680px;
  padding: 0 2rem;
}

.hero-png-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
}

.hero-cta-btn {
  display: inline-block;
  background-color: #fff;
  color: #6ba66c;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 1.1rem 3.5rem;
  border-radius: 100px;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.hero-cta-btn:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.hero-indicators {
  z-index: 3;
  margin-bottom: 2rem;
}

.hero-indicators button {
  width: 10px !important;
  height: 10px !important;
  border-radius: 50% !important;
  margin: 0 6px !important;
  background-color: rgba(255, 255, 255, 0.4) !important;
  border: none !important;
  transition: opacity 0.3s ease, background-color 0.3s ease;
}

.hero-indicators button.active {
  background-color: #ffffff !important;
  opacity: 1;
}

.hero-control {
  z-index: 3;
  width: 5%;
}

.hero-control .carousel-control-prev-icon,
.hero-control .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.2);
  padding: 1.5rem;
  border-radius: 8px;
  backdrop-filter: blur(4px);
  transition: background-color 0.2s;
}

.hero-control:hover .carousel-control-prev-icon,
.hero-control:hover .carousel-control-next-icon {
  background-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
  #hero-carousel {
    height: 85vh;
    min-height: 500px;
  }
  .hero-inner-wrapper .carousel-item {
    height: 85vh;
    min-height: 500px;
  }
  .hero-cta-btn {
    padding: 0.9rem 2.5rem;
    font-size: 0.8rem;
  }
  .hero-control {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-logo-wrapper {
    max-width: 85%;
    padding: 0;
  }
  .mb-5 {
    margin-bottom: 2rem !important;
  }
}

/* ---------- ABOUT ---------- */

.about-section-image-wrapper {
  overflow: hidden;
}

.about-section-img {
  width: 100%;
  object-fit: cover;
}

.about-section-sidebar {
  background-color: #6ca76c;
}

.about-section-logo {
  max-width: 180px;
  width: 100%;
}

@media (min-width: 992px) {
  .about-section-sidebar {
    height: 100%;
    min-height: 600px;
  }
}

/* ---------- ABOUT FEATURES ---------- */

.features-section {
  background-color: #6ca76c;
  color: #ffffff;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.feature-icon-wrapper {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.feature-text {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1.3;
  letter-spacing: 0.03em;
  color: #ffffff;
}

@media (max-width: 767px) {
  .feature-text {
    font-size: 0.8rem;
  }
  .feature-icon-wrapper {
    height: 50px;
  }
}

/* ---------- ADVANTAGES SECTION ---------- */

.advantages-left-col {
  min-height: 550px;
}

.advantages-img-wrapper {
  width: 100%;
  height: 200px;
  margin-top: auto;
  overflow: hidden;
}

.advantages-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.advantages-list {
  display: flex;
  flex-direction: column;
}

.advantage-item {
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(108, 167, 108, 0.5);
}

.advantage-item:first-child {
  padding-top: 0;
}

.advantage-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.advantage-number {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.advantage-text {
  margin: 0;
}

@media (max-width: 991.98px) {
  .advantages-left-col {
    min-height: auto;
  }

  .advantages-img-wrapper {
    max-width: 100%;
  }

  .advantage-item {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

/* ---------- MANUFACTURING SECTION ---------- */

.manufacturing-section {
  overflow: hidden;
  background-color: #6ca76c;
}

.manufacturing-sidebar {
  background-color: #ffffff;
  padding: 2rem 2.5rem;
}

.location-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #1a2e1c;
}

.location-text strong {
  color: #6ba66c;
}

.manufacturing-sidebar-logo {
  max-width: 150px;
  width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .manufacturing-section .row {
    display: flex;
  }
}

/* ---------- PRODUCTS SECTION ---------- */

.product-img-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.product-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.product-img-box:hover .product-gallery-img {
  transform: scale(1.04);
}

.products-sidebar {
  background-color: #6ca76c;
}

.products-sidebar-logo {
  max-width: 180px;
  width: 100%;
  height: auto;
}

@media (min-width: 992px) {
  .row-cols-lg-7 > * {
    flex: 0 0 auto;
    width: 14.2857142857%; /* 100% / 7 */
  }
}

.catalog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.catalog-item img {
  width: 100%;
  max-width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}

.catalog-item:hover img {
  transform: scale(1.1);
}

.catalog-item span {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #6ba66c;
}

@media (max-width: 991px) {
  .catalog-item span {
    font-size: 16px;
  }
  .catalog-item img {
    max-width: 90px;
    height: 90px;
  }
}

/* ---------- PRIVATE LABEL ---------- */

.brand-private-section {
  background-color: #6ca76c;
}

.brand-private-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- PACKAGING ---------- */

.packaging-sidebar {
  background-color: #6ca76c;
  padding: 0 2rem;
}

.style-sidebar-logo {
  max-width: 180px;
}

.pack-img-holder {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.pack-img-holder img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.pack-name {
  font-size: 1.6rem;
  font-weight: 600;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- PARTNERS ---------- */

.partners-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}

.partners-item img {
  width: 100%;
  max-width: 140px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

/* ---------- FOOTER ---------- */

footer {
  background-color: #f6f9f6 !important;
}

.contacts-heading-block {
  border-color: #6ba66c !important;
}

.contacts-heading-title {
  color: #6ba66c;
}

.contacts-person-info .contact-name,
.contact-link {
  font-size: 1.3rem;
  color: rgba(107, 166, 108, 0.7);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

.contact-link:hover {
  color: #1a2e1c;
}

.contacts-top-logo {
  max-width: 160px;
  height: auto;
}

.contacts-huge-slogan {
  color: rgba(107, 166, 108, 0.6);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.1;
}

@media (max-width: 600px) {
  .contact-link,
  .contacts-person-info .contact-name {
    font-size: 1.1rem;
  }
  .contacts-huge-slogan {
    font-size: 20px;
  }
}

/* ---------- BUTTON TO TOP ---------- */

.to-top-btn {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 99;
  width: 50px;
  height: 50px;
  background-color: #6ba66c;
  color: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.to-top-btn.to-top-btn--show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top-btn:hover {
  background-color: #1a2e1c;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(-3px);
}

.to-top-btn svg {
  transition: transform 0.3s ease;
}

.to-top-btn:hover svg {
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .to-top-btn {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}