/* ====== FONT GOOGLE ====== */
@import url("https://fonts.googleapis.com/css2?family=Ibarra+Real+Nova:wght@400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap");

/* ====== WARNA DAN PENGATURAN GLOBAL ====== */
:root {
  --brand-color: #512810;
  --button-color: #a86a2d;
  --button-hover: #8b5522;
  --background-start: #fef5d7;
  --background-end: #f0dabc;
  --surface: #ffffff;
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  color: var(--brand-color);
  background: linear-gradient(
    90deg,
    var(--background-start) 0%,
    var(--background-end) 100%
  );
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

.container {
  width: 100%;
  margin: 0;
}

/* ====== HEADER SECTION ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #ffffff;
}

.site-header .container.header-inner {
  width: 100%;
  max-width: none;
  height: 127px;
  margin: 0;
  padding: 0 60px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* ====== LOGO KIRI ====== */
.brand-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  width: 120px;
  height: auto;
}

/* ====== NAVIGASI UTAMA ====== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

/* Posisi menu dibuat sama seperti Home GW Gessang */
.nav-list li:nth-child(1) {
  transform: translateX(-125px);
}

.nav-list li:nth-child(2) {
  transform: translateX(-75px);
}

.nav-list li:nth-child(3) {
  transform: translateX(-25px);
}

.nav-list li:nth-child(4) {
  transform: translateX(25px);
}

.nav-list li:nth-child(5) {
  transform: translateX(75px);
}

.nav-list li:nth-child(6) {
  transform: translateX(125px);
}

.nav-list a {
  position: relative;
  color: var(--brand-color);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.3s ease;
}

/* Garis bawah saat menu disentuh mouse */
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -9px;
  width: 0;
  height: 1px;
  background: var(--brand-color);
  transition: width 0.3s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--button-color);
}

.nav-list a:hover::after {
  width: 100%;
}

/* Menu Personal Colour dibuat dua baris */
.nav-list li:nth-child(3) a {
  display: block;
  width: 240px;
  text-align: center;
  white-space: normal;
}

.nav-list li:nth-child(3) a::after {
  left: 50%;
  transform: translateX(-50%);
}

.nav-list li:nth-child(3) a:hover::after {
  width: 90%;
}

/* Menu aktif */
.nav-list a.active {
  color: var(--brand-color);
  font-weight: 800;
}

.nav-list a.active::after {
  width: 100%;
}

/* ====== ICON KANAN HEADER ====== */
.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-shrink: 0;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-icons a,
.search-btn,
.home-account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  transition: transform 0.2s ease;
}

.header-icons a:hover,
.search-btn:hover,
.home-account-btn:hover {
  transform: translateY(-2px);
}

.header-icons img,
.home-account-btn img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

/* ====== TOMBOL HAMBURGER ====== */
.menu-toggle {
  display: none;
  width: 30px;
  height: 22px;
  flex-direction: column;
  justify-content: space-between;
}

.menu-toggle span {
  display: block;
  height: 3px;
  border-radius: 999px;
  background: var(--brand-color);
}

/* ====== KOTAK PENCARIAN ====== */
.search-box {
  position: fixed;
  top: 105px;
  right: 70px;
  z-index: 999;

  display: none;
  align-items: center;
  gap: 12px;

  width: 360px;
  height: 54px;
  padding: 0 18px;

  background: #ffffff;
  border: 2px solid var(--brand-color);
  border-radius: 100px;
}

.search-box.active {
  display: flex;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  color: var(--brand-color);
}

.search-box button {
  font-size: 28px;
  color: var(--brand-color);
}

/* ====== DROPDOWN AKUN ====== */
.home-account-dropdown {
  position: fixed;
  top: 145px;
  right: 48px;
  z-index: 1100;

  display: none;
  width: 375px;
  padding: 34px 25px 32px;

  background: #ffffff;
  border-radius: 24px;
  box-shadow:
    7px 8px 0 rgba(255, 238, 191, 0.65),
    0 12px 30px rgba(81, 40, 16, 0.08);
}

.home-account-dropdown.active {
  display: block;
}

/* ====== NAMA AKUN ATAU LOGIN / SIGN UP ====== */
.home-account-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--brand-color);
}

.home-account-user img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
}

.home-account-user-data {
  min-width: 0;
}

.home-account-user strong {
  color: var(--brand-color);
  font-size: 23px;
  font-weight: 800;
  line-height: 1.2;
}

