/*
Theme Name: Sala Victoria Modern
Theme URI: https://sala-victoria.pl
Author: ECOMP / OpenAI Codex
Description: Nowoczesny, lekki motyw dla Sali Victoria w Tuchlinie.
Version: 1.1.1
Text Domain: sala-victoria-modern
*/

:root {
  --ink: #1d1b1a;
  --muted: #6f6863;
  --paper: #f8f5f0;
  --surface: #fffdf9;
  --wine: #6c2231;
  --wine-dark: #49131f;
  --gold: #b99658;
  --line: rgba(29, 27, 26, .13);
  --shadow: 0 24px 70px rgba(35, 24, 20, .14);
  --radius: 1.25rem;
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 100;
  inset: 0 0 auto;
  color: #fff;
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-sticky {
  position: fixed;
  color: var(--ink);
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 8px 35px rgba(33, 22, 18, .08);
  backdrop-filter: blur(14px);
}
.menu-open .site-header { color: var(--ink); }
.menu-open .menu-toggle { border-color: var(--line); }
.admin-bar .site-header.is-sticky { top: 32px; }
.header-inner {
  width: min(calc(100% - 3rem), var(--content));
  min-height: 92px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: inherit;
  text-decoration: none;
  min-width: max-content;
}
.brand-copy { display: grid; line-height: 1.12; }
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  letter-spacing: .02em;
}
.brand-place {
  margin-top: .28rem;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .78;
}
.site-nav { display: flex; align-items: center; gap: 1.8rem; }
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  position: relative;
  color: inherit;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .035em;
  text-decoration: none;
}
.site-nav .menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -.45rem;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: currentColor;
  transition: transform .2s ease;
}
.site-nav .menu a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .6rem 1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.site-header.is-sticky .menu-toggle { border-color: var(--line); }
.menu-toggle .menu-line,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 19px;
  height: 1px;
  margin: 5px auto;
  background: currentColor;
  content: "";
  transition: transform .2s ease, opacity .2s ease;
}
.menu-open .menu-toggle .menu-line { opacity: 0; }
.menu-open .menu-toggle::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle::after { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: min(860px, 92svh);
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #261a1b;
}
.hero-media,
.hero-media img,
.page-hero-media,
.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img,
.page-hero-media img { object-fit: cover; }
.hero-media img,
.page-hero-media img {
  image-rendering: auto;
  transform: translate3d(0, var(--media-y, 0), 0) scale(1.055);
  animation: hero-media-in 1.6s cubic-bezier(.2,.72,.2,1) both;
  will-change: transform;
}
.hero::before,
.page-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.16), transparent 26%),
    linear-gradient(115deg, transparent 35%, rgba(255,255,255,.08) 50%, transparent 66%);
  background-size: auto, 220% 100%;
  animation: hero-light 9s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
.hero-media img { object-position: 50% 48%; }
.hero::after,
.page-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(20, 10, 12, .82) 0%, rgba(20, 10, 12, .35) 52%, rgba(20, 10, 12, .2) 100%),
    linear-gradient(0deg, rgba(20, 10, 12, .48), transparent 50%);
}
.hero-media, .page-hero-media { z-index: -2; }
.hero-inner {
  width: min(calc(100% - 3rem), var(--content));
  margin: 0 auto;
  padding: 10.5rem 0 7rem;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 1.25rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.eyebrow::before { width: 38px; height: 1px; background: var(--gold); content: ""; }
.hero h1,
.page-hero h1,
.section-heading h2,
.editorial-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .98;
}
.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(3.25rem, 7.4vw, 7.2rem);
}
.hero-lead {
  max-width: 640px;
  margin: 1.5rem 0 0;
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  color: rgba(255,255,255,.86);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: .75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .83rem;
  font-weight: 800;
  letter-spacing: .045em;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--wine); color: #fff; }
