/* ===========================================================
   Panorama Štanjel — styles.css
   Palette pulled from the venue photos: terracotta roofs, warm
   stone grey, deep wine burgundy, sunset orange/pink, cream.
   =========================================================== */

:root {
  --terracotta: #c1633d;
  --burgundy: #6b2338;
  --burgundy-dark: #4a1826;
  --stone: #6e6a63;
  --stone-light: #a9a294;
  --cream: #faf5ec;
  --cream-deep: #f2e9d8;
  --ink: #2b241f;
  --sunset: #e08a3e;
  --gold: #d1a441;
  --wood: linear-gradient(135deg, #e6c384 0%, #a8703c 28%, #7a4f26 52%, #a8703c 76%, #e6c384 100%);
  --dark-1: #2a1c12;
  --dark-2: #21150d;
  --text-on-dark: #f3e9d8;
  --text-on-dark-muted: #c9b89a;
  /* Real wine-barrel stave + hoop texture, tiled — plus a dark scrim on top
     so it stays a consistent, moody backdrop no matter how light a given
     plank is, keeping the light cards resting on it easy to read. */
  --wood-bg-dark:
    linear-gradient(rgba(18,11,5,.5), rgba(18,11,5,.5)),
    url("images/wood-bg-dark.jpg") repeat 0 0 / 640px 283px scroll;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 30px -12px rgba(43, 36, 31, .35);
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--wood-bg-dark);
  background-color: var(--dark-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0 0 .4em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; overflow: hidden; }
.center { text-align: center; }
.kicker {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.05rem;
  margin-bottom: .3em;
}
.kicker.center { text-align: center; }
.section-note { color: var(--stone); font-size: .9rem; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  border: 2px solid transparent;
}
.btn-primary { background: var(--terracotta); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); background: #ab532f; }
.btn-ghost { border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-2px); }
.location-section .btn-primary { background: var(--burgundy); }
.location-section .btn-primary:hover { background: var(--burgundy-dark); }

/* ===================== HEADER / NAV ===================== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(250, 245, 236, 0);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled {
  background: rgba(33, 21, 13, .92);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 18px rgba(0,0,0,.25);
}
.nav-wrap {
  max-width: 1180px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 60px; height: 60px; object-fit: contain; border-radius: 50%; background: #fff; padding: 4px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.brand-name {
  font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  color: var(--text-on-dark); text-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.brand-name em { color: var(--terracotta); font-style: italic; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 500; font-size: .95rem; color: var(--text-on-dark);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 2px; width: 0;
  background: var(--terracotta); transition: width .2s ease;
}
.main-nav a:hover::after { width: 100%; }

.lang-toggle {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); border: 1px solid currentColor;
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-family: var(--font-body); font-size: .82rem; font-weight: 700;
  color: var(--text-on-dark); letter-spacing: .03em;
}
.lang-opt { opacity: .55; transition: opacity .15s ease; }
.lang-opt.active { opacity: 1; }
.lang-sep { opacity: .4; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 0; cursor: pointer;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-on-dark); transition: all .25s ease; }

/* ===================== HERO ===================== */
.hero {
  position: relative;
  height: 100svh; min-height: 560px;
  display: flex; align-items: flex-end;
  color: #fff; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroImgIn 2.2s cubic-bezier(.22,.61,.36,1) both;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(20,14,10,.25) 0%,
    rgba(20,14,10,.1) 30%,
    rgba(28,18,11,.65) 80%,
    rgba(24,16,9,.97) 100%);
}
/* Extra fade strip right at the seam so the photo eases into the wood
   background below instead of cutting off hard. */
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 22vh;
  background: linear-gradient(180deg, transparent 0%, var(--dark-1) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; padding: 0 24px 120px; max-width: 780px; margin: 0 auto; text-align: center; width: 100%; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600;
  color: var(--gold); margin-bottom: 14px;
  animation: heroUpIn .9s ease both; animation-delay: .35s;
}
.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .18em;
  animation: heroUpIn .9s ease both; animation-delay: .5s;
}
.hero-tag {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem); font-weight: 400; opacity: .95; margin-bottom: 34px;
  animation: heroUpIn .9s ease both; animation-delay: .65s;
}
.hero-cta {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: heroUpIn .9s ease both; animation-delay: .8s;
}

@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes heroUpIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-img, .eyebrow, .hero h1, .hero-tag, .hero-cta { animation: none; }
}

