/* Grupa MORE — Adriatic night: deep sea ground, foam type, lagoon + sunset-gold accents.
   Layout: full-bleed bands, content in a 1200px wrap; one bold moment (the tide in the wordmark). */
:root {
  --abyss: #061a26;
  --deep: #0b2c3e;
  --sea: #10707c;
  --lagoon: #62d2c6;
  --foam: #eaf4f2;
  --mist: #9fbcc1;
  --sun: #ffb24d;
  --sand: #f3ece0;
  --ink: #0a2230;
  --line: rgba(234, 244, 242, 0.14);

  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem);
  --step-3: clamp(2.2rem, 1.4rem + 3.4vw, 3.8rem);
  --step-4: clamp(3rem, 1.6rem + 6vw, 6rem);

  --radius: 18px;
  --wrap: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip does not turn body into a scroll container on iOS */
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
}

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lagoon);
}
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: 0; }
.muted { color: var(--mist); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font-weight: 700; font-size: 0.98rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
  font-family: var(--body);
}
.btn:hover { transform: translateY(-2px); }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: #ffc477; }
.btn-ghost { border-color: var(--line); color: var(--foam); background: rgba(234, 244, 242, 0.04); }
.btn-ghost:hover { border-color: var(--lagoon); color: var(--lagoon); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(6, 26, 38, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.logo { display: inline-flex; align-items: baseline; gap: 0.4em; text-decoration: none; }
.logo-small { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mist); }
.logo-big { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: 0.04em; color: var(--foam); }
.logo-big i { font-style: normal; color: var(--lagoon); }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 0.5em 0.9em; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem; color: var(--mist);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover { color: var(--foam); }
.nav-links a[aria-current="page"] { color: var(--foam); background: rgba(98, 210, 198, 0.14); }
.nav-cta { padding: 0.7em 1.2em; font-size: 0.9rem; }
.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); color: var(--foam);
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform 0.25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1099px) {
  .nav-toggle { display: inline-flex; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--abyss); border-bottom: 1px solid var(--line);
    padding: 12px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px));
  }
  .nav-open .nav-menu { display: grid; gap: 16px; }
  .nav-links { flex-direction: column; align-items: stretch; }
  .nav-links a { font-size: 1.15rem; padding: 0.7em 0.9em; }
  .nav-cta { justify-self: start; }
}
@media (min-width: 1100px) {
  .nav-menu { display: flex; align-items: center; gap: 20px; }
}

/* ---------- Tide wordmark (signature) ---------- */
.tide {
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.82;
  letter-spacing: -0.02em;
  color: var(--foam);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 58 C 25 46, 75 46, 100 58 S 175 70, 200 58 V100 H0Z' fill='%2362d2c6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100' preserveAspectRatio='none'%3E%3Cpath d='M0 66 C 25 76, 75 76, 100 66 S 175 56, 200 66 V100 H0Z' fill='%2310707c'/%3E%3C/svg%3E"),
    linear-gradient(var(--foam), var(--foam));
  background-size: 1.6em 100%, 2.3em 100%, 100% 100%;
  background-repeat: repeat-x, repeat-x, no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: tide 7s linear infinite;
}
@keyframes tide {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 1.6em 0, -2.3em 0, 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .tide { animation: none; }
  html { scroll-behavior: auto; }
  .ticker-track { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px) clamp(72px, 10vw, 140px);
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(255, 178, 77, 0.22), transparent 70%),
    radial-gradient(70% 60% at 10% 100%, rgba(16, 112, 124, 0.45), transparent 70%),
    var(--abyss);
}
.hero-grid { display: grid; gap: 28px; position: relative; z-index: 1; }
.hero .tide { font-size: clamp(3rem, 12vw, 9rem); }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.hero-kicker .serif { font-size: var(--step-2); color: var(--sand); }
.hero-lead { max-width: 34em; font-size: var(--step-1); line-height: 1.55; color: var(--foam); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-sun {
  position: absolute; right: -6vw; top: -8vw; width: 38vw; max-width: 520px; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 178, 77, 0.5), rgba(255, 178, 77, 0) 65%);
  pointer-events: none;
}
.hero-waves { position: absolute; left: 0; right: 0; bottom: -1px; height: 70px; pointer-events: none; }
.hero-waves svg { width: 100%; height: 100%; display: block; }

