/* =====================================================================
   GLOBAL + LANDING STYLES
   ===================================================================== */

:root {
  --cream: #f5ede0;
  --paper: #faf5ea;
  --ink: #0a0a0a;
  --ink-soft: #2a1810;
  --accent-red: #c23a28;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  font-family: 'DM Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* =====================================================================
   LANDING
   ===================================================================== */
.landing-root {
  height: 100vh;
  min-height: 700px;
  position: relative;
  background: #efe8d9;
  overflow: hidden;
}

.landing-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 22px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  color: #fff;
  mix-blend-mode: difference;
}
.header-left {
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 600;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.15em;
  cursor: pointer;
  display: flex;
  gap: 6px;
}
.lang-btn span { opacity: 0.45; }
.lang-btn .on { opacity: 1; font-weight: 700; }

/* --- Split --- */
.split {
  display: flex;
  width: 100%;
  height: 100%;
  position: relative;
}

.side-panel {
  flex: 1;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.panel-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

/* Overlay: cevabdzinica = warm cream, restoran = cool off-white.
   On hover it slides out toward its own edge (no zoom, clean reveal). */
.panel-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  transition: transform 0.7s cubic-bezier(.22,1,.36,1);
}
.side-cev .panel-overlay {
  background: rgba(245, 237, 224, 0.88);
}
.side-rest .panel-overlay {
  background: rgba(250, 249, 246, 0.88);
}

/* Title block — grows and shifts emphasis on hover */
.panel-title-wrap {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 7vw;
  color: var(--ink);
  pointer-events: none;
}
.panel-title-wrap.side-cev { padding-right: 12vw; }
.panel-title-wrap.side-rest {
  padding-left: 12vw;
  align-items: flex-end;
  text-align: right;
}

.panel-eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
  transition: transform 0.5s;
}

.panel-title {
  font-size: clamp(52px, 8vw, 128px);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  text-wrap: balance;
  transition: font-size 0.6s cubic-bezier(.22,1,.36,1), letter-spacing 0.6s;
  transform-origin: left center;
}
.title-cev {
  font-family: 'DM Serif Display', serif;
  font-style: italic;
}
.title-rest {
  font-family: 'Instrument Serif', serif;
}
.panel-title-wrap.side-rest .panel-title { transform-origin: right center; }

/* On hover: bump the title size */
.side-panel.hovered .panel-title {
  font-size: clamp(64px, 10vw, 172px);
  letter-spacing: -0.04em;
}

.panel-sub {
  font-size: 15px;
  line-height: 1.5;
  max-width: 380px;
  color: var(--ink-soft);
  opacity: 0.85;
  transition: opacity 0.4s;
}
.side-rest .panel-sub { margin-left: auto; }

.panel-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.3em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s, transform 0.5s;
}
.panel-cta.visible { opacity: 1; transform: translateX(0); }
.side-rest .panel-cta { margin-left: auto; transform: translateX(10px); }
.side-rest .panel-cta.visible { transform: translateX(0); }

/* --- Center medallion --- */
.center-medallion {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.medallion-ring {
  width: 220px; height: 220px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 8px #efe8d9,
    0 0 0 9px var(--ring, #1a1a1a),
    0 30px 60px -15px rgba(0,0,0,0.25);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.medallion-ring img {
  width: 82%; height: 82%;
  object-fit: contain;
}
.medallion-caption {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  letter-spacing: 0.35em;
}
.medallion-caption .line {
  width: 34px; height: 1px;
  background: var(--ink);
}
.medallion-sub {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.5em;
  font-weight: 700;
  color: var(--ink-soft);
  opacity: 0.7;
}

/* --- Footer --- */
.landing-footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  z-index: 10;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: #fff;
  mix-blend-mode: difference;
  text-transform: uppercase;
}
.landing-footer .dot { opacity: 0.5; }
.landing-footer-side { display: flex; flex-direction: column; gap: 4px; }
.landing-footer-side.side-cev { align-items: flex-start; text-align: left; }
.landing-footer-side.side-rest { align-items: flex-end; text-align: right; }
.landing-footer-side .lbl { opacity: 0.65; font-size: 9px; letter-spacing: 0.3em; }
.landing-footer-center { display: flex; gap: 10px; justify-content: center; white-space: nowrap; }

/* --- Decorative cats --- */
.panel-cat {
  position: absolute;
  bottom: -20px;
  z-index: 4;
  color: var(--ink);
  opacity: 0;
  transition: opacity 0.6s, transform 0.8s cubic-bezier(.22,1,.36,1);
  pointer-events: none;
}
.panel-cat.side-cev {
  right: 0;
  width: 160px; height: 320px;
  transform: translateY(100%);
}
.panel-cat.side-rest {
  left: 0;
  width: 160px; height: 320px;
  transform: translateY(100%) scaleX(-1);
}
.panel-cat.peek.side-cev { opacity: 0.9; transform: translateY(22%); }
.panel-cat.peek.side-rest { opacity: 0.9; transform: translateY(22%) scaleX(-1); }
.panel-cat svg, .panel-cat img { width: 100%; height: 100%; }
.panel-cat.side-cev img { object-position: right bottom !important; }
.panel-cat.side-rest img { object-position: right bottom !important; }
.intensity-minimal .panel-cat { opacity: 0.4; }

@media (max-width: 900px) {
  .split { flex-direction: column; }
  .center-medallion { width: 180px; }
  .medallion-ring { width: 140px; height: 140px; }
  .medallion-caption { font-size: 16px; }
  .panel-title { font-size: 56px !important; }
  .panel-title-wrap.side-cev,
  .panel-title-wrap.side-rest {
    padding: 0 8vw;
    align-items: center;
    text-align: center;
  }
  .side-rest .panel-sub { margin: 0 auto; }
  .landing-footer { flex-wrap: wrap; padding: 14px 20px; }
}
