
/* ==========================================================================
   Domex, Ambient tech
   Struktura: fonts → tokens → reset → base → utilities → komponente → sekcije
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts (lokalno, latin + latin-ext za hrvatske dijakritike)
   Varijabilni fontovi: jedna datoteka po obitelji i podskupu pokriva cijeli raspon težina.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/font-1-a28eb6d3cc.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/font-2-c940764593.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/font-3-054c266fbb.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('/assets/fonts/font-4-a0d054c4af.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Tokens
   -------------------------------------------------------------------------- */
html {
  --bg: #0a0e16;
  --bg-elev: #0e1420;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #22d3ee;
  --accent-dim: #0ea5c4;
  --accent-2: #34d399;
  --warm: #fbbf24;
  --danger: #f87171;
  --text: #f2f5f9;
  --text-2: #9aa7b8;
  --text-3: #7a8699;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --z-raised: 10;
  --z-header: 100;
  --z-overlay: 200;

  --transition: 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
  --glow-accent: 0 8px 32px rgba(34, 211, 238, 0.28);

  --header-h: 72px;
}

/* --------------------------------------------------------------------------
   3. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* hidden atribut uvijek pobjeđuje display pravila komponenti */
[hidden] {
  display: none !important;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* --------------------------------------------------------------------------
   4. Base
   -------------------------------------------------------------------------- */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

html {
  background-color: var(--bg);
  /* suptilna mreža točkica daje teksturu velikim tamnim plohama */
  background-image: radial-gradient(rgba(154, 167, 184, 0.055) 1px, transparent 1.3px);
  background-size: 36px 36px;
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html.menu-open {
  overflow: hidden;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: rgba(34, 211, 238, 0.3);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: calc(var(--z-overlay) + 1);
  background: var(--accent);
  color: #04222b;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transform: translateY(-64px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.skip-link:focus-visible {
  transform: none;
  opacity: 1;
}

/* --------------------------------------------------------------------------
   5. Utilities
   -------------------------------------------------------------------------- */
.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: var(--space-3);
}

.section {
  padding-block: var(--space-12);
  position: relative;
  overflow: hidden;
}

/* ambijentalne aureole u sekcijama na osnovnoj pozadini */
#vrijednosti::before,
#za-koga::before,
#o-nama::before {
  content: '';
  position: absolute;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  pointer-events: none;
}

#vrijednosti::before {
  top: -200px;
  left: -240px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.07) 0%, transparent 62%);
}

#za-koga::before {
  top: 8%;
  right: -260px;
  background: radial-gradient(circle, rgba(52, 211, 153, 0.055) 0%, transparent 62%);
}

#o-nama::before {
  bottom: -220px;
  left: -240px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.045) 0%, transparent 62%);
}

.section--elev {
  background: var(--bg-elev);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 620px;
  margin-bottom: var(--space-8);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
}

.h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-2);
}

.section-intro {
  color: var(--text-2);
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background-color var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #04222b;
  box-shadow: var(--glow-accent);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34, 211, 238, 0.42);
}

.btn--primary:active {
  transform: translateY(0) scale(0.98);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn--ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.06);
}

.btn--sm {
  min-height: 44px;
  padding: 9px 22px;
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* --------------------------------------------------------------------------
   8. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  background: linear-gradient(105deg, rgba(8, 17, 31, 0.94), rgba(10, 22, 37, 0.88) 55%, rgba(4, 28, 40, 0.92));
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  border-bottom: 1px solid rgba(34, 211, 238, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  transition: background-color var(--transition), border-color var(--transition), backdrop-filter var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: linear-gradient(105deg, rgba(8, 17, 31, 0.97), rgba(10, 22, 37, 0.95) 55%, rgba(4, 28, 40, 0.97));
  backdrop-filter: blur(22px) saturate(145%);
  -webkit-backdrop-filter: blur(22px) saturate(145%);
  border-bottom-color: rgba(34, 211, 238, 0.28);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.3);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-dot {
  color: var(--accent);
  text-shadow: 0 0 12px rgba(34, 211, 238, 0.8);
}

.site-nav {
  display: flex;
  gap: var(--space-3);
  margin-left: auto;
}

.site-nav a {
  color: var(--text-2);
  font-size: 15px;
  font-weight: 400;
  padding: 10px 4px;
  position: relative;
  transition: color var(--transition);
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-2);
  padding: 6px 12px;
  min-width: 44px;
  min-height: 32px;
  border-radius: var(--radius-pill);
  position: relative;
  transition: color var(--transition), background-color var(--transition);
}

