@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #0d1b3e;
  --navy-mid: #162352;
  --blue: #1e3a8a;
  --sky: #3b82f6;
  --ice: #bfdbfe;
  --ice-light: #eff6ff;
  --white: #ffffff;
  --off-white: #f8faff;
  --text: #1e2a45;
  --text-muted: #64748b;
  --accent: #f59e0b;
  --accent2: #06b6d4;
  --radius: 16px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in, .fade-in.visible { opacity: 1; transform: none; }
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

/* ─── FOCUS STYLES ─── */
:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ─── HEADINGS ─── */
h1, h2, h3, h4,
.nav-logo-text,
.hero-stat strong,
.why-visual-title,
.slide-label,
.review-name,
.contact-card-value,
.contact-form h3,
.footer-logo span,
.section-label,
.why-num,
.btn-submit {
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s ease both;
}

h1 em { font-style: normal; color: var(--accent2); }

h2 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

/* ─── NAVBAR ─── */
nav#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 5%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(13, 27, 62, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: background 0.3s;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  z-index: 201;
  position: relative;
}

.nav-logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-logo-text span { color: var(--accent2); }

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ice); }

.nav-cta {
  background: var(--sky);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-weight: 600 !important;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover { background: var(--accent2) !important; transform: translateY(-1px); }

/* ─── HAMBURGER (becomes X) ─── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
  border-radius: 6px;
  z-index: 201;
  position: relative;
  width: 40px;
  height: 40px;
}

.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  position: absolute;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.25s ease,
              top 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  left: 50%;
  transform: translateX(-50%);
}

.ham-top { top: 11px; }
.ham-mid { top: 19px; }
.ham-bot { top: 27px; }

/* X state */
.hamburger[aria-expanded="true"] .ham-top {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}
.hamburger[aria-expanded="true"] .ham-mid {
  opacity: 0;
  transform: translateX(-50%) scaleX(0);
}
.hamburger[aria-expanded="true"] .ham-bot {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}

/* ─── MOBILE MENU — slide in from right ─── */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 149;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.mobile-overlay.visible {
  display: block;
  opacity: 1;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: rgba(10, 20, 50, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 90px 32px 40px;
  gap: 4px;
  border-left: 1px solid rgba(255,255,255,0.08);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.4);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color 0.2s, padding-left 0.2s;
  font-family: 'Outfit', sans-serif;
}

.mobile-menu a:hover {
  color: var(--ice);
  padding-left: 8px;
}

.mobile-menu-cta {
  margin-top: 16px;
  background: linear-gradient(135deg, var(--sky), var(--accent2));
  color: white !important;
  padding: 14px 24px !important;
  border-radius: 50px;
  text-align: center;
  border-bottom: none !important;
  font-weight: 700 !important;
  transition: opacity 0.2s, transform 0.2s !important;
}

.mobile-menu-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  padding-left: 24px !important;
}

/* ─── HERO ─── */
#hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, #0f2460 50%, #1a3a7c 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 5% 60px;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

#hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.snowflakes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.snowflake {
  position: absolute;
  top: -20px;
  color: rgba(255,255,255,0.25);
  font-size: 1.2rem;
  animation: snow linear infinite;
  user-select: none;
  will-change: transform;
  contain: layout style;
}

@keyframes snow {
  0%   { transform: translateY(0) rotate(0deg);    opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.4; }
  100% { transform: translateY(100vh) rotate(360deg); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--ice);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.hero-badge::before { content: '❄️'; }

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-primary {
  background: var(--sky);
  color: white;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  box-shadow: 0 8px 30px rgba(59,130,246,0.4);
}

.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(59,130,246,0.55); background: #2563eb; }

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: white;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
}

.btn-secondary:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

.hero-visual {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: fadeIn 1.2s 0.4s ease both;
}

.hero-logo-wrap {
  width: 340px;
  height: 340px;
  background: radial-gradient(circle at 40% 40%, rgba(59,130,246,0.3), rgba(13,27,62,0.6));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(59,130,246,0.25);
  box-shadow: 0 0 80px rgba(59,130,246,0.2), inset 0 0 60px rgba(6,182,212,0.05);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 80px rgba(59,130,246,0.2), inset 0 0 60px rgba(6,182,212,0.05); }
  50% { box-shadow: 0 0 120px rgba(59,130,246,0.35), inset 0 0 80px rgba(6,182,212,0.1); }
}

