/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Poppins:wght@400;500;600&display=swap');

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

  /*========== Colors ==========*/
  /* Zayka Palette Extracted from Logo */
  --first-color: #E85D04; /* Energetic Orange */
  --first-color-alt: #C54B00;
  --title-color: #1F1F1F;
  --text-color: #555555;
  --text-color-light: #888888;
  --body-color: #FAFAFA; /* Cleaner White */
  --container-color: #FFFFFF;
  --white-color: #FFFFFF;
  --shadow-color: rgba(232, 93, 4, 0.15);

  /*========== Font and typography ==========*/
  --body-font: 'Poppins', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  --biggest-font-size: 2.5rem;
  --h1-font-size: 1.75rem;
  --h2-font-size: 1.5rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;

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

  /*========== Margins ==========*/
  --mb-0-25: .25rem;
  --mb-0-5: .5rem;
  --mb-0-75: .75rem;
  --mb-1: 1rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;

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

@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 4.5rem;
    --h1-font-size: 2.5rem;
    --h2-font-size: 1.75rem;
    --h3-font-size: 1.5rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}

/*========== Theme ==========*/
body.dark-theme {
  --title-color: #F8F9FA;
  --text-color: #C4C4C4;
  --body-color: #121212;
  --container-color: #1E1E1E;
  --shadow-color: rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: var(--header-height) 0 0 0;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s;
}

h1,h2,h3 {
  color: var(--title-color);
  font-family: var(--title-font);
  font-weight: var(--font-bold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Remove bottom space */
}

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

button {
  cursor: pointer;
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

/*=============== REUSABLE CSS CLASSES ===============*/
.section {
  padding: 5rem 0 2rem;
}

.section__title,
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-2);
}

.section__title span {
    color: var(--first-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--first-color);
  font-family: var(--title-font);
  font-weight: var(--font-semi-bold);
  margin-bottom: var(--mb-0-5);
  letter-spacing: 1px;
}

.container {
  max-width: 1024px;
  margin-left: var(--mb-1-5);
  margin-right: var(--mb-1-5);
}

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

.main {
  overflow: hidden;
}

/*=============== HEADER ===============*/
.header {
  width: 100%;
  background-color: transparent; /* Start transparent */
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  transition: .4s;
}

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

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: .5rem;
  font-family: var(--title-font); 
  font-weight: var(--font-bold);
  color: var(--title-color);
  text-transform: uppercase;
  font-size: 1.1rem;
}

.nav__logo img {
  width: 35px;
}

.nav__logo span {
  color: var(--first-color);
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    background-color: var(--container-color);
    width: 60%; 
    height: 100%;
    top: 0;
    right: -100%;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.1);
    padding: 5rem 0 0 2rem;
    transition: .4s;
    z-index: var(--z-fixed);
  }
}

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

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: .3s;
  font-family: var(--title-font);
}

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

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

.nav__btns {
  display: flex;
  align-items: center;
  column-gap: 1rem;
}

.change-theme,
.nav__toggle {
  color: var(--title-color);
  font-size: 1.25rem;
  cursor: pointer;
}

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

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

/*=============== BUTTONS ===============*/
.button {
  display: inline-flex;
  background-color: var(--first-color);
  color: #FFF;
  padding: 1rem 2rem;
  border-radius: 4rem; /* Pill shape */
  font-weight: var(--font-semi-bold);
  transition: .3s;
  box-shadow: 0 8px 20px rgba(232, 93, 4, 0.25);
}

.button:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(232, 93, 4, 0.35);
}

/*=============== HOME ===============*/
.home__container {
  padding-top: 3rem;
  align-items: center;
}

.home__data {
  text-align: center;
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 1.1;
  margin-bottom: var(--mb-1);
}

.home__title span {
  color: var(--first-color);
}

.home__description {
  margin-bottom: var(--mb-2);
  color: var(--text-color);
  line-height: 1.6;
}

.home__img {
  width: 320px;
  justify-self: center;
  border-radius: 2rem;
  box-shadow: 0 12px 32px var(--shadow-color);
  transform: rotate(-3deg);
  transition: .4s;
}

.home__img:hover {
  transform: rotate(0);
}

/*=============== ABOUT ===============*/
.about__container {
  gap: 3rem;
  align-items: center;
}

.about__data {
  text-align: center;
}

