:root {
  --green: #01301C;
  --yellow: #FFB001;
  --yellow-light: #FFCC5C;
  --yellow-dark: #CF8F00;
  --white: #FFFFFF;
  --black: #000000;
  --gray: #A0A0A0;

  --text-extra-large: 52px;
  --text-large: 38px;
  --text-base: 24px;
  --text-small: 18px;
  --text-tiny: 12px;

  --restaurant-card-width: 413px;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Regular.ttf');
  font-weight: 400;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins/Poppins-Bold.ttf');
  font-weight: 700;
}

@font-face {
  font-family: 'Made Gentle';
  src: url('../fonts/made-gentle/Made-Gentle.otf');
}

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

}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--green);
  overflow-x: hidden;
  color: var(--white);
  box-sizing: border-box;
}

.navbar {
  margin: 14px 100px 0px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 219px;
  height: 86px;
  display: flex;
  justify-content: end;
}

.carousel {
  position: absolute;
  top: 0px;
  margin: 32px 0;
  align-items: end;
  flex-direction: column;
  right: 0;
  width: fit-content;
  display: flex;
  gap: 16px;
  z-index: 999;
}

.carousel-dots {
  display: flex;
  padding-top: 48px;
  padding-right: 50px;
  width: 100%;
  justify-content: end;
  gap: 8px;
  flex-direction: row;
}

.carousel-dot {
  border: none;
  outline: none;
  cursor: pointer;
  width: 18px;
  height: 18px;
  background-color: var(--white);
  opacity: 0.3;
  border-radius: 9999px;
  transition: opacity 0.2s ease-in-out;
  z-index: 9999;
}


.carousel-dot:not(.active):hover {
  opacity: 0.5;
}

.carousel-dot.active {
  opacity: 1;
  background-color: var(--yellow);
}

.carousel-content {
  position: absolute;
  top: -50px;
  width: 100%;
  height: 800px;
}

.carousel-item {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  display: flex;
  justify-content: end;
  opacity: 1;
  height: 100%;
}

.carousel-item img {
  height: 100%;
  object-fit: cover;
}

.heading-title {
  font-family: 'Made Gentle', sans-serif;
  font-size: var(--text-extra-large);
  color: var(--yellow);
  line-height: 1.2;
  margin-top: 128px;
  margin-left: 100px;
}

.heading-subtitle {
  font-size: var(--text-small);
  color: var(--white);
  max-width: 558px;
  margin-top: 21px;
  margin-left: 100px;
  max-height: 200px;
  overflow-y: auto;
}

.order-button {
  display: inline-block;
  margin-left: 100px;
  margin-top: 28px;
  font-family: 'Made Gentle', sans-serif;
  font-size: var(--text-small);
  border: 1px solid var(--white);
  background-color: transparent;
  color: var(--white);
  border-radius: 15px;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
}

.section-white {
  background-color: var(--white);
  margin: 194px 25px 0px 25px;
  border-top-left-radius: 130px;
  border-top-right-radius: 130px;
}

.restaurants-title {
  font-family: 'Made Gentle', sans-serif;
  font-size: var(--text-large);
  color: var(--yellow);
  display: flex;
  justify-content: center;
  padding-top: 127px;
  margin-bottom: 0;
}

.restaurants-subtitle {
  font-size: var(--text-small);
  color: var(--black);
  display: flex;
  justify-content: center;
  margin: 0;
}

.restaurants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  align-content: center;
  align-items: center;
  max-width: calc(var(--restaurant-card-width) * 3 + 32px * 2 + 32px * 2);
  margin: 54px auto 0;
  padding: 0 32px;
}

.restaurants-grid-item {
  border-radius: 20px;
  width: var(--restaurant-card-width);
  height: 235px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: all 0.3s ease-in-out;
}

.restaurants-grid-item:hover {
  scale: 1.1;
}

.restaurants-grid-item img {
  height: 100%;
}

.restaurants-select-button-container {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  display: flex;
  justify-content: center;
}