/* Page hero (inner pages) */
.page-hero {
  padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 80% at 90% 0%, rgba(255, 178, 77, 0.16), transparent 70%),
    radial-gradient(60% 80% at 0% 100%, rgba(16, 112, 124, 0.35), transparent 70%),
    var(--abyss);
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { display: grid; gap: 18px; }
.page-hero h1 { font-size: var(--step-4); }
.page-hero h1 .serif { color: var(--sun); }
.page-hero p.lead { max-width: 36em; font-size: var(--step-1); color: var(--mist); }

/* ---------- Ticker ---------- */
.ticker { background: var(--sun); color: var(--ink); overflow: hidden; border-block: 1px solid rgba(0, 0, 0, 0.1); }
.ticker-track { display: flex; width: max-content; animation: ticker 32s linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 28px; padding: 16px 14px; font-family: var(--display); font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.4rem); text-transform: uppercase; white-space: nowrap; }
.ticker-group .sep { font-family: var(--serif); font-style: italic; font-size: 1.6em; line-height: 0; color: var(--sea); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 46em; }
.section-head h2 { font-size: var(--step-3); }
.section-head h2 .serif { color: var(--lagoon); }
.section-head p { color: var(--mist); font-size: var(--step-1); }
.section-sand { background: var(--sand); color: var(--ink); }
.section-sand .eyebrow { color: var(--sea); }
.section-sand .muted, .section-sand .section-head p { color: #3f5a63; }
.section-deep { background: var(--deep); }

.split { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 880px) { .split { grid-template-columns: 1.05fr 1fr; } .split.reverse > :first-child { order: 2; } }
.split > * { min-width: 0; }
.prose { display: grid; gap: 1.1em; max-width: 36em; }
.prose p { font-size: var(--step-0); }
.prose .big { font-size: var(--step-1); line-height: 1.55; }

.photo {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--deep);
  max-width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-tall { aspect-ratio: 4 / 5; }
.photo-wide { aspect-ratio: 16 / 10; }
.photo-tag {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(6, 26, 38, 0.72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: var(--foam); font-size: 0.8rem; font-weight: 600; padding: 0.45em 0.9em; border-radius: 999px;
}

/* Legends band */
.legends { display: grid; gap: 4px; }
.legend {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-block: 18px; border-bottom: 1px solid rgba(10, 34, 48, 0.15);
}
.legend:first-child { border-top: 1px solid rgba(10, 34, 48, 0.15); }
.legend-name { font-family: var(--serif); font-style: italic; font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.6rem); line-height: 1.05; }
.legend-note { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sea); }

