/* =========================================================
   KOPI SENJA — STYLE.CSS
   Struktur: 1) Tokens  2) Reset  3) Utilities  4) Navbar
   5) Hero  6) Sections umum  7) Menu  8) Gallery + Lightbox
   9) Review  10) Lokasi  11) Order CTA  12) Footer  13) FAB
   14) Responsive (mobile-first, breakpoint di akhir tiap blok)
   ========================================================= */

/* ---------- 1) DESIGN TOKENS ---------- */
:root {
  /* Warna */
  --color-cream: #F6EEE1;
  --color-cream-soft: #FBF6EE;
  --color-white: #FFFFFF;
  --color-espresso: #2E2016;
  --color-coffee: #5C3D2A;
  --color-coffee-light: #8A6544;
  --color-accent: #C97B3F;
  --color-accent-dark: #A85F2A;
  --color-gold: #D8A657;
  --color-border: rgba(46, 32, 22, 0.1);

  /* Tipografi */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;

  /* Radius & Bayangan */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 10px 30px rgba(46, 32, 22, 0.08);
  --shadow-strong: 0 20px 45px rgba(46, 32, 22, 0.16);

  /* Layout */
  --container-width: 1180px;
  --section-padding: 88px 0;
  --nav-height: 76px;
}

/* ---------- 2) RESET ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--color-cream-soft);
  color: var(--color-espresso);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-espresso);
  line-height: 1.15;
  font-weight: 600;
}

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* ---------- 3) UTILITIES ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: var(--section-padding); }
.section--muted { background: var(--color-cream); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--color-accent-dark);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  margin-bottom: 12px;
}

.section__lead {
  max-width: 560px;
  color: var(--color-coffee);
  font-size: 1rem;
  margin-bottom: 40px;
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn--accent {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(201, 123, 63, 0.35);
}
.btn--accent:hover { background: var(--color-accent-dark); }

.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.75);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.15); }

.btn--sm { padding: 10px 20px; min-height: 40px; font-size: 0.85rem; }
.btn--lg { padding: 16px 36px; min-height: 54px; font-size: 1.02rem; }

/* Coffee-cup brand icon (signature motif: cup + gentle animated steam) */
.cup-body, .cup-handle, .cup-base { color: currentColor; }
.steam {
  transform-origin: bottom center;
  animation: steam-rise 3.2s ease-in-out infinite;
  opacity: 0.75;
}
.steam-2 { animation-delay: 0.9s; }
@keyframes steam-rise {
  0%   { transform: translateY(2px) scaleY(0.9); opacity: 0.2; }
  40%  { opacity: 0.8; }
  100% { transform: translateY(-4px) scaleY(1.05); opacity: 0; }
}

/* ---------- 4) NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 500;
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.is-scrolled {
  background: rgba(251, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(46, 32, 22, 0.08);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand__mark { color: var(--color-accent); display: inline-flex; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--color-espresso);
}

.nav-menu {
  display: none;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-espresso);
  position: relative;
  padding: 6px 2px;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.is-active::after { width: 100%; }

.nav-order-btn { margin-left: 8px; }

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}
.hamburger span {
  width: 22px;
  height: 2px;
  background: var(--color-espresso);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
@media (max-width: 899px) {
  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--color-cream-soft);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 26px;
    box-shadow: 0 12px 24px rgba(46, 32, 22, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link { padding: 12px 6px; border-bottom: 1px solid var(--color-border); }
  .nav-order-btn { margin: 12px 0 0; width: 100%; }
}

@media (min-width: 900px) {
  .nav-menu { display: flex; }
  .hamburger { display: none; }
}

/* ---------- 5) HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--color-white);
}

.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,32,22,0.55) 0%, rgba(46,32,22,0.62) 55%, rgba(46,32,22,0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: var(--nav-height);
}

.hero__mark { color: var(--color-cream); margin-bottom: 14px; }

.hero__title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  color: var(--color-white);
  margin-bottom: 14px;
}

.hero__tagline {
  max-width: 520px;
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--color-cream);
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.hero__wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: 1;
  line-height: 0;
}
.hero__wave svg { width: 100%; height: 70px; display: block; }
.hero__wave path { fill: var(--color-cream-soft); }

/* ---------- 7) MENU ---------- */
.menu-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.filter-btn {
  padding: 10px 20px;
  min-height: 42px;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-coffee);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid var(--color-border);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.filter-btn:hover { transform: translateY(-1px); }
.filter-btn.is-active {
  background: var(--color-espresso);
  color: var(--color-cream);
  border-color: var(--color-espresso);
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.menu-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-strong);
}

