/* ============================
   MILESTONE SEKUWA — Improved Style
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500&display=swap');

:root {
  --bg: #1a1008;
  --surface: #241a0d;
  --surface2: #2e2010;
  --gold: #c8922a;
  --gold2: #e8b84b;
  --text: #f5ede0;
  --text-muted: #a89070;
  --text-dim: #6b5540;
  --border: rgba(200,146,42,0.15);
  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body: 'Inter', sans-serif;
  --ease: cubic-bezier(0.25,0.46,0.45,0.94);
  --nav-h: 70px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--ff-body); background: var(--bg); color: var(--text); font-weight: 300; line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }

/* POPUP */
#wrapper { position: relative; }
.overlayment { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 777; }
.overlayment.active { display: block; }
.popup-container { display: none; position: fixed; inset: 0; z-index: 999; justify-content: center; align-items: center; }
.popup-container.active { display: flex; }
.popup {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 480px; width: 90%;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
#popup_close { position: absolute; top: 1rem; right: 1rem; font-size: 1.3rem; cursor: pointer; color: var(--text-muted); transition: color 0.2s; }
#popup_close:hover { color: var(--gold); }
.mystery-container { margin-top: 1rem; }
.card { width: 220px; height: 280px; perspective: 800px; margin: 0 auto; cursor: pointer; }
.card-inner { width: 100%; height: 100%; position: relative; transition: transform 0.7s var(--ease); transform-style: preserve-3d; }
.card:hover .card-inner { transform: rotateY(180deg); }
.card-face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1.5rem; }
.card-face-front { background: linear-gradient(135deg, var(--gold) 0%, #8b5e1a 100%); }
.card-face-front h2 { color: #fff; font-family: var(--ff-display); font-size: 1.1rem; font-weight: 600; }
.card-face-back { background: var(--surface); border: 1px solid var(--border); transform: rotateY(180deg); }
.card-face-back h2, .card-face-back h3 { font-family: var(--ff-display); color: var(--gold); }
.card-face-back h2 { font-size: 1.4rem; }
.card-face-back h3 { font-size: 0.85rem; color: var(--text-muted); }
.card-img { width: 100px; height: auto; border-radius: 8px; }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(26,16,8,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav ul { display: flex; align-items: center; justify-content: space-between; height: 100%; padding: 0 2rem; flex-wrap: nowrap; }
.nav li { list-style: none; }
.nav .logo img { height: 44px; width: auto; }
.nav-desktop-links { display: flex; align-items: center; gap: 2rem; }
.nav-desktop-links a { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); transition: color 0.2s; }
.nav-desktop-links a:hover, .nav-desktop-links a.active { color: var(--gold); }
.nav-icons { display: flex; align-items: center; gap: 1rem; }
.nav-icons i { font-size: 1.1rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.nav-icons i:hover { color: var(--gold); }
.cart-container { position: relative; }
.counter { position: absolute; top: -8px; right: -8px; background: var(--gold); color: #111; font-size: 0.6rem; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; display: none; }
#iconOpen, #iconClose { display: none; }
.hide { display: block; }

/* TIMER */
#timer {
  display: flex; gap: 1.5rem; justify-content: center; align-items: center;
  background: var(--gold);
  padding: 0.6rem 1rem;
  margin-top: var(--nav-h);
  font-size: 0.8rem;
  font-weight: 500;
  color: #1a1008;
  letter-spacing: 0.05em;
  flex-wrap: wrap;
}
#timer #content { font-weight: 600; }
#timer span { background: rgba(0,0,0,0.15); padding: 0.2rem 0.6rem; border-radius: 4px; }

/* SLIDER */
.slider-container { position: relative; height: 90vh; min-height: 500px; overflow: hidden; }
.slide { display: none; position: absolute; inset: 0; background-size: cover; background-position: center; }
.slide.active { display: flex; align-items: center; justify-content: center; }
.slide1 { background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.6)), url('images/background.jpg'); }
.slide2 { background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.6)), url('images/background-grill-image.jpg'); }
.slide3 { background-image: linear-gradient(rgba(0,0,0,0.45),rgba(0,0,0,0.6)), url('images/background-pork-image.jpg'); }
.cta-wrapper { text-align: center; padding: 2rem; }
.cta-wrapper h1 { font-family: var(--ff-display); font-size: clamp(2.5rem,6vw,5rem); font-weight: 700; color: var(--gold); letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.cta-wrapper h1.white { font-size: clamp(1.2rem,3vw,2rem); color: #fff; font-weight: 400; font-style: italic; }
.cta-wrapper .slide-btn { display: inline-flex; margin-top: 2rem; padding: 0.85rem 2.5rem; background: var(--gold); color: #111; border-radius: 2px; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; transition: background 0.2s; }
.cta-wrapper .slide-btn:hover { background: var(--gold2); }
#hero_prev, #hero_next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 10; font-size: 2rem; color: rgba(255,255,255,0.6); cursor: pointer; padding: 0.5rem; transition: color 0.2s; background: none; border: none; }
#hero_prev { left: 1.5rem; }
#hero_next { right: 1.5rem; }
#hero_prev:hover, #hero_next:hover { color: var(--gold); }
.dot-container { display: flex; gap: 0.5rem; justify-content: center; padding: 1rem; }
.dots { width: 8px; height: 8px; border-radius: 50%; background: var(--text-dim); cursor: pointer; transition: background 0.2s; }
.dots.active { background: var(--gold); }

/* PRODUCT CAROUSEL SECTION */
.section-title-wrap { text-align: center; padding: 4rem 2rem 2rem; }
.section-title-wrap h2 { font-family: var(--ff-display); font-size: 2.5rem; font-weight: 600; color: var(--gold); margin-bottom: 0.5rem; }
.section-title-wrap p { color: var(--text-muted); font-size: 0.95rem; }
.section-divider { width: 60px; height: 2px; background: var(--gold); margin: 1rem auto; }

.product-container { padding: 1rem 2rem 3rem; max-width: 1200px; margin: 0 auto; }
.owl-carousel { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.owl-carousel::-webkit-scrollbar { display: none; }
.product-box {
  min-width: 240px; flex: 0 0 240px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  scroll-snap-align: start;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}
.product-box:hover { transform: translateY(-6px); border-color: var(--gold); }
.product-box img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; margin: 0 auto 1rem; filter: brightness(0.9) saturate(1.1); }
.product-box p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.4; }
.price { font-family: var(--ff-display); font-size: 1.5rem; color: var(--gold); margin-bottom: 1rem; }
.price::before { content: '$'; font-size: 1rem; }
.btn-main { padding: 0.6rem 1.5rem; background: var(--gold); color: #111; border: none; border-radius: 2px; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.btn-main:hover { background: var(--gold2); }

/* FOOTER */
.footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 2rem 2rem; text-align: center; }
.footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; letter-spacing: 0.1em; text-transform: uppercase; }
.social-icons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 1.5rem; }
.social-icons a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.85rem; transition: all 0.2s; }
.social-icons a:hover { border-color: var(--gold); color: var(--gold); }
#date { color: var(--text-dim); font-size: 0.75rem; margin-top: 1rem; }
.back-to-portfolio { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.5rem; padding: 0.6rem 1.25rem; border: 1px solid var(--border); border-radius: 2px; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); transition: all 0.2s; }
.back-to-portfolio:hover { border-color: var(--gold); color: var(--gold); }

