/* ==========================================================================
   Ville Katun — Luxury real estate onepager
   Premium dark theme · champagne accents · cinematic spacing
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg:        #0c0d10;
  --bg-2:      #101218;
  --bg-3:      #14161d;
  --card:      #161922;
  --card-2:    #1b1f29;

  --gold:      #c8a96a;
  --gold-soft: #d8bd86;
  --gold-deep: #a8884c;
  --champagne: #e7d6ad;

  --text:      #ece9e1;
  --muted:     #989aa3;
  --faint:     #6c6e78;

  --line:      rgba(200, 169, 106, 0.20);
  --line-soft: rgba(255, 255, 255, 0.08);

  --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.75);

  --nav-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.eyebrow.center::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin: 1.1rem 0 0;
  color: var(--text);
}
.section-title em { font-style: italic; color: var(--gold-soft); }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: #c8c9cf;
  font-weight: 300;
  line-height: 1.75;
}

p { color: #b9bac1; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { position: relative; }
.section-pad { padding-block: clamp(5rem, 11vw, 9.5rem); }

.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 100px;
  transition: transform 0.4s var(--ease), background 0.4s var(--ease),
              color 0.4s var(--ease), box-shadow 0.4s var(--ease);
  white-space: nowrap;
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #1a1408;
  box-shadow: 0 16px 40px -16px rgba(200, 169, 106, 0.6);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px -16px rgba(200, 169, 106, 0.75);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
  transform: translateY(-3px);
}

.btn-block { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.5s var(--ease), box-shadow 0.5s var(--ease),
              height 0.5s var(--ease), border-color 0.5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 70px;
  background: rgba(10, 11, 14, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text);
}
.brand-name span { color: var(--gold); }
.brand-tag {
  font-size: 0.6rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.3rem;
}
.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: #cfd0d6;
  position: relative;
  padding-block: 6px;
  transition: color 0.3s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s var(--ease);
}
.nav-links a:hover { color: var(--gold-soft); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-soft);
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s;
}
.nav-cta:hover { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.nav-cta::after { display: none; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
}
.lang-switch button {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #cfd0d6;
  padding: 0.34rem 0.6rem;
  border-radius: 100px;
  line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.lang-switch button:hover { color: var(--gold-soft); }
.lang-switch button.active { background: var(--gold); color: #1a1408; }

/* Hamburger */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.4s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(8, 9, 12, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), visibility 0.45s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  color: #d9dae0;
  padding: 0.5rem 1rem;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
}
body.menu-open .mobile-menu a {
  opacity: 1;
  transform: translateY(0);
  transition-delay: calc(0.06s * var(--i, 0) + 0.1s);
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.btn {
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  margin-top: 1.6rem;
  padding: 1rem 2rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform: scale(1.06);
  animation: heroZoom 16s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,12,0.28) 0%, rgba(8,9,12,0) 32%, rgba(8,9,12,0.55) 84%, var(--bg) 100%),
    linear-gradient(90deg, rgba(8,9,12,0.5) 0%, transparent 50%);
}

.hero-inner { width: 100%; }
.hero-eyebrow { margin-bottom: 1.6rem; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  font-weight: 500;
  max-width: 16ch;
  letter-spacing: 0.004em;
}
.hero h1 em { font-style: italic; color: var(--champagne); }
.hero-sub {
  margin-top: 1.5rem;
  max-width: 54ch;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  color: #d6d7dc;
  font-weight: 300;
}
.hero-actions {
  margin-top: 2.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Hero selling points */
.hero-stats {
  margin-top: clamp(2.5rem, 5vw, 3.6rem);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(6px);
}
.hero-stat {
  background: rgba(12, 13, 16, 0.55);
  padding: 1.15rem 1.1rem;
  text-align: center;
}
.hero-stat .v {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.hero-stat .l {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a6a7af;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.scroll-hint .line {
  width: 1px; height: 40px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.2s var(--ease) infinite;
  transform-origin: top;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); opacity: 0; }
  40% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0) translateY(40px); opacity: 0; }
}

/* ==========================================================================
   Reveal animation utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Projekt
   ========================================================================== */
.projekt { background: var(--bg); }
.projekt-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.projekt-copy p + p { margin-top: 1.1rem; }
.projekt-copy .lead { margin-top: 1.6rem; }

.projekt-points {
  margin-top: 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.projekt-points li {
  display: flex;
  gap: 0.95rem;
  align-items: flex-start;
  color: #c6c7cd;
}
.projekt-points li b { color: var(--text); font-weight: 500; }
.tick {
  flex: none;
  width: 26px; height: 26px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold);
}
.tick svg { width: 13px; height: 13px; }

