:root {
  --bg-cream: #f5ede0;
  --leaf: #2f7a45;
  --leaf-dark: #1f5a33;
  --sun: #ffd066;
  --sky: #87cde8;
  --sand: #f2e7d5;
  --accent: #ff7f50;
  --text: #24492f;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Inter:wght@300;400;600&display=swap');

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; color: var(--text); }
body { background: var(--bg-cream); }

.wrapper { display: flex; flex-direction: column; min-height: 100vh; }

/* Top navigation with brand on left and links on right */
nav {
  background: var(--leaf-dark);
  color: var(--sun);
  padding: 16px 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  border: 3px solid var(--sun);
  border-bottom: 3px solid var(--sun);
  margin: 0 5% 0 5%;
  border-radius: 0 0 12px 12px;
}
.nav-inner { max-width: none; margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand a { color: var(--sun); font-family: 'Playfair Display', serif; font-size: 1.25rem; text-decoration: none; font-weight: 700; }
.nav-links { display: flex; gap: 8px; align-items: center; }
.nav-links a { margin: 0 6px; text-decoration: none; color: var(--sun); font-weight: 600; font-size: 0.95rem; text-transform: uppercase; padding: 8px 14px; border-radius: 8px; transition: background 0.18s, transform 0.12s; }
.nav-links a:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); color: var(--sun); }

/* Responsive menu toggle (mobile) */
.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--sun); cursor: pointer; }

/* Admin toggle in nav */
.admin-btn { background: transparent; border: 1px solid rgba(0,0,0,0.06); color: var(--leaf-dark); padding: 6px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.admin-btn:hover { background: rgba(0,0,0,0.03); }

/* Admin toolbar default styling (created dynamically) */
#admin-toolbar { display: none; gap: 8px; }
#admin-toolbar .btn { padding: 8px 12px; }


/* Hero: softer card with subtle border and texture */
.hero { padding: 44px 18px; text-align: center; background: linear-gradient(90deg, rgba(242, 255, 126, 0.98) 0%, rgba(242, 255, 126, 0.98) 100%); border-radius: 14px; border: 1px solid rgba(0,0,0,0.12); width: 20%; margin: 16px auto 0; font-family: 'Playfair Display', serif; }
.hero h1 { font-size: 2.2rem; margin: 0 0 0.4rem; color: var(--leaf-dark); letter-spacing: -0.5px; }
.hero p { margin: 0; color: rgba(36,73,47,0.95); font-family: 'Inter', sans-serif; font-size: 1rem; }
.hero .hero-cta { margin-top: 18px; }

.btn { display: inline-block; background: linear-gradient(180deg, rgba(47, 122, 69, 0.8) 0%, rgba(31, 90, 51, 0.8) 100%); color: #fff; padding: 12px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; box-shadow: 0 6px 18px rgba(0,0,0,0.12); transition: transform 0.12s, box-shadow 0.12s; touch-action: manipulation; border: 1px solid rgba(0,0,0,0.06); }
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.12); }

/* outlined button used on hero */
.btn-outline { display: inline-block; background: transparent; color: var(--leaf-dark); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; border: 1px solid rgba(36,73,47,0.14); transition: background 0.12s, transform 0.12s; }
.btn-outline:hover { background: rgba(47,122,69,0.06); }

.content { padding: 26px; background: #fff; border-radius: 12px; margin: 28px auto; max-width: 920px; width: 92%; box-shadow: 0 10px 28px rgba(0,0,0,0.06); border: 1px solid rgba(0,0,0,0.12); }

/* Accent card: subtle black border with a colored top stripe */
.accent-card { position: relative; border: 1px solid rgba(0,0,0,0.12); border-radius: 12px; background-clip: padding-box; }
.accent-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: var(--sun); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.accent-card { padding-top: 14px; }
.accent-card.accent-card--leaf::before { background: var(--leaf); }
.accent-card.accent-card--sky::before { background: var(--sky); }
.accent-card.accent-card--sand::before { background: var(--sand); }

footer {
  background: var(--leaf-dark);
  color: var(--sun);
  padding: 40px 24px 32px 24px;
  position: relative;
  margin: 20px 5% 0 5%;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.1);
  border: 3px solid var(--sun);
}
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.footer-slogan { color: var(--sun); font-family: 'Playfair Display', serif; font-size: 1.05rem; margin: 0; }
.footer-copy { color: rgba(255,208,102,0.95); display: block; margin-top: 8px; }

