:root {
  --bg-deep: #070b12;
  --bg-main: #0c1220;
  --bg-elevated: #111a2e;
  --bg-card: #141f35;
  --navy: #0d1b33;
  --accent: #8a8560;
  --accent-bright: #a89b6a;
  --accent-dim: #5c5840;
  --cream: #ebe7df;
  --text: #e8e4dc;
  --text-muted: #8a919e;
  --text-faint: rgba(232, 228, 220, 0.12);
  --border: rgba(138, 133, 96, 0.25);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --nav-text-muted: #4f5d78;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 0px;
  --nav-utility-h: 0px;
  --nav-h: 64px;
  --header-h: clamp(6.5rem, 11vh, 8.5rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; }

/* PRELOADER */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
}
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 2rem; }
.preloader-logo { width: clamp(280px, 60vw, 560px); height: auto; }
.preloader-bar { width: 180px; height: 2px; background: var(--border-subtle); overflow: hidden; }
.preloader-bar-fill { width: 0%; height: 100%; background: var(--accent); }

/* HEADER — floating awwwards pill */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: clamp(0.75rem, 2vw, 1.25rem) clamp(1rem, 3vw, 2rem);
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.header-float {
  max-width: 1320px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.6rem;
}
.header-utility {
  pointer-events: auto;
  display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end;
  gap: 0.35rem 1.1rem;
  padding: 0.45rem 1rem;
  background: rgba(7, 11, 18, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}
.header-utility-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; font-weight: 500; letter-spacing: 0.05em;
  color: rgba(235, 231, 223, 0.88);
  white-space: nowrap;
  transition: color 0.25s;
}
.header-utility-item i { font-size: 0.7rem; opacity: 0.85; }
.header-utility-item:hover { color: var(--accent-bright); }
.nav-pill {
  pointer-events: auto;
  width: 100%;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.15rem;
  background: rgba(235, 231, 223, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(138, 133, 96, 0.22);
  border-radius: 999px;
  box-shadow: 0 12px 48px rgba(7, 11, 18, 0.28);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.site-header.is-scrolled .nav-pill {
  background: rgba(235, 231, 223, 0.96);
  box-shadow: 0 8px 32px rgba(7, 11, 18, 0.22);
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }
.nav-logo img { display: block; width: auto; height: clamp(85px, 11vw, 128px); object-fit: contain; }
.nav-links {
  display: flex; gap: clamp(1.25rem, 3vw, 2.5rem);
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-links a {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--nav-text-muted); transition: color 0.3s;
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.7rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--navy); background: var(--navy); color: var(--cream);
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); color: var(--bg-deep); }
.nav-toggle { display: none; flex-direction: column; gap: 6px; padding: 8px; margin-right: 0.25rem; }
.nav-toggle span { display: block; width: 22px; height: 1px; background: var(--navy); transition: transform 0.3s; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 99;
  padding-top: var(--header-h);
  background: rgba(235, 231, 223, 0.98);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
  transform: translateY(-100%); opacity: 0; pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a { font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--navy); }
