/* Krapesto Restaurant - Static Site Styles */
    :root {
      --primary-color: #047857;
      --primary-hover: #065f46;
      --text-color: #1f2937;
      --text-muted: #6b7280;
      --bg-color: #ffffff;
      --bg-light: #f9fafb;
      --border-color: #e5e7eb;
      --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
      --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
      line-height: 1.6;
      color: var(--text-color);
      background-color: var(--bg-color);
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    .container {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    @media (min-width: 768px) {
      .container {
        padding: 0 1.5rem;
      }
    }

    /* Header */
    header {
      position: sticky;
      top: 0;
      z-index: 50;
      width: 100%;
      border-bottom: 1px solid var(--border-color);
      background-color: rgba(255, 255, 255, 0.95);
      backdrop-filter: blur(8px);
      box-shadow: var(--shadow);
    }

    .header-content {
      max-width: 1280px;
      margin: 0 auto;
      padding: 0 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 72px;
    }

    @media (min-width: 768px) {
      .header-content {
        height: 80px;
        padding: 0 1.5rem;
      }
    }

    .logo {
      font-size: 1.5rem;
      font-weight: bold;
      color: var(--primary-color);
      text-decoration: none;
    }

    @media (min-width: 768px) {
      .logo {
        font-size: 1.875rem;
      }
    }

    /* Navigation */
    nav {
      display: none;
    }

    @media (min-width: 768px) {
      nav {
        display: flex;
        align-items: center;
        gap: 2rem;
      }
    }

    nav a {
      font-size: 1rem;
      font-weight: 600;
      color: var(--text-color);
      text-decoration: none;
      opacity: 0.8;
      transition: color 0.2s;
    }

    nav a:hover {
      color: var(--primary-color);
      opacity: 1;
    }

    /* Language Switcher */
    .language-switcher {
      display: flex;
      align-items: center;
      gap: 0.25rem;
      background-color: #f3f4f6;
      padding: 0.25rem;
      border-radius: 9999px;
    }

    .language-switcher button {
      padding: 0.5rem 0.75rem;
      font-size: 0.875rem;
      font-weight: 600;
      border: none;
      background: transparent;
      color: var(--text-color);
      border-radius: 9999px;
      cursor: pointer;
      transition: all 0.2s;
      min-height: 44px;
      min-width: 44px;
    }

    @media (min-width: 768px) {
      .language-switcher button {
        padding: 0.375rem 1rem;
        min-height: auto;
        min-width: auto;
      }
    }

    .language-switcher button.active {
      background-color: var(--primary-color);
      color: white;
      box-shadow: var(--shadow);
    }

    .language-switcher button:not(.active):hover {
      color: var(--text-color);
      background-color: #e5e7eb;
    }

    /* Mobile Menu */
    .mobile-menu-button {
      display: block;
      padding: 0.5rem;
      background: transparent;
      border: none;
      cursor: pointer;
      min-height: 44px;
      min-width: 44px;
    }

    @media (min-width: 768px) {
      .mobile-menu-button {
        display: none;
      }
    }

    .mobile-menu {
      position: fixed;
      top: 0;
      right: 0;
      width: 280px;
      height: 100vh;
      background: white;
      box-shadow: var(--shadow-lg);
      z-index: 100;
      padding: 2rem 1rem;
      overflow-y: auto;
    }

    .mobile-menu.hidden {
      display: none;
    }

    @media (min-width: 640px) {
      .mobile-menu {
        width: 320px;
      }
    }

    /* Hero Section */
    .hero {
      position: relative;
      min-height: 85vh;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .hero-bg {
      position: absolute;
      inset: 0;
      z-index: 0;
    }

    .hero-bg img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6));
      z-index: 0;
    }

    .hero-content {
      position: relative;
      z-index: 10;
      max-width: 1280px;
      margin: 0 auto;
      padding: 5rem 1rem;
      text-align: center;
    }

    @media (min-width: 768px) {
      .hero-content {
        padding: 8rem 1.5rem;
      }
    }

    .hero h1 {
      font-size: 3rem;
      font-weight: bold;
      color: white;
      text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
      line-height: 1.1;
      margin-bottom: 2rem;
    }

    @media (min-width: 768px) {
      .hero h1 {
        font-size: 4.5rem;
      }
    }

    @media (min-width: 1024px) {
      .hero h1 {
        font-size: 6rem;
      }
    }

    .hero p {
      font-size: 1.5rem;
      color: rgba(255, 255, 255, 0.95);
      margin-bottom: 1rem;
    }

    @media (min-width: 768px) {
      .hero p {
        font-size: 2rem;
      }
    }

    @media (min-width: 1024px) {
      .hero p {
        font-size: 2.5rem;
      }
    }

    /* Buttons */
    .btn {
      display: inline-block;
      padding: 1rem 2rem;
      font-size: 1rem;
      font-weight: 600;
      text-decoration: none;
      border-radius: 0.75rem;
      transition: all 0.3s;
      border: none;
      cursor: pointer;
      min-height: 48px;
    }

    .btn-primary {
      background-color: var(--primary-color);
      color: white;
      box-shadow: var(--shadow-lg);
    }

    .btn-primary:hover {
      transform: scale(1.05);
      box-shadow: var(--shadow-lg);
    }

    .btn-primary:active {
      transform: scale(0.95);
    }

    /* Cards */
    .card {
      background: white;
      border-radius: 1rem;
      box-shadow: var(--shadow);
      overflow: hidden;
      transition: all 0.3s;
    }

    .card:hover {
      box-shadow: var(--shadow-lg);
      transform: translateY(-8px);
    }

    .card-content {
      padding: 2.5rem 2rem;
    }

    /* Sections */
    .section {
      padding: 6rem 0;
    }

    @media (min-width: 768px) {
      .section {
        padding: 8rem 0;
      }
    }

    @media (min-width: 1024px) {
      .section {
        padding: 10rem 0;
      }
    }

    .section-title {
      font-size: 2.5rem;
      font-weight: bold;
      text-align: center;
      margin-bottom: 1.5rem;
    }

    @media (min-width: 768px) {
      .section-title {
        font-size: 3rem;
      }
    }

    @media (min-width: 1024px) {
      .section-title {
        font-size: 3.75rem;
      }
    }

    /* Grid */
    .grid {
      display: grid;
      gap: 2rem;
    }

    .grid-cols-1 {
      grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    @media (min-width: 768px) {
      .grid-cols-md-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    /* Menu */
    .menu-day {
      margin-bottom: 2rem;
    }

    .menu-day-title {
      font-size: 1.5rem;
      font-weight: bold;
      color: var(--primary-color);
      margin-bottom: 1rem;
    }

    @media (min-width: 768px) {
      .menu-day-title {
        font-size: 2rem;
      }
    }

    .menu-item {
      padding: 1rem 0;
      margin-bottom: 1rem;
      display: grid;
      gap: 0.35rem;
    }

    .menu-item:last-child {
      margin-bottom: 0;
    }

    .menu-item-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      gap: 1rem;
      margin-bottom: 0.5rem;
    }

    .menu-item-name {
      font-weight: bold;
      font-size: 1rem;
      flex: 1;
    }

    @media (min-width: 768px) {
      .menu-item-name {
        font-size: 1.125rem;
      }
    }

    .menu-item-price {
      color: var(--primary-color);
      font-weight: bold;
      font-size: 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.25rem;
      align-items: flex-end;
      line-height: 1.35;
    }

    .menu-item-price span,
    .menu-item-price div {
      display: block;
      line-height: 1.35;
    }

    @media (min-width: 768px) {
      .menu-item-price {
        font-size: 1.125rem;
      }
    }

    .menu-item-description {
      color: var(--text-muted);
      font-size: 0.875rem;
      line-height: 1.6;
      margin: 0;
    }

    @media (min-width: 768px) {
      .menu-item-description {
        font-size: 1rem;
      }
    }

    .menu-item--multi-line .menu-item-header {
      margin-bottom: 0.35rem;
    }

    .menu-item--multi-line .menu-item-header:last-of-type {
      margin-bottom: 0;
    }

    .menu-item--multi-line .menu-item-description {
      margin-top: 0.35rem;
    }

    /* ========================== FOOTER ========================== */
    footer {
      background-color: rgba(4, 120, 87, 0.1);
      border-top: 1px solid var(--border-color);
      padding: 3rem 0;
    }

    /* Grid layout */
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  /* Default for mobile: stack elements vertically */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2rem;
}

