/* ═══════════════════════════════════════════════════════════
   МЕХАНА БАЛКАН — stylesheet
   Design tokens → reset → base → components → sections → responsive
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. CUSTOM PROPERTIES ─────────────────────────────── */
:root {
  --primary:        #2B5133;
  --primary-hover:  #1E3A24;
  --primary-tint:   #E6EFE8;
  --secondary:      #7A4522;
  --gold:           #B8892A;
  --ink:            #1C1A16;
  --slate:          #5C5650;
  --border:         #D5CDC1;
  --surface:        #FFFFFF;
  --neutral:        #F4EFE5;
  --charcoal:       #1A1816;
  --charcoal-text:  #C8C4BC;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Lato', 'Helvetica Neue', Arial, sans-serif;

  --r-xs:   2px;
  --r-sm:   4px;
  --r-md:   8px;
  --r-pill: 9999px;

  --shadow-card:  0 2px 14px rgba(28,26,22,0.08);
  --shadow-lift:  0 8px 28px rgba(28,26,22,0.14);
  --shadow-nav:   0 1px 10px rgba(28,26,22,0.10);

  --container: 1200px;
  --header-h:  72px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── 2. RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--neutral);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

address { font-style: normal; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; }

/* ─── 3. LAYOUT UTILITIES ──────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 100px;
  background: var(--neutral);
}

.section-light {
  background: var(--surface);
}

.section-dark {
  background: var(--charcoal);
  color: var(--charcoal-text);
}

/* ─── 4. TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--ink);
  line-height: 1.2;
}

h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 600;
  margin-bottom: 20px;
}

h2 em {
  font-weight: 400;
  font-style: italic;
}

h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--surface);
  margin-bottom: 16px;
}

p { margin-bottom: 16px; }
p:last-child { margin-bottom: 0; }

.body-lg {
  font-size: 18px;
  line-height: 1.75;
}

.section-sub {
  color: var(--slate);
  font-size: 16px;
  margin-top: -8px;
  margin-bottom: 0;
}

/* ─── 5. EYEBROW / LABEL ────────────────────────────────── */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ─── 6. PULL-QUOTE ─────────────────────────────────────── */
.pull-quote {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  color: var(--secondary);
  line-height: 1.6;
  padding: 24px 0 24px 24px;
  border-left: 3px solid var(--gold);
  margin: 32px 0;
}

/* ─── 7. BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  padding: 13px 26px;
  border: 1.5px solid transparent;
  transition: background-color 200ms var(--ease),
              border-color 200ms var(--ease),
              color 200ms var(--ease),
              transform 150ms var(--ease);
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--primary);
  color: var(--surface);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
  padding: 12px 28px;
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.85);
}

.btn-outline-light {
  background: transparent;
  color: var(--surface);
  border-color: rgba(255,255,255,0.45);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
}

/* ─── 8. TEXT LINK ──────────────────────────────────────── */
.text-link {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: text-decoration-color 200ms;
}
.text-link:hover { text-decoration-color: var(--primary); }

/* ─── 9. TAGS ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--r-pill);
}

.tag-green {
  background: var(--primary-tint);
  color: var(--primary);
}

.tag-gold {
  background: #FBF3E0;
  color: var(--gold);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

/* ─── 10. SECTION HEADINGS ──────────────────────────────── */
.section-hd {
  text-align: center;
  margin-bottom: 56px;
}

.section-hd h2 { margin-bottom: 12px; }

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ─── 11. FADE-UP ANIMATION ─────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ─── 12. HEADER ────────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--neutral);
  border-bottom: 1px solid var(--border);
  transition: background 300ms var(--ease),
              border-color 300ms var(--ease),
              box-shadow 300ms var(--ease);
}

#site-header.scrolled {
  background: var(--surface);
  border-color: transparent;
  box-shadow: var(--shadow-nav);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--header-h);
}

/* Wordmark */
.wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.wordmark-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-since {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--slate);
}

/* Main nav */
.main-nav ul {
  display: flex;
  gap: 36px;
  align-items: center;
}

.main-nav a {
  position: relative;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 2px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 220ms var(--ease);
}

.main-nav a:hover { color: var(--primary); }
.main-nav a:hover::after { width: 100%; }

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-self: end;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-icon {
  display: flex;
  align-items: center;
  color: var(--slate);
  transition: color 200ms;
}
.social-icon:hover { color: var(--primary); }
.social-icon svg { width: 16px; height: 16px; }

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: none;
  border: none;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 280ms var(--ease), opacity 280ms var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── 13. MOBILE OVERLAY NAV ────────────────────────────── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--neutral);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease);
}

.mobile-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.overlay-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--ink);
  padding: 4px;
}
.overlay-close svg { width: 24px; height: 24px; }

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mobile-nav a {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  padding: 10px 0;
  transition: color 200ms;
}
.mobile-nav a:hover { color: var(--primary); }

.overlay-cta { margin-top: 8px; }

/* ─── 14. HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 800ms var(--ease);
}

.hero-slide.is-active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20,16,10,0.10) 0%,
    rgba(20,16,10,0.18) 45%,
    rgba(20,16,10,0.68) 78%,
    rgba(20,16,10,0.82) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px 80px;
  animation: heroIn 1s ease-out 0.2s both;
}

@keyframes heroIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero-eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 16px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(44px, 8vw, 76px);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(20,16,10,0.4);
  margin-bottom: 16px;
}

.hero-ornament {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}
.hero-ornament svg {
  width: 160px;
  height: 12px;
}

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(16px, 2.5vw, 22px);
  font-style: italic;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  margin-bottom: 32px;
}

.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  padding: 0;
  transition: background 300ms, transform 300ms;
}
.hero-dot.is-active {
  background: rgba(255,255,255,0.90);
  transform: scale(1.25);
}
.hero-dot:hover { background: rgba(255,255,255,0.65); }

/* ─── 15. STORY SECTION ─────────────────────────────────── */
.story-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.story-text h2 { margin-bottom: 24px; }