/* Service cards */
.services { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.service {
  display: grid; align-content: start; gap: 14px;
  padding: 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(98, 210, 198, 0.1), rgba(98, 210, 198, 0.02));
  border: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.service:hover { border-color: var(--lagoon); transform: translateY(-3px); }
.service-icon { width: 48px; height: 48px; color: var(--sun); }
.service h3 { font-size: 1.25rem; }
.service p { color: var(--mist); font-size: 0.98rem; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; color: var(--mist); font-size: 0.95rem; }
.service li::before { content: "≈ "; color: var(--lagoon); font-weight: 700; }

/* Detailed services (nastupi page) */
.offer { display: grid; gap: clamp(28px, 4vw, 48px); padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; padding-top: 0; }
@media (min-width: 880px) { .offer { grid-template-columns: 1fr 1.1fr; align-items: center; } .offer:nth-of-type(even) .photo { order: 2; } }
.offer > * { min-width: 0; }
.offer h2 { font-size: var(--step-3); }
.offer .text { display: grid; gap: 18px; }
.offer .text > p { color: var(--mist); font-size: var(--step-1); line-height: 1.55; max-width: 32em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.chips li { padding: 0.45em 1em; border-radius: 999px; border: 1px solid var(--line); font-size: 0.92rem; font-weight: 600; }
.section-sand .chips li { border-color: rgba(10, 34, 48, 0.2); }

/* Steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { display: grid; gap: 10px; padding: 28px; border-radius: var(--radius); background: rgba(10, 34, 48, 0.05); border: 1px solid rgba(10, 34, 48, 0.12); }
.step::before { counter-increment: step; content: counter(step); font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--sea); }
.step h3 { font-size: 1.2rem; }
.step p { color: #3f5a63; }

/* Timeline */
.timeline { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 8px; padding: 28px 0 28px 32px; border-left: 2px solid rgba(10, 34, 48, 0.18); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 36px; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 3px solid var(--sea); }
.timeline li:last-child::before { background: var(--sun); border-color: var(--sun); }
.timeline h3 { font-size: 1.35rem; }
.timeline p { color: #3f5a63; max-width: 34em; }

/* Duo portraits */
.duo { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.duo figure { margin: 0; display: grid; gap: 12px; }
.duo figcaption { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.duo figcaption span { display: block; font-family: var(--body); font-weight: 500; font-size: 0.9rem; color: var(--mist); }

/* Values */
.values { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.value { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.value h3 { font-size: 1.2rem; color: var(--lagoon); }
.value p { color: var(--mist); }

/* Quote */
.quote { display: grid; gap: 20px; max-width: 980px; }
.quote blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.6rem); line-height: 1.15; }
.quote cite { font-style: normal; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: var(--step--1); color: var(--sun); }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter {
  font: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  padding: 0.55em 1.15em; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mist);
}
.filter:hover { color: var(--foam); border-color: var(--mist); }
.filter[aria-pressed="true"] { background: var(--foam); color: var(--ink); border-color: var(--foam); }
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); grid-auto-flow: dense; }
.gallery-item {
  position: relative; display: block; padding: 0; border: 0; cursor: zoom-in; background: var(--deep);
  border-radius: 14px; overflow: hidden; aspect-ratio: 1; width: 100%;
}
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }
.gallery-item.wide { aspect-ratio: auto; }
@media (min-width: 640px) { .gallery-item.wide { grid-column: span 2; aspect-ratio: 2 / 1; } }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .photo-tag { pointer-events: none; }
.gallery-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.gallery-strip .photo { aspect-ratio: 4 / 5; }

.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(3, 14, 21, 0.94);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
}
.lightbox figure { margin: 0; display: grid; gap: 12px; max-width: min(1100px, 100%); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 12px; }
.lightbox figcaption { text-align: center; color: var(--mist); }
.lb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  background: rgba(234, 244, 242, 0.1); color: var(--foam); border: 1px solid var(--line);
  font-size: 1.5rem; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: rgba(234, 244, 242, 0.2); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-prev { left: calc(16px + env(safe-area-inset-left, 0px)); top: 50%; transform: translateY(-50%); }
.lb-next { right: calc(16px + env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); }

/* Video teaser */
.video-card {
  display: grid; gap: 18px; align-content: end; min-height: 320px; padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius); text-decoration: none; color: var(--foam);
  background: linear-gradient(0deg, rgba(6, 26, 38, 0.92), rgba(6, 26, 38, 0.35)), url("../img/foto/more-20.jpg") center 40% / cover;
  border: 1px solid var(--line);
}
.video-card h3 { font-size: var(--step-2); }
.play { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, var(--sea), #0c5562 60%, var(--deep));
  padding-block: clamp(64px, 9vw, 112px);
}
.cta-band .wrap { display: grid; gap: 24px; position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--step-4); max-width: 12em; }
.cta-band h2 .serif { color: var(--sun); }
.cta-band p { font-size: var(--step-1); max-width: 30em; color: var(--foam); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-band .bg-word {
  position: absolute; right: -2vw; bottom: -0.18em; font-family: var(--display); font-weight: 900;
  font-size: clamp(8rem, 30vw, 26rem); line-height: 0.8; color: rgba(234, 244, 242, 0.06); pointer-events: none; user-select: none;
}

/* Contact */
.contact-grid { display: grid; gap: clamp(32px, 5vw, 64px); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
.contact-grid > * { min-width: 0; }
.contact-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.contact-item {
  display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center;
  padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; color: inherit;
}
a.contact-item:hover { border-color: var(--lagoon); }
.contact-item .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(98, 210, 198, 0.12); color: var(--lagoon); }
.contact-item .ic svg { width: 22px; height: 22px; }
.contact-item small { display: block; color: var(--mist); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.contact-item strong { font-size: 1.08rem; overflow-wrap: anywhere; }

.form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius); background: var(--deep); border: 1px solid var(--line); }
.form-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.88rem; font-weight: 700; color: var(--mist); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--foam); background: var(--abyss);
  border: 1px solid var(--line); border-radius: 12px; padding: 0.8em 1em; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lagoon); box-shadow: 0 0 0 3px rgba(98, 210, 198, 0.2); }