/* ===================== ABOUT ===================== */
.about { background: var(--wood-bg-dark); background-color: var(--dark-1); }
.two-col { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.about .two-col { grid-template-columns: .95fr 1.2fr; }
.two-col.reverse { grid-template-columns: .9fr 1.1fr; }
.two-col.reverse .map-embed { order: 2; }
.two-col.reverse .location-info { order: 1; }

/* The text block becomes its own light, wood-framed card floating on the
   dark background — same treatment as the video next to it. */
.about-text {
  border: 6px solid transparent; border-radius: var(--radius); padding: 40px 44px;
  background:
    linear-gradient(var(--cream), var(--cream)) padding-box,
    var(--wood) border-box;
  box-shadow: var(--shadow);
}
.about-text h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.lede { font-size: 1.15rem; color: var(--ink); }
.signature { font-style: italic; color: var(--stone); margin-top: 1.4em; }
.pull-quote {
  margin: 1.6em 0; padding: 4px 0 4px 28px;
  border-left: 3px solid var(--terracotta);
  font-family: var(--font-head); font-style: italic;
  font-size: 1.3rem; line-height: 1.4; color: var(--burgundy);
}
.about-media {
  border: 6px solid transparent; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(var(--ink), var(--ink)) padding-box,
    var(--wood) border-box;
  box-shadow: var(--shadow); aspect-ratio: 16/9;
}
.about-video { width: 100%; height: 100%; object-fit: contain; background: var(--ink); }

.fontana-card {
  border: 7px solid transparent; border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%) padding-box,
    var(--wood) border-box;
  color: #f6ece2; padding: 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  box-shadow: var(--shadow);
}
.fontana-card .kicker { color: var(--gold); }
.fontana-card h3 { color: #fff; font-size: 1.7rem; }
.fontana-card p { color: #e9d9cb; }
.fontana-badge {
  width: 92px; height: 92px; object-fit: contain; border-radius: 50%;
  background: var(--cream); box-shadow: 0 4px 14px rgba(0,0,0,.3); margin-bottom: 18px;
}
.wine-badges { display: flex; gap: 16px; margin-top: 20px; }
.wine-badge {
  background: #fff; border-radius: var(--radius-sm); padding: 8px 10px;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.wine-badge img { display: block; height: 64px; width: auto; }
.fontana-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.fontana-steps li { display: flex; align-items: center; gap: 16px; font-size: 1rem; }
.step-num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--burgundy-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
}

/* ===================== MENU ===================== */
.menu-section { background: var(--wood-bg-dark); background-color: var(--dark-2); }
.menu-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: .15em; color: var(--text-on-dark); }
.section-intro {
  max-width: 680px; margin: 18px auto 28px; font-size: 1.05rem; line-height: 1.65;
  color: var(--text-on-dark);
}
.menu-section .section-note { margin-bottom: 40px; color: var(--text-on-dark-muted); }

.menu-book-wrap { max-width: 1000px; margin: 0 auto; }
.menu-book { perspective: 2400px; }
.menu-book-flipper {
  position: relative; width: 100%; aspect-ratio: 1800 / 1272;
  transform-style: preserve-3d; cursor: pointer;
  transition: transform 1s cubic-bezier(.645,.045,.355,1);
}
.menu-book-flipper.flipped { transform: rotateY(-180deg); }
.menu-face {
  position: absolute; inset: 0; backface-visibility: hidden;
  border: 6px solid transparent; border-radius: var(--radius); overflow: hidden;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--wood) border-box;
  box-shadow: var(--shadow);
}
.menu-face-back { transform: rotateY(180deg); }
.menu-face img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }

.menu-zoom {
  position: absolute; right: 14px; bottom: 14px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(20,14,10,.55); color: #fff; cursor: zoom-in;
  display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background .18s ease, transform .18s ease;
}
.menu-zoom:hover { background: rgba(20,14,10,.82); transform: scale(1.06); }

.menu-book-controls {
  display: flex; align-items: center; justify-content: center; gap: 22px;
  margin-top: 26px;
}
.menu-flip-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--stone-light);
  background: #fff; color: var(--stone); cursor: pointer; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.menu-flip-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.menu-flip-btn.disabled { opacity: .32; pointer-events: none; }
.menu-page-indicator {
  font-family: var(--font-head); font-style: italic; color: var(--text-on-dark-muted);
  font-size: .92rem; min-width: 48px; text-align: center;
}
.menu-hint {
  text-align: center; font-size: .82rem; color: var(--text-on-dark-muted); font-style: italic;
  margin-top: 22px;
}