/* For desktop screens (computer) */
@media (min-width: 768px) {
  .footer-grid {
    /* Change to horizontal layout */
    flex-direction: row;
    /* Spread elements apart or keep close in center */
    justify-content: center;
    /* Space between logo and contacts on desktop */
    gap: 10rem; 
    text-align: left;
  }
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  /* Centered on mobile, aligned to start on desktop */
  align-items: center;
}

@media (min-width: 768px) {
  .footer-contacts {
    align-items: flex-start;
  }
}
}

    /* Logo */
    .footer-logo {
      width: 240px;
      max-width: 100%;
      height: auto;
      margin-bottom: 1rem;
    }

    /* Section titles */
    .footer-title {
      font-size: 1.5rem;
      font-weight: 700;
      margin-bottom: 1rem;
    }

    /* Links */
    .footer-links {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .footer-links li {
      margin-bottom: 0.4rem;
    }

    .footer-links a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 0.95rem;
      transition: color 0.2s ease;
    }

    .footer-links a:hover {
      color: var(--primary-color);
    }

    /* Contacts wrapper */
    .footer-contacts {
      display: flex;
      flex-direction: column;
      gap: 0.6rem;
    }

    /* Single contact row */
    .footer-contact {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.95rem;
    }

    /* ICONS */
    .footer-icon {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      fill: var(--primary-color);
      stroke: var(--primary-color);
    }

    /* White inner lines for email icon */
    .footer-icon path[stroke="white"] {
      stroke: white !important;
    }

    /* Text */
    .footer-contact span,
    .footer-contact a {
      color: var(--text-muted);
      text-decoration: none;
    }

    .footer-contact a:hover {
      color: var(--primary-color);
    }

    /* Bottom copyright */
    .footer-bottom {
      margin-top: 1.2rem;
      padding-top: 0.75rem;
      padding-bottom: 0.5rem;
      border-top: 1px solid var(--border-color);
      text-align: center;
    }

    .footer-bottom p {
      font-size: 0.9rem;
      color: var(--text-muted);
    }

    /* Mobile Menu */
    .mobile-menu-close {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: transparent;
      border: none;
      font-size: 2rem;
      color: var(--text-color);
      cursor: pointer;
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .mobile-nav {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      margin-top: 2rem;
      padding: 0 1rem;
    }

    .mobile-nav a {
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--text-color);
      text-decoration: none;
      padding: 0.75rem 1rem;
      border-radius: 0.5rem;
      transition: background-color 0.2s;
      min-height: 44px;
      display: flex;
      align-items: center;
    }

    .mobile-nav a:hover {
      background-color: #f3f4f6;
    }

    .mobile-menu-section {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      padding-top: 0.5rem;
    }

    .mobile-menu-section > span {
      font-size: 1.125rem;
      font-weight: 500;
      color: var(--text-color);
      padding: 0.5rem 1rem;
    }

    .mobile-menu-section a {
      font-size: 1rem;
      padding-left: 1.5rem;
    }

    .header-right {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    /* Utility Classes */
    .text-center {
      text-align: center;
    }

    .text-white {
      color: white;
    }

    .bg-white {
      background-color: white;
    }

    .bg-gray-50 {
      background-color: var(--bg-light);
    }

    .mb-6 {
      margin-bottom: 1.5rem;
    }

    .mb-8 {
      margin-bottom: 2rem;
    }

    .mt-8 {
      margin-top: 2rem;
    }

    .hidden {
      display: none;
    }

    /* Loading State */
    .loading {
      text-align: center;
      padding: 3rem 0;
      color: var(--text-muted);
    }

    /* Responsive Images */
    img {
      max-width: 100%;
      height: auto;
    }

    /* Navigation Dropdown Fix */

    /* 1. Ensure header allows overflow for the menu to be visible */
    header {
      overflow: visible !important;
    }

    /* 2. Reset the button to look like a standard text link */
    .dropdown-toggle {
      background: transparent !important;
      border: none !important;
      padding: 0 !important;
      margin: 0 !important;
      font-family: inherit !important;
      font-size: 1rem !important;
      font-weight: 600 !important;
      color: var(--text-color) !important;
      cursor: pointer !important;
      display: inline-flex !important;
      align-items: center !important;
      gap: 4px !important;
      width: auto !important;
      box-shadow: none !important;
      opacity: 0.8;
      transition: opacity 0.2s;
    }

    .dropdown-toggle:hover {
      color: var(--primary-color) !important;
      opacity: 1;
    }

    /* 3. Add a small visual indicator */
    .dropdown-toggle::after {
      content: '▾';
      font-size: 0.8rem;
    }

    /* 4. Position and style the floating menu */
    .dropdown-menu {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      margin-top: 12px !important;
      min-width: 240px !important;
      background-color: #ffffff !important;
      border: 1px solid var(--border-color) !important;
      border-radius: 8px !important;
      box-shadow: var(--shadow-lg) !important;
      z-index: 9999 !important;
      padding: 8px 0 !important;
      display: flex !important;
      flex-direction: column !important;
    }

    /* 5. Style links inside the dropdown */
    .dropdown-menu a {
      display: block !important;
      padding: 10px 20px !important;
      font-size: 0.95rem !important;
      font-weight: 500 !important;
      color: var(--text-color) !important;
      text-decoration: none !important;
      opacity: 1 !important;
    }

    .dropdown-menu a:hover {
      background-color: var(--bg-light) !important;
      color: var(--primary-color) !important;
    }

    /* Make header, meniu and renginiai transparent */
    header, .header, #header {
      background: transparent !important;
      background-color: transparent !important;
      box-shadow: none !important;
    }
    .menu, nav.meniu {
      background: transparent !important;
      background-color: transparent !important;
      box-shadow: none !important;
    }
    .renginiai, #renginiai {
      background: transparent !important;
      background-color: transparent !important;
      box-shadow: none !important;
    }

    /* Final fix for dropdown alignment */

    /* 1. This ensures the dropdown menu is positioned relative to the button */
    .dropdown {
      position: relative !important;
      display: inline-flex !important;
    }

    /* 2. Position the menu directly under the button */
    .dropdown-menu {
      position: absolute !important;
      top: 100% !important;
      /* Align with the start of the button */
      left: 0 !important;
      /* Or use left: 50% and transform: translateX(-50%) for centering */
      transform: none !important;
      margin-top: 10px !important;
      z-index: 9999 !important;
    }

    /* 3. Ensure the desktop-nav container allows children to position absolutely */
    .desktop-nav {
      display: flex !important;
      position: relative !important;
    }

    /* Force uniform hero height across all pages */
    #hero-placeholder .hero {
      height: 40vh !important;
      min-height: 350px !important;
    }

    /* Ensure background images cover the fixed area properly */
    #hero-placeholder .hero-bg img {
      height: 100% !important;
      width: 100% !important;
      object-fit: cover !important;
      object-position: center !important;
    }

    /* Ensure the dropdown menu is hidden by default and only shown when .hidden class is REMOVED */

    /* 1. Force hide the menu when it has the .hidden class */
    .dropdown-menu.hidden {
      display: none !important;
    }

    /* 2. Position the menu correctly when it IS shown */
    .dropdown-menu {
      position: absolute !important;
      top: 100% !important;
      left: 0 !important;
      margin-top: 10px !important;
      display: flex !important; /* This only applies when .hidden is NOT present */
      flex-direction: column;
      background-color: #ffffff !important;
      border: 1px solid var(--border-color) !important;
      border-radius: 8px !important;
      box-shadow: var(--shadow-lg) !important;
      z-index: 9999 !important;
      padding: 8px 0 !important;
    }
