@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap");

@font-face {
  font-family: "Coolvetica";
  src: url("coolvetica/Coolvetica\ Rg.otf") format("opentype");
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #f8f8f8;
  font-family: "Coolvetica", "Montserrat", sans-serif;
  line-height: 1.6;
  letter-spacing: normal;
}

header {
  background: #f8f8f8;
  color: #131010;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 2001;
}

header h1 {
  font-size: 16px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

ul {
  list-style: none;
  display: flex;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  position: relative;
}

.logo-navbar {
  gap: 10px;
}

nav ul li {
  margin-left: 55px;
  position: relative;
}

nav ul li a {
  color: #131010;
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 5px;
  display: inline-block;
}

nav ul li a:hover {
  color: #543a14;
}

nav ul li a.active {
  color: #543a14;
}

#navMenu {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

/* garis dibawah navbar */
nav ul::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: var(--underline-left, 0);
  width: var(--underline-width, 0);
  height: 2px;
  background-color: #131010;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: #131010;
  transition: 0.3s;
  border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5.5px, -5.5px);
}

.footer {
  background-color: #543a14;
  color: #f8f8f8;
  padding: 50px 10%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-container h2 {
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
}

.footer-section {
  flex: 1 1 250px;
}

.footer .logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  color: white;
  margin-bottom: 10px;
}

.footer .logo img {
  width: 28px;
  margin-right: 10px;
}

.footer-section.brand {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
}

.footer-section p {
  font-size: 14px;
  line-height: 1.6;
  color: #e5e5e5;
  max-width: 320px;
}

.footer-section.nav h3 {
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.footer-section.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  row-gap: 1px;
  margin-bottom: 20px;
}

.footer-section.nav li {
  font-size: 16px;
  margin-bottom: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
}

.footer-section.nav a {
  color: #f8f8f8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section.social h3 {
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
}

.footer-section.social .icons a {
  color: #f8f8f8;
  margin-right: 15px;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.footer-bottom {
  text-align: center;
  padding: 0 20px;
  font-family: "Coolvetica", sans-serif;
  font-weight: 400;
  font-size: 14px;
}

.footer-bottom p {
  margin: 0;
}

footer hr {
  border: none;
  border-top: 1px solid #e5e5e5;
  margin: 20px auto;
  width: 90%;
}

.footer-bottom .heart {
  color: #ef4444;
}

.coklat {
  color: #543a14;
}

/* Tablet */
@media (max-width: 1024px) {
  header {
    padding: 20px 30px;
  }

  nav ul li {
    margin-left: 30px;
  }

  .footer {
    padding: 40px 5%;
  }

  .footer-container {
    gap: 30px;
  }
}

/* Mobile */
@media (max-width: 600px) {
  header {
    padding: 15px 20px;
    flex-direction: row;
    justify-content: space-between;
  }

  header h1 {
    font-size: 14px;
  }

  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: #f8f8f8;
    transition: 0.3s;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding: 80px 30px;
  }

  nav ul li {
    margin: 0;
    width: 100%;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
  }

  nav ul li a {
    font-size: 16px;
    display: block;
    width: 100%;
  }

  nav ul::after {
    display: none;
  }

  .footer {
    padding: 30px 5%;
  }

  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .footer-section {
    flex: 1 1 100%;
  }

  footer hr {
    width: 100%;
  }
}
