@charset "UTF-8";
/* CSS Document */

:root {
  --menu-height: 75px;
  --main-green: #009639;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Open Sans", sans-serif;
  background: #f3f3f3;
  color: #111;
  line-height: 1.4;
  font-optical-sizing: auto;
  font-weight: 300;
}

a {
  text-decoration: none;
  color: white;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

/* =========================
   HEADER SLIDER
========================= */

header {
  width: 100%;
  height: 1075px;
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* dark overlay */
header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

/* animated background images */
.header-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header-slider img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  animation: heroSlider 15s infinite;
}

/* image timings */
.header-slider img:nth-child(1) {
  animation-delay: 0s;
}

.header-slider img:nth-child(2) {
  animation-delay: 5s;
}

.header-slider img:nth-child(3) {
  animation-delay: 10s;
}

/* fade animation */
@keyframes heroSlider {
  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  30% {
    opacity: 1;
  }

  38% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* content above images */
.hero-content {
  width: 1200px;
  color: white;
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 8px;
  margin-bottom: 120px;
}

.hero-logos {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.hero-logo {
  font-size: 48px;
  font-weight: bold;
  opacity: 0.95;
}

/* =========================
       HERO TEXT CHANGE
    ========================== */

.hero-title {
  position: relative;
  height: 100px;
  margin-bottom: 120px;
  overflow: hidden;
}

.hero-title h1 {
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;

  font-size: 58px;
  font-weight: 300;
  letter-spacing: 4px;

  opacity: 0;

  animation: textSlider 15s infinite;
}

/* text timing */
.hero-title h1:nth-child(1) {
  animation-delay: 0s;
}

.hero-title h1:nth-child(2) {
  animation-delay: 5s;
}

.hero-title h1:nth-child(3) {
  animation-delay: 10s;
}

/* text animation */
@keyframes textSlider {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  8% {
    opacity: 1;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(0);
  }

  38% {
    opacity: 0;
    transform: translateY(-30px);
  }

  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* =========================
       ABOUT SECTION
    ========================== */

.about {
  padding: 120px 0;
  background: #f3f3f3;
}

.about-wrapper {
  width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: center;
}

.about-text h2 {
  font-size: 48px;
  margin-bottom: 35px;
}

.about-text p {
  font-size: 28px;
  color: #333;
}

.about-image img {
  width: 100%;
  height: 650px;
  object-fit: cover;
}

/* =========================
       GREEN BANNER
    ========================== */

.green-banner {
  width: 100%;
  background: #028a34;
  color: white;
  padding: 70px 0;
}

.green-banner .container {
  text-align: center;
}

.green-banner h3 {
  font-size: 28px;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.green-banner p {
  font-size: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================
       PRODUCTS
    ========================== */

.products {
  padding: 120px 0 80px;
  background: #f3f3f3;
}

.products h2 {
  text-align: center;
  font-size: 64px;
  font-weight: 300;
  margin-bottom: 80px;
}

.product-grid {
  width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.product-card {
  text-align: left;
}

.product-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  margin-bottom: 20px;
}

.product-card h4 {
  font-size: 22px;
  margin-bottom: 10px;
  text-align: center;
  text-transform: uppercase;
}
.product-card h4 a:any-link {
  color: black;
}
.product-card h4 a:hover {
  color: var(--main-green);
}

.product-card p {
  font-size: 18px;
  color: #555;
}

.price {
  margin-top: 10px;
  font-size: 22px;
  font-weight: bold;
  color: #000;
}

/* =========================
       INFO SECTION
    ========================== */

.info-section {
  padding: 100px 0 140px;
  background: #f3f3f3;
}

.info-wrapper {
  width: 1200px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.info-wrapper img {
  width: 100%;
  height: 600px;
  object-fit: cover;
}

.info-text h2 {
  font-size: 62px;
  line-height: 1.1;
  margin-bottom: 35px;
}

.info-text p {
  font-size: 28px;
  color: #333;
}

/* =========================
       FOOTER
    ========================== */

footer {
  width: 100%;
  background: #028a34;
  color: white;
  text-align: center;
  padding: 60px 20px;
}

footer h3 {
  font-size: 30px;
  margin-bottom: 25px;
  text-transform: uppercase;
}

footer p {
  font-size: 24px;
  line-height: 1.6;
}

/* =========================
       RESPONSIVE
    ========================== */

@media (max-width: 1250px) {
  .container,
  .nav-wrapper,
  .about-wrapper,
  .product-grid,
  .info-wrapper,
  .hero-content {
    width: 90%;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-content h1 {
    font-size: 54px;
  }
}

@media (max-width: 768px) {
  header {
    height: 850px;
  }

  .hero-content h1 {
    font-size: 40px;
    letter-spacing: 4px;
  }

  .hero-logos {
    flex-direction: column;
    gap: 40px;
  }

  .about-wrapper,
  .info-wrapper {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .about-text h2,
  .products h2,
  .info-text h2 {
    font-size: 42px;
  }

  .about-text p,
  .green-banner p,
  .info-text p {
    font-size: 22px;
  }
}