.hero-logo-wrap img {
  width: 260px;
  height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.4));
  border-radius: 50%;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  animation: fadeUp 0.8s 0.4s ease both;
}

.hero-stat strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--white);
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── SECTIONS ─── */
section { padding: 80px 5%; }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 48px;
  font-weight: 300;
}

/* ─── USLUGE ─── */
#usluge { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(59,130,246,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(30,58,138,0.1); }
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ─── ZASTO MI ─── */
#zasto { background: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.why-items { display: flex; flex-direction: column; gap: 24px; }

.why-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-num {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: linear-gradient(135deg, var(--sky), var(--accent2));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: white;
}

.why-item h4 {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 5px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 300;
}

.why-visual {
  background: linear-gradient(135deg, var(--navy), #1e3a8a);
  border-radius: 24px;
  padding: 48px 40px;
  color: white;
  position: relative;
  overflow: hidden;
}

.why-visual::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(59,130,246,0.3), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-visual-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.3;
}

.why-visual-title span { color: var(--accent2); }

.coverage-area {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}

.coverage-area p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.coverage-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.coverage-tag {
  background: rgba(59,130,246,0.2);
  border: 1px solid rgba(59,130,246,0.3);
  color: var(--ice);
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

.coverage-tag--special {
  background: rgba(6,182,212,0.2);
  border-color: rgba(6,182,212,0.4);
  color: #a5f3fc;
  font-style: italic;
}

.why-contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}

.why-contact-row a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ice);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  padding: 10px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.2s;
}

.why-contact-row a:hover { background: rgba(255,255,255,0.14); }

/* ─── GALERIJA CAROUSEL ─── */
#galerija { background: var(--off-white); overflow: hidden; }

/* The wrapper clips everything — must NOT have overflow:visible */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  width: 100%;
}

/* Track: flex row, NO wrap. Width/transform set by JS */
.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  transition: transform 0.52s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
  cursor: grab;
  user-select: none;
  /* Width will be set by JS to exact pixel value */
}

.carousel-track:active { cursor: grabbing; }

/* ── GALLERY SLIDES ──
   Width set by JS. Height = fixed 260px. Image fills via object-fit. */
.carousel-slide {
  /* width set by JS via inline style */
  flex-shrink: 0;
  flex-grow: 0;
  height: 260px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ice-light);
  border: 1px solid rgba(59,130,246,0.1);
  position: relative;
  box-shadow: 0 4px 16px rgba(30,58,138,0.07);
  transition: box-shadow 0.3s, transform 0.3s;
}

.carousel-slide:hover {
  box-shadow: 0 8px 28px rgba(30,58,138,0.14);
  transform: translateY(-3px);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.carousel-slide:hover img { transform: scale(1.06); }

/* Zoom-in overlay — ONLY on gallery slides, never on review slides */
.carousel-slide:not(.review-slide)::after {
  content: '🔍';
  position: absolute;
  inset: 0;
  background: rgba(13,27,62,0);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  cursor: zoom-in;
}

.carousel-slide:not(.review-slide):hover::after {
  opacity: 1;
  background: rgba(13,27,62,0.28);
}

/* ── REVIEW SLIDES ──
   Same fixed height as a card. Width set by JS. */
.review-slide {
  /* width set by JS */
  flex-shrink: 0;
  flex-grow: 0;
  height: auto;
  min-height: 0;
}

/* The card inside fills the slide */
.review-slide .review-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.review-slide .review-text-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.review-slide .review-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  flex-shrink: 1;
}

.review-slide .review-text.expanded {
  display: block;
  -webkit-line-clamp: unset;
  overflow-y: auto;
  max-height: 160px;
  padding-right: 4px;
  flex-shrink: 1;
}

/* Scrollbar styling inside expanded review */
.review-slide .review-text.expanded::-webkit-scrollbar {
  width: 4px;
}
.review-slide .review-text.expanded::-webkit-scrollbar-track {
  background: transparent;
}
.review-slide .review-text.expanded::-webkit-scrollbar-thumb {
  background: var(--ice);
  border-radius: 2px;
}

.review-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sky);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  padding: 6px 0 0 0;
  transition: color 0.2s;
  /* visible by default; JS hides it if text fits */
}