/* nevidljivo proširenje dodirne površine na 44px visine; izgled ostaje isti */
.lang-btn::after {
  content: '';
  position: absolute;
  inset: -6px 0;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  color: var(--text);
  background: rgba(34, 211, 238, 0.14);
}

/* Burger */
.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.menu-toggle__bar {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform var(--transition), top var(--transition);
}

.menu-toggle__bar:nth-child(1) { top: 18px; }
.menu-toggle__bar:nth-child(2) { top: 25px; }

.menu-toggle.is-open .menu-toggle__bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-toggle__bar:nth-child(2) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobilni meni */
.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: var(--z-overlay);
  background: rgba(10, 14, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  padding: var(--space-4);
  overflow-y: auto;
}

/* centrirano kad ima mjesta, scrollabilno kad nema (niski landscape ekrani) */
.mobile-menu nav {
  margin-top: auto;
}

.mobile-menu > .lang-switch {
  margin-bottom: auto;
}

/* uz otvoren meni traka headera ne smije biti prozirna */
html.menu-open .site-header {
  background: rgba(10, 14, 22, 0.96);
}

.mobile-menu nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.mobile-menu nav a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 6px 16px;
  opacity: 0;
  transform: translateY(16px);
}

.mobile-menu:not([hidden]) nav a {
  animation: menu-item-in 320ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}

.mobile-menu nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-menu nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-menu nav a:nth-child(4) { animation-delay: 180ms; }
.mobile-menu nav a:nth-child(5) { animation-delay: 240ms; }

@keyframes menu-item-in {
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 899px) {
  .site-nav,
  .site-header__cta {
    display: none;
  }

  .site-header__actions .lang-switch {
    margin-left: auto;
    transition: opacity var(--transition), visibility var(--transition);
  }

  /* uz otvoren meni vidi se samo prekidač jezika u izborniku */
  html.menu-open .site-header__actions .lang-switch {
    opacity: 0;
    visibility: hidden;
  }

  .menu-toggle {
    display: block;
  }

  .site-header__inner {
    gap: var(--space-2);
  }

  .site-header__actions {
    flex: 1;
    justify-content: flex-end;
  }
}

@media (min-width: 900px) {
  .mobile-menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   9. Hero
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-h) + var(--space-4));
  padding-bottom: var(--space-8);
}

.hero__aura {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.hero__aura--cyan {
  top: -220px;
  right: -140px;
  width: 760px;
  height: 760px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.16) 0%, transparent 62%);
}

.hero__aura--warm {
  bottom: -260px;
  left: -180px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.07) 0%, transparent 62%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-6);
  align-items: center;
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7de8f7;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.06);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.8); }
}