.about__description {
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

.about__img {
  width: 1000px;
  border-radius: 1.5rem;
  justify-self: center;
  box-shadow: 0 12px 32px var(--shadow-color);
}

/*=============== MENU ===============*/
.menu__container {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

.menu__card {
  background-color: var(--container-color);
  padding: 2rem 1.5rem;
  border-radius: 2rem;
  box-shadow: 0 10px 40px var(--shadow-color);
  transition: .4s;
  position: relative;
  border: 1px solid transparent; /* For hover effect */
  display: flex; /* Flex to push button to bottom */
  flex-direction: column;
}

.menu__card:hover {
  transform: translateY(-8px);
  border-color: var(--first-color);
}

.menu__img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto var(--mb-1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: 0.3s;
}

.menu__card:hover .menu__img {
  transform: scale(1.05);
}

.menu__content {
    flex-grow: 1; /* Pushes content to fill space */
}

.menu__name {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-5);
}

.menu__detail {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  margin-bottom: var(--mb-1);
}

.menu__price {
  font-size: var(--h3-font-size);
  font-weight: var(--font-bold);
  color: var(--first-color);
  display: block;
  margin-top: auto;
}

.menu__button {
  position: absolute;
  right: 0;
  bottom: 0;
  background-color: var(--first-color);
  color: #FFF;
  padding: .75rem 1rem;
  border-radius: 1.5rem 0 1.5rem 0;
  font-size: 1.25rem;
  transition: .3s;
  display: flex;
}

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

/*=============== GALLERY ===============*/
.gallery__container {
  grid-template-columns: repeat(2, 1fr);
}

.gallery__img-box {
  border-radius: 1rem;
  overflow: hidden;
  height: 200px; /* Fixed height for consistency */
}

.gallery__img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s;
}

.gallery__img-box:hover img {
    transform: scale(1.1);
}

/*=============== TEAM ===============*/
.team__container {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  justify-content: center;
}

.team__card {
  text-align: center;
  padding: 1rem;
}

.team__img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--mb-1);
  border: 3px solid var(--first-color);
  padding: 3px;
}

.team__name {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-0-25);
}

.team__title {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
  font-weight: var(--font-medium);
}

/*=============== CONTACT ===============*/
.contact__container {
  gap: 3rem;
}

.contact__content {
    background-color: var(--container-color);
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px var(--shadow-color);
}

.contact__title-small {
    font-size: var(--h3-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__icon {
  font-size: 1.5rem;
  color: var(--first-color);
}

.contact__data-title {
  font-size: var(--normal-font-size);
  font-weight: var(--font-semi-bold);
  display: block;
}

.contact__data-info {
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.contact__map {
    height: 300px;
    background-color: #EEE;
    border-radius: 1.5rem;
    overflow: hidden;
}

.map__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--text-color-light);
    background-color: var(--container-color);
}

/*=============== FOOTER ===============*/
.footer {
  background-color: #121212;
  color: #FFF;
  padding: 4rem 0 2rem;
}

.footer__container {
  gap: 3rem;
}

.footer__logo {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: #FFF;
  margin-bottom: var(--mb-1);
  display: inline-block;
  font-family: var(--title-font);
}

.footer__logo span {
  color: var(--first-color);
}

.footer__title {
  font-size: var(--h3-font-size);
  color: #FFF;
  margin-bottom: var(--mb-1);
}

.footer__link {
  color: #999;
  font-size: var(--small-font-size);
}

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

.footer__social-link {
  font-size: 1.5rem;
  color: #FFF;
  margin-right: 1rem;
  transition: .3s;
}

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

.footer__copy {
  margin-top: 4rem;
  text-align: center;
  font-size: var(--smaller-font-size);
  color: #666;
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -30%;
  background-color: var(--first-color);
  padding: .5rem;
  border-radius: .5rem;
  z-index: var(--z-tooltip);
  transition: .4s;
}

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

.scrollup__icon {
  font-size: 1.25rem;
  color: #FFF;
}

.show-scroll {
  bottom: 3rem;
}

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

::-webkit-scrollbar-thumb {
  background-color: hsl(0, 0%, 70%);
  border-radius: .5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--first-color);
}

/*=============== BREAKPOINTS ===============*/
/* Small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: var(--mb-1);
    margin-right: var(--mb-1);
  }
}

/* Medium devices */
@media screen and (min-width: 576px) {
  .home__container,
  .about__container,
  .contact__container {
    grid-template-columns: repeat(2, 1fr);
  }

  .home__data, .about__data {
    text-align: initial;
  }
  
  .home__img {
    order: 1; /* Move image to right */
    width: 380px;
  }
  
  .home__data {
    order: 0;
  }

  .footer__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media screen and (min-width: 767px) {
  body {
    margin: 0;
  }
  
  .section {
    padding: 7rem 0 2rem;
  }
  
  .nav {
    height: calc(var(--header-height) + 1.5rem);
    column-gap: 3rem;
  }
  
  .nav__toggle, .nav__close {
    display: none;
  }
  
  .nav__list {
    flex-direction: row;
    column-gap: 3rem;
  }
  
  .nav__menu {
    margin-left: auto;
  }
  
  .home__container {
    padding-top: 8rem;
  }
}

/* Large devices */
@media screen and (min-width: 968px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
  
  .home__img {
    width: 480px;
  }

  .about__img {
    width: 480px;
  }
  
  .gallery__container {
    grid-template-columns: repeat(4, 1fr);
  }
}
