/* Brankica Beric · Venice guide — version-1 look, one scrolling page */
:root {
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, .94);
  --gold: #f6d08f;
  --shadow: 0 1px 2px rgba(0,0,0,.55), 0 2px 22px rgba(0,0,0,.5);
  --night: #14110e;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --pad: clamp(16px, 5vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body {
  background: var(--night); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- header: transparent on the photo, solid once you scroll ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 10;
  text-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px var(--pad);
  transition: background .4s, padding .4s, box-shadow .4s;
}
.top.solid { background: rgba(20, 17, 14, .92); backdrop-filter: blur(8px); padding-block: 14px; box-shadow: 0 1px 0 rgba(246,208,143,.18); text-shadow: none; }
.brand { font-family: var(--serif); font-size: clamp(1.75rem, 1.2rem + 1.1vw, 2.35rem); letter-spacing: .02em; line-height: 1.05; transition: font-size .4s; }
.top.solid .brand { font-size: clamp(1.55rem, 1.15rem + .8vw, 1.95rem); }
.brand small {
  display: block; margin-top: 3px; font-family: var(--sans); font-size: clamp(.64rem, .55rem + .2vw, .76rem);
  letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
}
.nav { display: flex; align-items: center; gap: clamp(18px, 2.5vw, 36px); }
.nav > a {
  font-size: .74rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .3s, color .3s;
}
.nav > a:hover, .nav > a.cur { border-color: var(--gold); color: var(--gold); }
.langs { display: flex; gap: 10px; margin-left: 8px; padding-left: 20px; border-left: 1px solid rgba(255,255,255,.5); }
.langs a { font-size: .74rem; font-weight: 500; letter-spacing: .2em; color: var(--ink-soft); }
.langs a[aria-current] { color: var(--gold); }
.menu { display: none; background: none; border: 0; color: var(--ink); font: inherit;
  font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; text-shadow: var(--shadow); }

/* ---------- the photo layer: fixed behind the page, photos melt into each other ---------- */
.stage { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--night); }
.layer { position: absolute; inset: 0; opacity: 0; will-change: opacity, transform; }
.layer:first-child { opacity: 1; }
.layer img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.layer::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,8,6,.6) 0%, rgba(10,8,6,0) 28%),
    radial-gradient(ellipse 85% 75% at 0% 100%, rgba(10,8,6,.78) 0%, rgba(10,8,6,0) 70%),
    linear-gradient(0deg, rgba(10,8,6,.88) 0%, rgba(10,8,6,.4) 45%, rgba(10,8,6,.1) 80%);
}
/* about: the portrait sits on the right half, with the mosaics */
.layer.half img { left: auto; width: 50%; object-position: 50% 20%; }
.layer.half::after { background: linear-gradient(90deg, var(--night) 50%, rgba(10,8,6,0) 64%), linear-gradient(0deg, rgba(10,8,6,.5), rgba(10,8,6,0) 40%); }
.layer.dark::after {
  background:
    linear-gradient(90deg, rgba(10,8,6,.94) 0%, rgba(10,8,6,.8) 50%, rgba(10,8,6,.45) 100%),
    linear-gradient(180deg, rgba(10,8,6,.72) 0%, rgba(10,8,6,0) 30%);
}
/* a soft dark wash that thickens between two photos, so the change feels like dusk, not a cut */
.veil { position: absolute; inset: 0; background: var(--night); opacity: 0; pointer-events: none; }

/* ---------- sections: just text, generous room so the photos have time to change ---------- */
.slide {
  position: relative;
  min-height: 115vh; min-height: 115svh;
  display: flex; align-items: center;
  padding: 160px var(--pad);
}
.hero { min-height: 100vh; min-height: 100svh; flex-direction: column; justify-content: flex-end; align-items: stretch; padding-bottom: clamp(40px, 7vh, 80px); }
.text { max-width: 700px; text-shadow: var(--shadow); }
.hero .text > * { animation: rise 1.2s .2s ease-out both; }
.hero .text > :nth-child(2) { animation-delay: .35s; } .hero .text > :nth-child(3) { animation-delay: .5s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: clamp(.74rem, .6rem + .3vw, .86rem); font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
h1, h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 1.6rem + 3.6vw, 4.75rem);
  line-height: 1; letter-spacing: -.01em;
}
h1 em, h2 em { font-style: italic; color: var(--gold); }
.lead { margin-top: 24px; font-size: clamp(1.1rem, .9rem + .5vw, 1.35rem); line-height: 1.6; font-weight: 500; color: var(--ink-soft); max-width: 34em; }