.mobile-menu-utility {
  display: flex; flex-direction: column; align-items: center; gap: 0.85rem;
  margin-bottom: 1.5rem; padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(13, 27, 51, 0.12);
}
.mobile-menu-utility a {
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 500;
  letter-spacing: 0.04em; color: var(--nav-text-muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.mobile-menu-utility a i { color: var(--navy); font-size: 0.8rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 1.1rem 2.5rem; border: 1px solid transparent; transition: all 0.35s;
}
.btn-primary { background: var(--accent); color: var(--bg-deep); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }

/* ─── HERO — dark precision editorial ──────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 640px;
  background: var(--bg-deep);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* noise grain */
.hero-noise {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='1'/></svg>");
  background-size: 200px 200px;
  opacity: 0.035;
}

/* ambient glow */
.hero-orb {
  position: absolute;
  width: 55vw; height: 55vw;
  top: -15%; right: -10%;
  background: radial-gradient(circle at 40% 40%, rgba(138, 133, 96, 0.11) 0%, transparent 65%);
  filter: blur(70px);
  pointer-events: none; z-index: 0;
}

/* enormous background ghost text */
.hero-ghost {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-size: clamp(16vw, 22vw, 28vw);
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232, 228, 220, 0.055);
  white-space: nowrap;
  user-select: none; pointer-events: none; z-index: 0;
  will-change: transform;
}

/* illustration — anchored right, object stays at its natural position in the PNG */
.hero-illustration {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  object-fit: contain;
}

/* Desktop: lijevomaskota.png — right side, full height, no crop */
.hero-illustration--desktop {
  top: 50%; right: 15%;
  transform: translateY(-46%);
  height: 68%; width: auto;
  max-width: 40%;
  object-position: right center;
  opacity: 0.95;
}

/* main layout container */
.hero-inner {
  position: relative; z-index: 2;
  flex: 1;
  max-width: 1380px; margin: 0 auto; width: 100%;
  padding: calc(var(--header-h) + 1rem) clamp(1.5rem, 5vw, 4.5rem) 2.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
}

/* metadata bar */
.hero-topbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: clamp(1rem, 2vh, 1.75rem);
}
.hero-topbar-left,
.hero-topbar-right { display: flex; align-items: center; gap: 0.7rem; }
.hero-num {
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--accent-bright); font-variant-numeric: tabular-nums;
}
.hero-sep { color: rgba(232, 228, 220, 0.18); }
.hero-topbar-text {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(232, 228, 220, 0.36);
}
.hero-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.55);
  flex-shrink: 0;
  animation: hero-dot-pulse 2.4s ease-in-out infinite;
}
@keyframes hero-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(74, 222, 128, 0.55); }
  50%       { opacity: 0.5; box-shadow: 0 0 4px rgba(74, 222, 128, 0.2); }
}

/* thin ruled lines — animate scaleX on load */
.hero-rule {
  width: 100%; height: 1px;
  background: rgba(255, 255, 255, 0.07);
  transform-origin: left;
  transform: scaleX(0);
}

/* title block */
.hero-body {
  flex: 1; display: flex; align-items: center;
  padding: clamp(1rem, 3vh, 2.5rem) 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text);
  display: flex; flex-direction: column; gap: 0.06em;
}
.hero-title-row {
  display: flex; flex-wrap: wrap; gap: 0.22em;
}
/* overflow hidden clips the upward slide-in */
.hero-title-mask {
  display: block; overflow: hidden;
  padding-bottom: 0.14em; margin-bottom: -0.14em;
}
.hero-title-word {
  display: block; will-change: transform;
}
.hero-title-row--italic .hero-title-word {
  font-style: italic; font-weight: 400; color: var(--accent-bright);
}

/* footer row */
.hero-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 2rem; flex-wrap: wrap;
  margin-top: clamp(1rem, 2vh, 1.75rem);
}
.hero-foot-desc {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  line-height: 1.7; color: rgba(232, 228, 220, 0.68);
  letter-spacing: 0.015em;
}
.hero-foot-right {
  display: flex; align-items: center;
  gap: clamp(1.25rem, 3vw, 2.5rem); flex-shrink: 0;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 1.05rem 2.4rem;
  background: var(--accent); color: var(--bg-deep);
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--accent);
  transition: background 0.3s, border-color 0.3s, transform 0.25s;
}
.hero-cta:hover { background: var(--accent-bright); border-color: var(--accent-bright); transform: translateY(-2px); }
.hero-link-ghost {
  font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(232, 228, 220, 0.55); white-space: nowrap;
  transition: color 0.3s;
}
.hero-link-ghost::after { content: ' →'; }
.hero-link-ghost:hover { color: var(--text); }

/* scroll indicator */
.hero-scroll {
  position: absolute; bottom: 2.25rem; right: clamp(1.5rem, 5vw, 4.5rem);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; z-index: 3;
}
.hero-scroll-label {
  font-size: 0.56rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(232, 228, 220, 0.22); writing-mode: vertical-rl;
}
.hero-scroll-bar {
  width: 1px; height: 52px; background: rgba(255, 255, 255, 0.1); overflow: hidden;
}
.hero-scroll-fill {
  width: 100%; height: 50%; background: var(--accent);
  animation: hero-scroll-anim 2s cubic-bezier(0.4,0,0.2,1) infinite;
}
@keyframes hero-scroll-anim {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}