.hero__title {
  font-size: clamp(40px, 5.6vw, 66px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: var(--space-3);
}

.accent-text {
  background: linear-gradient(94deg, var(--accent) 10%, var(--accent-2) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 460px;
  margin-bottom: var(--space-4);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__note {
  font-size: 13.5px;
  color: var(--text-3);
  margin-top: var(--space-2);
}

/* Ulazna animacija */
.hero-enter {
  opacity: 0;
  transform: translateY(22px);
  animation: hero-enter 640ms cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
  animation-delay: calc(var(--enter, 0) * 110ms + 120ms);
}

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Vizual: kuća */
.hero__visual {
  position: relative;
}

.hero-house {
  width: 100%;
  max-width: 540px;
  margin-inline: auto;
}

/* plutajuće smart-home kartice oko kuće */
.hero__chip {
  position: absolute;
  z-index: var(--z-raised);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  background: rgba(14, 20, 32, 0.72);
  border: 1px solid rgba(34, 211, 238, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35), 0 0 16px rgba(34, 211, 238, 0.07);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
  white-space: nowrap;
  animation: chip-float 6s ease-in-out infinite alternate;
}

.hero__chip svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  filter: drop-shadow(0 0 4px rgba(34, 211, 238, 0.6));
}

.hero__chip--1 {
  top: 12%;
  left: -2%;
}

.hero__chip--2 {
  top: 42%;
  right: -4%;
  animation-delay: 1.6s;
}

.hero__chip--2 svg {
  stroke: var(--warm);
  filter: drop-shadow(0 0 4px rgba(251, 191, 36, 0.55));
}

.hero__chip--3 {
  bottom: 4%;
  left: 6%;
  animation-delay: 3.1s;
}

.hero__chip--3 svg {
  stroke: var(--accent-2);
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.55));
}

@keyframes chip-float {
  from { transform: translateY(4px); }
  to { transform: translateY(-8px); }
}

.hero-house .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: house-draw 900ms ease-out forwards;
}

.hero-house .d1 { animation-delay: 200ms; }
.hero-house .d2 { animation-delay: 350ms; }
.hero-house .d3 { animation-delay: 500ms; }
.hero-house .d4 { animation-delay: 650ms; }
.hero-house .d5 { animation-delay: 800ms; }
.hero-house .d6 { animation-delay: 950ms; }

@keyframes house-draw {
  to { stroke-dashoffset: 0; }
}

.hero-house .glow-line {
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55));
}

.hero-house .house-window {
  animation: window-breathe 4.5s ease-in-out infinite;
}

@keyframes window-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

.hero-house .links path {
  stroke-dashoffset: 0;
  animation: link-march 7s linear infinite;
}

@keyframes link-march {
  to { stroke-dashoffset: -110; }
}

.hero-house .node {
  filter: drop-shadow(0 0 5px currentColor);
}

.hero-house .node-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 3s ease-out infinite;
}

.hero-house .halo-2 {
  animation-delay: 600ms;
}

@keyframes halo-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  padding: 10px;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.hero__scroll-cue:hover {
  opacity: 1;
}

.hero__scroll-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--text-2);
  border-radius: 13px;
  position: relative;
}

.hero__scroll-dot {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 3px;
  background: var(--accent);
  animation: scroll-dot 2s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0.2; }
  61% { opacity: 0; }
  62% { opacity: 0; transform: translateY(0); }
}

@media (max-width: 899px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    text-align: left;
  }

  .hero__visual {
    order: 2;
  }

  .hero-house {
    max-width: 400px;
  }

  .hero__ctas .btn {
    flex: 1 1 100%;
  }

  .hero__scroll-cue {
    display: none;
  }

  .hero__chip {
    font-size: 11.5px;
    padding: 7px 11px;
  }

  .hero__chip--1 { left: 0; top: 8%; }
  .hero__chip--2 { right: 0; }
  .hero__chip--3 { display: none; }
}

/* veliki ekrani: širi sadržaj da stranica ne pluta u praznini */
@media (min-width: 1800px) {
  .container {
    max-width: 1320px;
  }

  .hero__title {
    font-size: 74px;
  }

  .hero-house {
    max-width: 620px;
  }

  .hero__aura--cyan {
    width: 900px;
    height: 900px;
  }
}

/* --------------------------------------------------------------------------
   10. Scroll reveal
   -------------------------------------------------------------------------- */
/* skriva se samo uz JS (html.js postavlja inline skripta u <head>) */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 480ms ease-out, transform 480ms ease-out;
}

html.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

