/* DŽ užkandžiai – design system */
:root {
  --bg: #F8F7F2;
  --bg-card: #FDFDFC;
  --bg-input: #F5F5F4;
  --text: #333333;
  --text-light: #555;
  --accent: #8B6D57;
  --accent-dark: #5D3C3C;
  --accent-deep: #4F2D2D;
  --underline: #A0B59B;
  --border: #E8E6E0;
  --white: #fff;
  --shadow: 0 4px 20px rgba(93, 60, 60, 0.08);
  --font-sans: 'Source Sans 3', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(248, 247, 242, 0.95);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.logo-img {
  height: 2.5rem;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 1.1rem;
}

.nav {
  display: flex;
  gap: 1.75rem;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover {
  color: var(--accent);
}

/* Hamburger mygtukas – rodomas tik mobiliajame vaizde */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.nav-toggle-icon {
  position: relative;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
  transition: background 0.2s;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.header.is-nav-open .nav-toggle-icon {
  background: transparent;
}

.header.is-nav-open .nav-toggle-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.header.is-nav-open .nav-toggle-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('assets/gallery-2.png') center/cover no-repeat;
  filter: blur(8px) brightness(0.75);
  transform: scale(1.05);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  margin: 0 0 1.4rem;
  font-family: 'Bodoni Moda', var(--font-serif);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--bg-card);
  color: var(--accent-dark);
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--white);
  border-color: var(--accent-dark);
}

.btn-secondary {
  background: var(--accent-dark);
  color: var(--white);
  border: 2px solid var(--accent-dark);
}

.btn-secondary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}

.btn-outline {
  background: transparent;
  color: var(--accent-dark);
  border: 2px solid var(--accent);
  cursor: pointer;
}

.btn-outline:hover {
  background: var(--bg-card);
}

.btn-full {
  width: 100%;
}

.btn-submit {
  margin-top: 1.05rem;
}

/* Section titles */
.section-title {
  margin: 0 0 0.7rem;
  font-family: var(--font-sans);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin: 0.5rem auto 0;
  background: var(--accent);
}

.section-title--serif {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent-dark);
}

.section-title--serif::after {
  background: var(--underline);
}

/* About */
.about {
  padding: 2.8rem 0;
}

.about-text {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.7;
}