.projekt-visual {
  position: relative;
}
.projekt-visual .frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.projekt-visual .frame img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.projekt-badge {
  position: absolute;
  bottom: -26px; left: -26px;
  background: linear-gradient(150deg, var(--card-2), #0f1117);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.6rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.projekt-badge .n {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.projekt-badge .t {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #a6a7af;
  margin-top: 0.4rem;
}

/* ==========================================================================
   Vile (features)
   ========================================================================== */
.vile { background: var(--bg-2); }

.spec-strip {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: var(--bg-2);
  padding: 1.8rem 1.4rem;
  text-align: center;
}
.spec .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.spec .num .u { font-size: 0.5em; color: var(--muted); }
.spec .cap {
  margin-top: 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #a6a7af;
}

.feature-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.feature-card {
  background: linear-gradient(180deg, var(--card), var(--bg-3));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 169, 106, 0.1);
  border: 1px solid var(--line);
  color: var(--gold);
  margin-bottom: 1.3rem;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.5rem; color: var(--text); }
.feature-card p { margin-top: 0.6rem; font-size: 0.96rem; }

/* Showcase split */
.showcase {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.showcase-media { position: relative; min-height: 360px; }
.showcase-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.showcase-body {
  background: linear-gradient(160deg, var(--card-2), var(--bg-3));
  padding: clamp(2.2rem, 4vw, 3.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.showcase-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--text); }
.showcase-body p { margin-top: 1rem; }
.showcase-list { margin-top: 1.6rem; display: grid; gap: 0.85rem; }
.showcase-list li { display: flex; gap: 0.75rem; align-items: center; color: #c6c7cd; font-size: 0.97rem; }
.showcase-list .tick { width: 22px; height: 22px; }
.showcase-list .tick svg { width: 11px; height: 11px; }

/* ==========================================================================
   Parallax banner (full-width, CSS-only)
   ========================================================================== */
.parallax {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--bg-2);
  /* fallback for browsers without image-set */
  background-image: url("../assets/images/moderne-vile-pergola-bazen-porec-1920.jpg");
  background-image: -webkit-image-set(
    url("../assets/images/moderne-vile-pergola-bazen-porec-1920.webp") type("image/webp"),
    url("../assets/images/moderne-vile-pergola-bazen-porec-1920.jpg") type("image/jpeg"));
  background-image: image-set(
    url("../assets/images/moderne-vile-pergola-bazen-porec-1920.webp") type("image/webp"),
    url("../assets/images/moderne-vile-pergola-bazen-porec-1920.jpg") type("image/jpeg"));
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
.parallax::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(8,9,12,0.55) 18%, rgba(8,9,12,0.55) 82%, var(--bg) 100%),
    radial-gradient(120% 120% at 50% 50%, transparent 40%, rgba(8,9,12,0.5) 100%);
}
.parallax .container { position: relative; z-index: 1; }
.parallax .eyebrow { margin-bottom: 1.4rem; }
.parallax h2 {
  font-size: clamp(2.1rem, 5.2vw, 3.8rem);
  max-width: 18ch;
  margin-inline: auto;
  color: #fff;
}
.parallax h2 em { font-style: italic; color: var(--champagne); }
.parallax p {
  margin-top: 1.2rem;
  max-width: 46ch;
  margin-inline: auto;
  color: #d9dade;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}
.parallax .btn { margin-top: 2.2rem; }

@media (max-width: 880px) {
  /* background-attachment: fixed is janky / unsupported on most mobiles */
  .parallax {
    background-attachment: scroll;
    min-height: 52vh;
  }
}

/* ==========================================================================
   Lokacija
   ========================================================================== */
.lokacija { background: var(--bg); }
.lok-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.lok-list { margin-top: 2rem; display: grid; gap: 1.3rem; }
.lok-item { display: flex; gap: 1rem; align-items: flex-start; }
.lok-item .ic {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(200,169,106,0.09);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--gold);
}
.lok-item .ic svg { width: 20px; height: 20px; }
.lok-item h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--text); letter-spacing: 0; }
.lok-item p { font-size: 0.92rem; margin-top: 0.15rem; }