.story-text p { color: var(--slate); }
.story-text .body-lg { color: var(--ink); }

.story-text .text-link { margin-top: 8px; display: inline-block; }

.story-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

/* ─── 16. ATMOSPHERIC DIVIDER ───────────────────────────── */
.atm-divider {
  height: 45vh;
  min-height: 280px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* ─── 17. MENU PREVIEW ──────────────────────────────────── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.menu-card {
  display: block;
  background: var(--surface);
  border-radius: var(--r-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease);
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}

.menu-card-img {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.menu-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.menu-card:hover .menu-card-img img {
  transform: scale(1.06);
}

.menu-card-bd {
  padding: 18px 20px 20px;
}

.menu-card-bd .eyebrow {
  margin-bottom: 6px;
}

.menu-card-bd p {
  font-size: 14px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}

/* ─── 18. ABOUT SECTION ─────────────────────────────────── */
.about-wrap {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: 72px;
  align-items: center;
}

.about-text h2 { margin-bottom: 20px; }
.about-text > p { color: var(--slate); margin-bottom: 14px; }
.about-btn { margin-top: 4px; }

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: var(--r-sm);
}

/* ─── 19. GALLERY ───────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 240px);
  gap: 6px;
}

.gallery-thumb {
  position: relative;
  overflow: hidden;
}

.gallery-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(28,26,22,0);
  transition: background 250ms var(--ease);
  pointer-events: none;
}

.gallery-thumb:hover::after {
  background: rgba(28,26,22,0.28);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.gallery-thumb:hover img { transform: scale(1.06); }

/* ─── 20. ENTERTAINMENT STRIP ───────────────────────────── */
.section-ent { padding-block: 96px; }

.ent-inner {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}

.ent-icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 24px;
  color: var(--gold);
}
.ent-icon svg { width: 100%; height: 100%; }

.section-ent h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-style: italic;
  font-weight: 600;
  color: var(--surface);
  margin-bottom: 16px;
}

.section-ent p {
  color: var(--charcoal-text);
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: 36px;
}

.ent-schedule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-bottom: 40px;
}

.ent-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.ent-day-name {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.ent-day-time {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--surface);
}

.ent-dot {
  font-size: 28px;
  color: rgba(184,137,42,0.4);
  line-height: 1;
  padding-bottom: 4px;
}

/* ─── 21. HOURS & LOCATION ──────────────────────────────── */
.section-info { padding-block: 80px; }

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.info-col { display: flex; flex-direction: column; }

.info-icon {
  width: 36px;
  height: 36px;
  color: var(--gold);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.info-icon svg { width: 100%; height: 100%; }

.info-col h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--charcoal-text);
  gap: 16px;
}

.hours-list li span:first-child { color: rgba(255,255,255,0.55); }

.info-col address p,
.info-col > p {
  font-size: 15px;
  color: var(--charcoal-text);
  line-height: 1.65;
  margin-bottom: 6px;
}

.info-link {
  font-size: 14px;
  color: var(--charcoal-text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: transparent;
  transition: color 200ms, text-decoration-color 200ms;
}
.info-link:hover {
  color: var(--surface);
  text-decoration-color: var(--surface);
}

.info-cta { margin-top: 20px; align-self: flex-start; }

/* ─── 22. FOOTER ────────────────────────────────────────── */
#footer {
  background: var(--charcoal);
  color: var(--charcoal-text);
  padding-top: 72px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-logo {
  display: block;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--surface);
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--charcoal-text);
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 16px;
}

.footer-social {
  display: flex;
  align-items: center;
  color: var(--charcoal-text);
  transition: color 200ms;
}
.footer-social:hover { color: var(--surface); }
.footer-social svg { width: 18px; height: 18px; }

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--surface);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li,
.footer-col ul li a {
  font-size: 14px;
  color: var(--charcoal-text);
  transition: color 200ms;
}
.footer-col ul li a:hover { color: var(--surface); }

.footer-hours {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-hours p {
  font-size: 13px;
  color: rgba(200,196,188,0.6);
  margin-bottom: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 20px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(200,196,188,0.5);
  margin: 0;
}

.footer-bottom a {
  color: rgba(200,196,188,0.5);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: transparent;
  transition: color 200ms, text-decoration-color 200ms;
}
.footer-bottom a:hover {
  color: var(--charcoal-text);
  text-decoration-color: var(--charcoal-text);
}

/* ─── 23. RESPONSIVE ────────────────────────────────────── */

/* Tablet */
@media (max-width: 1023px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .main-nav,
  .header-actions {
    display: none;
  }
  .hamburger {
    display: flex;
    grid-column: unset;
  }

  .story-wrap,
  .about-wrap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .story-image { order: -1; }

  .story-image img,
  .about-image img {
    height: 360px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .atm-divider {
    background-attachment: scroll;
  }
}

/* Mobile */
@media (max-width: 639px) {
  .section { padding-block: 64px; }
  .section-ent { padding-block: 64px; }
  .section-info { padding-block: 56px; }

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

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 40px;
  }

  .footer-brand {
    grid-column: 1;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .hero-content { padding-bottom: 64px; }

  .ent-schedule {
    flex-direction: column;
    gap: 20px;
  }

  .ent-dot { display: none; }

  .section-hd { margin-bottom: 40px; }
}
