/* Custom Fonts */
/* Beacon Aesthetic - for English text */
@font-face {
  font-family: 'Beacon Aesthetic';
  src: url('/Beacon Aesthetic TTF.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Mersad - for Georgian text */
@font-face {
  font-family: 'Mersad';
  src: url('/Mersad-26958361069.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mersad';
  src: url('/Mersad Bold-26958361069.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Mersad';
  src: url('/Mersad SemiBold-26958361069.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* Base */
:root {
    /* Base */
    --primary:    #002330; /* your chosen core */
    --primary-2:  #06313C; /* hover / layered sections */
    /* Backgrounds */
    --bg:         #F4F1EA; /* warm paper white */
    --surface:    #FFFFFF; /* cards */
    /* Text */
    --text:       #0C1416; /* near-black, not pure */
    --muted:      #5A6A6F; /* secondary text */
    /* Accents */
    --accent:     #B38A4A; /* muted brass – premium, controlled */
    --accent-soft:#D6C2A2; /* dividers, subtle highlights */
    /* Structure */
    --border:     #D2D8D4;
    /* Legacy mappings for compatibility */
    --main: var(--primary);
    --variation: var(--primary-2);
    --base: var(--bg);
    --texture: var(--accent-soft);
    --fs-base: 16px;
    --fs-nav: 15px; /* use px to avoid rem inheritance differences */
    --fs-h1: 3rem;      /* 48px */
    --fs-h2: 1.5rem;    /* 24px */
    --fs-subtitle: 0.8rem; /* 12-13px */
  }

/* Dark Theme */
[data-theme="dark"] {
    /* Base */
    --primary:    #E8E3D8; /* light core */
    --primary-2:  #D4CDC0; /* hover / layered sections */
    /* Backgrounds */
    --bg:         #0C1416; /* dark background */
    --surface:    #1A2326; /* dark cards */
    /* Text */
    --text:       #F4F1EA; /* light text */
    --muted:      #8A938F; /* muted text */
    /* Accents */
    --accent:     #D4A574; /* lighter brass */
    --accent-soft:#6B5D47; /* dark dividers */
    /* Structure */
    --border:     #2A3437;
    /* Legacy mappings */
    --main: var(--primary);
    --variation: var(--primary-2);
    --base: var(--bg);
    --texture: var(--accent-soft);
  }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body {
    margin: 0;
    font-family: 'Beacon Aesthetic', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: var(--fs-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-transform: uppercase;
  }
  
  /* Don't uppercase Georgian text */
  html[lang="ka"] body,
  html[lang="ka"] * {
    text-transform: none;
  }
  
  /* Improve visibility for English text with Beacon Aesthetic */
  html[lang="en"] body,
  html[lang="en"] p,
  html[lang="en"] .section p,
  html[lang="en"] .menu-item-name {
    text-shadow: 0 0.5px 1px rgba(0, 35, 48, 0.3);
    font-weight: 700;
  }
  
  /* Dark theme text shadows */
  [data-theme="dark"] html[lang="en"] body,
  [data-theme="dark"] html[lang="en"] p,
  [data-theme="dark"] html[lang="en"] .section p,
  [data-theme="dark"] html[lang="en"] .menu-item-name {
    text-shadow: 0 0.5px 1px rgba(244, 241, 234, 0.2);
  }
  
  /* Georgian language uses Mersad */
  html[lang="ka"] body,
  html[lang="ka"] * {
    font-family: 'Mersad', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  }
  
  /* English headers are uppercase */
  html[lang="en"] h1,
  html[lang="en"] h2,
  html[lang="en"] h3,
  html[lang="en"] .brand-text,
  html[lang="en"] .subtitle,
  html[lang="en"] .section h2,
  html[lang="en"] .menu-section h2,
  html[lang="en"] .footer h3 {
    text-transform: uppercase;
  }
  
  /* Georgian text should not be uppercase */
  html[lang="ka"] h1,
  html[lang="ka"] h2,
  html[lang="ka"] h3,
  html[lang="ka"] .brand-text,
  html[lang="ka"] .subtitle,
  html[lang="ka"] .section h2,
  html[lang="ka"] .menu-section h2,
  html[lang="ka"] .footer h3 {
    text-transform: none;
  }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; font-size: 16px; }
  
  /* Navbar */
  .navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(244, 241, 234, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin: 8px 12px 0;
    box-shadow: 0 8px 28px rgba(0, 35, 48, 0.16);
    overflow: hidden;
    font-size: var(--fs-nav); /* lock navbar text size globally */
    height: 64px; /* lock height */
    min-height: 64px;
    max-height: 64px;
  }
  
  [data-theme="dark"] .navbar {
    background: rgba(26, 35, 38, 0.9);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  }
  .navbar nav { max-width: none; margin: 0; padding: 0; height: 100%; }
  .navbar .nav-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; height: 100%; padding: 0 12px; }
  .navbar * { line-height: 1; }
  .navbar .brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; justify-self: start; margin-left: 0; padding-left: 12px; height: 100%; }
.navbar .brand-text { font-family: 'Beacon Aesthetic', serif; font-size: 20px; letter-spacing: 0.08em; color: var(--text); white-space: nowrap; display: inline-flex; align-items: center; height: 100%; }
  .navbar ul { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; justify-content: center; align-items: center; height: 100%; }
  .navbar li { display: flex; align-items: center; height: 100%; }
  .navbar a {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    font-size: 15px;
    padding: 8px 18px;
    white-space: nowrap;
    border: 1px solid transparent;
    border-radius: 999px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 0 0 rgba(0, 35, 48, 0);
    isolation: isolate;
  }
  .navbar a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 0%, rgba(0, 35, 48, 0.18), transparent 55%);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: -1;
  }
  
  [data-theme="dark"] .navbar a::before {
    background: radial-gradient(circle at 0% 0%, rgba(232, 227, 216, 0.18), transparent 55%);
  }
  .navbar a:hover,
  .navbar a:focus-visible {
    background: var(--accent-soft);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(0, 35, 48, 0.18);
  }
  
  [data-theme="dark"] .navbar a:hover,
  [data-theme="dark"] .navbar a:focus-visible {
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
  }
  .navbar a:hover::before,
  .navbar a:focus-visible::before {
    opacity: 1;
    transform: scale(1.05);
  }
  .navbar a:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0, 35, 48, 0.22);
  }
  
  [data-theme="dark"] .navbar a:active {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.5);
  }
  
  /* Theme Toggle */
  .theme-toggle {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text);
    font-family: 'Beacon Aesthetic', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    line-height: 1;
    min-width: 42px;
    box-shadow: 0 4px 14px rgba(0, 35, 48, 0.18);
    isolation: isolate;
  }
  
  [data-theme="dark"] .theme-toggle {
    box-shadow: 0 4px 14px rgba(232, 227, 216, 0.18);
  }
  
  .theme-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 0%, rgba(0, 35, 48, 0.25), transparent 55%);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: -1;
  }
  
  [data-theme="dark"] .theme-toggle::before {
    background: radial-gradient(circle at 0% 0%, rgba(232, 227, 216, 0.25), transparent 55%);
  }
  
  .theme-toggle:hover,
  .theme-toggle:focus-visible {
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 35, 48, 0.22);
    border-color: var(--primary);
  }
  
  [data-theme="dark"] .theme-toggle:hover,
  [data-theme="dark"] .theme-toggle:focus-visible {
    box-shadow: 0 10px 20px rgba(232, 227, 216, 0.22);
  }
  
  .theme-toggle:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0, 35, 48, 0.28);
  }
  
  [data-theme="dark"] .theme-toggle:active {
    box-shadow: 0 6px 12px rgba(232, 227, 216, 0.28);
  }
  
  /* Language Switcher */
  .lang-switcher { display: flex; gap: 4px; justify-self: end; align-items: center; height: 100%; padding-right: 12px; }
 .lang-btn {
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text);
    font-family: 'Beacon Aesthetic', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    padding: 6px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    line-height: 1;
    min-width: 42px;
    box-shadow: 0 4px 14px rgba(0, 35, 48, 0.18);
    isolation: isolate;
  }
  .lang-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 0% 0%, rgba(0, 35, 48, 0.25), transparent 55%);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: -1;
  }
  .lang-btn:hover,
  .lang-btn:focus-visible {
    background: var(--accent-soft);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 35, 48, 0.22);
    border-color: var(--primary);
  }
  .lang-btn:hover::before,
  .lang-btn:focus-visible::before {
    opacity: 1;
    transform: scale(1.08);
  }
  .lang-btn:active {
    transform: translateY(0);
    box-shadow: 0 6px 12px rgba(0, 35, 48, 0.28);
  }
  .lang-btn.active {
    background: var(--primary);
    color: var(--bg);
    box-shadow: 0 12px 24px rgba(0, 35, 48, 0.32);
  }
  
  
  
  /* Hero */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px 16px;
    perspective: 800px;
    position: relative;
    overflow: hidden;
  }
  /* Site-wide background video */
  .site-bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: 0;
    opacity: 0.5;
    pointer-events: none;
    filter: blur(1.5px) brightness(0.7);
  }
  
  [data-theme="dark"] .site-bg-video {
    opacity: 0.3;
    filter: blur(1.5px) brightness(0.4);
  }
  .hero > * { 
    position: relative; 
    z-index: 1; 
    background: rgba(244, 241, 234, 0.9);
    padding: 24px 32px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 35, 48, 0.15);
  }
  
  [data-theme="dark"] .hero > * {
    background: rgba(26, 35, 38, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .navbar, .hero, .section, .footer { position: relative; z-index: 1; }
  .logo { max-width: 520px; width: clamp(160px, 40vw, 520px); height: auto; display: block; will-change: transform; transition: transform .25s ease, filter .25s ease; }
  .logo:hover { transform: scale(1.03); filter: drop-shadow(0 6px 18px rgba(0,0,0,.12)); }
  
  @media (prefers-reduced-motion: reduce) {
    .logo { transition: none; }
  }
  .hero h1 {
    margin: 16px 0 8px;
    font-family: 'Beacon Aesthetic', serif;
    letter-spacing: 0.08em;
    font-size: var(--fs-h1);
    color: var(--text);
    font-weight: 700;
  }
  .subtitle { color: var(--text); letter-spacing: 0.18em; font-size: var(--fs-subtitle); font-weight: 700; }
  
  /* Sections */
  .section { 
    max-width: 900px; 
    margin: 32px auto; 
    padding: 40px 32px; 
    line-height: 1.7;
    background: rgba(244, 241, 234, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 35, 48, 0.15);
  }
  
  [data-theme="dark"] .section {
    background: rgba(26, 35, 38, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  /* Section Links */
  .section-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .section-link:hover {
    transform: translateY(-4px);
  }
  
  .section-link:hover .section {
    box-shadow: 0 8px 20px rgba(0, 35, 48, 0.25);
  }
  
  [data-theme="dark"] .section-link:hover .section {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  
  .section-link:active {
    transform: translateY(-2px);
  }
  .section h2 { font-size: var(--fs-h2); letter-spacing: 0.06em; margin: 0 0 12px; color: var(--text); font-weight: 700; }
  .section p { margin: 0; color: var(--text); font-weight: 600; }
  
.menu-section { padding: 32px 28px; }
.menu-section h2 {
  font-family: 'Beacon Aesthetic', serif;
  font-size: 1.75rem;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.menu-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.drink-subsection {
  font-family: 'Beacon Aesthetic', serif;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  margin-top: 32px;
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--text);
}
.drink-subsection:first-of-type {
  margin-top: 0;
}
.menu-item-price-per {
  font-size: 0.85em;
  font-weight: 400;
  opacity: 0.8;
  margin-left: 8px;
}
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.menu-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
    border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.menu-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.menu-item-name {
  font-weight: 700;
  letter-spacing: 0.04em;
}

html[lang="en"] .menu-item-name {
  font-weight: 700;
  text-shadow: 0 0.5px 1px rgba(0, 35, 48, 0.3);
}

[data-theme="dark"] html[lang="en"] .menu-item-name {
  text-shadow: 0 0.5px 1px rgba(244, 241, 234, 0.2);
}
.menu-item-price {
  font-family: 'Beacon Aesthetic', serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.menu-item-size {
  font-size: 0.75em;
  font-weight: 500;
  opacity: 0.8;
}

.menu-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-item-ingredients {
  font-size: 0.7em;
  font-weight: 400;
  opacity: 0.7;
  line-height: 1.4;
}

.menu-section + .menu-section {
  margin-top: 24px;
}

/* Menu Category Buttons */
.menu-categories {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 32px auto;
  max-width: 900px;
  padding: 0 16px;
  flex-wrap: wrap;
}

.menu-category-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--text);
  font-family: 'Beacon Aesthetic', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 35, 48, 0.18);
  text-transform: uppercase;
}

.menu-category-btn:hover {
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 35, 48, 0.22);
}

.menu-category-btn.active {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 8px 20px rgba(0, 35, 48, 0.32);
}

/* Hide menu sections by default, show based on category */
.menu-section[data-menu-category] {
  display: none;
}

/* Show sections when their category is active */
.menu-section[data-menu-category].active {
  display: block;
}

/* Default: show georgian category */
.menu-section[data-menu-category="georgian"] {
  display: block;
}

  /* Subpage layout: small, fixed top-left logo and left-aligned hero */
  /* Subpage hero centered headers */
  .subpage .hero {
    min-height: 40vh;
    align-items: center;
    text-align: center;
    padding-top: 48px;
  }
  
  /* Footer */
  .footer { 
    background: rgba(244, 241, 234, 0.7);
    border-top: 1px solid var(--border); 
    padding: 32px 16px; 
    text-align: center; 
    color: var(--text);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 35, 48, 0.15);
    margin: 32px auto 0;
    max-width: 900px;
    margin-bottom: 80px;
  }
  
  [data-theme="dark"] .footer {
    background: rgba(26, 35, 38, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  .footer h3 { margin: 0 0 8px; letter-spacing: 0.06em; font-weight: 700; }
  .footer p { margin: 4px 0; font-weight: 600; }
  .footer a {
    color: var(--text);
    text-decoration: none;
    transition: opacity 0.2s ease;
  }
  .footer a:hover {
    opacity: 0.7;
  }
  
  /* Map Section */
  .map-section {
    padding: 40px 32px;
  }
  
  .map-container {
    width: 100%;
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 35, 48, 0.15);
    margin-top: 20px;
  }
  
  [data-theme="dark"] .map-container {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
  
  .map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
  }
  
  /* Fade-in animation used by script.js */
  .fade { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
  .fade.visible { opacity: 1; transform: none; }

@media (max-width: 640px) {
  .navbar {
    height: auto;
    min-height: unset;
    max-height: none;
    padding: 8px 0;
  }
  .navbar .nav-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .navbar .brand {
    justify-content: center;
    padding: 0;
    margin: 0;
  }
  .navbar ul {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .navbar li {
    width: 100%;
  }
  .navbar a {
    width: 100%;
    padding: 10px 16px;
    border-radius: 12px;
  }
  .lang-switcher {
    justify-content: center;
    padding: 0;
    gap: 8px;
  }
  .lang-btn {
    padding: 6px 14px;
    min-width: 0;
    box-shadow: 0 3px 10px rgba(0, 35, 48, 0.18);
  }
  .hero {
    min-height: 60vh;
    padding-top: 32px;
  }
  .section,
  .footer {
    margin: 24px 12px;
    padding: 28px 20px;
  }
}