/* =========================================================
   DIE KOSTBAR — Wine Bar / Stadtheuriger
   Palette taken from the logo:
   --plum: muted purple-grey background
   --cream: warm off-white text
   ========================================================= */

:root {
  --app-height: 100vh;
  --hero-mobile-extra: 2.5rem;

  /* Brand */
  --plum:        #746f86;
  --plum-deep:   #615c73;
  --plum-darker: #4f4a61;
  --cream:       #f6f3e7;
  --cream-soft:  #fbf8f0;
  --cream-dim:   rgba(246, 243, 231, 0.78);
  --cream-faint: rgba(246, 243, 231, 0.24);
  --gold:        #c9a96a; /* subtle accent */

  /* Typography */
  --f-display: "Cormorant", "Times New Roman", serif;
  --f-body:    "Jost", system-ui, sans-serif;

  /* Layout */
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max:    1280px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background: linear-gradient(180deg, #827c96 0%, #6f6982 100%);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: opacity 0.25s var(--ease); }
a:hover { opacity: 0.7; }

em { font-style: italic; color: var(--cream-soft); }

::selection { background: var(--cream); color: var(--plum-deep); }


/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--gutter);
  transition: background 0.3s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(97, 92, 115, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.7rem var(--gutter);
  border-bottom: 1px solid var(--cream-faint);
}

.nav__brand img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  transition: transform 0.4s var(--ease);
}
.nav.is-scrolled .nav__brand img { height: 40px; width: 40px; }
.nav__brand:hover img { transform: rotate(-6deg); opacity: 1; }

.nav__links {
  display: flex;
  gap: 2.5rem;
}
.nav__links a {
  font-family: var(--f-body);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding: 0.4rem 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--cream);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.4s var(--ease);
}
.nav__links a:hover { opacity: 1; }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left center; }

.nav__burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 6px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: var(--cream);
  transition: width 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { width: 22px; }
.nav__burger span:nth-child(2) { width: 16px; }
.nav__burger span:nth-child(3) { width: 22px; }
.nav__burger:hover span:nth-child(2) { width: 22px; }


/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--plum-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.drawer.is-open { opacity: 1; pointer-events: auto; }

.drawer__close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: none;
  border: 0;
  color: var(--cream);
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.25s var(--ease);
}
.drawer__close:hover { background: var(--cream-faint); }

.drawer__links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}
.drawer__link {
  font-family: var(--f-display);
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s var(--ease);
}
.drawer.is-open .drawer__link { opacity: 1; transform: translateY(0); }
.drawer.is-open .drawer__link:nth-child(1) { transition-delay: 0.15s; }
.drawer.is-open .drawer__link:nth-child(2) { transition-delay: 0.22s; }
.drawer.is-open .drawer__link:nth-child(3) { transition-delay: 0.29s; }
.drawer__link:hover { color: var(--gold); opacity: 1; }


/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 5rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(255, 255, 255, 0.12) 0%, transparent 58%),
    linear-gradient(180deg, #7f7992 0%, #6b657d 100%);
}

/* Subtle film grain for atmosphere */
.hero__grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero__eyebrow {
  font-family: var(--f-body);
  font-size: 0.8rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--cream-dim);
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.2s forwards;
}

.hero__logo {
  width: clamp(220px, 32vw, 360px);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  animation: fade-up 1.1s var(--ease) 0.4s forwards;
}

.hero-ready .hero__logo {
  opacity: 1;
}

.hero__tagline {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--cream-soft);
  opacity: 0;
  animation: fade-up 1s var(--ease) 0.7s forwards;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}
.hero__dot { color: var(--gold); }

@keyframes fade-up {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Scroll indicator — wine glass with animated pour */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translate(-50%, 12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream-dim);
  opacity: 0;
  animation: fade-up-center 1s var(--ease) 1.2s forwards;
  z-index: 3;
  transition: color 0.3s var(--ease);
}
.scroll-indicator:hover { color: var(--cream); opacity: 1; }

.scroll-indicator__glass {
  width: 26px;
  height: 40px;
  animation: bob 2.6s ease-in-out infinite;
}
.scroll-indicator__wine {
  fill: var(--gold);
  opacity: 0.85;
  transform-origin: center 18px;
  animation: pour 3.2s ease-in-out infinite;
}
.scroll-indicator__label {
  font-size: 0.65rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}
@keyframes pour {
  0%   { transform: scaleY(0.1); opacity: 0; }
  20%  { transform: scaleY(0.5); opacity: 0.85; }
  60%  { transform: scaleY(1);   opacity: 0.85; }
  100% { transform: scaleY(1);   opacity: 0.85; }
}

@keyframes fade-up-center {
  to { opacity: 1; transform: translate(-50%, 0); }
}


/* =========================================================
   SECTION HEAD (shared)
   ========================================================= */
section { padding: 7rem var(--gutter); }

.about > *,
.menu > *,
.find > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.about,
.menu,
.find {
  border-radius: 0;
}

