/* =========================
   Cafelito Robot Cafe — Menu
   Full page CSS (navbar included for parity with index)
   Theme: Light Roast
   ========================= */

:root {
  --nav-height: 90px;
  --brand-blue: #f2e4d5;      /* light roast */
  --brand-dark: #1d1b1a;      /* deep brown text */
  --accent: #d29f71;          /* caramel accent */
  --white: #ffffff;
  --divider: rgba(0, 0, 0, 0.12);
  --menu-card-bg: #fefaf6;    /* coffee cream background */
  --menu-card-hover: #f2e4d5; /* lighter roast for hover */
  --shadow-sm: 0 2px 10px rgba(0,0,0,.06);
  --shadow-md: 0 10px 28px rgba(0,0,0,.10);
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--menu-card-bg);
  color: var(--brand-dark);
  min-height: 100vh;
  width: 100vw;
  overflow-x: hidden;
}

/* =========================
   NAVBAR (matches index)
   ========================= */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: var(--nav-height);
  background: var(--brand-blue);
  z-index: 1000;
  padding: 0 1vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo-link { display: flex; align-items: center; height: 75px; }
.logo-img  { height: 75px; width: 75px; object-fit: contain; border-radius: 50%; }

.navbar-left { flex: 1; display: flex; align-items: center; }
.navbar-right { flex: 1; }

.navbar-center {
  flex: 2;
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}
.navbar-center li { display: inline-block; }
.navbar-center a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--brand-dark);
  border-bottom: 2.5px solid transparent;
  transition: color 0.2s, border 0.2s;
  padding: 5px 6px 3px 6px;
  min-height: 32px;
  display: inline-block;
  letter-spacing: 0.01em;
}
.navbar-center a:hover,
.navbar-center a.active {
  color: var(--accent);
  border-bottom: 2.5px solid var(--accent);
}

/* Dropdown */
.more-dropdown { position: relative; display: inline-block; }
.more-link { cursor: pointer; }
.chevron { font-size: 0.8em; vertical-align: middle; color: #a2886c; }

.dropdown-content {
  display: none;
  position: absolute;
  background: var(--brand-blue);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 0.5rem 0;
  left: 50%;
  transform: translateX(-50%);   /* centered shrink-wrap */
  border-radius: 0 0 16px 16px;
  text-align: center;
  white-space: nowrap;
}
.more-dropdown:hover .dropdown-content,
.more-dropdown:focus-within .dropdown-content { display: block; }
.dropdown-content li { list-style: none; }
.dropdown-content a {
  color: var(--brand-dark);
  padding: 0.5rem 1.2rem;
  text-decoration: none;
  display: block;
  font-size: 1rem;
  transition: background 0.16s, color 0.16s;
}
.dropdown-content a:hover { background: var(--menu-card-hover); color: var(--accent); }

/* Mobile nav */
.navbar-mobile-menu { display: none; }
.hamburger {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  padding: 12px 20px;
  color: var(--brand-dark);
  background: none;
  border: none; outline: none;
  z-index: 1200;
  transition: color 0.2s;
}
.hamburger:active, .hamburger:focus { color: var(--accent); }

.mobile-nav-links {
  display: none;
  flex-direction: column;
  background: var(--brand-blue);
  position: absolute;
  top: var(--nav-height);
  right: 0;
  white-space: nowrap;
  box-shadow: 0 10px 24px #d29f7118;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1200;
  border-top: 2px solid var(--accent);
  padding: 0.5rem 0 1rem 0;
  animation: fadeInDown 0.24s;
}
.mobile-nav-links a {
  padding: 1.1rem 1.7rem;
  text-decoration: none;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.11rem;
  border-bottom: 1px solid var(--divider);
  letter-spacing: 0.01em;
  transition: background 0.18s, color 0.18s;
}
.mobile-nav-links a:last-child { border-bottom: none; }
.mobile-nav-links a:hover, .mobile-nav-links a:focus {
  background: var(--menu-card-hover);
  color: var(--accent);
  border-radius: 12px;
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-18px);}
  to   { opacity: 1; transform: translateY(0);}
}
/* Responsive navbar */
@media (max-width: 950px) {
  .navbar { padding: 0 2vw; }
  .navbar-center, .navbar-right { display: none !important; }
  .navbar-mobile-menu {
    display: flex; align-items: center; justify-content: flex-end;
    width: auto; height: var(--nav-height); position: relative; flex: 1; z-index: 1300;
  }
  .hamburger {
    display: block; font-size: 2.8rem;
    padding: 18px 20px 18px 18px; margin-right: 8px;
    color: var(--brand-dark);
    border-radius: 14px; transition: background 0.13s, color 0.13s;
  }
  .hamburger:active, .hamburger:focus { background: var(--menu-card-hover); color: var(--accent); }
}
@media (min-width: 951px) {
  .navbar-mobile-menu { display: none !important; }
  .hamburger { display: none !important; }
}