.restaurants-select-button {
  font-family: 'Made Gentle', sans-serif;
  color: var(--green);
  font-size: var(--text-small);
  background-color: var(--yellow);
  border-radius: 15px;
  width: 144px;
  height: 50px;
  text-align: center;
  border: none;
  outline: none;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
  display: grid;
  place-items: center;
}
a.restaurants-select-button {
  text-decoration: none;
}

.restaurants-select-button:hover,
.restaurants-select-button:active {
  scale: 1.1;
}

.restaurants-select-button:hover {
  background-color: var(--yellow-light);
}

.restaurants-select-button:active {
  background-color: var(--yellow-dark);
}

.divider {
  width: 70%;
  max-width: 1200px;
  height: 1px;
  border: none;
  background-color: var(--black);
  opacity: 0.1;
  margin: 78px auto 54px auto;
}

.contact {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  color: var(--black);
  justify-content: center;
  gap: 258px;
}

.contact div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 0;
}

.contact-title {
  font-family: 'Made Gentle', sans-serif;
  font-size: var(--text-base);
  margin-bottom: 16px;
}

.contact-text {
  font-size: var(--text-small);
  color: var(--black);
  text-decoration: none;
}

.contact-social {
  display: flex;
  flex-direction: row;
  gap: 10px;
  text-decoration: none;
}

.contact-social img {
  width: 24px;
  height: 24px;
}

.contact-social p {
  font-size: var(--text-small);
  color: var(--black);
}

.bold {
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
}

.footer-caption {
  color: var(--gray);
  font-size: var(--text-tiny);
  width: 100%;
  text-align: center;
  padding-top: 46px;
  padding-bottom: 19px;
  text-decoration: none;
  display: inline-block;
}

/* MEDIA QUERIES */

@media (max-width: 1780px) {


  .carousel-content {
    top: 130px;
    height: 600px;
  }

  .section-white {
    margin-top: 164px;
  }
}

@media (max-width: 1500px) {


  .carousel-content {
    top: 120px;
    height: 550px;
  }
}

@media (max-width: 1200px) {


  .carousel-content {
    top: 290px;
    height: 400px;
  }
}

@media (max-width: 1199px) {
  .contact {
    gap: 128px;
  }

  .divider {
    width: 85%;
  }
}

@media (max-width: 991px) {


  .carousel {
    position: relative;
    width: 100%;
    margin: 0;
    flex-direction: column-reverse;
  }

  .carousel-dots {
    padding-right: 0;
    justify-content: center;
  }

  .carousel-content {
    position: relative;
    top: 0;
    height: 500px;
  }

  .heading-subtitle,
  .heading-title {
    padding: 0 50px;
    margin-left: 0;
    max-width: 100%;
  }

  .navbar {
    margin-left: 50px;
  }

  .order-button {
    margin-left: 50px;
  }

  .section-white {
    margin: 64px 0 0 0;
  }

  .restaurants-title {
    padding-left: 32px;
    padding-right: 32px;
    text-align: center;
  }

  .restaurants-subtitle {
    padding: 0 32px;
    text-align: center;
  }

  .divider {
    width: 90%;
  }

  .contact {
    gap: 96px;
  }
}

@media (max-width: 767px) {


  .contact {
    flex-direction: column;
    align-items: center;
  }

  .contact div {
    width: 350px;
  }

  .heading-title {
    margin-top: 96px;
  }

  .section-white {
    border-radius: 96px 96px 0 0;
  }

  .carousel-content {
    height: 400px;
  }
}

@media (max-width: 480px) {


  .carousel-content {
    height: 250px;
  }

  .navbar,
  .order-button {
    margin-left: 32px;
  }

  .heading-title,
  .heading-subtitle {
    padding: 0 32px;
  }

  .restaurants-title {
    padding-left: 16px;
    padding-right: 16px;
    text-align: center;
  }

  .restaurants-subtitle {
    padding: 0 18px;
    text-align: center;
  }

  .restaurants-grid {
    padding: 0 16px;
  }

  .heading-title {
    font-size: var(--text-large);
  }

  .restaurants-grid-item:hover {
    scale: 1.08;
  }

  .section-white {
    border-radius: 80px 80px 0 0;
  }
}