.btn {
  display: inline-block; margin-top: 32px;
  padding: 15px 30px; border: 1px solid var(--ink);
  background: rgba(10,8,6,.45); font-weight: 500;
  font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  transition: background .3s, color .3s, border-color .3s;
}
.btn:hover, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--night); text-shadow: none; }
.btn.gold:hover { background: var(--ink); border-color: var(--ink); }
.btn + .btn { margin-left: 12px; }

.cue { position: absolute; right: var(--pad); bottom: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: .66rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-soft); text-shadow: var(--shadow); }
.cue span { writing-mode: vertical-rl; }
.cue i { width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: cue 2.4s ease-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- quick facts strip under the first photo ---------- */
.info {
  list-style: none; display: grid; grid-template-columns: repeat(4, auto); justify-content: start;
  gap: 12px 40px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(246,208,143,.3);
  text-shadow: var(--shadow);
}
.info li { font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); display: flex; gap: 12px; align-items: baseline; }
.info li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); transform: translateY(-2px); }

/* ---------- about: photo on the right half, text on the dark left ---------- */
/* the text stays on the dark left half, never over the portrait */
.split .text { max-width: calc(50vw - var(--pad) - 16px); }
/* larger type, so the text fills the dark half right up to the portrait */
.split h2 { font-size: clamp(3.4rem, 1.4rem + 4.2vw, 5.8rem); }
.split .lead { max-width: none; font-size: clamp(1.15rem, .65rem + .95vw, 1.65rem); }
.portrait { display: none; }

/* ---------- tours: cards over the darkened canal photo ---------- */
.tours { min-height: 0; padding-block: 200px; }
.text.wide { max-width: 1180px; width: 100%; }
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin-top: 44px; }
.card {
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,.28); background: rgba(20,17,14,.55); backdrop-filter: blur(4px);
  transition: border-color .3s, background .3s, transform .3s;
}
.card:hover, .card:focus-within { border-color: var(--gold); transform: translateY(-3px); }
/* the whole card is a button that opens the tour's photo */
.open {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; gap: 8px; width: 100%; height: 100%;
  padding: 26px 56px 24px 24px; text-shadow: var(--shadow);
}
.open:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
/* on hover the photo shows faintly behind the text */
.peek { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1;
  opacity: 0; transform: scale(1.08); transition: opacity .6s, transform 1.2s; filter: brightness(.45); }