/* Features */
.features {
  padding: 2.1rem 0 2.8rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.4rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.feature-icon {
  display: block;
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.feature-title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.feature-desc {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Menu section */
.menu-section {
  padding: 2.8rem 0;
}

.menu-subtitle {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 1.75rem;
  color: var(--text-light);
  font-size: 1rem;
}

.menu-allergy-note {
  max-width: 640px;
  margin: 2rem auto 0;
  padding: 0 0.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .menu-grid {
    grid-template-columns: 1fr;
  }
}

.menu-card {
  background: #FDFCF9;
  border: none;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(93, 60, 60, 0.06);
  height: 340px;
  min-height: 340px;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.menu-card--expandable.menu-card--expanded {
  height: auto;
  min-height: 340px;
  max-height: none;
  overflow: visible;
}

.menu-card-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.menu-card-meta,
.menu-card-desc {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

.menu-card-price {
  margin: 0.5rem 0 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.menu-card-price span + span {
  margin-left: 1rem;
}

.menu-card-sep {
  margin: 0.75rem 0 0.5rem;
  border: none;
  border-top: 1px solid #E5E3DE;
}


.menu-card-options {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.85rem;
  color: var(--text-light);
}

.menu-card-list {
  margin: 0.25rem 0 0;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
  min-height: 0;
}

.menu-card--expandable:not(.menu-card--expanded) .menu-card-list {
  overflow: hidden;
}

.menu-card--expandable.menu-card--expanded .menu-card-list {
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.menu-card--expandable .menu-card-list li:nth-child(n+5) {
  display: none;
}

.menu-card--expandable.menu-card--expanded .menu-card-list li:nth-child(n+5) {
  display: list-item;
}

.menu-card-more-link {
  margin-top: auto;
  padding: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  align-self: center;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.menu-card-more-link:hover {
  color: var(--accent-dark);
}

.menu-card-more-arrow {
  font-size: 0.7em;
  opacity: 0.9;
}

/* Slėpti nuorodą, kai sąrašas išskleistas – rodoma "Rodyti mažiau" */
.menu-card--expandable .menu-card-more-link[aria-expanded="true"] {
  text-decoration: underline;
}

.menu-grid .menu-card {
  align-self: start;
}

.menu-view-all-wrap {
  text-align: center;
  margin-top: 1.4rem;
}

.menu-extra {
  margin-top: 1.4rem;
}

.menu-extra.is-hidden {
  display: none;
}

.menu-toggle-wrap {
  text-align: center;
  margin-top: 1.05rem;
}

/* Gallery */
.gallery-section {
  padding: 2.8rem 0;
}

.gallery-subtitle {
  text-align: center;
  margin: 0 0 1.4rem;
  color: var(--text-light);
  font-size: 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.gallery-item-btn {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  display: block;
  width: 100%;
  text-align: left;
}

.gallery-item-btn:hover {
  opacity: 0.95;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.gallery-lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.gallery-lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.gallery-lightbox-inner img {
  max-width: 100%;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Inquiry form */
.inquiry-section {
  padding: 2.8rem 0;
}

.inquiry-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.inquiry-desc {
  text-align: center;
  margin: 0 0 1.4rem;
  color: var(--text-light);
  font-size: 1rem;
}

.inquiry-form .section-title--serif::after {
  margin-bottom: 0;
}

.form-block-title {
  margin: 1.05rem 0 0.7rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.form-block-title:first-of-type {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.form-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.form-message--success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message--error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.products-list {
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.product-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  font-size: 0.95rem;
}

.product-row .product-name {
  flex: 1;
}

.product-row .product-price {
  font-weight: 600;
  color: var(--accent-dark);
  flex-shrink: 0;
}

.product-row .product-price--note {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
}

.order-summary {
  margin-top: 1.05rem;
  padding: 1rem 1.25rem;
  background: var(--bg-input);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.order-summary-line {
  margin: 0.35rem 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.95rem;
}

.order-summary-line.order-summary-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 1.1rem;
}

.order-summary-line.is-hidden {
  display: none;
}

.product-row:last-child {
  border-bottom: none;
}

.product-row input {
  accent-color: var(--accent-dark);
}

.product-row--highlight {
  background: rgba(139, 109, 87, 0.08);
}

.product-row--extra {
  font-style: italic;
  color: var(--text-light);
}

/* Contact */
.contact-section {
  padding: 2.8rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1.4rem;
}

.contact-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-card-title {
  margin: 0 0 1.05rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

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

.contact-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.contact-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-light);
}

.contact-item a {
  color: var(--accent-dark);
  text-decoration: none;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form textarea {
  min-height: 100px;
  resize: vertical;
}

/* Footer */
.footer {
  background: var(--accent-deep);
  color: var(--white);
  text-align: center;
  padding: 1.5rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

/* Sticky mobile bar – rodomas tik telefone */
.sticky-mobile-bar {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 0;
    background: rgba(248, 247, 242, 0.98);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  }

  .header.is-nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .header-inner {
    position: relative;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  /* Sticky mobile bar – lipa prie ekrano apačios, bet ne žemiau footerio */
  .sticky-mobile-bar {
    display: flex;
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
    background: transparent;
    box-shadow: none;
  }

  .sticky-mobile-btn {
    flex: 1;
    padding: 0.5rem 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    color: var(--white);
    background: var(--accent);
    border: none;
    border-radius: 6px;
    -webkit-tap-highlight-color: transparent;
  }

  .sticky-mobile-btn--call {
    background: var(--accent);
  }

  .sticky-mobile-btn--order {
    background: var(--accent);
    border: none;
  }

  .sticky-mobile-btn:active {
    opacity: 0.9;
  }

  /* Medinio padėklo eilutė – telefone tekstas ir kaina persikelia į naują eilutę */
  .product-row--extra {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .product-row--extra .product-name {
    flex: 1 1 auto;
    min-width: 0;
  }

  .product-row--extra .product-price--note {
    flex: 1 1 100%;
    margin-left: 0;
    margin-top: 0.15rem;
    padding-left: calc(1rem + 0.75rem);
  }

}