/* INNER PAGES SHARED */
.page-content { padding-top: var(--nav-h); }
.page-banner { height: 40vh; min-height: 280px; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; text-align: center; }
.page-banner h1 { font-family: var(--ff-display); font-size: clamp(2.5rem,5vw,4rem); color: #fff; font-weight: 700; text-shadow: 0 2px 20px rgba(0,0,0,0.5); }

/* MENU PAGE */
.menu-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem; }
.menu-section h2 { font-family: var(--ff-display); font-size: 2rem; color: var(--gold); margin-bottom: 2rem; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.menu-item { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.menu-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.menu-item img { width: 100%; height: 180px; object-fit: cover; filter: saturate(1.1); }
.menu-item-info { padding: 1.25rem; }
.menu-item-info h3 { font-family: var(--ff-display); font-size: 1.15rem; color: var(--text); margin-bottom: 0.35rem; }
.menu-item-info p { font-size: 0.82rem; color: var(--text-muted); }
.menu-price { font-family: var(--ff-display); font-size: 1.2rem; color: var(--gold); margin-top: 0.5rem; }

/* ABOUT PAGE */
.about-section { max-width: 900px; margin: 0 auto; padding: 4rem 2rem; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.about-img { border-radius: 8px; overflow: hidden; }
.about-img img { width: 100%; border-radius: 8px; filter: saturate(0.9); }
.about-text h2 { font-family: var(--ff-display); font-size: 2.5rem; color: var(--gold); margin-bottom: 1rem; font-weight: 600; }
.about-text p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }

/* CONTACT PAGE */
.contact-section { max-width: 700px; margin: 0 auto; padding: 4rem 2rem; }
.contact-section h2 { font-family: var(--ff-display); font-size: 2.5rem; color: var(--gold); margin-bottom: 2rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 4px;
  padding: 0.85rem 1rem; color: var(--text); font-family: var(--ff-body); font-size: 0.9rem;
  transition: border-color 0.2s; resize: vertical;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--text-dim); }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form button { align-self: flex-start; padding: 0.75rem 2rem; background: var(--gold); color: #111; border: none; border-radius: 2px; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.contact-form button:hover { background: var(--gold2); }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .nav-desktop-links { display: none; }
  #iconOpen { display: block !important; color: var(--text-muted); }
}