[data-reveal-delay="1"] { transition-delay: 90ms; }
[data-reveal-delay="2"] { transition-delay: 180ms; }
[data-reveal-delay="3"] { transition-delay: 270ms; }

/* --------------------------------------------------------------------------
   11. Vrijednosti
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.value-card {
  padding: var(--space-4);
}

.value-card h3 {
  font-size: 20px;
  margin-bottom: var(--space-1);
}

.value-card p {
  color: var(--text-2);
  font-size: 15.5px;
}

@media (max-width: 899px) {
  .values-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   12. Usluge
   -------------------------------------------------------------------------- */
/* linija s putujućim impulsom: podaci teku kroz sustav */
.data-line {
  position: relative;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.25), rgba(255, 255, 255, 0.05) 55%, transparent);
  overflow: hidden;
  margin-bottom: var(--space-6);
}

.data-line__pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 90px;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: pulse-travel 5s ease-in-out infinite;
}

@keyframes pulse-travel {
  0% { transform: translateX(-100%); opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(1400%); opacity: 0; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}

.service-card {
  position: relative;
  padding: var(--space-4) var(--space-3);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 238, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.1);
  }

  .service-card:hover::after {
    opacity: 1;
  }
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.service-card p {
  color: var(--text-2);
  font-size: 14.5px;
}

@media (max-width: 1199px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 639px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   13. Za koga
   -------------------------------------------------------------------------- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.who-card {
  padding: var(--space-4);
}

/* animirana line-art scena na vrhu kartice */
.card-scene {
  margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) var(--space-3);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.03), transparent);
}

.card-scene svg {
  width: 100%;
  height: auto;
}

.scene-node {
  filter: drop-shadow(0 0 5px currentColor);
}

/* čvor svijetli u boji iz atributa color; bez atributa u cijan */
.scene-node:not([color]) {
  color: #22d3ee;
}

.scene-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: halo-pulse 3s ease-out infinite;
}

.scene-glow {
  filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.5));
}

.scene-window {
  animation: window-breathe 4.5s ease-in-out infinite;
}

/* iscrtavanje scene kad kartica postane vidljiva (vrijedi za sve .card-scene) */
html.js .card-scene .sd {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.js .is-visible .card-scene .sd {
  animation: house-draw 900ms ease-out forwards;
}

html.js .is-visible .card-scene .sd1 { animation-delay: 150ms; }
html.js .is-visible .card-scene .sd2 { animation-delay: 350ms; }
html.js .is-visible .card-scene .sd3 { animation-delay: 550ms; }
html.js .is-visible .card-scene .sd4 { animation-delay: 750ms; }

/* svjetlosne plohe (fill) se pojavljuju nakon linija */
html.js .card-scene .sf {
  opacity: 0;
}

html.js .is-visible .card-scene .sf {
  animation: scene-fade 900ms ease-out 750ms forwards;
}

@keyframes scene-fade {
  to { opacity: 1; }
}

.who-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.who-card__intro {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: var(--space-3);
}

.check-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  color: var(--text-2);
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.4);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6.5 12.5 10 16l7.5-8.5'/%3E%3C/svg%3E") center / 10px no-repeat,
    rgba(34, 211, 238, 0.08);
}

@media (max-width: 899px) {
  .who-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   14. Proces
   -------------------------------------------------------------------------- */
.process {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  position: relative;
}

/* linija koja se iscrtava: ::before je staza, ::after ispuna (u <ol> smiju stajati samo <li>) */
.process::before,
.process::after {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  border-radius: 2px;
}

.process::before {
  background: var(--border);
}

.process::after {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.4s cubic-bezier(0.3, 0.6, 0.2, 1) 300ms;
}

.process.is-visible::after {
  transform: scaleX(1);
}

.process__step {
  text-align: center;
  padding-inline: var(--space-1);
}

.process__num {
  position: relative;
  z-index: var(--z-raised);
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.45);
  background: var(--bg-elev);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.25), inset 0 0 12px rgba(34, 211, 238, 0.08);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--space-3);
}

