:root {
  --color-bg: #025048;
  --color-text: #ffffff;
  --color-header: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body {
  background-color: var(--color-bg);
  font-family: "Playfair Display", serif;
  color: var(--color-text);
  padding: 0;
}

html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}

body.menu-page {
  background-color: white;
}

/* =================== NAVBAR =================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  z-index: 9999;
}

.navbar-logo {
  color: var(--color-header);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
}

.navbar-nav {
  display: flex;
  gap: 2rem;
  position: static;
  transform: none;
  background-color: transparent;
  height: auto;
  width: auto;
}

.navbar-nav a {
  font-family: "Playfair Display", serif;
  color: var(--color-text);
  font-size: 16px;
  position: relative;
}

.navbar-nav a:hover {
  color: black;
}

.navbar-nav a::after {
  content: "";
  display: block;
  padding-bottom: 0.5rem;
  border-bottom: 0.1rem solid black;
  transform: scaleX(0);
  transition: 0.2s linear;
}

.navbar-nav a:hover::after {
  transform: scaleX(1);
}

.navbar-extra {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-extra a {
  color: var(--color-text);
  font-size: 20px;
}

#hamburger-menu {
  display: none;
}

/* =================== HERO SECTION =================== */
.main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 5% 0;
  background-color: var(--color-bg); /* satu warna pasti */
  gap: 40px;
}

.main .text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* default: rata kiri */
  text-align: left;
  margin-top: -20px;
}

.main .text h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.main .text h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.main .text p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.main .btn {
  background-color: #ffffff;
  color: #025048;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  display: inline-block;
  width: fit-content;
  align-self: flex-start; /* rata kiri di desktop */
}

.main .image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}

.main .image img {
  width: 100%;
  max-width: 500px;
  max-height: 400px;
  object-fit: contain;
  margin-top: -20px;
  border-radius: 0;
}

/* =================== MEDIA QUERIES =================== */
@media (max-width: 1366px) {
  html {
    font-size: 75%;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 62.5%;
  }

  #hamburger-menu {
    display: inline-block;
  }

  .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    background-color: #ffffff;
    flex-direction: column;
    padding: 2rem;
    width: 250px;
    height: 100vh;
    transition: 0.3s;
    align-items: flex-start;
    gap: 1.5rem;
    z-index: 999;
  }

  .navbar-nav a {
    color: #025048;
  }

  .navbar-nav.active {
    right: 0;
  }

  /* Main Section */

  .main {
    flex-direction: column;
    text-align: center;
    padding: 100px 5% 0;
  }

  .main .text {
    align-items: center;
    text-align: center;
  }

  .main .text h1,
  .main .text p {
    text-align: center;
  }

  .main .btn {
    align-self: center;
  }

  .main .image img {
    width: 100%;
    max-width: 300px;
    margin-top: 30px;
  }
}

.menu-section {
  padding: 130px 40px 60px; /* jarak dari atas (navbar) dan samping */
  max-width: 1200px;
  margin: 0 auto;
  background-color: #f8f8f8;
  font-family: "Playfair Display", serif;
}

.menu-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  text-align: left;
}

.menu-image {
  width: 100%;
  height: 400px; /* tinggi lebih besar dari lebar => portrait */
  object-fit: cover;
  border-radius: 0; /* tanpa lengkungan */
  display: block;
}

.name {
  font-size: 20px;
  margin: 10px 0 5px;
  color: #333;
}

.class-text {
  font-size: 16px;
  margin-bottom: 8px;
  color: #666;
}

.price {
  font-weight: bold;
  color: #025048;
}

.menu-heading {
  font-size: 28px;
  font-weight: 1000;
  color: var(--color-bg);
  margin-bottom: 60px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 30px;
  display: block;
  width: 100%;
}

@media (max-width: 1366px) {
  .menu-image {
    height: 350px;
  }

  .name {
    font-size: 18px;
  }

  .class-text {
    font-size: 15px;
  }

  .price {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .menu-image {
    height: 200px;
  }

  .name {
    font-size: 16px;
  }

  .class-text {
    font-size: 14px;
  }

  .price {
    font-size: 15px;
  }

  .menu-heading {
    font-size: 24px;
    margin-bottom: 40px;
    padding-bottom: 20px;
  }
}

button {
  cursor: pointer;
}
