/*=============== GOOGLE FONTS - Insert link for typography ===============*/
@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400..700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: hsl(30, 32%, 56%);
  --first-color-alt: hsl(30, 32%, 46%);
  --white-color: hsl(0, 0%, 98%);
  --dark-color: hsl(0, 0%, 10%);
  --text-color: hsl(0, 0%, 20%);
  --body-color: hsl(0, 0%, 8%);
  --container-color: hsl(0, 0%, 100%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Lora', serif;
  --second-font: 'Dancing Script', cursive;
  --biggest-font-size: 2.5rem;
  --bigger-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media (width >= 1150px) {
  :root {
    --biggest-font-size: 4rem;
    --bigger-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body,
input,
button {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--white-color);
}

input,
button {
  background: none;
  border: none;
  outline: none;
}

h1,
h2,
h3,
h4 {
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1120px;
  margin-inline: 1rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding-block: 5rem 1rem;
}
.section__title {
  text-align: center;
  font-size: var(--bigger-font-size);
  margin-bottom: 1rem;
}

.section__subtitle {
  display: block;
  text-align: center;
  font: var(--font-bold) var(--bigger-font-size) var(--second-font);
  color: var(--first-color);
}

.main {
  overflow: hidden;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: transparent; /* Transparent by default at the top */
  z-index: var(--z-fixed);
  transition: background-color 0.4s, box-shadow 0.4s;
}

/* Change header styles when scrolled */
.scroll-header {
  background-color: var(--body-color); /* Turns solid black/body color when scrolled */
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.3);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--first-color);
  font: var(--font-bold) var(--h2-font-size) var(--second-font);
}
.nav__logo img {
  width: 4.5rem;
  height: 4.5rem;
}
.nav__toggle {
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Navigation for mobile devices <> */
@media (width <= 1150px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -120%;
    background-color: var(--body-color);
    width: 80%;
    height: 100%;
    box-shadow: -2px 0 16px hsla(0, 0%, 0%, 0.3);
    padding: 7rem 0 2rem 3rem;
    z-index: var(--z-fixed);
    transition: right 0.4s;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.nav__link {
  color: var(--white-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.nav__link:hover {
  color: var(--first-color);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: var(--white-color);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Show menu */
.show-menu {
  right: 0;
}

/* Change header styles */
.scroll-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.3);
}

/* Active link */
.active-link {
  color: var(--first-color);
}

/*=============== HOME SECTION (PERFECTLY CENTERED) ===============*/
.home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-height); /* Prevents the header from overlapping the text */
}

/* Background Video Styles */
.home__bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Dark Overlay */
.home__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.home__container.container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  margin-inline: auto;
}