/* ===================== GALLERY ===================== */
.gallery-section { background: var(--wood-bg-dark); background-color: var(--dark-1); }
.gallery-section h2 { margin-bottom: 44px; color: var(--text-on-dark); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}
.gallery-item {
  position: relative; overflow: hidden; border-radius: var(--radius-sm);
  cursor: pointer; background: var(--dark-2);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: transform .5s ease, opacity .45s ease;
}
.gallery-item img.loaded { opacity: 1; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: '＋'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem; opacity: 0; background: rgba(43,36,31,.35); transition: opacity .25s ease;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

/* ===================== LOCATION ===================== */
.location-section { background: var(--wood-bg-dark); background-color: var(--dark-2); }
.map-embed {
  border: 6px solid transparent; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(#fff, #fff) padding-box, var(--wood) border-box;
  box-shadow: var(--shadow); aspect-ratio: 4/3.4;
}
.location-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.3rem); color: var(--text-on-dark); }
.location-info .kicker { color: var(--gold); }
.addr { font-size: 1.1rem; font-weight: 600; color: var(--text-on-dark); }
.hours { margin: 24px 0; padding: 20px 22px; background: #fff; border-radius: var(--radius-sm); border-left: 4px solid var(--terracotta); }
.hours h3 { font-size: 1.05rem; margin-bottom: 6px; }
.hours p { margin: 0; color: var(--stone); font-size: .95rem; }
.discover-note { margin: 0 0 28px; }
.discover-note h3 { font-size: 1.1rem; color: var(--text-on-dark); margin-bottom: 8px; }
.discover-note p { margin: 0; color: var(--text-on-dark-muted); font-size: .95rem; }

/* ===================== CONTACT ===================== */
.contact-section { background: var(--wood-bg-dark); background-color: var(--dark-1); }
.contact-section h2 { margin-bottom: 44px; color: var(--text-on-dark); }
.contact-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 28px 22px;
  text-align: center; box-shadow: 0 8px 24px -16px rgba(43,36,31,.25);
  transition: transform .2s ease, box-shadow .2s ease;
  flex: 1 1 180px; max-width: 220px;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.contact-ic { font-size: 1.8rem; display: block; margin-bottom: 10px; }
.contact-ic-brand { width: 40px; height: 40px; margin: 0 auto 10px; }
.contact-ic-brand svg { width: 100%; height: 100%; display: block; }
.contact-label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); margin-bottom: 4px; }
.contact-val { display: block; font-weight: 700; color: var(--burgundy); font-family: var(--font-head); }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--wood-bg-dark); background-color: var(--dark-2); color: #cfc6ba; padding: 34px 0; }
.footer-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.footer-sub { color: #8f887c; }

/* ===================== LIGHTBOX ===================== */
.lightbox {
  position: fixed; inset: 0; z-index: 1000; background: rgba(15, 11, 8, .94);
  display: none; align-items: center; justify-content: center; padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-nav {
  position: absolute; background: rgba(255,255,255,.08); color: #fff; border: none;
  cursor: pointer; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-close { top: 24px; right: 24px; width: 46px; height: 46px; font-size: 1.6rem; }
.lightbox-nav { top: 50%; transform: translateY(-50%); width: 54px; height: 54px; font-size: 1.3rem; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===================== SCROLL REVEAL ===================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].in-view { opacity: 1; transform: none; }

/* ===================== RESPONSIVE ===================== */
/* Nav switches to the hamburger/drawer well before the two-column sections
   stack — a full 5-link row plus the lang toggle needs ~950px+ to sit
   comfortably next to the logo, so tablets (768–900px) get the drawer too. */
@media (max-width: 900px) {
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    background: var(--wood-bg-dark); background-color: var(--dark-2);
    flex-direction: column; align-items: flex-start;
    padding: 30px 28px; gap: 22px; transform: translateX(100%);
    transition: transform .3s ease; overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav a { text-shadow: none !important; font-size: 1.15rem; }
  .lang-toggle { margin-top: 10px; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 980px) {
  .two-col, .two-col.reverse, .about .two-col { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .map-embed, .two-col.reverse .location-info { order: initial; }
  /* Once text and media stack, let the text sit in a comfortable reading
     column instead of stretching edge-to-edge — full-width lines at
     tablet widths get too long to read easily. */
  .about-text, .location-info { max-width: 620px; margin-left: auto; margin-right: auto; }
  .about-media { max-width: 620px; margin: 0 auto; }
  .fontana-card { grid-template-columns: 1fr; padding: 34px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
}

@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero-content { padding-bottom: 90px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .contact-card { flex: 1 1 100%; max-width: 360px; }
  .fontana-steps li { font-size: .92rem; }
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 42px; height: 42px; }
}