/* Map */
.map-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  /* Height derives from width via aspect-ratio; no min-height (it would force
     an over-wide track inside the grid on narrow screens). */
  aspect-ratio: 16 / 12;
  width: 100%;
  background: var(--bg-3);
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  text-align: center;
  padding: 2rem;
  cursor: pointer;
  background:
    linear-gradient(rgba(12,13,16,0.55), rgba(12,13,16,0.75)),
    url("../assets/images/projekt-vile-katun-zracni-pogled-1280.webp") center/cover;
}
.map-placeholder .pin {
  width: 60px; height: 60px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 0 0 0 rgba(200,169,106,0.5);
  animation: pinPulse 2.4s var(--ease) infinite;
}
.map-placeholder .pin svg { width: 28px; height: 28px; }
@keyframes pinPulse {
  0% { box-shadow: 0 0 0 0 rgba(200,169,106,0.45); }
  70% { box-shadow: 0 0 0 22px rgba(200,169,106,0); }
  100% { box-shadow: 0 0 0 0 rgba(200,169,106,0); }
}
.map-placeholder p { color: #dcdde2; font-size: 0.95rem; }
.map-placeholder .load-btn {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.7rem 1.4rem;
}
.map-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   Investicija
   ========================================================================== */
.invest {
  position: relative;
  background: var(--bg-2);
  overflow: hidden;
}
.invest-bg {
  position: absolute; inset: 0; z-index: 0;
}
.invest-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.16; }
.invest-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, rgba(16,18,24,0.6) 50%, var(--bg-2) 100%);
}
.invest .container { position: relative; z-index: 1; }
.invest-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 3rem;
}
.invest-card {
  background: linear-gradient(180deg, rgba(27,31,41,0.85), rgba(16,18,24,0.9));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  backdrop-filter: blur(6px);
  transition: border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.invest-card:hover { border-color: var(--line); transform: translateY(-5px); }
.invest-card .k {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--gold-soft);
  line-height: 1;
}
.invest-card h3 { font-size: 1.35rem; color: var(--text); margin-top: 0.9rem; }
.invest-card p { margin-top: 0.6rem; font-size: 0.95rem; }

.invest-cta {
  margin-top: 3.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.6rem;
  padding: clamp(1.8rem, 3.5vw, 2.6rem) clamp(1.8rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(200,169,106,0.07), transparent);
}
.invest-cta h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--text); max-width: 22ch; }

/* ==========================================================================
   Galerija
   ========================================================================== */
.galerija { background: var(--bg); }
.gallery-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  aspect-ratio: 4 / 3;
}
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease), filter 0.6s var(--ease);
}
.g-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,9,12,0.7));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.g-item .g-cap {
  position: absolute;
  left: 1.1rem; bottom: 1rem;
  z-index: 2;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: #fff;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  display: flex; align-items: center; gap: 0.5rem;
}
.g-item .g-cap svg { width: 16px; height: 16px; color: var(--gold-soft); }
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; }
.g-item:hover .g-cap { opacity: 1; transform: none; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 7, 9, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-img {
  max-width: min(92vw, 1500px);
  max-height: 84vh;
  border-radius: 8px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.8);
  transform: scale(0.96);
  transition: transform 0.4s var(--ease);
}
.lightbox.open .lightbox-img { transform: scale(1); }
.lb-caption {
  position: absolute;
  bottom: 1.6rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: #cfd0d6;
  text-align: center;
  padding: 0 1rem;
}
.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line-soft);
  display: grid; place-items: center;
  color: #fff;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.lb-btn:hover { background: var(--gold); color: #1a1408; border-color: var(--gold); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-prev { left: clamp(0.6rem, 3vw, 2.5rem); }