.hero-char { display: inline-block; }

@media (max-width: 960px) {
  .hero-topbar-right { display: none; }
  .hero-title { font-size: clamp(3.5rem, 14vw, 7rem); }
  .hero-ghost { font-size: 34vw; }
}
/* desktop illustration hidden on mobile */
.hero-illustration--mobile { display: none; }

@media (max-width: 600px) {
  .hero-title { font-size: clamp(2.8rem, 16vw, 5rem); gap: 0.04em; }
  .hero-foot { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .hero-foot-right { gap: 1.25rem; }
  .hero-scroll { display: none; }

  /* hide absolute desktop illustration */
  .hero-illustration--desktop { display: none; }

  /* mobile illustration: in flow below title, points down toward CTA */
  .hero-illustration--mobile {
    display: block;
    position: relative;
    align-self: center;
    margin: 0.75rem auto 0;
    width: 60%;
    max-width: 220px;
    height: auto;
    opacity: 0.95;
    mask-image: none;
    -webkit-mask-image: none;
    object-fit: contain;
    pointer-events: none;
    z-index: 1;
  }

  /* mobile layout: title → mascot (flow) → CTA pinned bottom */
  .hero-inner {
    justify-content: flex-start;
    padding-top: calc(var(--header-h) + 0.5rem);
    padding-bottom: 10rem;
    gap: 0;
  }
  .hero-rule { display: none; }
  .hero-body { flex: 0; padding: 0.25rem 0; }
  .hero-foot {
    position: absolute;
    bottom: 1.75rem;
    left: clamp(1.5rem, 5vw, 4.5rem);
    right: clamp(1.5rem, 5vw, 4.5rem);
  }
}
@media (max-height: 740px) {
  .hero-inner { padding-top: calc(var(--header-h) + 0.25rem); }
  .hero-title { font-size: clamp(3rem, 10vw, 7rem); }
}

/* SERVICES */
.services { position: relative; background: var(--bg-deep); padding: 8rem 0 0; overflow: hidden; }
.services-header { text-align: center; margin-bottom: 4rem; padding: 0 1.5rem; }
.section-label {
  display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--accent-bright); margin-bottom: 1.5rem;
}
.services-intro {
  font-family: var(--font-display); font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.5;
}
.services-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: linear-gradient(135deg, #0f3d4a 0%, #0a2a35 50%, #0d1b33 100%);
  border-top: 1px solid rgba(138, 133, 96, 0.25);
  border-bottom: 1px solid rgba(138, 133, 96, 0.25);
}
.service-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
  position: relative; transition: background 0.4s;
}
.service-card:not(:last-child)::after {
  content: ""; position: absolute; top: 18%; right: 0; width: 1px; height: 64%;
  background: rgba(232, 228, 220, 0.18);
}
.service-card:hover { background: rgba(255, 255, 255, 0.04); }
.service-card:hover .service-icon { transform: translateY(-6px); color: var(--cream); }
.service-icon {
  font-size: clamp(3.25rem, 5.5vw, 4.75rem); color: var(--cream);
  margin-bottom: 1.75rem; line-height: 1; transition: transform 0.35s ease, color 0.35s ease;
}
.service-icon i { display: block; }
.service-card h4 {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 600; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.service-card p { font-size: 0.9rem; color: rgba(232, 228, 220, 0.72); line-height: 1.65; max-width: 240px; margin-bottom: 2rem; }
.service-more {
  display: inline-flex; align-items: center; justify-content: center; min-width: 110px;
  padding: 0.7rem 1.5rem; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--cream); border: 1px solid rgba(232, 228, 220, 0.55);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.service-more:hover { background: var(--cream); border-color: var(--cream); color: var(--navy); }

.footer-map {
  width: 100%;
  height: 320px;
  border-top: 1px solid rgba(138, 133, 96, 0.2);
  border-bottom: 1px solid rgba(138, 133, 96, 0.2);
}
#footerMap {
  width: 100%;
  height: 100%;
  filter: brightness(1.6) contrast(0.88);
}

