/* ============================================================
   Moscow & Tbilisi Bakery Store — Main Stylesheet
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-dark:  #9A7A2E;
  --cream:      #FDF6E3;
  --cream-dark: #F5E9C8;
  --brown:      #4A2C0A;
  --brown-mid:  #7B4A1E;
  --red:        #C0392B;
  --red-dark:   #922B21;
  --white:      #FFFFFF;
  --text-dark:  #2C1A08;
  --text-mid:   #5A3A1A;
  --shadow:     0 4px 20px rgba(74,44,10,0.18);
  --radius:     12px;
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Georgia', serif;
  color: var(--brown);
  line-height: 1.25;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

.section-title {
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
}
.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 3px;
  background: var(--gold);
  margin: 0.6rem auto 0;
  border-radius: 2px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-mid);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---------- Utility ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
.btn-primary { background: var(--gold); color: var(--brown); }
.btn-primary:hover { background: var(--gold-light); }
.btn-outline { background: transparent; border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--brown); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }

/* ---------- Top Bar ---------- */
#top-bar {
  background: var(--brown);
  color: var(--cream);
  font-size: 0.85rem;
  padding: 0.45rem 0;
  text-align: center;
}
#top-bar a { color: var(--gold-light); margin: 0 0.5rem; }
#top-bar a:hover { color: var(--white); }

/* ---------- Header / Nav ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(74,44,10,0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 0.8rem; }
.logo-wrap img { width: 64px; height: 64px; object-fit: contain; border-radius: 50%; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.1rem; color: var(--brown); font-weight: 700; line-height: 1.2; }
.logo-text span { color: var(--gold-dark); font-size: 0.8rem; display: block; font-family: 'Lato', sans-serif; font-weight: 400; }

nav ul { display: flex; gap: 1.5rem; align-items: center; }
nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark);
  padding: 0.3rem 0;
  position: relative;
  transition: color var(--transition);
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
nav a:hover { color: var(--gold-dark); }
nav a:hover::after { width: 100%; }

.nav-order-btn {
  background: var(--red);
  color: var(--white) !important;
  padding: 0.45rem 1.2rem !important;
  border-radius: 50px;
  font-weight: 700 !important;
}
.nav-order-btn:hover { background: var(--red-dark); }
.nav-order-btn::after { display: none !important; }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0.3rem;
  align-items: center;
  margin-left: 1rem;
}
.lang-btn {
  background: none;
  border: 1.5px solid var(--gold);
  color: var(--brown);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover { background: var(--gold); color: var(--brown); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 3px; background: var(--brown); border-radius: 2px; transition: all var(--transition); }

/* ---------- Hero ---------- */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Banner(1).webp');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 3rem 1.5rem;
  margin: 0 auto;
  text-align: center;
  color: var(--white);
}
.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero-content h1 { color: var(--white); margin-bottom: 1rem; text-shadow: 0 2px 8px rgba(0,0,0,0.5); }
.hero-content p { font-size: 1.15rem; margin-bottom: 2rem; color: rgba(255,255,255,0.9); }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-info {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.25);
}
.hero-info-item { text-align: center; }
.hero-info-item .icon { font-size: 1.6rem; margin-bottom: 0.3rem; }
.hero-info-item strong { display: block; font-size: 0.95rem; color: var(--gold-light); }
.hero-info-item span { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* ---------- About ---------- */
#about { padding: 5rem 0; background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  max-height: 480px;
}
.about-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: var(--brown);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  box-shadow: var(--shadow);
  line-height: 1.3;
}
.about-badge strong { font-size: 1.5rem; display: block; }
.about-text h2 { margin-bottom: 1rem; }
.about-text p { color: var(--text-mid); margin-bottom: 1rem; }
.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem;
  background: var(--cream);
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}
.feature-icon { font-size: 1.4rem; flex-shrink: 0; }
.feature-item h4 { font-size: 0.9rem; margin-bottom: 0.15rem; }
.feature-item p { font-size: 0.8rem; color: var(--text-mid); margin: 0; }

/* ---------- Menu ---------- */
#menu { padding: 5rem 0; background: var(--cream); }
.menu-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.tab-btn {
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  border: 2px solid var(--gold);
  background: transparent;
  color: var(--brown);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--gold); color: var(--brown); }

.menu-panel { display: none; }
.menu-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }

.menu-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(74,44,10,0.1);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.menu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.menu-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--cream-dark);
}
.menu-card-img-placeholder {
  width: 100%;
  height: 180px;
  background: linear-gradient(135deg, var(--cream-dark), var(--cream));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.menu-card-body { padding: 1rem; }
.menu-card-body h3 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--brown); }
.menu-card-body p { font-size: 0.82rem; color: var(--text-mid); margin-bottom: 0.6rem; min-height: 2.4em; }
.menu-card-footer { display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 700; color: var(--red); font-size: 1.05rem; }
.order-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--white);
  background: var(--red);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  transition: background var(--transition);
}
.order-link:hover { background: var(--red-dark); }

.menu-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Must-Try / Featured ---------- */
#featured { padding: 5rem 0; background: var(--brown); }
#featured .section-title { color: var(--gold-light); }
#featured .section-title::after { background: var(--gold-light); }
#featured .section-subtitle { color: rgba(255,255,255,0.7); }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}
.featured-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform var(--transition);
}
.featured-card:hover { transform: scale(1.03); }
.featured-card img { width: 100%; height: 280px; object-fit: cover; display: block; }
.featured-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(74,44,10,0.92));
  padding: 1.5rem 1rem 1rem;
  color: var(--white);
}
.featured-overlay h3 { color: var(--gold-light); font-size: 1.1rem; margin-bottom: 0.25rem; }
.featured-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-bottom: 0.5rem; }
.featured-price { font-weight: 700; color: var(--gold-light); font-size: 1rem; }

