/* style.css - Refined Version */
:root {
  --brand: #01336f;
  --brand-2: #023370;
  --bg: #fbfbfc;
  --surface: #ffffff;
  --surface-2: #f5f6f8;
  --beige: #f6f1ea;
  --text: #18212a;
  --muted: #5b6876;
  --border: rgba(24, 33, 42, 0.1);
  --shadow: 0 10px 30px rgba(1, 51, 111, 0.12);
  --shadow-soft: 0 6px 16px rgba(16, 24, 40, 0.06);
  --radius: 14px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Inter,
    Arial,
    sans-serif;
  overflow-x: hidden;
}
.section-title {
  font-weight: 800;
  letter-spacing: 0.2px;
}
.text-secondary {
  color: var(--muted) !important;
}
.bg-beige {
  background: var(--beige) !important;
}
.nav-glass {
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255, 255, 255, 0.75) !important;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar .navbar-brand {
  color: var(--text);
  transition: var(--transition);
}
.navbar .nav-link {
  color: var(--text);
  opacity: 0.78;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: var(--transition);
  transform: translateX(-50%);
}
.navbar .nav-link:hover {
  opacity: 1;
  color: var(--brand);
}
.navbar .nav-link:hover::after {
  width: 80%;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95) !important;
  box-shadow: var(--shadow);
  padding-block: 0.5rem;
}
.navbar .nav-link.active {
  color: var(--brand-2) !important;
  opacity: 1 !important;
}

/* Buttons */
.btn {
  transition: var(--transition);
  border-radius: 10px;
}
.btn-brand {
  background: var(--brand);
  color: #fff;
  border: 1px solid rgba(32, 107, 171, 0.18);
  box-shadow: 0 8px 15px rgba(32, 107, 171, 0.15);
}
.btn-brand:hover {
  background: var(--brand-2);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(32, 107, 171, 0.25);
}
.btn-outline-dark:hover {
  transform: translateY(-2px);
}
.btn-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  padding: 0.45rem 1rem;
}
.btn-pill:hover {
  box-shadow: var(--shadow-soft);
  border-color: var(--brand);
  color: var(--brand);
}
.btn-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

/* Hero */
/* Hero (optimized for PageSpeed) */
.hero {
  padding-top: 110px;
  padding-bottom: 70px;

  background:
    linear-gradient(to bottom, rgba(39, 20, 97, 0.1), rgba(251, 251, 252, 1)),
    url("assets/img/bg1.webp");
  background-size: cover;
  background-position: center;

  /* Matikan fixed untuk performa (besar efeknya) */
  background-attachment: scroll;

  /* Render optimization (optional, tapi membantu di halaman panjang) */
  content-visibility: auto;
  contain-intrinsic-size: 800px;
}
.hero-inner {
  padding-top: 24px;
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(32, 107, 171, 0.1);
  color: var(--brand-2);
  border: 1px solid rgba(32, 107, 171, 0.18);
  font-weight: 700;
  font-size: 0.85rem;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

/* Container utama kartu */
.hero-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: 20px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hero-card:hover {
  transform: scale(1.01);
}
.hero-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: url("assets/img/Logo.webp");
  background-size: cover;
  background-position: center;
  border: 2px solid #fff;
  flex-shrink: 0;
}
.hero-card-bottom {
  display: flex;
  flex-direction: row;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}
.pill:hover {
  background: var(--surface-2);
  border-color: var(--brand);
}

/* Cards + Menu grid */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius);
  transition: var(--transition);
  overflow: hidden;
}
.menu-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}
.menu-card {
  will-change: transform;
}
.menu-img,
.pop-img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover; /* ini yang bikin tidak gepeng */
  object-position: center;
  display: block;
}
.menu-card:hover .menu-img {
  transform: scale(1.06);
}
.menu-img,
.pop-img {
  transition: transform 0.4s ease;
}
.badge-mini {
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 0.25rem 0.6rem;
  background: rgba(24, 33, 42, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}
.badge-best {
  background: #fff4e5;
  border-color: #ff9800;
  color: #e65100;
}
.menu-price {
  color: var(--brand);
  font-size: 1.1rem;
}
#menuGrid .menu-item {
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}
#menu {
  position: relative;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)),
    url("assets/img/bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-block: 80px;
}
#menu .card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Horizontal scroll highlight */
.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  overflow-x: auto;
  padding: 15px 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.scroll-row::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.pop-card {
  scroll-snap-align: start;
}
.pop-img {
  height: 180px;
  background-size: cover;
  background-position: center;
}

/* Map placeholder */
.map-placeholder iframe {
  filter: grayscale(0.2) contrast(1.1);
  transition: var(--transition);
}
.map-placeholder:hover iframe {
  filter: grayscale(0);
}

/* Footer */
html,
body {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

footer {
  background: #0f1720;
  color: rgba(255, 255, 255, 0.6);
  width: 100%;
  margin-top: auto;
  padding: 8px 0;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

footer .container {
  display: flex;
  justify-content: center;
}

footer .d-flex.flex-column.flex-md-row {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
}

footer .d-flex.gap-3.small {
  justify-content: center;
  align-items: center;
  gap: 8px !important;
  flex-wrap: wrap;
}

footer .small,
.footer-link {
  font-size: 11px;
  line-height: 1.3;
  margin: 0;
}

.footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Reveal animation */
.animate-item {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}
.animate-item.show {
  opacity: 1;
  transform: translateY(0);
}

/* Grab */
.btn-grab {
  background-color: #00b14f;
  border-color: #00b14f;
  color: #fff;
}

.btn-shop {
  background-color: #ee4d2d;
  border-color: #ee4d2d;
  color: white;
}

.btn-form {
  background-color: #0045a7;
  border-color: #0800ff;
  color: white;
}

.btn-maps {
  background-color: #da9739;
  border-color: #ff8800;
  color: white;
}
/* btn kosong */
.badge-mini:empty {
  display: none;
}

/* Tablet & Mobile */
@media (max-width: 991.98px) {
  .hero {
    padding-top: 100px;
    background-attachment: scroll;
  }
}
@media (max-width: 575.98px) {
  :root {
    --radius: 12px;
  }
  .hero-card-bottom {
    gap: 8px;
  }
  .pill {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }
  .menu-img {
    max-height: 130px;
  }
  .scroll-row {
    grid-auto-columns: minmax(220px, 1fr);
    gap: 12px;
  }
}
@media (max-width: 991.98px) {
  #menu {
    background-attachment: scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero,
  #menu {
    background-attachment: scroll;
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge-soft {
    animation: none;
  }
}