.about {
  background: linear-gradient(180deg, #8b849d 0%, #7d7690 100%);
}

.menu {
  background: linear-gradient(180deg, #f7f0df 0%, #efe6d2 100%);
  color: #4f4656;
}

.find {
  background: linear-gradient(180deg, #7a738d 0%, #686179 100%);
}

.menu .section-head__title,
.menu .menu__name,
.menu .menu__feature-lead,
.menu .find__label {
  color: #473f50;
}

.menu .menu__desc,
.menu .menu__note {
  color: rgba(71, 63, 80, 0.8);
}

.menu .menu__item {
  border-bottom-color: rgba(71, 63, 80, 0.2);
}

.menu .menu__dots {
  border-bottom-color: rgba(71, 63, 80, 0.3);
}

.menu .menu__feature-frame {
  border-color: rgba(255, 252, 245, 0.95);
  background: rgba(255, 252, 245, 0.95);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 4rem;
}
.section-head__num {
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--gold);
}
.section-head__title {
  font-family: var(--f-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1;
}
.section-head__rule {
  flex: 1;
  height: 1px;
  background: var(--cream-faint);
}


/* =========================================================
   ABOUT
   ========================================================= */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about__images {
  position: relative;
  aspect-ratio: 4/5;
}
.about__img {
  position: absolute;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.about__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about__img:hover img { transform: scale(1.04); }
.about__img--lg {
  top: 0; left: 0;
  width: 75%; height: 75%;
}
.about__img--sm {
  bottom: 0; right: 0;
  width: 55%; height: 50%;
  border: 8px solid var(--plum);
}

.about__text p { margin-bottom: 1.2rem; color: var(--cream-soft); }
.about__lead {
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--cream) !important;
  margin-bottom: 2rem !important;
  letter-spacing: 0.005em;
}
.about__sign {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--gold) !important;
  margin-top: 2rem;
}


/* =========================================================
   MENU
   ========================================================= */
.menu__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: 4rem;
}

.menu__category {
  font-family: var(--f-display);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin-bottom: 0.3rem;
}
.menu__sub {
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}

.menu__list { list-style: none; }
.menu__item {
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--cream-faint);
}
.menu__item:last-child { border-bottom: 0; }

.menu__row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.menu__name {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.menu__dots {
  flex: 1;
  height: 1px;
  border-bottom: 1px dotted var(--cream-faint);
  transform: translateY(-4px);
  min-width: 1rem;
}
.menu__price {
  font-family: var(--f-body);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--gold);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.menu__desc {
  font-size: 0.88rem;
  color: var(--cream-dim);
  font-style: italic;
  line-height: 1.5;
}

.menu__feature {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: center;
}

.menu__feature-frame {
  border-radius: 2px;
  border: 10px solid rgba(246, 243, 231, 0.95);
  background: rgba(246, 243, 231, 0.95);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4/5;
  max-height: 560px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
}

.menu__feature-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: rgba(30, 28, 36, 0.6);
  transition: transform 1.2s var(--ease);
}

.menu__feature-frame:hover img { transform: scale(1.02); }

.menu__feature-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.menu__feature-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

.menu__feature-lead {
  font-family: var(--f-display);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--cream);
}

.menu__feature figure {
  border-radius: 2px;
  margin: 0;
}

.menu__note {
  text-align: left;
  margin-top: 0;
  font-style: italic;
  font-family: var(--f-display);
  font-size: 1.05rem;
  color: var(--cream-dim);
}


/* =========================================================
   FIND US
   ========================================================= */
.find__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2rem, 5vw, 4rem);
}

.find__info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.find__label {
  font-family: var(--f-body);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.find__block p {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--cream);
}

.hours { list-style: none; }
.hours li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-faint);
  font-family: var(--f-body);
  font-size: 0.95rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li > span:first-child {
  letter-spacing: 0.05em;
  color: var(--cream);
}
.hours__time {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.hours__time--closed {
  color: var(--cream-dim);
  font-style: italic;
}

.social {
  display: inline-flex;
  width: 48px; height: 48px;
  align-items: center; justify-content: center;
  border: 1px solid var(--cream-faint);
  border-radius: 50%;
  color: var(--cream);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.social:hover {
  background: var(--cream);
  color: var(--plum-deep);
  border-color: var(--cream);
  opacity: 1;
}

.find__map {
  border-radius: 2px;
  overflow: hidden;
  min-height: 460px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  filter: grayscale(0.4) contrast(0.95);
  transition: filter 0.5s var(--ease);
}
.find__map:hover { filter: grayscale(0) contrast(1); }
.find__map iframe { width: 100%; height: 100%; min-height: 460px; }


/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #5b556d;
  padding: 3rem var(--gutter);
  margin-top: 4rem;
}
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer__logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  opacity: 0.9;
}
.footer__copy {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-dim);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }

  .about__grid,
  .menu__layout,
  .find__grid {
    grid-template-columns: 1fr;
  }
  .about__images {
    aspect-ratio: 4/5;
    width: min(100%, 560px);
    margin: 0 auto;
  }
  .about__img--lg {
    top: 0;
    left: 0;
    width: 75%;
    height: 75%;
  }
  .about__img--sm {
    right: 0;
    bottom: 0;
    width: 55%;
    height: 50%;
  }
  .menu__layout { gap: 4rem; }
  .menu__feature { grid-template-columns: 1fr; }
  .menu__feature-frame {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 3/4;
    max-height: none;
  }
  .menu__feature-frame img { object-fit: cover; object-position: center; }
  .menu__feature-text { text-align: center; align-items: center; }
  .menu__note { text-align: center; }
  .find__map { min-height: 360px; }
  .find__map iframe { min-height: 360px; }

  section { padding: 5rem var(--gutter); }
  .section-head { margin-bottom: 2.5rem; }
}

@media (max-width: 860px) {
  .footer {
    margin-top: 0;
    padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px) + 2.75rem);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: calc(var(--app-height) + var(--hero-mobile-extra));
  }
}

@media (max-width: 600px) {
  .hero__tagline { font-size: 1rem; gap: 0.4rem; flex-wrap: nowrap; white-space: nowrap; }
  .hero__eyebrow { font-size: 0.7rem; }

  .menu__row { flex-wrap: wrap; }
  .menu__dots { min-width: 0.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