.menu-card__img-wrap {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.menu-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.menu-card:hover .menu-card__img { transform: scale(1.06); }

.menu-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.menu-card__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.menu-card__name {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
}

.menu-card__price {
  font-weight: 800;
  color: var(--color-accent-dark);
  white-space: nowrap;
  font-size: 0.98rem;
}

.menu-card__desc {
  color: var(--color-coffee);
  font-size: 0.92rem;
  flex: 1;
}

.menu-card__order {
  align-self: flex-start;
  margin-top: 6px;
  padding: 9px 18px;
  min-height: 38px;
  font-size: 0.82rem;
  border-radius: 999px;
  background: var(--color-cream);
  color: var(--color-espresso);
  font-weight: 700;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.menu-card__order:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

@media (min-width: 560px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .menu-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 8) GALLERY + LIGHTBOX ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(46,32,22,0) 55%, rgba(46,32,22,0.55) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.gallery-item__label {
  position: absolute;
  left: 14px; bottom: 12px;
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 1;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item:hover::after,
.gallery-item:hover .gallery-item__label { opacity: 1; transform: translateY(0); }

@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-item:nth-child(3n+1) { grid-row: span 2; aspect-ratio: 1 / 2.1; }
}
@media (min-width: 1000px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 14, 9, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  padding: 20px;
}
.lightbox.is-open { opacity: 1; visibility: visible; }

.lightbox__img {
  max-width: min(900px, 92vw);
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-strong);
}

.lightbox__caption {
  position: absolute;
  bottom: 30px;
  left: 0; right: 0;
  text-align: center;
  color: var(--color-cream);
  font-size: 0.9rem;
}

.lightbox__close {
  position: absolute;
  top: 18px; right: 20px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  font-size: 1.6rem;
  line-height: 1;
  transition: background-color 0.2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  font-size: 1rem;
  transition: background-color 0.2s ease;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }

@media (max-width: 560px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: 8px; }
  .lightbox__next { right: 8px; }
}

/* ---------- 9) REVIEW ---------- */
.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.review-card {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card__stars {
  color: var(--color-gold);
  font-size: 1.05rem;
  letter-spacing: 2px;
}

.review-card__text {
  color: var(--color-coffee);
  font-size: 0.96rem;
  flex: 1;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--color-cream);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-shrink: 0;
}

.review-card__name { font-weight: 700; font-size: 0.92rem; }
.review-card__role { font-size: 0.8rem; color: var(--color-coffee-light); }

@media (min-width: 640px) {
  .review-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .review-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 10) LOKASI ---------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

.location-info {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.location-info h3 {
  font-size: 1.3rem;
}

.location-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.location-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--color-coffee);
  font-size: 0.94rem;
}
.location-icon { font-size: 1.1rem; }

.location-info .btn { align-self: flex-start; }

.location-map {
  overflow: hidden;
  min-height: 320px;
}
.location-map iframe { width: 100%; height: 100%; min-height: 320px; }

@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1fr 1.2fr; }
  .location-map { min-height: unset; }
  .location-map iframe { min-height: unset; }
}

/* ---------- 11) ORDER CTA ---------- */
.order-cta {
  background: var(--color-espresso);
  color: var(--color-cream);
  text-align: center;
}
.order-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 620px;
}
.order-cta__mark { color: var(--color-accent); margin-bottom: 16px; }
.order-cta__title {
  color: var(--color-white);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}
.order-cta__text {
  color: var(--color-cream);
  opacity: 0.85;
  margin-bottom: 30px;
}

/* ---------- 12) FOOTER ---------- */
.footer {
  background: var(--color-coffee);
  color: var(--color-cream);
  padding: 56px 0 0;
}

.footer__inner { padding-bottom: 40px; }

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
}
.footer__brand .brand__mark { color: var(--color-gold); }
.footer__brand .brand__name { color: var(--color-white); }

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

.footer__col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: 10px;
  font-family: var(--font-body);
  letter-spacing: 0.02em;
}
.footer__col p {
  font-size: 0.9rem;
  color: rgba(246, 238, 225, 0.82);
  line-height: 1.7;
}
.footer__col a:hover { color: var(--color-gold); }

.footer__bottom {
  border-top: 1px solid rgba(246, 238, 225, 0.14);
  padding: 20px 0;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(246, 238, 225, 0.65);
}

@media (min-width: 700px) {
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 13) FLOATING WHATSAPP BUTTON ---------- */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px rgba(37, 211, 102, 0.45);
  z-index: 400;
  transition: transform 0.2s ease;
}
.fab-wa:hover { transform: translateY(-3px) scale(1.04); }

/* ---------- General section container widening on large screens ---------- */
@media (min-width: 1200px) {
  :root { --section-padding: 110px 0; }
}