/* ---------- Gallery ---------- */
#gallery { padding: 5rem 0; background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(74,44,10,0.55);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  max-width: 700px;
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.modal-box img { width: 100%; max-height: 70vh; object-fit: contain; background: var(--cream); }
.modal-caption { padding: 1rem 1.5rem; background: var(--brown); color: var(--white); font-weight: 600; }
.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 36px; height: 36px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}
.modal-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(74,44,10,0.7);
  color: var(--white);
  border: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.modal-nav:hover { background: var(--gold); color: var(--brown); }
.modal-prev { left: 0.7rem; }
.modal-next { right: 0.7rem; }

/* ---------- FAQ ---------- */
#faq { padding: 5rem 0; background: var(--cream); }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: 8px;
  margin-bottom: 0.8rem;
  box-shadow: 0 2px 8px rgba(74,44,10,0.07);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.1rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--brown);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--cream); }
.faq-icon { font-size: 1.3rem; color: var(--gold-dark); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.4rem;
  color: var(--text-mid);
  font-size: 0.95rem;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 1.4rem 1.2rem; }

/* ---------- Reviews Marquee ---------- */
#reviews { padding: 3rem 0; background: var(--cream-dark); overflow: hidden; }
.reviews-track {
  display: flex;
  gap: 1.5rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  min-width: 280px;
  max-width: 320px;
  box-shadow: 0 2px 10px rgba(74,44,10,0.1);
}
.review-stars { color: var(--gold); font-size: 1rem; margin-bottom: 0.5rem; }
.review-text { font-size: 0.88rem; color: var(--text-mid); margin-bottom: 0.7rem; font-style: italic; }
.review-author { font-weight: 700; font-size: 0.85rem; color: var(--brown); }

/* ---------- Order Section ---------- */
#order { padding: 4rem 0; background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); text-align: center; }
#order h2 { color: var(--white); }
#order .section-title::after { background: var(--gold-light); }
#order p { color: rgba(255,255,255,0.85); margin-bottom: 2rem; font-size: 1.05rem; }
.order-platforms { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.platform-btn {
  background: var(--white);
  color: var(--red-dark);
  padding: 0.7rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.platform-btn:hover { background: transparent; border-color: var(--white); color: var(--white); }

/* ---------- Footer ---------- */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer-brand img { width: 70px; border-radius: 50%; margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-top: 0.6rem; }
.footer-col h4 { color: var(--gold-light); font-size: 1rem; margin-bottom: 1rem; font-family: 'Playfair Display', serif; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact p { font-size: 0.88rem; color: rgba(255,255,255,0.65); margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; }
.social-links { display: flex; gap: 0.7rem; margin-top: 1rem; flex-wrap: wrap; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  transition: background var(--transition);
  color: var(--white);
}
.social-link:hover { background: var(--gold); color: var(--brown); }
.footer-bottom {
  background: #111;
  margin: 2rem -2rem -2rem -2rem;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-copy { color: rgba(255,255,255,0.5); }
.footer-legal { display: flex; align-items: center; gap: 0.6rem; }
.footer-legal a { color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }
.footer-dot { color: rgba(255,255,255,0.3); }
.powered-by { color: var(--red) !important; font-weight: 600; }
.powered-by:hover { color: #ff6b6b !important; }

/* ---------- Scroll to Top ---------- */
#scroll-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  background: var(--gold);
  color: var(--brown);
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  transition: all var(--transition);
}
#scroll-top.visible { display: flex; }
#scroll-top:hover { background: var(--gold-light); transform: translateY(-3px); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-badge { right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; box-shadow: 0 8px 20px rgba(0,0,0,0.1); gap: 0.7rem; }
  nav ul.open { display: flex; }
  .hamburger { display: flex; }
  .lang-toggle { margin-left: 0.5rem; }
  .hero-info { gap: 1rem; }
  .about-features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .menu-tabs { gap: 0.4rem; }
  .tab-btn { padding: 0.4rem 1rem; font-size: 0.82rem; }
}

/* ---------- Language Visibility ---------- */
[data-lang] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }
body.lang-es [data-lang="es"] { display: revert; }
/* Inline elements */
span[data-lang], a[data-lang], strong[data-lang] { display: inline; }
body.lang-en span[data-lang="es"], body.lang-en a[data-lang="es"], body.lang-en strong[data-lang="es"] { display: none; }
body.lang-es span[data-lang="en"], body.lang-es a[data-lang="en"], body.lang-es strong[data-lang="en"] { display: none; }
/* Always-visible elements */
.always-show { display: revert !important; }
img.always-show { display: block !important; }

/* ---------- Language Switcher (EN/ES pill) ---------- */
.lang-switcher {
  display: flex;
  background: var(--cream-dark);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  border: 1.5px solid var(--gold);
}
.lang-sw-btn {
  background: transparent;
  border: none;
  color: var(--brown);
  padding: 0.28rem 0.75rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  letter-spacing: 0.5px;
}
.lang-sw-btn.active {
  background: var(--gold);
  color: var(--brown);
  box-shadow: 0 2px 6px rgba(201,168,76,0.4);
}
.lang-sw-btn:not(.active):hover {
  background: rgba(201,168,76,0.2);
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  margin-top: 1rem;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: var(--cream);
  border-radius: 10px;
  border-left: 3px solid var(--gold);
}
.contact-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-item h4 {
  font-size: 0.9rem;
  color: var(--brown);
  margin-bottom: 0.2rem;
  font-family: 'Playfair Display', serif;
}
.contact-item p {
  font-size: 0.88rem;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}
.contact-map iframe {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(74,44,10,0.15);
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}