.process__step h3 {
  font-size: 18px;
  margin-bottom: var(--space-1);
}

.process__step p {
  color: var(--text-2);
  font-size: 14.5px;
  max-width: 240px;
  margin-inline: auto;
}

@media (max-width: 899px) {
  .process {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    padding-left: 8px;
  }

  .process::before,
  .process::after {
    top: 24px;
    bottom: 24px;
    left: 31px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .process::after {
    transform: scaleY(0);
    transform-origin: top;
    background: linear-gradient(180deg, var(--accent), var(--accent-2));
  }

  .process.is-visible::after {
    transform: scaleY(1);
  }

  .process__step {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: var(--space-3);
    text-align: left;
    align-items: start;
    padding-inline: 0;
  }

  .process__step h3 {
    grid-column: 2;
    margin-top: 12px;
  }

  .process__step p {
    grid-column: 2;
    margin-inline: 0;
    max-width: none;
  }

  .process__num {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }
}

/* --------------------------------------------------------------------------
   14b. Projekti
   -------------------------------------------------------------------------- */
#projekti::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -240px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 62%);
  pointer-events: none;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.project-card {
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

@media (hover: hover) {
  .project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, 0.35);
    box-shadow: 0 12px 40px rgba(34, 211, 238, 0.1);
  }
}

.project-card__media {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.project-card__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  transition: transform 400ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (hover: hover) {
  .project-card__media:hover img {
    transform: scale(1.04);
  }
}

.project-card__badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: rgba(10, 14, 22, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.project-card__badge svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent);
}

.project-card__body {
  padding: var(--space-3);
}

.project-card__tag {
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7de8f7;
  border: 1px solid rgba(34, 211, 238, 0.25);
  background: rgba(34, 211, 238, 0.06);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-2);
}

.project-card__body h3 {
  font-size: 19px;
  margin-bottom: var(--space-1);
}

/* samo opis; oznaka i meta redak imaju svoje klase i stilove */
.project-card__body p:not([class]) {
  color: var(--text-2);
  font-size: 14.5px;
}

.project-card__meta {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.projects-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--space-6);
}

@media (max-width: 899px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   15. O nama
   -------------------------------------------------------------------------- */
.about {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.knx-credential {
  display: flex;
  align-items: center;
  gap: 18px;
  width: fit-content;
  max-width: 100%;
  margin-top: var(--space-4);
  padding: 14px 18px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(110deg, rgba(255,255,255,.055), rgba(34,211,238,.045));
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.knx-credential__logo {
  width: 112px;
  height: 68px;
  object-fit: contain;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.16));
}
.knx-credential__copy { display: flex; flex-direction: column; gap: 2px; }
.knx-credential__title { color: var(--text); font: 700 15px/1.35 var(--font-display); }
.knx-credential__text { color: var(--text-2); font-size: 13px; line-height: 1.45; }

.about__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: var(--space-2);
  border-left: 2px solid rgba(34, 211, 238, 0.35);
  padding-left: var(--space-3);
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  min-width: 92px;
}

.stat__num .stat__plus {
  color: var(--accent);
}

.stat dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

@media (max-width: 899px) {
  .knx-credential { gap: 12px; padding: 12px 14px; }
  .knx-credential__logo { width: 90px; height: 58px; }
  .about {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   16. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-item h3 {
  margin: 0;
}

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  text-align: left;
  padding: 20px var(--space-3);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  min-height: 60px;
  border-radius: var(--radius);
  transition: color var(--transition);
}

.faq-q:hover {
  color: #7de8f7;
}

.faq-chevron {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--text-2);
  transition: transform var(--transition), color var(--transition);
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-item.is-open {
  border-color: rgba(34, 211, 238, 0.3);
}

.faq-a {
  overflow: hidden;
}

.faq-a p {
  padding: 0 var(--space-3) 20px;
  color: var(--text-2);
  font-size: 15px;
  max-width: 640px;
  animation: faq-in 260ms ease-out;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   17. Kontakt
   -------------------------------------------------------------------------- */
#kontakt {
  overflow: hidden;
}

.contact__aura {
  position: absolute;
  right: -180px;
  top: 10%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.09) 0%, transparent 62%);
  pointer-events: none;
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
  position: relative;
}