.card:hover .peek, .open:focus-visible .peek { opacity: 1; transform: scale(1); }
.kind { font-size: .7rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.card .name { font-family: var(--serif); font-weight: 400; font-size: clamp(1.45rem, 1.1rem + .7vw, 1.8rem); line-height: 1.15; }
.card .sub { color: var(--ink-soft); font-size: .98rem; }
.plus { position: absolute; top: 20px; right: 20px; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
  display: grid; place-items: center; font-size: 1.1rem; line-height: 1; transition: background .3s, color .3s, border-color .3s, transform .3s; }
.card:hover .plus { background: var(--gold); border-color: var(--gold); color: var(--night); transform: rotate(90deg); text-shadow: none; }

/* ---------- tour photo, opened from a card ---------- */
.photo { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(14,12,10,.94); color: var(--ink); display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s; }
.photo[open] { opacity: 1; visibility: visible; }
.photo::backdrop { background: transparent; }
.photo figure { position: relative; max-width: min(92vw, 1400px); }
.photo img { display: block; max-width: 100%; max-height: 82vh; max-height: 82svh; object-fit: contain; margin: 0 auto;
  transform: scale(.96); opacity: 0; transition: transform .8s cubic-bezier(.2,.7,.1,1), opacity .6s; }
.photo.ready img { transform: none; opacity: 1; }
.photo video { display: block; max-width: 100%; max-height: 82vh; max-height: 82svh; margin: 0 auto; background: #000; }
.photo video[hidden], .photo img[hidden] { display: none; }
.photo figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 16px; }
.photo .name { font-family: var(--serif); font-size: clamp(1.4rem, 1rem + 1vw, 2rem); }
.photo .sub { color: var(--ink-soft); }
.photo button { all: unset; cursor: pointer; position: absolute; color: var(--ink); font-size: 2.2rem; line-height: 1;
  width: 52px; height: 52px; display: grid; place-items: center; transition: color .3s; }
.photo button:hover, .photo button:focus-visible { color: var(--gold); }
.photo .x { top: 14px; right: 14px; }
.photo .prev { left: 8px; top: 50%; transform: translateY(-50%); font-size: 3rem; }
.photo .next { right: 8px; top: 50%; transform: translateY(-50%); font-size: 3rem; }

/* ---------- reviews: big, upright, on a soft dark pane so they read easily ---------- */
.reviews .text { max-width: 900px; }
.quotes {
  display: grid; margin-top: 30px; padding: clamp(26px, 3.5vw, 46px) clamp(24px, 4vw, 54px);
  background: rgba(14,12,10,.26); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  border-left: 2px solid var(--gold); text-shadow: 0 1px 3px rgba(0,0,0,.75), 0 0 18px rgba(0,0,0,.45);
}
.quote { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .7s, visibility 0s .7s; }
.quote.on { opacity: 1; visibility: visible; transition: opacity .7s .2s; }
blockquote {
  font-family: var(--serif); font-weight: 500; font-style: normal;
  font-size: clamp(1.6rem, 1.05rem + 1.45vw, 2.35rem); line-height: 1.32; letter-spacing: .005em;
}
blockquote::before { content: "\201C"; display: block; height: .55em; margin-bottom: .1em; color: var(--gold); font-size: 2.2em; line-height: 1; }
figcaption { margin-top: 22px; font-size: .9rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.qnav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.qnav > button { all: unset; cursor: pointer; font-size: 2.2rem; line-height: 1; padding: 0 6px 4px; color: var(--ink); }
.qnav > button:hover, .qnav > button:focus-visible { color: var(--gold); }
.dots { display: flex; gap: 8px; }
.dots button { width: 30px; height: 24px; border: 0; padding: 0; background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,.55)) center / 100% 3px no-repeat; cursor: pointer; }
.dots button.on { background-image: linear-gradient(var(--gold), var(--gold)); }
.member { margin-top: 28px; }
.member a { font-size: .8rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); border-bottom: 1px solid rgba(255,255,255,.4); padding-bottom: 3px; }
.member a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- contact ---------- */
.lines { margin-top: 28px; list-style: none; }
.lines li { padding: 6px 0; font-size: 1.05rem; }
.lines a { border-bottom: 1px solid rgba(255,255,255,.6); }
.lines a:hover { color: var(--gold); border-color: var(--gold); }