/* =========================
   MENU HERO
   ========================= */
.menu-hero {
  margin-top: var(--nav-height);
  text-align: center;
  padding: 2.4rem 1rem 1.2rem;
}
.menu-hero h1 {
  color: var(--brand-dark);
  font-size: 2.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}
.menu-subtitle {
  color: #4d4036;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
}

/* =========================
   MENU SECTIONS / LIST
   ========================= */
.menu-section {
  max-width: 1120px;
  margin: 1.5rem auto 2.5rem auto;
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.06);
  padding: 2.0rem 1.6rem;
}
.menu-section h2 {
  color: var(--brand-dark);
  text-align: left;
  font-size: 1.28rem;
  margin: 0 0 1.0rem 0;
  font-weight: 800;
  border-left: 5px solid var(--accent);
  padding-left: 12px;
  letter-spacing: 0.01em;
}

/* Two-column list that stacks on mobile */
.menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
}
.menu-list li {
  background: var(--menu-card-bg);
  color: var(--brand-dark);
  padding: 0.95em 1.05em;
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.15s, box-shadow 0.18s, transform 0.14s;
}
.menu-list li:hover {
  background: var(--menu-card-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.menu-price {
  float: right;
  color: #a37b56;
  font-weight: 600;
}

/* =========================
   IMAGE GALLERIES
   ========================= */
.drinks-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem 1.2rem;
  margin: 1.2rem 0 2rem 0;
  justify-items: center;
}

/* Card shell */
.menu-img-card {
  background: #fff;
  border: 1px solid var(--divider);
  border-radius: 18px;
  box-shadow: 0 2px 14px rgba(0,0,0,0.10);
  padding: 0.9rem;
  width: 100%;
  max-width: 220px;
  transition: box-shadow 0.15s, transform 0.12s, border-color 0.12s;
  overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.menu-img-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  border-color: rgba(210,159,113,.55);
}

/* Image wrapper & zoom */
.menu-img-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  transform: scale(1);
  transition: transform 0.28s ease;
}
.menu-img-card:hover img {
  transform: scale(1.05); /* subtle zoom on hover */
}

.img-label {
  font-weight: 700;
  text-align: center;
  font-size: 1rem;
  color: #433c34;
  margin-top: 0.55rem;
}

/* Empty cards should keep shape but show nothing */
.menu-img-card.empty {
  min-height: 206px;           /* ~ image height + paddings */
  background: #fff;
  border: 1px dashed rgba(0,0,0,0.08);
  box-shadow: none;
  transition: border-color 0.12s, transform 0.12s;
}
.menu-img-card.empty:hover {
  transform: translateY(-1px);
  border-color: rgba(210,159,113,.35);
}

/* =========================
   FAB (chatbot)
   ========================= */
.chatbot-fab {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 60px; height: 60px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(0,0,0,0.14);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.17s, box-shadow 0.2s, transform 0.1s;
  z-index: 1200;
}
.chatbot-fab:hover { background: #bb7e4a; box-shadow: 0 8px 32px rgba(0,0,0,0.18); }
.chatbot-fab:active { transform: translateY(1px); }
.chatbot-fab svg { display: block; }

/* =========================
   FOOTER
   ========================= */
footer {
  width: 100vw;
  text-align: center;
  background: var(--brand-blue);
  color: var(--brand-dark);
  padding: 1.5rem 0 1.1rem 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  position: relative;
  z-index: 100;
  margin-top: 2.2rem;
}
.footer-content p { margin: 0.2rem 0; line-height: 1.6; }

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 1200px) {
  .drinks-gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .menu-section { padding: 1.4rem 1rem; }
  .menu-list { grid-template-columns: 1fr; gap: 0.7rem 0; }
  .drinks-gallery { grid-template-columns: repeat(2, 1fr); }
  .menu-img-card { max-width: 260px; }
}
@media (max-width: 600px) {
  .navbar { padding: 0 0.4rem; }
  .menu-hero h1 { font-size: 1.7rem; }
  .menu-section h2 { font-size: 1.05rem; padding-left: 8px; }
  .menu-section { padding: 1.0rem 0.4rem; }
  .menu-list li { font-size: 0.97rem; padding: 0.75em 0.8em; }
  .drinks-gallery { grid-template-columns: 1fr; gap: 1rem 0; }
  .menu-img-card { width: 96vw; max-width: 96vw; }
  .chatbot-fab {
    bottom: 16px; right: 16px; width: 48px; height: 48px;
  }
}