.button-primary:hover { background: var(--wine-dark); }
.button-light { background: #fff; color: var(--ink); }
.button-ghost { border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.play-button::before {
  width: 0;
  height: 0;
  margin-right: .7rem;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  content: "";
}

.quick-facts {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 3rem), var(--content));
  margin: -2.25rem auto 0;
  padding: 1.65rem 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.fact { padding: .2rem 2rem; border-right: 1px solid var(--line); }
.fact:first-child { padding-left: 0; }
.fact:last-child { border: 0; padding-right: 0; }
.fact strong { display: block; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.fact span { color: var(--muted); font-size: .84rem; }

.section { padding: clamp(5rem, 9vw, 9rem) 0; }
.section-soft { background: var(--surface); }
.container { width: min(calc(100% - 3rem), var(--content)); margin: auto; }
.section-heading { max-width: 760px; margin-bottom: 3rem; }
.section-heading h2,
.editorial-title { margin: 0; font-size: clamp(2.7rem, 5.5vw, 5rem); }
.section-heading p { color: var(--muted); }
.intro-grid,
.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: center;
}
.intro-copy > :first-child,
.rich-content > :first-child { margin-top: 0; }
.intro-copy > :last-child,
.rich-content > :last-child { margin-bottom: 0; }
.intro-copy p:first-child { font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.5; }
.signature { margin-top: 2rem; color: var(--wine); font-family: Georgia, serif; font-size: 1.15rem; }
.image-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.image-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}
.image-frame img { width: 100%; height: min(650px, 62vw); object-fit: cover; }
.image-frame img { transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .65s ease; }
.image-frame:hover img { transform: scale(1.025); filter: saturate(1.04) contrast(1.02); }
.split-grid.reverse > :first-child { order: 2; }
.event-list ul,
.offer-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.event-list li,
.offer-list li {
  position: relative;
  padding: .85rem 0 .85rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.event-list li::before,
.offer-list li::before { position: absolute; left: 0; color: var(--gold); content: "•"; }
.text-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--wine);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.text-link::after { margin-left: .5rem; content: "→"; }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 210px;
  gap: .75rem;
}
.gallery-preview figure { position: relative; margin: 0; overflow: hidden; border-radius: .9rem; }
.gallery-preview figure:nth-child(1),
.gallery-preview figure:nth-child(4) { grid-column: span 7; grid-row: span 2; }
.gallery-preview figure:nth-child(2),
.gallery-preview figure:nth-child(3),
.gallery-preview figure:nth-child(5),
.gallery-preview figure:nth-child(6) { grid-column: span 5; }
.gallery-preview img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.gallery-preview a:hover img { transform: scale(1.035); }

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 10vw, 8rem) 0;
  color: #fff;
  background: var(--wine-dark);
}
.cta-band::before {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(185,150,88,.35), transparent 36%);
  content: "";
}
.cta-inner { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.cta-inner h2 { max-width: 760px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; line-height: 1.03; }

.page-hero {
  position: relative;
  min-height: 470px;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #261a1b;
}
.page-hero .container { padding: 10rem 0 4.5rem; }
.page-hero h1 { max-width: 900px; margin: 0; font-size: clamp(3.25rem, 7vw, 6.4rem); }
.page-main { min-height: 50vh; }
.rich-content { max-width: 900px; margin: 0 auto; }
.rich-content h2,
.rich-content h3 { font-family: Georgia, serif; font-weight: 400; line-height: 1.15; }
.rich-content h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.rich-content p { margin: 1.15rem 0; }
.rich-content ul { padding-left: 1.25rem; }
.rich-content iframe { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: .8rem; }

.page-gallery .rich-content { max-width: none; }
.page-gallery .rl-gallery-container,
.page-gallery .rl-basicgrid-gallery { margin: 0 !important; }
.page-gallery .rl-gallery .rl-gallery-item,
.page-gallery .rl-basicgrid-gallery .rl-gallery-item { overflow: hidden; border-radius: .65rem; }
.page-gallery .rl-gallery img { transition: transform .45s ease; }
.page-gallery .rl-gallery a:hover img { transform: scale(1.03); }
.page-gallery .rich-content > iframe,
.page-gallery .rich-content > figure { margin: 1.5rem 0 0; }

.contact-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.contact-card + .contact-card { margin-top: 1rem; }
.contact-label { display: block; color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.contact-value { display: block; margin-top: .35rem; color: var(--wine); font-family: Georgia, serif; font-size: clamp(1.25rem, 2vw, 1.7rem); text-decoration: none; }
.map-frame { overflow: hidden; min-height: 520px; border-radius: var(--radius); box-shadow: var(--shadow); }
.map-frame iframe { width: 100%; height: 520px; border: 0; }

.site-footer { padding: 4rem 0 1.5rem; color: rgba(255,255,255,.78); background: #1f1918; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 4rem; }
.footer-logo { color: #fff; font-family: Georgia, serif; font-size: 1.8rem; }
.site-footer h2 { margin: 0 0 1rem; color: #fff; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.site-footer p { margin: .3rem 0; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { margin-top: 3.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .76rem; }

.video-modal {
  width: min(1060px, calc(100% - 2rem));
  padding: 0;
  border: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 30px 100px rgba(0,0,0,.5);
}
.video-modal::backdrop { background: rgba(13, 8, 9, .85); backdrop-filter: blur(4px); }
.video-wrap { position: relative; aspect-ratio: 16/9; }
.video-wrap iframe { width: 100%; height: 100%; border: 0; }
.video-close {
  position: fixed;
  z-index: 2;
  top: 1.25rem;
  right: 1.25rem;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  cursor: pointer;
}

@keyframes hero-media-in {
  from { opacity: 0; transform: translate3d(0, var(--media-y, 0), 0) scale(1.12); filter: saturate(.72) contrast(.92); }
  to { opacity: 1; transform: translate3d(0, var(--media-y, 0), 0) scale(1.055); filter: saturate(1) contrast(1); }
}
@keyframes hero-light {
  from { background-position: center, 0 0; opacity: .55; }
  to { background-position: center, 100% 0; opacity: .9; }
}

html.has-motion .reveal-item {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
html.has-motion .reveal-item.is-visible { opacity: 1; transform: none; }

body .pea_cook_wrapper {
  right: 1rem !important;
  bottom: 1rem !important;
  left: auto !important;
  width: min(420px, calc(100% - 2rem)) !important;
  padding: 1rem 1.1rem !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: .9rem !important;
  background: rgba(31, 25, 24, .96) !important;
  box-shadow: 0 18px 55px rgba(0,0,0,.24) !important;
}
body .pea_cook_wrapper p { margin: 0 !important; color: #fff !important; font-size: .76rem !important; line-height: 1.5 !important; }
body .pea_cook_wrapper a { color: #fff !important; }
body .pea_cook_wrapper .pea_cook_btn {
  margin-left: .7rem !important;
  padding: .45rem .85rem !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: var(--wine) !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
}

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    padding: 8rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    color: var(--ink);
    background: var(--surface);
    transition: opacity .2s ease, visibility .2s ease;
  }
  .menu-open .site-nav { z-index: -1; visibility: visible; opacity: 1; }
  .site-nav .menu { flex-direction: column; gap: 1.2rem; }
  .site-nav a { font-family: Georgia, serif; font-size: 1.85rem; font-weight: 400; }
  .site-nav .nav-cta { font-family: inherit; font-size: .82rem; font-weight: 800; }
  .intro-grid, .split-grid, .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .split-grid.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .admin-bar .site-header.is-sticky { top: 46px; }
  .header-inner, .container, .hero-inner, .quick-facts { width: min(calc(100% - 2rem), var(--content)); }
  .header-inner { min-height: 76px; }
  .brand-name { font-size: 1.05rem; }
  .brand-place { font-size: .58rem; }
  .hero { min-height: 780px; }
  .hero-media img { object-position: 58% 50%; }
  .hero-inner { padding: 8.5rem 0 7rem; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 5rem); }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { flex: 1 1 100%; }
  .quick-facts { grid-template-columns: 1fr; margin-top: -2.8rem; padding: 1rem 1.3rem; }
  .fact, .fact:first-child, .fact:last-child { padding: 1rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .fact:last-child { border-bottom: 0; }
  .section { padding: 4.5rem 0; }
  .section-heading { margin-bottom: 2rem; }
  .image-frame img { height: 110vw; max-height: 620px; }
  .event-list ul, .offer-list { grid-template-columns: 1fr; }
  .gallery-preview { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; }
  .gallery-preview figure:nth-child(n) { grid-column: span 1; grid-row: span 1; }
  .gallery-preview figure:first-child { grid-column: span 2; grid-row: span 2; }
  .cta-inner { align-items: stretch; flex-direction: column; }
  .page-hero { min-height: 400px; }
  .page-hero .container { padding: 8rem 0 3.5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .map-frame, .map-frame iframe { min-height: 380px; height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .hero-media img, .page-hero-media img { transform: none !important; }
}
