/* ==========================================================================
   responsive.css — dimuat paling akhir
   Desktop besar (>=1440px) & laptop (1024–1439px) memakai skala proporsional
   dari global.css sehingga tampilannya identik dengan gambar referensi.
   Tablet dan mobile memakai tata letak yang disusun ulang.
   ========================================================================== */

/* ==========================================================================
   TABLET — 768px s/d 1023px
   ========================================================================== */
@media (max-width: 1023px) {
  html {
    font-size: 16px;
  }

  :root {
    --header-height: 7.5rem;
    --footer-height: 4.5rem;
    --footer-height-home: 11rem;
    --logo-width: 20rem;
    --logo-height: 5.25rem;
    --logo-offset-x: 1.5rem;
    --logo-offset-y: 1rem;
    --nav-item-width: auto;
    --nav-item-height: 3rem;
    --nav-gap: 1.5rem;
    --nav-edge: 1.5rem;
    --fs-nav: 1.0625rem;
    --pill-radius: 1.25rem;
    --pill-border: 0.5rem;
    --pill-drop: 0rem;
  }

  .site-nav {
    top: 50%;
    width: auto;
    transform: translateY(-50%);
  }

  .nav-list {
    gap: var(--nav-gap);
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
  }

  .nav-link {
    width: auto;
    padding: 0 0.75rem;
  }

  .nav-link.is-active {
    transform: none;
  }

  /* ---------- Homepage ---------- */
  .hero__collage {
    bottom: calc(var(--footer-height-home) * -0.55);
  }

  .site-footer__text {
    width: 100%;
    padding: 0 2rem;
    font-size: 0.9375rem;
    line-height: 1.5rem;
  }

  .site-footer--home {
    padding-top: 1.25rem;
  }

  .site-footer__copyright {
    font-size: 0.9375rem;
  }

  .site-footer {
    padding-top: 1.5rem;
  }

  /* ---------- Menu ---------- */
  .page-main--menu {
    min-height: 0;
    padding: 2.5rem 1.5rem 3rem;
  }

  .menu-figure,
  .menu-packages,
  .menu-drinks {
    position: static;
    width: 100%;
    max-width: 100%;
  }

  .menu-figure {
    margin: 0 auto 2rem;
    width: min(26rem, 70%);
  }

  .menu-figure--bowl {
    margin-top: 2rem;
  }

  :root {
    --fs-menu-title: 1.625rem;
    --fs-menu-price: 1rem;
    --fs-menu-item: 1.0625rem;
    --fs-drink: 1.125rem;
  }

  .package {
    margin-bottom: 1.5rem !important;
  }

  .package__items > li {
    padding-left: 1.5rem;
    line-height: 1.5;
  }

  .package__items > li::before {
    left: 0.375rem;
  }

  .drink {
    height: 2.5rem;
    line-height: 2.5rem;
  }

  .drink__leader {
    top: calc(50% + 0.35em - 0.1875rem);
    border-bottom-width: 0.1875rem;
  }

  /* ---------- Profile ---------- */
  .profile-overlay {
    position: static;
    width: 100%;
    min-height: 100%;
    padding: 2rem 2rem 3rem;
    background-color: rgba(237, 235, 216, 0.88);
  }

  :root {
    --fs-profile-title: 1.75rem;
  }

  .profile-text {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.5rem;
  }

  /* ---------- Kontak ---------- */
  .page-main--kontak {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .kontak-card {
    position: static;
    width: calc(100% - 3rem);
    height: auto;
    margin: 2rem 0 2rem;
    padding: 2.5rem 2rem;
    border-radius: 1.75rem;
  }

  :root {
    --fs-kontak-label: 1.25rem;
    --fs-kontak-body: 1.0625rem;
  }

  .kontak-label,
  .kontak-value,
  .kontak-value a {
    line-height: 1.75rem;
  }

  .kontak-group {
    margin-bottom: 1.75rem;
  }

  .kontak-photo {
    position: static;
    width: min(34rem, 100%);
    margin: 0 auto;
  }

  /* ---------- Testimoni ---------- */
  .page-main--testimoni {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
  }

  .testi-center {
    position: static;
    width: calc(100% - 3rem);
    max-width: 34rem;
    margin-top: 1.5rem;
  }

  :root {
    --fs-testi-heading: 1.5rem;
    --fs-testi-button: 1.25rem;
  }

  .testi-heading {
    line-height: 2.25rem;
  }

  .testi-button {
    height: 3.5rem;
  }

  .testi-photo {
    position: static;
    width: min(34rem, 100%);
    margin: 1.5rem auto 0;
  }
}

/* ==========================================================================
   MOBILE — 320px s/d 767px
   ========================================================================== */
@media (max-width: 767px) {
  :root {
    --header-height: 5.5rem;
    --logo-width: 13.5rem;
    --logo-height: 3.5rem;
    --logo-offset-x: 1rem;
    --logo-offset-y: 1rem;
    --footer-height-home: 13rem;
  }

  /* ---------- Navbar hamburger ---------- */
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    height: auto;
    transform: none;
    background-color: var(--color-cream);
    border-top: 1px solid rgba(176, 33, 32, 0.15);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    display: block;
    height: auto;
    padding: 0.5rem 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    height: 3rem;
    justify-content: flex-start;
    padding: 0 1.25rem;
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .nav-link.is-active {
    border: 0;
    background-color: var(--color-white);
    font-weight: 600;
  }

  /* ---------- Homepage ---------- */
  .page-main--home {
    min-height: 60vw;
  }

  .hero__collage {
    bottom: calc(var(--footer-height-home) * -0.32);
    width: 160%;
    left: -30%;
  }

  .site-footer__text {
    padding: 0 1.25rem;
    font-size: 0.8125rem;
    line-height: 1.375rem;
  }

  /* ---------- Menu ---------- */
  .page-main--menu {
    padding: 2rem 1.25rem 2.5rem;
  }

  .menu-figure {
    width: min(18rem, 78%);
  }

  :root {
    --fs-menu-title: 1.25rem;
    --fs-menu-price: 0.875rem;
    --fs-menu-item: 0.9375rem;
    --fs-drink: 0.875rem;
  }

  .drink {
    height: 2.125rem;
    line-height: 2.125rem;
  }

  /* ---------- Profile ---------- */
  .profile-overlay {
    padding: 1.5rem 1.25rem 2.5rem;
    background-color: rgba(237, 235, 216, 0.92);
  }

  .profile-text {
    font-size: 0.875rem;
    line-height: 1.4375rem;
  }

  /* ---------- Kontak & Testimoni ---------- */
  .kontak-card {
    width: calc(100% - 2rem);
    padding: 2rem 1.5rem;
  }

  .testi-center {
    width: calc(100% - 2rem);
  }

  .testi-photo,
  .kontak-photo {
    width: 100%;
  }
}

/* ==========================================================================
   Layar sangat kecil — 320px
   ========================================================================== */
@media (max-width: 360px) {
  :root {
    --logo-width: 11rem;
    --logo-height: 2.875rem;
  }

  .site-footer__text {
    font-size: 0.75rem;
    line-height: 1.25rem;
  }
}