/* custom gold marker */
.map-pin {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 4px rgba(138, 133, 96, 0.25), 0 0 16px rgba(138, 133, 96, 0.4);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid rgba(138, 133, 96, 0.3);
  border-radius: 0;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  font-family: var(--font-body);
  font-size: 0.82rem;
}
.leaflet-popup-tip { background: var(--bg-elevated); }
.leaflet-popup-content strong { color: var(--accent-bright); }
.leaflet-attribution-flag { display: none !important; }
.leaflet-control-attribution {
  background: rgba(7,11,18,0.75) !important;
  color: rgba(232,228,220,0.35) !important;
  font-size: 0.6rem !important;
}
.leaflet-control-attribution a { color: rgba(138,133,96,0.6) !important; }
.leaflet-control-zoom a {
  background: var(--bg-elevated) !important;
  color: var(--text) !important;
  border-color: rgba(138,133,96,0.3) !important;
}

/* SHOWCASE CAROUSEL */
.sc-carousel { position: relative; width: 100%; }

.sc-track-wrap { overflow: hidden; }
.sc-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.sc-slide {
  flex: 0 0 100%; min-width: 0;
  display: flex; flex-direction: column; gap: 0.85rem;
}

.sc-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent-bright);
}

/* controls */
.sc-controls {
  display: flex; align-items: center; justify-content: flex-end;
  gap: 1rem; margin-top: 1rem;
}
.sc-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(138, 133, 96, 0.35);
  color: var(--text); background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.25s, border-color 0.25s;
}
.sc-btn:hover { background: rgba(138,133,96,0.15); border-color: var(--accent); }
.sc-btn:disabled { opacity: 0.28; pointer-events: none; }
.sc-dots { display: flex; gap: 0.45rem; align-items: center; }
.sc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(232,228,220,0.22); cursor: pointer;
  transition: background 0.25s, width 0.25s;
}
.sc-dot.active { background: var(--accent-bright); width: 18px; border-radius: 3px; }