.home-account-user-data p {
  margin: 2px 0 0;
  color: var(--brand-color);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.home-account-user:hover strong {
  color: var(--button-color);
}

/* ====== MENU DI DALAM DROPDOWN AKUN ====== */
.home-account-menu {
  width: 100%;
  min-height: 56px;

  display: flex;
  align-items: center;
  gap: 18px;

  color: var(--brand-color);
  font-size: 23px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.home-account-menu:hover {
  color: var(--button-color);
}

.home-account-menu img {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  object-fit: contain;
}

button.home-account-menu {
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.is-hidden {
  display: none !important;
}

/* ====== ISI HALAMAN KOSONG ====== */
.page-content {
  min-height: calc(100vh - 127px);
  background: linear-gradient(
    90deg,
    var(--background-start) 0%,
    var(--background-end) 100%
  );
}

/* ====== RESPONSIVE LAPTOP ====== */
@media (max-width: 1350px) {
  .site-header .container.header-inner {
    position: relative;
    height: 95px;
    padding: 0 48px;
  }

  .brand-logo img {
    width: 90px;
  }

  /* Menu desktop disembunyikan */
  .site-nav {
    display: none;
  }

  /* Menu tampil setelah hamburger diklik */
  .site-nav.is-open {
    position: absolute;
    top: 95px;
    right: 48px;
    left: auto;
    z-index: 999;

    display: flex;
    width: auto;
    padding: 18px 26px;

    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(81, 40, 16, 0.18);
  }

  .site-nav.is-open .nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
  }

  /* Posisi menu desktop dikembalikan normal */
  .site-nav.is-open .nav-list li:nth-child(1),
  .site-nav.is-open .nav-list li:nth-child(2),
  .site-nav.is-open .nav-list li:nth-child(3),
  .site-nav.is-open .nav-list li:nth-child(4),
  .site-nav.is-open .nav-list li:nth-child(5),
  .site-nav.is-open .nav-list li:nth-child(6) {
    transform: none;
  }

  .site-nav.is-open .nav-list a {
    display: block;
    width: auto;
    padding: 0;
    background: transparent;
    color: var(--brand-color);
    font-size: 16px;
    font-weight: 400;
    text-align: center;
    white-space: nowrap;
  }

  .site-nav.is-open .nav-list li:nth-child(3) a {
    width: 230px;
    line-height: 1.3;
    white-space: normal;
  }

  .site-nav.is-open .nav-list a.active {
    font-weight: 800;
  }

  .menu-toggle {
    display: flex;
  }

  .header-icons {
    gap: 18px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 28px;
    height: 28px;
  }

  .home-account-dropdown {
    top: 112px;
    right: 48px;
    width: 390px;
    padding: 36px 28px 34px;
  }

  .home-account-user img {
    width: 48px;
    height: 48px;
  }

  .home-account-user strong {
    font-size: 24px;
  }

  .home-account-menu {
    min-height: 60px;
    font-size: 23px;
  }

  .page-content {
    min-height: calc(100vh - 95px);
  }
}

/* ====== RESPONSIVE TABLET ====== */
@media (max-width: 900px) {
  .site-header .container.header-inner {
    height: 92px;
    padding: 0 24px;
    gap: 15px;
  }

  .brand-logo img {
    width: 78px;
  }

  .site-nav.is-open {
    top: 92px;
    left: 20px;
    right: 20px;
    width: auto;
    padding: 20px;
    border-radius: 20px;
  }

  .site-nav.is-open .nav-list {
    align-items: stretch;
    justify-content: flex-start;
    gap: 10px;
  }

  .site-nav.is-open .nav-list a {
    width: 100%;
    padding: 12px 14px;
    background: var(--background-start);
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
    white-space: normal;
  }

  .site-nav.is-open .nav-list li:nth-child(3) a {
    width: 100%;
  }

  .header-icons {
    gap: 12px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 24px;
    height: 24px;
  }

  .home-account-dropdown {
    top: 108px;
    right: 24px;
    width: min(390px, calc(100% - 48px));
  }

  .page-content {
    min-height: calc(100vh - 92px);
  }
}

/* ====== RESPONSIVE MOBILE ====== */
@media (max-width: 520px) {
  .site-header .container.header-inner {
    height: 82px;
    padding: 0 15px;
    gap: 8px;
  }

  .brand-logo img {
    width: 66px;
  }

  .site-nav.is-open {
    top: 82px;
    left: 12px;
    right: 12px;
    padding: 15px;
  }

  .site-nav.is-open .nav-list {
    gap: 8px;
  }

  .site-nav.is-open .nav-list a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .header-icons {
    gap: 10px;
  }

  .header-icons img,
  .home-account-btn img {
    width: 22px;
    height: 22px;
  }

  .menu-toggle {
    width: 27px;
    height: 20px;
  }

  .search-box {
    top: 92px;
    left: 15px;
    right: 15px;
    width: auto;
  }

  .home-account-dropdown {
    top: 95px;
    right: 15px;
    left: 15px;
    width: auto;
    padding: 28px 22px 26px;
  }

  .home-account-user {
    gap: 12px;
    margin-bottom: 16px;
  }

  .home-account-user img {
    width: 44px;
    height: 44px;
  }

  .home-account-user strong {
    font-size: 21px;
  }

  .home-account-menu {
    min-height: 55px;
    gap: 16px;
    font-size: 20px;
  }

  .home-account-menu img {
    width: 28px;
    height: 28px;
  }

  .page-content {
    min-height: calc(100vh - 82px);
  }
}