.form-note { font-size: 0.88rem; color: var(--mist); }
.form-status { font-weight: 600; color: var(--lagoon); }

/* ---------- Footer ---------- */
.site-footer { background: #04131c; border-top: 1px solid var(--line); padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-grid h3 { font-family: var(--body); font-size: var(--step--1); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mist); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { text-decoration: none; color: var(--foam); }
.footer-grid a:hover { color: var(--lagoon); }
.footer-brand p { color: var(--mist); max-width: 22em; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--mist); font-size: 0.88rem; }
.socials { display: flex; gap: 10px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--foam); }
.socials a:hover { border-color: var(--lagoon); color: var(--lagoon); }
.socials svg { width: 18px; height: 18px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Slobodan Kovačević: whole archive photo with caption below */
.founder { margin: 0; align-self: center; }
.founder img { display: block; width: 100%; height: auto; border-radius: 22px; filter: grayscale(1) contrast(1.05); box-shadow: 0 24px 60px -24px rgba(8, 40, 60, .45); outline: 1px solid rgba(255,255,255,.6); outline-offset: -10px; }
.founder figcaption { margin-top: 18px; padding-left: 16px; border-left: 3px solid var(--sea, #0b6e8a); display: grid; gap: 4px; }
.founder figcaption strong { font-size: 1.15rem; letter-spacing: .01em; }
.founder figcaption span { opacity: .75; font-style: italic; }

/* Početna: real stage photo behind the hero */
.hero { background:
    linear-gradient(180deg, rgba(6, 26, 38, .55) 0%, rgba(6, 26, 38, .72) 55%, rgba(6, 26, 38, .92) 100%),
    radial-gradient(60% 50% at 85% 10%, rgba(255, 178, 77, 0.22), transparent 70%),
    url("../img/naslovna.jpg") center 35% / cover no-repeat,
    var(--abyss); }

/* Keep the hidden attribute working on elements that set display (lightbox, filtered gallery items) */
[hidden] { display: none !important; }

/* Kontakt: wave wordmark under the contact list */
.contact-tide { margin: 8px 0 0; font-size: clamp(3.2rem, 9vw, 7.5rem); }
/* Kontakt: both columns end at the same height, MORE sits at the bottom of the left one */
@media (min-width: 900px) { .contact-grid { align-items: stretch; } }
.contact-col { display: flex; flex-direction: column; gap: 24px; }
.contact-col .contact-tide { margin-top: auto; margin-bottom: 0; }

/* Talas: photos rise out of the sea on scroll (assets/js/talas.js adds the classes) */
.talas .wave-item {
  opacity: 0; translate: 0 var(--rise, 44px); scale: var(--swell, 1);
  transition: opacity .9s ease var(--delay, 0ms), translate 1.15s cubic-bezier(.2, .8, .2, 1) var(--delay, 0ms), scale .3s ease;
  isolation: isolate;
}
.talas .wave-item.is-in { opacity: 1; translate: 0 var(--dip, 0px); }
.talas .wave-item.is-settled { transition: opacity .3s ease, translate .3s ease-out, scale .3s ease-out; }
/* a sheet of sea water with a wavy lower edge washes up over the photo and uncovers it */
.talas .wave-item::after {
  content: ""; position: absolute; inset: -2px -2px auto; height: 135%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, var(--deep) 0%, var(--sea) 70%, var(--lagoon) 100%);
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V18C100 6 80 6 60 18S20 30 0 18Z'/%3E%3C/svg%3E") bottom / 120px 36px repeat-x;
          mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 0H120V18C100 6 80 6 60 18S20 30 0 18Z'/%3E%3C/svg%3E") bottom / 120px 36px repeat-x;
  transform: translateY(0);
  transition: transform 1.25s cubic-bezier(.65, 0, .25, 1) calc(var(--delay, 0ms) + 120ms);
}
.talas .wave-item.is-in::after { transform: translateY(-112%); }
/* the photo surfaces slightly zoomed and settles, then drifts gently with scroll */
.talas .wave-item img {
  transform: translateY(var(--py, 0px)) scale(1.18);
  transition: transform 1.6s cubic-bezier(.2, .8, .2, 1) calc(var(--delay, 0ms) + 200ms);
}
.talas .wave-item.is-in img { transform: translateY(var(--py, 0px)) scale(1.08); }
.talas .wave-item.is-settled img { transition: transform .5s ease-out; }
.talas .gallery-item.is-settled:hover img { transform: translateY(var(--py, 0px)) scale(1.13); }
.talas .wave-item .photo-tag { z-index: 3; }

/* Phone: the home strip becomes a swipe carousel; the card in the middle swells like a wave crest */
@media (max-width: 639px) {
  .gallery-strip {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: -16px; padding: 10px 16px 30px; scrollbar-width: none;
  }
  .gallery-strip::-webkit-scrollbar { display: none; }
  .gallery-strip .photo { flex: 0 0 74%; scroll-snap-align: center; }
}
/* Footer: copyright centered, "Powered by" on its own smaller line below */
.footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.footer-bottom > span:last-child { font-size: 0.78rem; opacity: .8; }
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { color: var(--lagoon); }

/* Language switch: ME / EN flags in the header */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--mist); text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.lang-switch a img { display: block; width: 22px; height: 11px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lang-switch a:hover { color: var(--foam); }
.lang-switch a[aria-current="true"] { background: rgba(98, 210, 198, .16); color: var(--foam); }
@media (max-width: 1099px) { .lang-switch { justify-self: start; } }
/* Home strip photos link to the gallery */
a.photo { display: block; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a.photo img { transition: transform .5s ease, filter .3s ease; }
a.photo:hover img { filter: brightness(1.08); }
a.photo:focus-visible { outline: 3px solid var(--lagoon); outline-offset: 3px; }
/* Smooth swiping: once a photo has surfaced, drop the water layer and keep cards on their own GPU layer */
.talas .wave-item.is-settled::after { display: none; }
@media (max-width: 639px) {
  .gallery-strip .photo { will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(0); }
  .gallery-strip .photo img { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
  .talas .gallery-strip .wave-item.is-settled { transition: opacity .3s ease; }
  .talas .gallery-strip .wave-item.is-settled img { transition: none; transform: scale(1.08); }
}

/* Lightbox zoom: click to zoom, drag to pan, pinch on phones */
.lb-stage { overflow: hidden; border-radius: 12px; display: grid; place-items: center; }
.lightbox .lb-stage img { cursor: zoom-in; touch-action: none; user-select: none; -webkit-user-select: none; transform-origin: center; will-change: transform; border-radius: 0; }
.lightbox.is-zoomed .lb-stage img { cursor: zoom-out; }
.lightbox.is-zoomed .lb-stage img:active { cursor: grabbing; }
.lightbox.is-zoomed .lb-prev, .lightbox.is-zoomed .lb-next { opacity: .25; pointer-events: none; }

/* Home hero: the wave divider moves like the sea, each layer at its own pace */
.hero-waves { overflow: hidden; }
.hero-waves svg { position: absolute; left: 0; bottom: 0; width: 200%; height: 100%; will-change: transform; backface-visibility: hidden; }
.hero-waves .wave-back { animation: sea-drift 19s linear infinite, sea-bob 6s ease-in-out infinite alternate; }
.hero-waves .wave-front { animation: sea-drift 12s linear infinite reverse; }
@keyframes sea-drift { from { translate: 0 0; } to { translate: -50% 0; } }
@keyframes sea-bob { from { transform: translateY(0); } to { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .hero-waves svg { animation: none; } }

/* Lightbox on phones: full-screen, photo centred, small arrows at the bottom, counter under the caption */
.lightbox img { max-height: 78vh; max-height: 78dvh; max-width: 100%; object-fit: contain; }
.lb-count { display: block; margin-top: 4px; font-size: 0.78rem; letter-spacing: 0.12em; opacity: .7; }
@media (max-width: 639px) {
  .lightbox { background: #030e15; padding: calc(64px + env(safe-area-inset-top, 0px)) 0 calc(88px + env(safe-area-inset-bottom, 0px)); }
  .lightbox figure { width: 100%; max-width: 100%; }
  .lb-stage { border-radius: 0; width: 100%; }
  .lightbox .lb-stage img { width: 100%; height: auto; max-height: calc(100dvh - 200px); }
  .lb-prev, .lb-next { top: auto; transform: none; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
}

/* Gallery: tall photos never collapse (they did when alone in a row or in one column on phones) */
.gallery-item.tall { aspect-ratio: 1 / 2; min-height: 100%; }
@media (max-width: 599px) {
  .gallery-item.tall { grid-row: auto; aspect-ratio: 4 / 5; min-height: 0; }
  .gallery-item.wide { aspect-ratio: 3 / 2; }
}
/* Nav labels never wrap onto two lines */
.nav-links a, .nav-cta, .lang-switch a { white-space: nowrap; }
.lightbox:not([hidden]) { touch-action: none; overscroll-behavior: contain; }
/* Lightbox buttons: no focus ring or tap flash on touch; X sits closer to the top-right corner on phones */
.lb-btn { -webkit-tap-highlight-color: transparent; }
.lb-btn:focus:not(:focus-visible) { outline: none; }
@media (max-width: 639px) {
  .lb-close { top: calc(8px + env(safe-area-inset-top, 0px)); right: calc(8px + env(safe-area-inset-right, 0px)); }
}

/* Galerija: the wave runs the other way, the water washes down over each photo and the photo drops in from above */
.talas .gallery-item.wave-item { translate: 0 calc(var(--rise, 44px) * -1); }
.talas .gallery-item.wave-item.is-in { translate: 0 0; }
.talas .gallery-item.wave-item::after {
  inset: auto -2px -2px;
  background: linear-gradient(0deg, var(--deep) 0%, var(--sea) 70%, var(--lagoon) 100%);
  -webkit-mask:
    linear-gradient(#000, #000) bottom / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36H120V18C100 30 80 30 60 18S20 6 0 18Z'/%3E%3C/svg%3E") top / 120px 36px repeat-x;
          mask:
    linear-gradient(#000, #000) bottom / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36H120V18C100 30 80 30 60 18S20 6 0 18Z'/%3E%3C/svg%3E") top / 120px 36px repeat-x;
}
.talas .gallery-item.wave-item.is-in::after { transform: translateY(112%); }

/* Home photo strip: same top-to-bottom wave as the gallery */
.talas .gallery-strip .wave-item { translate: 0 calc(var(--rise, 44px) * -1); }
.talas .gallery-strip .wave-item.is-in { translate: 0 var(--dip, 0px); }
.talas .gallery-strip .wave-item::after {
  inset: auto -2px -2px;
  background: linear-gradient(0deg, var(--deep) 0%, var(--sea) 70%, var(--lagoon) 100%);
  -webkit-mask:
    linear-gradient(#000, #000) bottom / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36H120V18C100 30 80 30 60 18S20 6 0 18Z'/%3E%3C/svg%3E") top / 120px 36px repeat-x;
          mask:
    linear-gradient(#000, #000) bottom / 100% calc(100% - 34px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 36' preserveAspectRatio='none'%3E%3Cpath d='M0 36H120V18C100 30 80 30 60 18S20 6 0 18Z'/%3E%3C/svg%3E") top / 120px 36px repeat-x;
}
.talas .gallery-strip .wave-item.is-in::after { transform: translateY(112%); }

/* Form fields: the date field on iPhone stays inside the card and matches the others */
.field { min-width: 0; }
.field input, .field select, .field textarea { box-sizing: border-box; width: 100%; max-width: 100%; min-width: 0; }
.field input[type="date"] {
  display: block; -webkit-appearance: none; appearance: none;
  min-height: 52px; line-height: 1.4; text-align: left;
}
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
.field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.85); opacity: .7; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select { min-height: 3.5em; }
.date-field { position: relative; }
.date-field.is-empty::after {
  content: attr(data-hint); position: absolute; left: 1em; bottom: 0; height: 3.5em;
  display: flex; align-items: center; color: var(--mist); opacity: .6; pointer-events: none;
}
.date-field.is-empty input { color: transparent; }
.date-field.is-empty input:focus { color: var(--foam); }
.date-field.is-empty:focus-within::after { display: none; }