/* ---------- social icons ---------- */
.social { display: flex; gap: 18px; align-items: center; }
.social a { display: inline-flex; color: var(--ink); opacity: .9; transition: color .3s, opacity .3s; }
.social a:hover { color: var(--gold); opacity: 1; }
.social svg { width: 18px; height: 18px; fill: currentColor; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.social svg.wide { width: 28px; }
.social-menu { display: none; }
.social-contact { margin-top: 26px; gap: 22px; }
.social-contact svg { width: 22px; height: 22px; }
.social-contact svg.wide, .social-menu svg.wide { width: 34px; }

/* ---------- footer ---------- */
.foot {
  position: relative; background: var(--night);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 24px;
  padding: 44px var(--pad) 48px; border-top: 1px solid rgba(246,208,143,.18);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot nav a, .totop { font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.foot nav a:hover, .totop:hover { color: var(--gold); }
.foot .links { display: flex; align-items: center; gap: 12px 20px; }
.foot .langs { margin: 0; gap: 14px; padding-left: 18px; }
.foot .langs a { font-size: .72rem; letter-spacing: .16em; }
.foot nav a { letter-spacing: .16em; }
.foot .who { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.foot .vat { font-size: .72rem; font-weight: 500; letter-spacing: .14em; color: var(--ink-soft); }

/* ---------- phone: WhatsApp and email always at hand ---------- */
.dock { display: none; }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s ease-out, transform 1s ease-out; }
.js .reveal.in { opacity: 1; transform: none; }
.js .cards .card.reveal { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- tablet & phone ---------- */
@media (max-width: 1100px) {
  .info { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .top { padding: 20px 16px; }
  .top.solid { padding-block: 12px; }
  .menu { display: block; position: relative; z-index: 2; }
  .nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; align-items: center; justify-content: center; gap: 28px;
    background: rgba(20,17,14,.97);
    opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav > a { font-size: .9rem; }
  .langs { margin: 12px 0 0; padding: 20px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.5); gap: 22px; }
  .top.open .nav { opacity: 1; pointer-events: auto; }
  .social-menu { display: flex; gap: 28px; margin-top: 8px; }
  .social-menu svg { width: 22px; height: 22px; }
  .slide { padding: 120px 16px 96px; }
  .tours { padding-block: 140px; }
  .info { grid-template-columns: 1fr 1fr; margin-top: 36px; }
  .btn + .btn { margin-left: 0; }
  .btn { display: block; text-align: center; margin-top: 14px; }
  .cue { display: none; }
  .info { gap: 14px 20px; }
  .info li { font-size: .66rem; letter-spacing: .14em; }

  /* about: on the phone the portrait scrolls with the text (fading in and out at its edges),
     so the text never slides over her face */
  .split .text { max-width: none; }
  .split h2 { font-size: 3.2rem; }
  .split .lead { font-size: 1.1rem; }
  .layer.half { background: var(--night); }
  .layer.half img { display: none; }
  .split { flex-direction: column; align-items: stretch; padding-top: 72px; }
  .portrait {
    display: block; width: calc(100% + 32px); margin: 0 -16px -64px; height: 72vh; height: 72svh;
    object-fit: cover; object-position: 50% 30%;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 16%, #000 62%, transparent 100%);
  }
  .layer.dark::after { background: linear-gradient(180deg, rgba(10,8,6,.82), rgba(10,8,6,.9)); }
  .cards { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .open { padding: 22px 52px 20px 20px; }
  .photo .prev, .photo .next { top: auto; bottom: 8px; transform: none; }
  .photo figure { max-width: 100vw; }
  .photo figcaption { padding: 0 16px 56px; }

  .foot { flex-direction: column; align-items: flex-start; padding-bottom: 96px; }
  .foot .links { flex-direction: column; align-items: flex-start; }
  .foot .langs { padding-left: 0; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0; z-index: 9;
    transform: translateY(100%); transition: transform .4s ease-out;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 10px;
    background: rgba(20,17,14,.94); backdrop-filter: blur(8px); border-top: 1px solid rgba(246,208,143,.2);
  }
  .dock.on { transform: none; }
  .dock a { text-align: center; padding: 13px 0; font-size: .72rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--ink); }
  .dock a:first-child { background: var(--gold); border-color: var(--gold); color: var(--night); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .text > *, .cue i { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* soft scrolling (Lenis) takes over from the browser's own smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* tour cards: no number or +, the title itself shows it opens */
.card .name { transition: color .3s; }
.card .open:hover .name, .card .open:focus-visible .name { color: var(--gold); }

/* the long German contact heading stays on one line; on narrow screens it shrinks to fit */
html:lang(de) .contact h2 { white-space: nowrap; font-size: min(clamp(3.2rem, 1.6rem + 3.6vw, 4.75rem), 7vw); }