/* ── Browser mockup ── */
.sc-browser-mock {
  background: var(--bg-elevated);
  border: 1px solid rgba(138,133,96,0.2);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.sc-browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-card);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.sc-bar-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.sc-bar-dot--red    { background: #ff5f57; }
.sc-bar-dot--yellow { background: #febc2e; }
.sc-bar-dot--green  { background: #28c840; }
.sc-url {
  flex: 1; font-size: 0.6rem; color: rgba(232,228,220,0.3);
  background: rgba(0,0,0,0.2); padding: 0.2rem 0.6rem; border-radius: 4px;
  letter-spacing: 0.05em;
}
.sc-browser-body { padding: 0.75rem; display: flex; flex-direction: column; gap: 0.6rem; }
.sc-mock-nav {
  height: 28px; background: rgba(255,255,255,0.04);
  border-radius: 2px;
}
.sc-mock-hero {
  height: 110px;
  background: linear-gradient(135deg, rgba(138,133,96,0.18) 0%, rgba(13,27,51,0.5) 100%);
  border-radius: 2px;
}
.sc-mock-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 0.5rem; }
.sc-mock-card {
  height: 70px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 2px;
}
.sc-mock-text-rows { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.25rem 0; }
.sc-mock-line {
  height: 8px; background: rgba(255,255,255,0.08); border-radius: 4px;
}
.sc-mock-line.w80 { width: 80%; }
.sc-mock-line.w60 { width: 60%; }
.sc-mock-line.w90 { width: 90%; }
.sc-mock-line.w70 { width: 70%; }
.sc-mock-line.w50 { width: 50%; }

/* ── Phone mockup ── */
.sc-phone-wrap {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 0.5rem 0;
}
.sc-phone {
  width: 200px;
  background: var(--bg-card);
  border: 2px solid rgba(138,133,96,0.3);
  border-radius: 28px;
  padding: 0.6rem;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.sc-phone-notch {
  width: 60px; height: 14px;
  background: var(--bg-deep);
  border-radius: 8px;
  margin: 0 auto 0.5rem;
}
.sc-phone-screen {
  background: var(--bg-main);
  border-radius: 18px;
  padding: 0.6rem;
  display: flex; flex-direction: column; gap: 0.45rem;
  min-height: 340px;
}
.sc-mock-app-bar {
  height: 22px; background: rgba(138,133,96,0.18);
  border-radius: 4px;
}
.sc-mock-app-hero {
  height: 100px;
  background: linear-gradient(135deg, rgba(138,133,96,0.25) 0%, rgba(13,27,51,0.6) 100%);
  border-radius: 8px;
}
.sc-mock-app-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
.sc-mock-app-card {
  height: 60px; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06); border-radius: 6px;
}
.sc-mock-app-btn {
  height: 36px; background: var(--accent);
  border-radius: 6px; margin-top: auto;
  opacity: 0.7;
}

/* ── POS terminal mockup ── */
.sc-pos-wrap {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 0.5rem 0;
}
.sc-pos-photo {
  width: 100%; max-width: 420px; height: auto;
  filter: drop-shadow(0 24px 64px rgba(0,0,0,0.5));
}

/* FISKATOR SHOWCASE */
.showcase {
  position: relative; background: var(--bg-main);
  padding: clamp(5rem, 10vw, 8rem) clamp(1.5rem, 4vw, 3rem);
  padding-bottom: clamp(6rem, 12vw, 10rem); overflow: hidden;
}
.showcase::before {
  content: ""; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
  background: radial-gradient(ellipse at 70% 50%, rgba(138, 133, 96, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.showcase-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem); align-items: center;
  max-width: 1240px; margin: 0 auto;
}
.showcase-text { max-width: 520px; }
.sc-text-inner {
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.sc-text-inner.sc-fading {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}
.showcase-label {
  font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase;
  color: var(--accent-bright); display: block; margin-bottom: 1.25rem;
}
.showcase-title {
  font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700; line-height: 1; text-transform: uppercase; color: var(--text); margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.05em;
}
.showcase-title-logo-wrap {
  display: inline-flex; align-items: center;
  height: 1em;
}
.showcase-title-logo {
  height: 1em; width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(138,133,96,0.3));
}
.showcase-title-rest { display: inline; }
.showcase-tagline {
  font-family: var(--font-display); font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--accent-bright); margin-bottom: 1.5rem; font-weight: 600;
}
.showcase-desc { color: var(--text-muted); line-height: 1.75; margin-bottom: 2rem; font-size: 1rem; }
.showcase-features { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2.5rem; }
.showcase-features li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.9rem; color: var(--text); line-height: 1.5; }
.showcase-features i { color: var(--accent-bright); margin-top: 0.2rem; flex-shrink: 0; }
.showcase-image-wrap {
  position: relative; border: 1px solid rgba(138, 133, 96, 0.3);
  background: var(--bg-elevated); padding: 0.75rem;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.showcase-image {
  display: block; width: 100%; height: auto;
  object-fit: contain; object-position: top center;
}

/* PORTFOLIO */
.portfolio { position: relative; background: var(--text); color: var(--bg-deep); isolation: isolate; }
.portfolio-inner { position: relative; }

/* Title scene — pinned, lines scroll in from right */
.portfolio-title-scene {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  overflow: hidden;
  position: relative;
}
.portfolio-title {
  font-family: var(--font-display); font-size: clamp(4rem, 13vw, 11rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.03em; text-transform: uppercase;
  white-space: nowrap; will-change: transform;
}
.portfolio-title.accent-text, .accent-text { color: var(--accent); }

/* Cards slider — transform, 3 stranice */
.portfolio-cards-section {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem);
}
.portfolio-carousel {
  overflow: hidden;
  padding-inline: clamp(1.5rem, 6vw, 5rem);
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}
.portfolio-carousel.is-grabbing { cursor: grabbing; }
.portfolio-carousel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
.portfolio-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: clamp(1rem, 2vw, 1.5rem);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.portfolio-track.is-dragging { transition: none; }

/* Nav: arrows + dots */
.portfolio-nav {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-top: 2rem;
}
.portfolio-nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(7, 11, 18, 0.3);
  background: transparent; color: var(--bg-deep);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.portfolio-nav-btn:hover:not(:disabled) { background: var(--bg-deep); color: var(--text); border-color: var(--bg-deep); }
.portfolio-nav-btn:disabled { opacity: 0.3; pointer-events: none; cursor: default; }
.portfolio-nav-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.portfolio-nav-dots { display: flex; gap: 0.5rem; align-items: center; }
.portfolio-nav-dot {
  width: 6px; height: 6px; border-radius: 50%;
  padding: 0; border: none;
  background: rgba(7, 11, 18, 0.25); transition: background 0.25s, width 0.25s;
  cursor: pointer;
}
.portfolio-nav-dot.active { background: var(--bg-deep); width: 20px; border-radius: 3px; }
.portfolio-nav-dot[aria-selected="true"] { background: var(--bg-deep); width: 20px; border-radius: 3px; }
.portfolio-nav-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.portfolio-card {
  flex: 0 0 clamp(220px, 22vw, 300px); background: var(--bg-deep); color: var(--text);
  border: 2px solid var(--bg-deep); overflow: hidden;
  transition: border-color 0.35s ease;
}
.portfolio-card:hover { border-color: var(--accent-dim); }
.portfolio-card-visual { height: auto; aspect-ratio: 492 / 643; background: linear-gradient(135deg, var(--navy) 0%, var(--bg-elevated) 100%); position: relative; overflow: hidden; }
.portfolio-card-visual.visual-alt { background: linear-gradient(135deg, var(--accent-dim) 0%, var(--navy) 100%); }
.portfolio-card-visual.visual-dark { background: linear-gradient(135deg, #1a1a2e 0%, var(--bg-main) 100%); }
.portfolio-card-visual.visual-accent { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%); }
.portfolio-card-pattern {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 24px 24px;
}
.portfolio-card-link {
  display: block; text-decoration: none; color: inherit;
}
.portfolio-card--linked { cursor: pointer; }
.portfolio-card--linked:hover { border-color: var(--accent); }
.portfolio-card-img {
  display: block; width: 100%; height: 100%;
  object-fit: contain; object-position: center center;
  transition: transform 0.4s ease;
}
.portfolio-card--linked:hover .portfolio-card-img { transform: scale(1.04); }
.portfolio-card-info { padding: 1.5rem; }
.portfolio-tag { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent-bright); }
.portfolio-card h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; margin: 0.5rem 0 0.75rem; line-height: 1.3; }
.portfolio-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.portfolio-clients { border-top: 1px solid rgba(7, 11, 18, 0.15); padding: 3rem 1.5rem 0; }
.clients-label { text-align: center; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(7, 11, 18, 0.5); margin-bottom: 1.5rem; }
.clients-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent); }
.clients-track {
  display: flex; align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
  width: max-content;
  will-change: transform;
}
.client-logo {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  height: clamp(52px, 9vw, 80px);
  padding: 0.35rem 0.5rem;
}
.client-logo img {
  display: block;
  max-height: 100%;
  max-width: clamp(100px, 16vw, 168px);
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.82;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.client-logo img:hover { opacity: 1; transform: scale(1.04); }
.client-logo img[src*="haludek"] {
  max-height: 130%;
  max-width: clamp(120px, 17vw, 185px);
  transform: scale(1.15);
}
.client-logo img[src*="haludek"]:hover { transform: scale(1.2); }
.client-logo img[src*="provar"] {
  max-height: 160%;
  max-width: clamp(140px, 20vw, 220px);
  transform: scale(1.55);
}
.client-logo img[src*="provar"]:hover { transform: scale(1.62); }
.client-logo img[src*="automotorefres"] {
  max-height: 100%;
  max-width: clamp(90px, 13vw, 145px);
  transform: scale(0.72);
}
.client-logo img[src*="automotorefres"]:hover { transform: scale(0.76); }

/* FOOTER */
.footer { position: relative; background: var(--bg-deep); padding: 6rem 1.5rem 0; overflow: hidden; }
.footer-hero { text-align: center; margin-bottom: 5rem; }
.footer-title-wrap { margin-bottom: 1.5rem; }
.footer-title {
  font-family: var(--font-display); font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 700; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; color: var(--text);
}
.footer-sub { color: var(--text-muted); max-width: 480px; margin: 0 auto; font-size: 1rem; }
.footer-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem;
  max-width: 1100px; margin: 0 auto 5rem; padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}