.contact__points {
  margin-block: var(--space-4);
}

.contact__value {
  display: flex;
  gap: var(--space-2);
  padding: var(--space-3);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-4);
}

.contact__value svg {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 5px rgba(52, 211, 153, 0.5));
}

.contact__value p {
  color: var(--text-2);
  font-size: 14.5px;
}

.contact__rows {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact__row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-2);
  font-size: 15px;
  transition: color var(--transition);
  width: fit-content;
  min-height: 44px;
}

a.contact__row:hover {
  color: var(--accent);
}

.contact__row svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  opacity: 0.8;
}

/* Forma */
.contact-form {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.req {
  color: var(--accent);
}

.form-field input,
.form-field textarea {
  background: rgba(255, 255, 255, 0.03);
  /* rub mora imati kontrast barem 3:1 prema kartici (WCAG 1.4.11); var(--border) je za polja preslab */
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  min-height: 48px;
  color: var(--text);
  font-size: 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
}

.form-field input:hover,
.form-field textarea:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(34, 211, 238, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
  background: rgba(34, 211, 238, 0.03);
}

.form-field input[aria-invalid="true"],
.form-field textarea[aria-invalid="true"] {
  border-color: rgba(248, 113, 113, 0.6);
}

.field-error {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--danger);
  font-size: 13.5px;
}

/* prazna poruka (bez greške) ne zauzima prostor ni ne prikazuje ikonu */
.field-error:empty {
  display: none;
}

.field-error::before {
  content: '';
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* honeypot: vizualno skriveno, ne display:none (botovi to preskaču) */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.contact-form__submit {
  width: 100%;
}

/* dok se upit šalje (aria-disabled, ne disabled, da fokus ostane na gumbu) */
.contact-form__submit[aria-disabled="true"] {
  cursor: progress;
  opacity: 0.75;
  transform: none;
  box-shadow: var(--glow-accent);
}

/* poruka kad slanje ne uspije; puni je main.js */
.form-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(248, 113, 113, 0.08);
  color: var(--danger);
  font-size: 14px;
  line-height: 1.5;
}

.form-status:empty {
  display: none;
}

.form-status::before {
  content: '';
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f87171' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7.5v5.5M12 16.5v.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-note {
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

.form-success {
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.form-success svg {
  width: 52px;
  height: 52px;
  color: var(--accent-2);
  margin: 0 auto var(--space-3);
  filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.5));
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: var(--space-1);
}

.form-success p {
  color: var(--text-2);
}

@media (max-width: 899px) {
  .contact {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--border);
  padding-top: var(--space-8);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
}

.site-footer__brand p {
  color: var(--text-2);
  font-size: 14.5px;
  margin-top: var(--space-2);
}

.site-footer__nav,
.site-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: start;
}

.site-footer__socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}

.site-footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 5px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}

.site-footer__socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.site-footer__socials svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-footer__socials svg .social-icon__dot,
.site-footer__socials svg .social-icon__fill {
  fill: currentColor;
  stroke: none;
}

.site-footer__socials a:last-child svg {
  fill: currentColor;
  stroke: none;
}

.site-footer__nav a,
.site-footer__contact a {
  color: var(--text-2);
  font-size: 14.5px;
  padding-block: 4px;
  transition: color var(--transition);
}

.site-footer__nav a:hover,
.site-footer__contact a:hover {
  color: var(--accent);
}