/* Gallery */
.gallery-wrapper { display: flex; justify-content: center; align-items: center; gap: 20px; flex-wrap: wrap; }
.nav-arrow { background: none; border: none; cursor: pointer; font-size: 2rem; color: var(--leaf-dark); }
.main-image { width: 320px; cursor: pointer; border-radius: 12px; box-shadow: 0 10px 30px rgba(34,41,30,0.12); object-fit: cover; height: 250px; max-width: 100%; border: 1px solid rgba(0,0,0,0.06); }
.side-image { width: 150px; opacity: 0.7; border-radius: 10px; box-shadow: 0 6px 18px rgba(34,41,30,0.12); object-fit: cover; height: 160px; max-width: 100%; border: 1px solid rgba(0,0,0,0.06); }
.main-image:hover, .side-image:hover { transform: scale(1.03); transition: transform 0.18s; opacity: 1; }
#image-description { text-align: center; margin-top: 18px; font-size: 1.1rem; color: var(--text); }

/* Links */
a { color: var(--leaf-dark); }
a:hover { color: var(--accent); }

@media (max-width: 880px) {
  .nav-inner { padding: 0 12px; }
  .nav-links { gap: 6px; }
  .hero h1 { font-size: 2rem; }
}

@media (max-width: 640px) {
  .hero { padding: 28px 14px; margin: 12px auto 0; border-radius: 12px; }
  .hero h1 { font-size: 1.6rem; }
  .hero p { font-size: 0.98rem; }
  .hero .hero-cta { margin-top: 12px; }
  .hero .hero-cta a { display: block; margin: 8px 0; }
  .gallery-wrapper { gap: 12px; }
  .main-image { width: 100%; height: auto; }
  .side-image { display: none; }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  nav { position: relative; margin: 0 0 0 0; }
  .nav-links { position: absolute; left: 12px; right: 12px; top: 58px; background: rgba(255,255,255,0.95); padding: 10px; border-radius: 8px; box-shadow: 0 8px 30px rgba(36,73,47,0.06); flex-direction: column; align-items: stretch; gap: 6px; z-index: 100; }
  .nav-links.open { display: flex; }
  .nav-links.open a { display: block; width: 100%; padding: 12px 12px; text-align: center; border-radius: 8px; color: var(--leaf-dark); }
  .content { padding: 14px; margin: 12px auto; width: 96%; }
  footer { margin: 16px 0 0 0; border-radius: 0; padding: 30px 16px 24px; }
  .features { padding: 0 12px; margin: 12px auto; }
  .feature-card img { height: 120px; }
}

/* Menu cards */
.menu-sections { display: flex; flex-direction: column; gap: 20px; }
.menu-section h3 { margin: 0 0 8px 0; color: var(--leaf-dark); font-family: 'Playfair Display', serif; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.menu-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); display: flex; flex-direction: column; border: 1px solid rgba(0,0,0,0.12); }
.menu-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.menu-card .card-body { padding: 12px; }
.menu-card .card-title { font-weight: 700; color: var(--leaf-dark); margin-bottom: 6px; font-size: 1.05rem; }
.menu-card .card-desc { color: rgba(36,73,47,0.8); font-size: 0.95rem; line-height: 1.3; }

@media (max-width: 640px) {
  .menu-card img { height: 140px; }
  .menu-grid { gap: 12px; }
}

/* Home-specific hero with background image and overlay */
.hero.home {
  background-image: url('images/unnamed-removebg-preview.png');
  background-size: cover;
  background-position: center;
  min-height: 350px;   /* keeps the image visible */
}
.hero.home h1 { color: #000; text-shadow: 0 3px 18px rgba(255,255,255,0.8); }
.hero.home p { color: rgba(0,0,0,0.9); }

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  text-align: center;
  margin: 0;
  padding-top: 120px;
  color: #000;
  text-shadow: 0 4px 20px rgba(255,255,255,0.8);
}