.review-expand-btn:hover { color: var(--accent2); }

.review-expand-btn .expand-arrow {
  font-size: 0.7rem;
  transition: transform 0.25s;
  display: inline-block;
}

.review-expand-btn.open .expand-arrow { transform: rotate(180deg); }

.reviews-carousel-wrapper {
  border-radius: 0;
  overflow: hidden;
}

/* ── CONTROLS ── */
.carousel-controls {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  align-items: center;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--sky);
  background: white;
  color: var(--sky);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.22s;
  box-shadow: 0 4px 12px rgba(59,130,246,0.12);
}

.carousel-btn:hover:not(:disabled) {
  background: var(--sky);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(59,130,246,0.3);
}
.carousel-btn:disabled { opacity: 0.32; cursor: not-allowed; transform: none; box-shadow: none; }

.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ice);
  cursor: pointer;
  transition: all 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  padding: 0;
}

.dot.active { background: var(--sky); width: 28px; border-radius: 4px; }
.dot:hover:not(.active) { background: rgba(59,130,246,0.45); transform: scale(1.25); }

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 10, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.open .lightbox-img { transform: scale(1); }

.lightbox-close {
  position: fixed;
  top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}

.lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 1001;
}

.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  position: fixed;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.05em;
}

/* ─── RECENZIJE ─── */
#recenzije { background: var(--white); }

/* reviews-grid no longer used, carousel handles layout */

.review-card {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid rgba(59,130,246,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(30,58,138,0.08); }

/* Author block — always at the top */
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  order: -1; /* JS also moves it, but this is a CSS safety net */
}

.review-quote {
  font-size: 2rem;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 10px;
  font-family: Georgia, serif;
}

.review-text {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 300;
  font-style: italic;
}

/* Closing quotation mark after last visible line of review text */
.review-text-wrap {
  position: relative;
}

.review-text::after {
  content: '\201D';
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--sky);
  line-height: 0;
  vertical-align: -0.6em;
  margin-left: 2px;
  font-style: normal;
}

.review-avatar {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: white;
  flex-shrink: 0;
}

.review-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy);
}

.review-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.review-google-link {
  font-size: 0.72rem;
  color: var(--sky);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.review-google-link:hover { color: var(--accent2); text-decoration: underline; }

.review-date {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-left: auto;
}

/* ─── KONTAKT ─── */
#kontakt {
  background: linear-gradient(135deg, var(--navy), #1a3a7c);
  color: white;
}

#kontakt h2 { color: white; }
#kontakt .section-label { color: var(--accent2); }
#kontakt .section-sub { color: rgba(255,255,255,0.65); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 20px 24px;
  text-decoration: none;
  color: white;
  transition: background 0.25s, transform 0.25s;
}

.contact-card:hover { background: rgba(255,255,255,0.12); transform: translateX(6px); }

.contact-card-icon {
  width: 46px;
  height: 46px;
  min-width: 46px;
  background: linear-gradient(135deg, var(--sky), var(--accent2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.contact-card-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 3px;
  font-family: 'DM Sans', sans-serif;
}

.contact-card-value {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-card-sub {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  font-family: 'DM Sans', sans-serif;
}

/* ─── CONTACT MAP ─── */
.contact-map {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-map-label {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-map-pin { font-size: 1.5rem; flex-shrink: 0; }

.contact-map-title {
  font-weight: 700;
  font-size: 1rem;
  color: white;
}

.contact-map-address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}

.contact-map-directions {
  margin-left: auto;
  background: linear-gradient(135deg, var(--sky), var(--accent2));
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.contact-map-directions:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
}

.contact-map iframe {
  display: block;
  width: 100%;
  border-radius: 14px;
  border: none;
}

/* ─── FOOTER ─── */
footer {
  background: #080f23;
  color: rgba(255,255,255,0.5);
  padding: 32px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
}

.footer-logo span {
  font-weight: 700;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
}

.footer-text { font-size: 0.82rem; }

.footer-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.82rem;
  background: rgba(255,255,255,0.06);
  padding: 7px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s, background 0.2s;
}

.footer-links a:hover { color: var(--ice); background: rgba(255,255,255,0.1); }

.footer-divider { color: rgba(255,255,255,0.2); font-size: 0.8rem; }

/* ─── PRIVACY MODAL ─── */
.privacy-overlay {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(5,10,30,0.75);
  display: none;
}

.privacy-overlay.visible { display: block; }

.privacy-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: none;
}

.privacy-modal[hidden] { display: none; }

.privacy-modal:not([hidden]) { pointer-events: auto; }

.privacy-modal-inner {
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.privacy-modal-inner h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--navy);
}

.privacy-modal-inner h3 {
  font-size: 1rem;
  color: var(--navy);
  margin: 20px 0 8px;
}

.privacy-modal-inner p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 8px;
}