.footer-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.contact-label { display: block; font-size: 0.65rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-bright); margin-bottom: 0.75rem; }
.contact-block p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
.contact-block a { transition: color 0.3s; }
.contact-block a:hover { color: var(--accent-bright); }
.footer-form { display: flex; flex-direction: column; gap: 1.5rem; }
.footer-form label { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-form label span { font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted); }
.footer-form input, .footer-form textarea {
  background: transparent; border: none; border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.75rem 0; color: var(--text); font-family: var(--font-body); font-size: 1rem; outline: none; resize: vertical;
}
.footer-form input:focus, .footer-form textarea:focus { border-color: var(--accent); }
.footer-form .btn { align-self: flex-start; margin-top: 0.5rem; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem); flex-wrap: wrap; gap: 1rem;
}
.footer-logo { display: inline-flex; align-items: center; line-height: 0; }
.footer-logo img { width: clamp(150px, 22vw, 200px); height: auto; filter: drop-shadow(0 4px 16px rgba(138, 133, 96, 0.18)); }
.copyright { font-size: 0.8rem; color: var(--text-muted); opacity: 0.6; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); opacity: 0.6; transition: opacity 0.3s; }
.footer-links a:hover { opacity: 1; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .showcase-inner { grid-template-columns: 1fr; gap: 3rem; }
  .showcase-text { max-width: 100%; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card:nth-child(2)::after { display: none; }
  .service-card:nth-child(1), .service-card:nth-child(2) { border-bottom: 1px solid rgba(232, 228, 220, 0.12); }
  .portfolio-title-scene { min-height: 60vh; }
  .portfolio-title { white-space: normal; }
  .portfolio-card { flex: 0 0 clamp(200px, 38vw, 300px); }
}
@media (max-width: 768px) {
  .header-utility { display: none; }
  .header-float { align-items: stretch; }
  .nav-pill { padding: 0.45rem 0.45rem 0.45rem 1rem; }
  .mobile-menu { padding-top: calc(var(--nav-h) + 1.5rem); }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-logo img { height: 84px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card::after { display: none; }
  .service-card:not(:last-child) { border-bottom: 1px solid rgba(232, 228, 220, 0.12); }
  .showcase-text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .showcase-features { align-items: center; }
  .showcase-features li { max-width: 360px; }
  .portfolio-card { flex: 0 0 70vw; max-width: 280px; }
}
@media (max-width: 600px) {
  .portfolio-carousel { padding-inline: 1rem; }
  .portfolio-card { flex: 0 0 calc(100vw - 2rem); max-width: calc(100vw - 2rem); }
  .portfolio-clients { padding: 1.75rem 0 1.75rem; }
  .clients-label { margin-bottom: 1rem; font-size: 0.62rem; }
  .clients-marquee { mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent); }
  .clients-track { gap: 1.5rem; }
  .client-logo { width: 150px; height: 84px; padding: 0; }
  .client-logo img { width: 142px; height: 68px; max-width: none; max-height: none; object-fit: contain; }
  .client-logo img[src*="ebsw"] { transform: scale(1.4); }
  .client-logo img[src*="branch2"] { transform: scale(1.15); }
  .client-logo img[src*="pustinja"] { transform: scale(1.05); }
  .client-logo img[src*="samarice"] { transform: scale(1.05); }
  .client-logo img[src*="haludek"] { transform: scale(1.4); }
  .client-logo img[src*="provar"] { transform: scale(3); }
  .client-logo img[src*="automotorefres"] { transform: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-contact { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Showcase mobile fix */
  .showcase { padding-inline: 1.25rem; padding-top: 3.5rem; padding-bottom: 4rem; }
  .showcase-inner { overflow: hidden; width: 100%; }
  .showcase-text { text-align: left; align-items: stretch; max-width: 100%; width: 100%; }
  .sc-text-inner { width: 100%; min-width: 0; overflow: hidden; }
  .showcase-title { font-size: clamp(2.2rem, 12vw, 3rem); }
  .showcase-tagline { font-size: clamp(0.95rem, 3.8vw, 1.1rem); white-space: normal; overflow-wrap: break-word; }
  .showcase-desc { font-size: 0.88rem; overflow-wrap: break-word; word-break: break-word; }
  .showcase-features { align-items: flex-start; width: 100%; }
  .showcase-features li { max-width: 100%; font-size: 0.85rem; overflow-wrap: break-word; }
  .showcase-cta { align-self: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