.lb-next { right: clamp(0.6rem, 3vw, 2.5rem); }
.lb-close {
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  transform: none;
}
.lb-counter {
  position: absolute;
  top: clamp(1.3rem, 3vw, 2.3rem);
  left: clamp(1rem, 3vw, 2.5rem);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.lb-counter b { color: var(--gold-soft); }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.kontakt { background: var(--bg-2); }
.kontakt-center {
  max-width: 780px;
  margin-inline: auto;
}
.kontakt-center .contact-methods { text-align: left; }
.kontakt-center .contact-buttons { justify-content: center; }

.contact-methods {
  margin-top: 2.6rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.cmethod {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.3rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.cmethod:hover { border-color: var(--line); transform: translateX(4px); }
.cmethod .ic {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(200,169,106,0.1);
  border: 1px solid var(--line);
  color: var(--gold);
}
.cmethod .ic svg { width: 21px; height: 21px; }
.cmethod .t { display: block; font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 2px; }
.cmethod .v { display: block; font-size: 1.02rem; color: var(--text); font-weight: 400; word-break: break-word; }

.contact-buttons { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.8rem; }
.btn-wa { background: #1faf54; color: #fff; }
.btn-wa:hover { background: #18994a; transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(31,175,84,0.55); }

/* Form */
.contact-form {
  background: linear-gradient(170deg, var(--card-2), var(--bg-3));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(1.8rem, 3.5vw, 2.8rem);
  box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-top: 1.1rem; position: relative; }
.field:first-child { margin-top: 0; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
}
.field label .req { color: var(--gold); }
.field input,
.field textarea {
  width: 100%;
  background: rgba(8, 9, 12, 0.55);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 300;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: #5d5f68; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8, 9, 12, 0.8);
}
.field input.invalid,
.field textarea.invalid { border-color: #c75b5b; }
.field .err {
  font-size: 0.75rem;
  color: #d98080;
  margin-top: 0.35rem;
  display: none;
}
.field.show-err .err { display: block; }

.form-consent {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--muted);
}
.form-consent input { margin-top: 3px; accent-color: var(--gold); }
.form-submit { margin-top: 1.5rem; }
.form-note { margin-top: 1rem; font-size: 0.78rem; color: var(--faint); text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(200,169,106,0.06);
  color: var(--champagne);
  margin-top: 1.2rem;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer .brand-name { font-size: 1.7rem; }
.footer-about p { margin-top: 1.1rem; max-width: 38ch; font-size: 0.92rem; }
.footer h4 {
  font-family: var(--font-body);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.1rem;
}
.footer-col a, .footer-col p { display: block; font-size: 0.92rem; color: #b0b1b8; margin-bottom: 0.7rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--faint);
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--gold-soft); }

/* ==========================================================================
   Floating actions
   ========================================================================== */
.fab {
  position: fixed;
  right: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.fab.show { opacity: 1; transform: none; pointer-events: auto; }
.fab a {
  width: 54px; height: 54px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 14px 34px -12px rgba(0,0,0,0.6);
  transition: transform 0.35s var(--ease);
}
.fab a:hover { transform: scale(1.08); }
.fab a svg { width: 24px; height: 24px; }
.fab .fab-wa { background: #1faf54; color: #fff; }
.fab .fab-call { background: var(--gold); color: #1a1408; }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.cookie {
  position: fixed;
  left: clamp(1rem, 3vw, 1.8rem);
  bottom: clamp(1rem, 3vw, 1.8rem);
  z-index: 95;
  width: min(440px, calc(100vw - 2rem));
  background: linear-gradient(165deg, var(--card-2), #0d0f14);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: translateY(160%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
.cookie.show { transform: none; opacity: 1; pointer-events: auto; }
.cookie-inner { display: flex; gap: 1rem; padding: 1.3rem 1.4rem; }
.cookie-ic {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(200, 169, 106, 0.1);
  border: 1px solid var(--line);
  color: var(--gold);
}
.cookie-ic svg { width: 22px; height: 22px; }
.cookie-text {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #c2c3c9;
  margin: 0;
}
.cookie-actions { display: flex; gap: 0.6rem; margin-top: 1rem; flex-wrap: wrap; }
.cookie-actions .btn { padding: 0.7rem 1.25rem; font-size: 0.72rem; }
.cookie-decline { flex: 1; }
.cookie-accept { flex: 1; }

@media (max-width: 620px) {
  .cookie { left: 1rem; right: 1rem; width: auto; bottom: 1rem; }
  .cookie-inner { padding: 1.1rem 1.15rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .projekt-grid { grid-template-columns: 1fr; }
  .projekt-visual { order: -1; max-width: 560px; }
  .lok-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .invest-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 880px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-media { min-height: 280px; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  :root { --gutter: 1.25rem; }
  /* Hero behaves like a normal section, not a full-height splash. */
  .hero {
    min-height: auto;
    align-items: flex-start;
    padding-top: calc(var(--nav-h) + 2.2rem);
    padding-bottom: 3rem;
  }
  .hero h1 { font-size: clamp(2.4rem, 9vw, 3.1rem); }
  .hero-sub { font-size: 1.02rem; margin-top: 1.2rem; }
  .hero-actions { margin-top: 1.8rem; }
  .hero-actions .btn { flex: 1; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); margin-top: 2.2rem; }
  .scroll-hint { display: none; }
  .map-wrap { aspect-ratio: 4 / 5; }
  .feature-grid { grid-template-columns: 1fr; }
  .contact-methods { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .invest-cta { flex-direction: column; align-items: flex-start; }
  .invest-cta .btn { width: 100%; }
  .lb-btn { width: 44px; height: 44px; }
  .projekt-badge { left: 50%; transform: translateX(-50%); bottom: -22px; }
}