.home__data {
  text-align: center !important;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.home__title {
  font-size: var(--biggest-font-size);
  color: var(--white-color);
  margin-bottom: 2.5rem;
  line-height: 1.3;
  text-align: center;
}

/* Ensure button aligns correctly in the center */
.home__button {
  margin-inline: auto;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  background-color: transparent;
  color: var(--white-color);
  border: 2px solid var(--white-color);
  padding: 1rem 2rem;
  font-weight: var(--font-semi-bold);
  transition:
    background-color 0.4s,
    border-color 0.4s,
    color 0.4s;
}

.button i {
  font-size: 1.5rem;
  font-weight: initial;
}

.button:hover {
  border-color: var(--first-color);
  background-color: var(--first-color);
  color: var(--dark-color);
}

.button__link {
  display: inline-flex;
  align-items: center;
  column-gap: 0.5rem;
  color: var(--first-color);
  font-weight: var(--font-semi-bold);
  transition: color 0.4s;
}

.button__link i {
  font-size: 1.5rem;
  font-weight: initial;
  transition: transform 0.4s;
}

.button__link:hover {
  color: var(--first-color-alt);
}

.button__link:hover i {
  transform: translateX(0.5rem);
}

/*=============== ABOUT SECTION ===============*/
.about__container {
  position: relative;
  row-gap: 0;
  padding-bottom: 2rem;
}

.about__flour {
  width: 200px;
  position: absolute;
  top: 0;
  left: -3rem;
}

.about__img {
  position: relative;
}

.about__data {
  position: relative;
  background-color: var(--white-color);
  color: var(--dark-color);
  padding: 3rem 1rem;
  text-align: center;
}

.about__description {
  margin-bottom: 3rem;
  color: var(--text-color);
}

.about__rosemary {
  width: 150px;
  position: absolute;
  right: -3.5rem;
  bottom: -2.5rem;
}

/*=============== ABOUT SECTION SLIDER ===============*/
.about__swiper {
  position: relative;
  max-width: 100%;
  border-radius: 1.5rem;
  overflow: hidden;
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Styling for videos inside the About slider */
.about__video {
  width: 100%;
  height: 420px; /* Matches your image height */
  object-fit: cover;
  display: block;
}

/* Swiper Navigation Customization */
.about__swiper .swiper-button-prev::after,
.about__swiper .swiper-button-next::after {
  content: '';
}

.about__swiper :is(.swiper-button-prev, .swiper-button-next) {
  color: var(--white-color);
  font-size: 1.5rem;
  background-color: var(--opacity-color-30, rgba(0, 0, 0, 0.3));
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  top: initial;
  bottom: 1.25rem;
  transition: background-color .4s;
}

.about__swiper .swiper-button-prev {
  left: initial;
  right: 4rem;
}

.about__swiper .swiper-button-next {
  right: 1.25rem;
}

/* Ensure the images match the desired height */
.about__swiper,
.about__swiper .swiper-wrapper,
.about__article {
  height: 100%;
}

.about__img {
  width: 100%;
  height: 420px; /* Adjust this height higher or lower depending on your preference */
  object-fit: cover;
  display: block;
}

/*=============== MENU ===============*/
.menu__header {
  justify-self: center;
}

.menu .section__title {
  text-align: initial;
  margin-left: 1.5rem;
}

/* Equalizing slide heights in Swiper */
.menu__swiper .swiper-wrapper {
  align-items: stretch;
}

.menu__swiper .swiper-slide {
  height: auto;
}

.menu__card {
  position: relative;
  background-color: var(--text-color);
  padding: 1.5rem;
  border-radius: 1.5rem;
  overflow: hidden;

  /* Equal card layout structure */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.menu__card .blob {
  z-index: 0;
  right: -7.75rem;
  bottom: 0;
}

.menu__data,
.menu__image {
  position: relative;
  z-index: 1;
}

.menu__data {
  margin-block: 1rem;
  /* Expands text area so all images & buttons align horizontally */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.menu__title {
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.menu__subtitle {
  font-family: var(--second-font);
  color: white;
  font-size: var(--small-font-size);
  margin-bottom: 0.5rem;
}

.menu__image {
  width: 100%;
  margin-top: auto;
}

.menu__img {
  /* Standardizes image sizes across all cards without distorting aspect ratios */
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.menu__button {
  display: grid;
  place-items: center;
  width: 7rem;
  height: 3rem;
  background-color: var(--first-color-alt);
  border: 3px solid var(--first-color);
  border-radius: 3rem;
  z-index: 10;
  color: var(--title-color);
  margin-top: 1rem;

  /* Fully interactive & always visible */
  pointer-events: auto;
  cursor: pointer;

  transition: box-shadow 0.4s;
}

.menu__button a {
  color: var(--white-color);
}

.menu__button:hover {
  box-shadow: 0 0 24px var(--first-color);
}

/* Swiper class */
.menu__swiper {
  margin-inline: initial;
  margin-bottom: 2rem;
}

.menu .swiper-pagination-bullets {
  bottom: 0;
}

.menu .swiper-pagination-bullet {
  background-color: var(--first-color);
  transition: opacity 0.4s;
}

/* =============== DISCOVER MORE BUTTON =============== */
.menu__discover {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.discover__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--first-color);
  color: var(--white-color, #fff);
  padding: 1rem 2rem;
  border-radius: 3rem;
  font-weight: 600;
  transition:
    background-color 0.3s,
    box-shadow 0.3s;
}

.discover__btn:hover {
  background-color: var(--first-color-alt);
  box-shadow: 0 0 20px var(--first-color);
}

/*=============== EVENTS SECTION ===============*/
.events__container {
  position: relative;
  row-gap: 0;
  padding-bottom: 2rem;
}

.events__flour {
  width: 200px;
  position: absolute;
  top: 0;
  left: -3rem;
}

.events__img {
  position: relative;
}

.events__data {
  position: relative;
  background-color: var(--white-color);
  color: var(--dark-color);
  padding: 3rem 1rem;
  text-align: center;
}

.events__description {
  margin-bottom: 2rem;
  color: var(--text-color);
}

.events__info {
  margin-bottom: 3rem;
}

.events__name {
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.events__details {
  color: var(--text-color);
}

.events__spoon {
  width: 150px;
  position: absolute;
  right: -1.5rem;
  bottom: -1rem;
}
/*=============== EVENTS SECTION HEIGHT FIX ===============*/
.events__img {
  width: 100%;
  height: 420px; /* Matches your About section image height */
  object-fit: cover;
  display: block;
}

/*=============== INGREDIENTS SECTION ===============*/
.ingredients__container {
  row-gap: 5.5rem;
}

.ingredients__description {
  text-align: center;
}

.ingredients__images {
  position: relative;
  justify-self: center;
}

.ingredients__images img {
  position: absolute;
}

.ingredients__images .ingredients__img-1 {
  position: relative;
  width: 110px;
}

.ingredients__img-2 {
  width: 45px;
  left: -3.5rem;
  bottom: 0;
}

.ingredients__img-3 {
  width: 38px;
  right: -3rem;
  bottom: 0;
}

.ingredients__img-4 {
  width: 32px;
  left: -6rem;
  top: 2.5rem;
}

.ingredients__img-5 {
  width: 55px;
  left: -6.5rem;
  bottom: 0;
}

.ingredients__img-6 {
  width: 45px;
  right: -3.5rem;
  top: 0.5rem;
}

.ingredients__img-7 {
  width: 45px;
  right: -6.5rem;
  top: 3.5rem;
}

.ingredients__img-8 {
  width: 60px;
  right: -7.5rem;
  bottom: 0;
}

/*=============== CONTACT SECTION ===============*/
.contact__container {
  row-gap: 4rem;
}

.contact__map iframe {
  width: 100%;
  height: 100%;
}

.contact__map {
  height: 300px;
  justify-self: center;
}

.contact__content {
  display: grid;
  row-gap: 1.5rem;
}

.contact__info {
  text-align: center;
}

.contact__icon {
  display: inline-block;
  font-size: 2rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.contact__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}

.contact__social {
  display: flex;
  justify-content: center;
  column-gap: 1rem;
}

.contact__link {
  display: block;
  color: var(--white-color);
  font-size: 1.5rem;
  transition: scale 0.4s;
}

.contact__link:hover {
  scale: 1.1;
}

.contact__address a {
  display: block;
  color: var(--white-color);
  font-style: normal;
}

/*=============== RESERVATION SECTION ===============*/
.reservation__container {
  position: relative;
  height: 420px;
  place-items: center;
  text-align: center;
}

.reservation__bg,
.reservation__shadow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.reservation__bg {
  object-fit: cover;
  object-position: center;
}

.reservation__shadow {
  background-color: hsla(0, 0%, 0%, 0.4);
  z-index: 5;
}

.reservation__content {
  position: relative;
  z-index: 10;
}

.reservation__data {
  margin-bottom: 3rem;
}

.reservation__data .section__subtitle {
  color: var(--white-color);
}

/*=============== FOOTER ===============*/
.footer {
  padding-block: 5rem 2rem;
}

.footer__container {
  row-gap: 3rem;
}

.footer__title {
  font-size: var(--normal-font-size);
  color: var(--first-color);
  margin-bottom: 0.5rem;
}

.footer__links {
  display: flex;
  column-gap: 1rem;
}

.footer__link {
  color: var(--white-color);
  transition: color 0.4s;
}

.footer__link:hover {
  color: var(--first-color);
}

.footer__address {
  font-style: normal;
}

.footer__address span {
  display: block;
}

.footer__logo {
  display: inline-block;
  color: var(--first-color);
  font: var(--font-bold) var(--h1-font-size) var(--second-font);
  margin-bottom: 0.5rem;
}

.footer__email {
  display: block;
}

.footer__copy {
  display: block;
  text-align: center;
  margin-top: 6rem;
  font-size: var(--smaller-font-size);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(0, 0%, 15%);
}

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 25%);
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(0, 0%, 35%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--body-color);
  box-shadow: 0 4px 16px hsla(0, 0%, 0%, 0.3);
  color: var(--white-color);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  z-index: var(--z-tooltip);
  transition:
    bottom 0.4s,
    transform 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 3rem;
}

.creator {
  color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* For medium devices <> */
@media (width >= 540px) {
  .about__container,
  .events__container {
    width: 350px;
    margin-inline: auto;
  }

  .ingredients__container,
  .contact__container {
    grid-template-columns: 400px;
    justify-content: center;
  }
  .menu__card {
    width: 350px;
  }
  
}

@media (width >= 768px) {
  .contact__content,
  .footer__container {
    grid-template-columns: repeat(2, 1fr);
  }


}

/* For large devices <> */
@media (width >= 1150px) {
  .container {
    margin-inline: auto;
  }

  .section {
    padding-block: 7rem 2rem;
  }
  .section__title {
    margin-bottom: 1.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
 .home__title {
    font-size: 4rem; 
  }

  .about__container {
    width: initial;
    grid-template-columns: 450px 670px;
    column-gap: 0;
    margin-block: 5rem 4rem;
  }
  .about__flour {
    width: 450px;
    left: 5.5rem;
    top: -7rem;
  }
  .about__data {
    padding: 0 6rem;
    text-align: initial;
    align-content: center;
  }
  .about__data :is(.section__subtitle, .section__title) {
    text-align: initial;
  }
  .about__rosemary {
    width: 220px;
    right: -4rem;
    bottom: -4rem;
  }

  .menu {
    padding-block: 9rem 4rem;
  }
  .menu__swiper {
    padding-bottom: 4rem;
  }
  .menu__container {
    max-width: 1380px;
  }
  .menu__card {
    width: 440px;
    padding: 2.5rem;
    border-radius: 4rem;
  }
  .menu__subtitle {
    font-size: var(--normal-font-size);
  }
  .menu__img {
    border-radius: 2rem;
  }

  .events__container {
    width: initial;
    grid-template-columns: 450px 670px;
    column-gap: 0;
    margin-block: 5rem 4rem;
  }
  
  .events__flour {
    width: 450px;
    left: 5.5rem;
    top: -7rem;
  }
  
  .events__data {
    padding: 0 6rem;
    text-align: initial;
    align-content: center;
  }
  
  .events__data :is(.section__subtitle, .section__title) {
    text-align: initial;
  }
  
  .events__info {
    text-align: right;
  }
  
  .events__spoon {
    width: 250px;
    right: -2rem;
    bottom: -2rem;
  }

  .ingredients__container {
    grid-template-columns: 650px;
    row-gap: 6rem;
  }
  .ingredients__images .ingredients__img-1 {
    width: 280px;
  }
  .ingredients__img-2 {
    width: 115px;
    left: -9rem;
  }
  .ingredients__img-3 {
    width: 95px;
    right: -8rem;
  }
  .ingredients__img-4 {
    width: 80px;
    left: -18rem;
    top: 6.5rem;
  }
  .ingredients__img-5 {
    width: 140px;
    left: -19rem;
  }
  .ingredients__img-6 {
    width: 110px;
    right: -9rem;
    top: 1rem;
  }
  .ingredients__img-7 {
    width: 110px;
    right: -17rem;
    top: 9rem;
  }
  .ingredients__img-8 {
    width: 150px;
    right: -20rem;
  }

  .contact .section__title {
    margin-bottom: 4rem;
  }
  .contact__container {
    grid-template-columns: 350px 450px;
    align-items: center;
    column-gap: 12rem;
  }
  .contact__map {
    width: 450px;
    height: 400px;
    order: 1;
  }
  .contact__content {
    gap: 5rem;
  }

  .reservation__container {
    height: 480px;
  }
  .reservation__content {
    text-align: center;
  }
  .reservation__data {
    margin-bottom: 4rem;
  }
  .reservation__data .section__subtitle {
    font-size: 3rem;
  }
  .reservation__data .section__title {
    font-size: 3.5rem;
  }

  .footer {
    padding-top: 6rem;
  }
  .footer__container {
    grid-template-columns: repeat(4, max-content);
    justify-content: space-between;
  }
  .footer__title,
  .footer__logo {
    margin-bottom: 1rem;
  }

  .scrollup {
    right: 3rem;
  }
}

/* For 2K resolutions <> */
@media (width >= 2048px) {
  body {
    zoom: 120%;
  }
}
