:root {
  --bg-main: linear-gradient(135deg, #b4ff72 0%, #00b894 100%);
  --hero-gradient: linear-gradient(120deg, #d4ff80 0%, #63e6be 100%);
  --text-color: #222;
  --nav-bg: rgba(0, 184, 148, 0.9);
  --nav-height: 64px;
  --snap-gap: 12px;
  --card-bg: #f0f8f0;
  --accent: #00b894;
  --accent-strong: #007a4f;
  --accent-soft: rgba(0, 184, 148, 0.14);
  --social-border: rgba(0, 0, 0, 0.12);
  --social-bg: rgba(0, 0, 0, 0.04);
  --social-color: var(--accent);
}

[data-theme="dark"] {
  --bg-main: linear-gradient(135deg, #0c1a13 0%, #16291f 100%);
  --hero-gradient: radial-gradient(circle at center, #1f3a2e 0%, #0f1e17 100%);
  --text-color: #eee;
  --nav-bg: rgba(0, 184, 148, 0.9);
  --card-bg: #1b3127;
  --accent: #b2ff9e;
  --accent-strong: #005a38;
  --accent-soft: rgba(178, 255, 158, 0.18);
  --social-border: rgba(255, 255, 255, 0.10);
  --social-bg: rgba(255, 255, 255, 0.04);
  --social-color: var(--accent);
}

    *, *::before, *::after {
      box-sizing: border-box;
    }

    html,
    body {
      margin: 0;
      padding: 0;
      width: 100%;
    }

    body {
      font-family: 'Poppins', sans-serif;
      line-height: 1.5;
      background: var(--bg-main);
      color: var(--text-color);
    }

    img,
    picture {
      max-width: 100%;
      display: block;
    }

    .visually-hidden {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .theme-toggle {
      border: none;
      background: none;
      font-size: 1.3rem;
      cursor: pointer;
      color: var(--accent);
      transition: transform 0.3s ease, color 0.3s ease;
      margin-left: 0.5rem;
    }

    .info-icon {
      color: var(--accent-strong);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      font-size: 1.05rem;
    }

    [data-theme="dark"] .info-icon {
      color: var(--accent);
    }

    .order-info .info-list li {
      display: flex;
      align-items: flex-start;
      gap: 0.5rem;
      margin-bottom: 0.35rem;
    }

    .order-info .info-list i {
      font-size: 1rem;
    }

    .theme-toggle:hover,
    .theme-toggle:focus-visible {
      transform: rotate(15deg);
      color: var(--accent-strong);
      outline: none;
    }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      text-align: center;
      background: var(--hero-gradient);
      transition: background 0.6s ease;
      /* Balance the top padding from snap-section to center content vertically */
      padding-bottom: var(--nav-height);
    }

    .hero h1 {
      font-weight: 700;
      font-size: 2.8rem;
      color: var(--text-color);
    }

    .cta-btn {
      margin: 10px;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid transparent;
  }

  .cta-btn-primary {
  background: var(--accent);
  color: #fff;
  }

  .cta-btn-primary:hover {
  opacity: 0.85;
  transform: translateY(-2px);
  }

  .cta-btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
  }

  .cta-btn-outline:hover {
  background: var(--accent);
  color: #fff;
  }

  body[data-theme="dark"] .cta-btn-primary {
    background: var(--accent);
    color: #0a1f16;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  }

  body[data-theme="dark"] .cta-btn-primary:hover {
    filter: brightness(0.95);
  }

  .menu-section {
  padding: 80px 0;
  background: var(--card-bg);
  color: var(--text-color);
  transition: background 0.6s ease, color 0.4s ease;
  }

  body[data-theme="light"] .menu-section {
    background: transparent;
  }

  body[data-theme="dark"] .menu-section {
    background: var(--card-bg);
    color: #fff;
  }

  .gallery-section {
  padding: 80px 0;
  background: transparent;
  }

  .disclaimer-note {
  font-size: 0.92rem;
  color: rgba(0, 0, 0, 0.64);
  }

  [data-theme="dark"] .disclaimer-note {
  color: rgba(255, 255, 255, 0.82);
  }

  .gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  }

  .gallery-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  }

  .gallery-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
  }

  .gallery-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.4s ease;
  }

  .gallery-card:hover img {
  transform: scale(1.03);
  }

  .gallery-card figcaption {
  padding: 1.25rem 1.5rem;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  }

  .gallery-card h5 {
  font-weight: 700;
  }

  .gallery-card p {
  margin-bottom: 0;
  opacity: 0.85;
  }

  @media (max-width: 576px) {
  .gallery-card img {
  height: 200px;
  }
  }

  [data-theme="dark"] .menu-section {
  color: #fff;
  }

  [data-theme="dark"] .menu-card h5,
  [data-theme="dark"] .menu-card p {
  color: #fff !important;
  }

  .menu-card {
  border-radius: 15px;
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
  }

  .menu-card:hover {
  transform: translateY(-5px);
  }

  .menu-card img {
  height: 220px;
  width: 100%;
  object-fit: cover;
  }

  .about,
  .contact,
  .order-info {
  padding: 80px 0;
  }

  .about {
  background: transparent;
  }

  .order-info {
    background: linear-gradient(135deg, rgba(180, 255, 114, 0.55) 0%, rgba(0, 184, 148, 0.20) 100%);
    color: var(--text-color);
    position: relative;
  }

  .order-info .card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 18px;
  }

  [data-theme="dark"] .order-info {
    background: #13241a;
    color: #f5fff5;
  }

  [data-theme="dark"] .order-info .card {
    background: rgba(32, 53, 41, 0.95);
    color: #f1fff4;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  }

  footer {
  background: rgba(0, 0, 0, 0.85);
  color: #ccc;
  padding: 24px 0;
  }

  footer a {
  color: var(--accent);
  text-decoration: none;
  }

  .footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  }

  .footer-line {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.95rem;
  }

  .footer-line span,
  .footer-line a {
  display: inline-flex;
  align-items: center;
  }

  .footer-credit a {
    margin-left: 0.35rem;
  }

  /* Social / contact button used in Contact section */
  .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--social-border);
  background: var(--social-bg);
  color: var(--social-color);
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.12s ease,
  filter 0.12s ease;
  }

  .social-btn svg {
  fill: currentColor;
  }

  .social-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
  }

  /* smaller variant for footer */
  .social-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--social-border);
  background: var(--social-bg);
  color: var(--social-color);
  text-decoration: none;
  font-weight: 600;
  vertical-align: middle;
  }

  /* Make social buttons more prominent in light mode (filled, high-contrast accent) */
  body[data-theme="light"] .social-btn,
  body[data-theme="light"] .social-footer {
  /* Use a darker accent for better contrast with white text */
  background: #007a4f;
  /* darker green for accessibility */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  }

  body[data-theme="light"] .social-btn svg,
  body[data-theme="light"] .social-footer svg {
  fill: currentColor;
  }

  /* Focus state for accessibility */
  .social-btn:focus,
  .social-footer:focus {
  outline: 3px solid rgba(0, 122, 79, 0.18);
  outline-offset: 2px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }

  /* Footer social button: keep the same filled accent style as light mode (consistent appearance) */
  body[data-theme="dark"] .social-footer {
  background: #007a4f;
  /* same darker accent used for high contrast */
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
  }

  body[data-theme="dark"] .social-footer svg {
  fill: currentColor;
  }

  /* Style for the expanded menu so items match the site's card look */
  .menu-expanded .list-group-item {
  background: var(--card-bg);
  color: var(--text-color);
  border: none;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 10px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  }

  [data-theme="dark"] .menu-expanded .list-group-item {
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  }

  .menu-expanded .menu-price {
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  }

  [data-theme="dark"] .menu-expanded .menu-price {
  color: var(--accent);
  }

  /* 'Add chips' pill */
  .add-chips {
  display: inline-block;
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-color);
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  }

  body[data-theme="light"] .add-chips {
  background: rgba(0, 0, 0, 0.06);
  color: #083a2a;
  }

  body[data-theme="dark"] .add-chips {
  background: rgba(255, 255, 255, 0.04);
  color: #dfffdc;
  }

  /* Improve visibility of small/subtext in the expanded menu (better contrast in both themes) */
  .menu-expanded .small.text-muted {
  color: var(--text-color) !important;
  opacity: 0.78;
  /* slightly subdued but readable */
  }

  /* Section description class — readable in both light and dark themes */
  .section-desc {
  color: var(--text-color);
  opacity: 0.86;
  }

  /* Slightly stronger text for dark theme if needed */
  [data-theme="dark"] .section-desc {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
  }

  /* Keep menu columns from stretching to the height of the tallest column */
  .menu-expanded .row {
  align-items: flex-start;
  }

  /* Heading + pill layout for the Food Menu so the pill doesn't increase column height */
  .menu-expanded .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  }

  .menu-expanded .section-heading .add-chips {
  margin: 0;
  /* remove mt spacing that previously pushed content */
  }

  /* Space under the Food Menu heading to separate it from the list */
  .menu-expanded .section-heading {
  margin-bottom: 0.9rem;
  /* adds a visible gap before the list */
  }

  /* Make Drinks and Snack headings match the Food Menu gap */
  .menu-expanded h3 {
  margin-bottom: 0.9rem;
  }

  /* But keep the section-heading's h3 at zero since the container already adds the gap */
  .menu-expanded .section-heading h3 {
  margin-bottom: 0;
  }

  /* Ensure pill stacks neatly on small screens with sensible spacing */
  @media (max-width: 576px) {
  .menu-expanded .section-heading {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  }

  .menu-expanded .section-heading .add-chips {
  margin-top: 0.15rem;
  }
  }

  /* Make Contact buttons visually identical (height, padding, alignment, transitions) */
  #contact .d-flex a.btn,
  #contact .d-flex .social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    height: 44px;
    font-size: 0.95rem;
    border-radius: 8px;
    min-width: 160px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.12s ease;
    will-change: transform;
  }

  /* Hover / active states shared by both buttons */
  #contact .d-flex a.btn:hover,
  #contact .d-flex .social-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  #contact .d-flex a.btn:active,
  #contact .d-flex .social-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
  }

  /* Make stacked (mobile) buttons full-width for easier tapping */
  @media (max-width: 576px) {

  #contact .d-flex.flex-column a.btn,
  #contact .d-flex.flex-column .social-btn {
  width: 100%;
  min-width: 0;
  }

  #contact .d-flex a.btn,
  #contact .d-flex .social-btn {
  transform: none;
  /* avoid hover lift on mobile */
  }
  }

  /* Prefer lighter snap on touch screens and shrink map for extra space */
  @media (max-width: 576px) {
  html {
  scroll-snap-type: y proximity;
  }

  body {
  padding-top: 0;
  }

  #contact iframe {
  height: 260px;
  }

  .footer-line {
  flex-direction: column;
  gap: 0.35rem;
  }

  .footer-divider {
  display: none;
  }
  }

  /* Mobile navbar collapse: expand as a full-width dropdown under the navbar to avoid off-screen rendering
  Only enable this behaviour for small screens to avoid altering tablet/desktop layout. */
  @media (max-width: 576px) {
  nav.navbar .navbar-collapse {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-height);
  z-index: 1050;
  background: var(--nav-bg);
  padding: 0.75rem 1rem 1rem 1rem;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  }

  /* Make nav links stack nicely and fill width */
  nav.navbar .navbar-collapse .navbar-nav {
  width: 100%;
  display: block;
  }

  nav.navbar .navbar-collapse .nav-item {
  display: block;
  }

  nav.navbar .navbar-collapse .nav-link {
  display: block;
  padding: 0.6rem 0.5rem;
  color: var(--text-color) !important;
  }

  /* Theme toggle: show as the last item in the collapsed mobile menu, left-aligned.
  Make sure collapse/show behavior still controls display: when collapsed hide, when .show display as flex */
  nav.navbar .navbar-collapse.collapse {
  display: none;
  /* respect Bootstrap's collapsed state */
  }

  nav.navbar .navbar-collapse.collapse.show {
  display: flex;
  /* display as column when shown */
  flex-direction: column;
  align-items: stretch;
  }

  nav.navbar .navbar-collapse .theme-toggle {
  order: 999;
  /* force to the end of the collapsed menu */
  align-self: flex-start;
  /* left-aligned */
  margin: 0.5rem 0 0 0;
  float: none;
  padding: 0.35rem 0.6rem;
  /* small tap target */
  border-radius: 6px;
  background: transparent;
  /* keep current look; change if you want a pill */
  }
  }

  /* Allow section-heading to wrap when space is constrained to avoid overflow */
  .menu-expanded .section-heading {
  flex-wrap: wrap;
  }

  /* Make menu images more flexible on small screens so cards scale neatly */
  @media (max-width: 576px) {
  .menu-card img {
  height: 160px;
  /* slightly smaller on mobile */
  object-fit: cover;
  }

  .menu-expanded .menu-price {
  padding: 4px 8px;
  font-size: 0.95rem;
  }
  }

  /* Very small phones (iPhone SE 1st gen / narrow viewports) fixes
  - Make collapsed navbar fixed and scrollable so it never renders off-screen
  - Stack menu list items so prices don't overflow on the right
  - Slightly reduce image heights for ultra-narrow screens */
  @media (max-width: 360px) {
  nav.navbar .navbar-collapse {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-height);
  z-index: 2000;
  /* ensure above other content */
  background: var(--nav-bg);
  padding: 0.5rem 0.75rem 0.75rem 0.75rem;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  max-height: calc(100vh - var(--nav-height));
  overflow: auto;
  }

  /* Stack list items in the expanded menu so price sits below the name on tiny screens */
  .menu-expanded .list-group-item {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  }

  .menu-expanded .list-group-item .menu-price {
  align-self: flex-start;
  margin-left: 0;
  }

  /* Reduce image height a touch more for very narrow screens */
  .menu-card img {
  height: 140px;
  }
  }

  /* Scroll snap + nav tracking */
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + var(--snap-gap));
    scroll-snap-type: y mandatory;
  }

  @media (max-width: 768px) {
    html {
      scroll-snap-type: y proximity;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
      scroll-snap-type: none;
      scroll-padding-top: 0;
    }
  }

  body {
    min-height: 100vh;
  }

  .snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: calc(100vh - var(--nav-height));
    padding-top: var(--snap-gap);
    padding-bottom: clamp(48px, 8vh, 120px);
  }

  .snap-footer {
    scroll-snap-align: end;
    scroll-snap-stop: always;
    padding-top: clamp(24px, 4vh, 60px);
    padding-bottom: var(--snap-gap);
  }

  .nav-link {
  position: relative;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  margin: 0 0.2rem;
  transition: all 0.3s ease;
  }

  .nav-link:hover {
    color: var(--accent) !important;
    background: rgba(0, 0, 0, 0.03);
  }

  [data-theme="dark"] .nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-main);
  color: var(--text-color);
  transition: background 0.6s ease, color 0.4s ease;
  scroll-behavior: smooth;
  }

  nav.navbar {
  background-color: var(--nav-bg);
  backdrop-filter: blur(10px);
  transition: background-color 0.4s ease;
  }

  .navbar-brand .brand-light {
    color: var(--text-color);
    font-weight: 700;
  }

  .navbar-brand .brand-accent {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
    font-weight: 600;
    margin-left: 0.25rem;
  }

  /* Ensure container inside navbar is positioned so absolute mobile menu can align to it */
  nav.navbar .container {
  position: relative;
  }

  .navbar-logo,
  .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-logo-img {
    height: clamp(40px, 4vw, 52px);
    width: auto;
  }

  .navbar-brand {
  font-weight: 700;
  color: var(--accent) !important;
  }

  /* Active navigation link styling */
  .nav-link.active {
    color: var(--accent-strong) !important;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    transition: all 0.3s ease;
  }

  .nav-link.active::after {
    display: none;
  }

  [data-theme="dark"] .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