.privacy-updated {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-top: 24px !important;
}

.privacy-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.privacy-close:hover { background: var(--off-white); }

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-50%) scale(0.9); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SCROLL PERFORMANCE ─── */
.carousel-track {
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.carousel-wrapper {
  -webkit-overflow-scrolling: touch;
  overflow: hidden;
}

.snowflake {
  will-change: transform;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  section { padding: 60px 5%; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; text-align: center; }
  footer .footer-links { justify-content: center; }
  .contact-map { padding: 20px 16px; }
  .contact-map-directions { padding: 6px 12px; font-size: 0.78rem; }
  .why-visual { padding: 32px 24px; }
  .why-contact-row { flex-direction: column; align-items: flex-start; }
  .carousel-slide:not(.review-slide) { height: 200px; }
  .review-slide { height: auto !important; min-height: 320px; }
  .review-slide .review-text.expanded { max-height: 220px; }
  .lightbox-nav { display: none; }
  .privacy-modal-inner { padding: 28px 20px; }
}

/* ─── MOBILE PERFORMANCE ───
   Remove expensive GPU effects on low-power devices */
@media (max-width: 768px) {
  nav {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(13,27,62,0.98) !important;
  }

  .mobile-menu {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10,20,50,0.99);
  }

  .lightbox {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Reduce snowflakes on mobile - hide half of them */
  .snowflake:nth-child(odd) { display: none; }

  /* Simpler fade-in on mobile */
  .fade-in {
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  /* Disable hover transforms that cause repaints */
  .service-card:hover,
  .review-card:hover,
  .contact-card:hover {
    transform: none;
  }
}

/* ─── VIDEO SLIDE ─── */
.carousel-slide--video {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.carousel-slide--video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  background: rgba(0,0,0,0.35);
  transition: opacity 0.3s, background 0.2s;
  pointer-events: none;
}

.carousel-slide--video.playing .video-play-btn { opacity: 0; }
.carousel-slide--video:hover .video-play-btn { background: rgba(0,0,0,0.5); }

/* ─── INVERTER SECTION ─── */
#inverter { background: linear-gradient(160deg, #f0f6ff 0%, #e8f0fe 100%); }

.inverter-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.inverter-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid rgba(59,130,246,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.inverter-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--accent2));
}

.inverter-card:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(30,58,138,0.1); }

.inverter-card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.inverter-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.inverter-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  font-weight: 300;
}

/* ─── ČIŠĆENJE SECTION ─── */
.ciscenje-section { background: var(--off-white); }

.ciscenje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.ciscenje-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  border: 1px solid rgba(59,130,246,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ciscenje-item:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(30,58,138,0.08); }

.ciscenje-check {
  color: #4ade80;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.ciscenje-item strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.ciscenje-item p {
  color: var(--text-muted);
  font-size: 0.87rem;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.ciscenje-cta {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ciscenje-cta p {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ─── MONTAŽA SECTION ─── */
.montaza-section { background: var(--navy); color: white; }
.montaza-section h2 { color: white; }

.montaza-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

@media (max-width: 768px) { .montaza-grid { grid-template-columns: 1fr; gap: 32px; } }

.montaza-includes h3,
.montaza-notes h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ice);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.montaza-list, .montaza-note-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.montaza-list li, .montaza-note-list li {
  display: flex;
  gap: 12px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}

.montaza-check { color: #4ade80; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.montaza-note-list li::before { content: '·'; color: var(--sky); font-size: 1.3rem; flex-shrink: 0; line-height: 1.4; }

/* ─── PRINT ─── */
@media print {
  nav, .snowflakes, .hero-visual, .carousel-wrapper, .carousel-controls,
  .mobile-menu, .mobile-overlay { display: none; }
  #hero { min-height: auto; padding: 20px; }
  body { color: #000; }
}