/* Fix for mobile header and spacing */
@media (max-width: 767px) {
  /* 1. Hide the desktop navigation links on mobile */
  .desktop-nav {
    display: none !important;
  }

  /* 2. Show the mobile menu toggle button */
  .mobile-menu-toggle {
    display: block !important;
  }

  /* 3. Adjust general section spacing for first blocks after hero */
  .section {
    padding: 3rem 0 !important;
  }
}

/* 4. Utility class to fix the gap if you want to use it directly on a section */
.top-spacing-fix {
  padding-top: 3rem !important;
}
/* Gallery: 1 column on mobile (default), 2 columns on desktop */
.gallery-grid {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

.gallery-grid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  /* Corners are already rounded in your HTML, so no extra code needed here */
}
/* Gallery images uniform height */
.gallery-grid img {
  width: 100%;
  height: 350px;       /* Čia nustatyk norimą aukštį pikseliais */
  object-fit: cover;   /* Nukerpa nuotraukos kraštus, kad ji užpildytų plotą nesideformuodama */
  border-radius: 1rem;
}

/* Desktop layout: 2 columns */
@media (min-width: 768px) {
  .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
  }
}
/* Fullscreen Image Overlay */
.image-overlay {
  display: none;
  position: fixed;
  z-index: 10000;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.image-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
}