/* Carousel styles */
.home-carousel { position: relative; max-width: 1100px; margin: 18px auto; overflow: hidden; border-radius: 12px; }
.carousel-track { display: flex; transition: transform 0.6s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.carousel-item { min-width: 100%; flex: 0 0 100%; display: flex; gap: 12px; align-items: center; background: #fff; will-change: transform; border: 1px solid rgba(0,0,0,0.08); border-radius: 10px; }
.carousel-item img { width: 50%; height: 260px; object-fit: cover; display: block; border-radius: 8px 0 0 8px; backface-visibility: hidden; }
.carousel-item .feature-body { padding: 18px; width: 50%; }
.carousel-item .feature-title { font-size: 1.25rem; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.7); color: white; border: 2px solid white; width: 50px; height: 50px; border-radius: 999px; font-size: 1.5rem; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.3); z-index: 10; transition: all 0.2s ease; }
.carousel-btn:hover { background: rgba(0,0,0,0.9); transform: translateY(-50%) scale(1.1); }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }
.carousel-dots { text-align: center; margin-top: 10px; }
.carousel-dots button { background: rgba(36,73,47,0.18); border: none; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px; cursor: pointer; }
.carousel-dots button.active { background: var(--leaf-dark); }

@media (max-width:880px) {
  .carousel-item img { width: 45%; height: 220px; }
  .carousel-btn { width: 40px; height: 40px; font-size: 1.2rem; }
}

@media (max-width:640px) {
  .carousel-item { flex-direction: column; gap: 0; padding: 0; }
  .carousel-item img { width: 100%; height: 160px; border-radius: 8px 8px 0 0; }
  .carousel-item .feature-body { width: 100%; padding: 14px; }
  .carousel-item .feature-title { font-size: 1.1rem; }
  .carousel-btn { width: 32px; height: 32px; font-size: 0.9rem; background: rgba(0,0,0,0.6); color: white; border: 1px solid white; top: 12px; transform: none; }
  .carousel-btn.prev { left: 8px; }
  .carousel-btn.next { right: 8px; }
  .home-carousel { margin: 14px auto; }
}

/* Modal styles */
.modal { display: none; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.9); }
.modal-content { margin: auto; display: block; max-width: 90%; max-height: 90%; width: auto; height: auto; }
.close { position: absolute; top: 15px; right: 35px; color: #f1f1f1; font-size: 40px; font-weight: bold; cursor: pointer; }
.close:hover, .close:focus { color: #bbb; text-decoration: none; }

/* Light outlined button for dark hero backgrounds */
.btn-outline--light { display: inline-block; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.9); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; margin-right: 10px; }
.btn-outline--light:hover { background: rgba(255,255,255,0.06); }

/* Dark outlined button for light backgrounds (default `.btn-outline`) */
.btn-outline { display: inline-block; background: transparent; color: var(--leaf-dark); border: 1px solid rgba(36,73,47,0.12); padding: 10px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; margin-right: 10px; }
.btn-outline:hover { background: rgba(47,122,69,0.06); }

/* Home features (small promos under hero) */
.features { max-width: 1100px; margin: 18px auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 0 18px; }
.feature-card { background: linear-gradient(180deg,#ffffff, #fffdf8); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); overflow: hidden; display: flex; flex-direction: column; align-items: stretch; border: 1px solid rgba(0,0,0,0.12); }
.feature-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.feature-card .feature-body { padding: 12px; }
.feature-card .feature-title { font-weight: 700; color: var(--leaf-dark); margin-bottom: 6px; }
.feature-card .feature-desc { color: rgba(36,73,47,0.8); font-size: 0.95rem; line-height: 1.3; }

@media (max-width:640px) {
  .feature-card img { height: 120px; }
}

/* Admin-only helper */
.admin-only { display: none; }
.admin-only.show { display: block !important; }

/* Lemonade card special styling */
.lemonade-card .card-media { position: relative; overflow: hidden; }
.lemonade-card .card-media img { height: 220px; object-fit: cover; display: block; width: 100%; filter: saturate(1.05) contrast(1.02); }
.lemonade-card .badge { position: absolute; left: 12px; top: 12px; background: linear-gradient(90deg, rgba(255,208,102,0.95), rgba(255,127,80,0.9)); color: #fff; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 0.85rem; box-shadow: 0 6px 18px rgba(34,41,30,0.12); }
.lemonade-card .card-body { padding-top: 12px; }

.big-text {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--leaf-dark);
  font-family: 'Playfair Display', serif;
}
.menu-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 700;
  color: var(--leaf-dark);
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}
.trailer-img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(34,41,30,0.12);
  border: 1px solid rgba(0,0,0,0.06);
}