.site-footer__legal {
  border-top: 1px solid var(--border);
  padding-block: 18px;
  color: var(--text-3);
  font-size: 12.5px;
  line-height: 1.7;
}
.site-footer__legal p { margin: 2px 0; }
.site-footer__legal strong { color: var(--text-2); font-weight: 600; }
.site-footer__legal-brand { color: var(--accent); font-family: var(--font-display); font-weight: 700; }
.site-footer__legal a { color: var(--text-2); }
.site-footer__legal a:hover { color: var(--accent); }

.site-footer__bottom {
  border-top: 1px solid var(--border);
  padding-block: var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.site-footer__bottom p {
  color: var(--text-3);
  font-size: 13px;
}

.site-footer__price-link {
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__price-link:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  .site-footer__bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 899px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}

/* --------------------------------------------------------------------------
   19. Lightbox galerija
   -------------------------------------------------------------------------- */
html.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 12, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lightbox__figure {
  position: relative;
  margin: 0;
  width: min(1080px, calc(100vw - 160px));
  animation: lightbox-in 240ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

@keyframes lightbox-in {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
}

.lightbox__img {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: var(--bg-elev);
}

.lightbox__caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-2);
  margin-top: 14px;
  color: var(--text-2);
  font-size: 14.5px;
}

.lightbox__counter {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
}

.lightbox__btn {
  position: absolute;
  z-index: var(--z-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(14, 20, 32, 0.8);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  transition: border-color var(--transition), background-color var(--transition), transform var(--transition);
}

.lightbox__btn:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.12);
}

.lightbox__btn svg {
  width: 22px;
  height: 22px;
}

.lightbox__close {
  top: 22px;
  right: 22px;
}

.lightbox__prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 767px) {
  .lightbox__figure {
    width: 100%;
  }

  .lightbox__img {
    max-height: 64vh;
  }

  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: 22px;
    transform: none;
  }

  .lightbox__prev {
    left: calc(50% - 64px);
  }

  .lightbox__next {
    right: calc(50% - 64px);
  }

  .lightbox__caption {
    margin-bottom: 72px;
  }
}

/* --------------------------------------------------------------------------
   99. Reduced motion: globalni prekidač
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   100. Print
   -------------------------------------------------------------------------- */
@media print {
  html {
    background: #fff;
    color: #000;
  }

  .site-header,
  .mobile-menu,
  .hero__aura,
  .contact__aura,
  .hero__scroll-cue,
  .menu-toggle {
    display: none !important;
  }

  [data-reveal],
  .hero-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .section,
  .hero {
    min-height: 0;
    padding-block: 24px;
  }

  h1, h2, h3, p, a, li, dt, dd, label {
    color: #000 !important;
  }

  .accent-text {
    -webkit-text-fill-color: initial;
    background: none;
    color: #000;
  }
}

/* Keep in-page destinations clear of the sticky navigation. */
#main > section[id] { scroll-margin-top: 100px; }

/* ---- Cloudflare build additions ---- */
.form-privacy { color: var(--text-3); font-size: 13px; line-height: 1.5; margin-top: 12px; }
.form-privacy a, .site-footer__legal a { color: var(--text-2); }
.cf-turnstile { margin: 4px 0 16px; min-height: 65px; }
.site-footer__legal-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-page { max-width: 760px; margin: 0 auto; padding: 120px 24px 80px; }
.legal-page h1 { font: 700 clamp(28px, 4vw, 40px)/1.15 var(--font-display); margin-bottom: 8px; }
.legal-page h2 { font: 600 20px/1.3 var(--font-display); margin: 32px 0 8px; }
.legal-page p, .legal-page li { color: var(--text-2); margin-bottom: 8px; }
.legal-page ul { padding-left: 20px; }
.legal-page a { color: var(--accent); }
.legal-page .legal-meta { color: var(--text-3); font-size: 14px; }
.legal-page hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.legal-back { display: inline-block; margin-bottom: 32px; color: var(--text-2); text-decoration: none; }
