/* ===================================================
   TAVRAX SOLUTIONS — Main Stylesheet
   =================================================== */

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

:root {
  --orange: #F5821D;
  --orange-dark: #E06D10;
  --blue: #001848;
  --blue-dark: #00102E;
  --bg-dark: #FFFFFF;
  --bg-studio: #FFFFFF;
  --bg-tavrax: #F4F7FB;
  --bg-footer: #00102E;
  --card-studio: #FFFFFF;
  --card-tavrax: #FFFFFF;
  --border-studio: rgba(0,24,72,0.12);
  --border-tavrax: rgba(0,24,72,0.12);
  --text-light: #0B1B33;
  --text-muted: rgba(11,27,51,0.62);
  --navy: #001848;
  --shadow-sm: 0 2px 10px rgba(0,24,72,0.06);
  --shadow-md: 0 14px 40px rgba(0,24,72,0.10);
  --font-head: 'Bebas Neue', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/* ===================================================
   CUSTOM CURSOR
   =================================================== */
#cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, background 0.2s;
}

#cursor-follower {
  position: fixed;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(245, 130, 29, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
}

body:has(a:hover) #cursor,
body:has(button:hover) #cursor {
  transform: translate(-50%, -50%) scale(2);
}

@media (max-width: 768px) {
  #cursor, #cursor-follower { display: none; }
}

/* Touch uređaji bilo koje širine (tablet/hybrid) — bez custom cursora */
@media (hover: none), (pointer: coarse) {
  #cursor, #cursor-follower { display: none !important; }
}

/* Sakrij dok se miš prvi put ne pomakne (izbjegni točku u kutu 0,0) */
#cursor, #cursor-follower { opacity: 0; }
body.cursor-active #cursor, body.cursor-active #cursor-follower { opacity: 1; }

/* ===================================================
   ENTRY OVERLAY — Garažna vrata
   =================================================== */
#hero-intro {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

#entry-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.entry-overlay-dark {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
}

.entry-content {
  display: none;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  animation: entryFadeIn 0.8s ease 0.3s both;
}

@keyframes entryFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.entry-tagline {
  font-family: var(--font-body);
  font-size: clamp(13px, 1.8vw, 17px);
  color: rgba(255,255,255,0.75);
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.entry-location {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.4vw, 14px);
  color: rgba(255,255,255,0.4);
  letter-spacing: 3px;
  text-transform: uppercase;
}

/* keep old rules harmless */
.stijenka { display: none; }
.lamela {
  display: none;
  will-change: transform;
}

/* ===================================================
   NAVBAR
   =================================================== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s, border-color 0.3s;
}

#navbar.scrolled {
  border-bottom-color: var(--border-studio);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1300px;
  margin: 0 auto;
  height: 70px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

/* Brand lockup — TAVRAX logo, navbar is already white */
.brand-lockup {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.brand-lockup:hover { transform: translateY(-1px); }

.brand-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #0B1B33;
  padding: 9px 14px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--orange);
  background: rgba(245,130,29,0.10);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  background: var(--orange);
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #001848;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  padding: 0 24px;
  border-top: 1px solid var(--border-studio);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.mobile-menu.open {
  max-height: 480px;
  padding: 16px 24px 24px;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 600;
  color: #0B1B33;
  border-bottom: 1px solid var(--border-studio);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-cta {
  color: #fff !important;
  background: var(--orange);
  text-align: center;
  border-radius: 8px;
  font-weight: 700 !important;
  border-bottom: none !important;
  margin-top: 10px;
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s;
}

.btn:hover::after { left: 140%; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.btn-orange {
  background: var(--orange);
  color: #fff;
}
.btn-orange:hover { background: var(--orange-dark); }

.btn-blue {
  background: var(--blue);
  color: #fff;
}
.btn-blue:hover { background: var(--blue-dark); }

/* ===================================================
   HERO
   =================================================== */
#hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  background: radial-gradient(ellipse at 50% 0%, #022156 0%, #00102E 60%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-logo-bg {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(220px, 28vw, 420px);
  height: auto;
  object-fit: contain;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  padding: 0 24px;
  max-width: 900px;
}

#hero-title {
  font-family: var(--font-head);
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1;
  letter-spacing: 2px;
  color: #fff;
  margin-bottom: 24px;
  opacity: 0;
}

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

#hero-sub {
  font-size: clamp(15px, 2vw, 19px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  line-height: 1.7;
  opacity: 0;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  margin-bottom: 60px;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ===================================================
   SECTIONS COMMON
   =================================================== */
section {
  padding: 64px 0;
}

.section-inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.badge-orange {
  background: rgba(245, 130, 29, 0.12);
  color: var(--orange);
  border: 1px solid rgba(245,130,29,0.3);
}

.badge-blue {
  background: rgba(0, 24, 72, 0.1);
  color: var(--blue);
  border: 1px solid rgba(0,24,72,0.25);
}

h2 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  transition: color 0.2s;
}

.contact-item:hover { color: var(--orange); }
.contact-item-blue:hover { color: var(--blue) !important; }

.contact-item svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===================================================
   SERVICE CARDS
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@property --card-glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.service-card {
  position: relative;
  isolation: isolate;
  background: var(--card-studio);
  border: 1px solid rgba(245,130,29,0.12);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, filter 0.35s, opacity 0.35s;
  cursor: default;
  will-change: transform;
  transform-style: preserve-3d;
}

/* Soft rotating two-tone glow, always on, sitting behind the content */
.service-card::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--card-glow-angle), rgba(245,130,29,0.4), transparent 25%, rgba(11,169,223,0.35), transparent 75%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: card-glow-spin 5s linear infinite;
}

.service-card:hover {
  border-color: var(--orange);
  box-shadow: 0 0 24px rgba(245,130,29,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

/* Rotating two-tone glow border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), var(--orange), var(--blue), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

.service-card:hover::before {
  opacity: 1;
  animation: card-glow-spin 2.6s linear infinite;
}

@keyframes card-glow-spin {
  to { --card-glow-angle: 360deg; }
}

/* Isolate the hovered card — dim & blur its siblings */
.services-grid:has(.service-card:hover) .service-card:not(:hover) {
  filter: blur(2px) brightness(0.65);
  opacity: 0.7;
  transform: scale(0.98);
}

.card-blue {
  background: var(--card-tavrax);
  border-color: rgba(0,24,72,0.12);
}

.card-blue:hover {
  border-color: var(--blue);
  box-shadow: 0 0 24px rgba(0,24,72,0.1), 0 8px 32px rgba(0,0,0,0.3);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.card-icon.orange {
  background: rgba(245,130,29,0.12);
  color: var(--orange);
}

.card-icon.blue {
  background: rgba(0,24,72,0.1);
  color: var(--blue);
}

.card-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--navy);
}

.service-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  transition: gap 0.2s;
}

.card-link:hover { gap: 8px; }

.card-link svg { width: 14px; height: 14px; }

.blue-link { color: var(--blue) !important; }

/* ===================================================
   TAVRAX SECTION
   =================================================== */
#tavrax {
  background: var(--bg-tavrax);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#tavrax::before {
  display: none;
  content: 'TX';
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-size: 300px;
  color: rgba(0,24,72,0.03);
  pointer-events: none;
  line-height: 1;
}

/* ===================================================
   BACKGROUND RENDERS — oversized ghosted product art
   =================================================== */
.bg-render {
  position: absolute;
  z-index: -1;
  max-width: 60vw;
  height: auto;
  opacity: 0.14;
  pointer-events: none;
}

/* Sekcija 1 — usluge: lijevo */
.bg-render-garage {
  width: 700px;
  left: -140px;
  bottom: -90px;
}

/* Sekcija 2 — kako radimo: desno */
.bg-render-pergola {
  width: 780px;
  right: -150px;
  top: 50%;
  transform: translateY(-35%);
}

/* Sekcija 3 — zašto mi: lijevo */
.bg-render-pvc {
  width: 660px;
  left: -130px;
  top: -70px;
}

/* Sekcija 1 — usluge: desno, u sredini mreže kartica */
.bg-render-alu {
  width: 700px;
  right: -140px;
  top: 50%;
  transform: translateY(-20%);
}

@media (max-width: 900px) {
  .bg-render { opacity: 0.1; width: 460px !important; }
}

@media (max-width: 600px) {
  .bg-render { display: none; }
}

.services-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
  position: relative;
  z-index: 1;
}

.services-sub {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 4px auto 22px;
}

.services-phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 100px;
  background: rgba(11,169,223,0.1);
  border: 1px solid rgba(11,169,223,0.28);
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}

.services-phone:hover {
  background: rgba(11,169,223,0.16);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.services-phone svg { width: 17px; height: 17px; }

.services-grid-tavrax {
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 1;
}

/* ===================================================
   WHY US
   =================================================== */
#why-us {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

#why-us::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(0,24,72,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 64px;
}

.why-header p {
  color: var(--text-muted);
  font-size: 17px;
  margin-top: 12px;
}

.counters-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 64px;
  text-align: center;
}

.counter-item {
  position: relative;
  isolation: isolate;
  padding: 32px 16px;
  background: var(--bg-tavrax);
  border: 1px solid var(--border-studio);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s, filter 0.35s, opacity 0.35s;
}

.counter-item:hover {
  border-color: rgba(245,130,29,0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.counter-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), var(--orange), var(--blue), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

.counter-item:hover::before {
  opacity: 1;
  animation: card-glow-spin 2.6s linear infinite;
}

/* Soft rotating two-tone glow, always on, sitting behind the content */
.counter-item::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--card-glow-angle), rgba(245,130,29,0.4), transparent 25%, rgba(11,169,223,0.35), transparent 75%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: card-glow-spin 5s linear infinite;
}

.counters-row:has(.counter-item:hover) .counter-item:not(:hover) {
  filter: blur(2px) brightness(0.65);
  opacity: 0.7;
  transform: scale(0.98);
}

.counter-num,
.counter-plus,
.counter-label {
  position: relative;
  z-index: 1;
}

.counter-num {
  font-family: var(--font-head);
  font-size: 56px;
  color: var(--orange);
  line-height: 1;
}

.counter-plus {
  font-family: var(--font-head);
  font-size: 40px;
  color: var(--orange);
}

.counter-label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.advantage-item {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--bg-tavrax);
  border: 1px solid var(--border-studio);
  border-radius: 10px;
  overflow: hidden;
  font-size: 14px;
  color: var(--text-light);
  font-weight: 500;
  line-height: 1.5;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, filter 0.35s, opacity 0.35s;
}

.advantage-item:hover {
  border-color: rgba(245,130,29,0.3);
  transform: translateY(-2px);
}

.advantage-item::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), var(--orange), var(--blue), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}

.advantage-item:hover::before {
  opacity: 1;
  animation: card-glow-spin 2.6s linear infinite;
}

/* Soft rotating two-tone glow, always on, sitting behind the content */
.advantage-item::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--card-glow-angle), rgba(245,130,29,0.4), transparent 25%, rgba(11,169,223,0.35), transparent 75%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: card-glow-spin 5s linear infinite;
}

.advantages-grid:has(.advantage-item:hover) .advantage-item:not(:hover) {
  filter: blur(2px) brightness(0.65);
  opacity: 0.7;
  transform: scale(0.98);
}

.advantage-item > * {
  position: relative;
  z-index: 1;
}

.check-icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ===================================================
   GALLERY
   =================================================== */
#gallery {
  background: var(--bg-studio);
}

.gallery-header {
  text-align: center;
  margin-bottom: 40px;
}

.gallery-header p {
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 28px;
}

.gallery-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 9px 20px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  border: 1px solid var(--border-studio);
  color: var(--text-muted);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.gallery-grid {
  columns: 3;
  column-gap: 14px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 14px;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  margin-top: 6px;
}

.gallery-brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  display: inline-block;
}

.tavrax-tag {
  background: rgba(0,24,72,0.15);
  color: var(--blue);
  border: 1px solid rgba(0,24,72,0.3);
}

.gallery-item.hidden {
  display: none;
}


/* ===================================================
   TESTIMONIALS
   =================================================== */
#testimonials {
  background: var(--bg-tavrax);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 48px;
}

.testimonials-slider {
  display: flex;
  gap: 20px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 10px 24px 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 340px;
  max-width: 380px;
  background: linear-gradient(160deg, #0E3A54 0%, #082A3D 55%, #062436 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
  scroll-snap-align: center;
  flex-shrink: 0;
  opacity: 0.45;
  box-shadow: 0 20px 46px rgba(0,0,0,0.30);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s, opacity 0.35s;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: -70px;
  right: -70px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(245,130,29,0.30) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, rgba(11,169,223,0.22) 0%, transparent 70%);
  pointer-events: none;
}

.testimonial-card:hover {
  opacity: 1;
  border-color: var(--blue);
  box-shadow: 0 26px 60px rgba(0,0,0,0.4);
  transform: translateY(-4px);
}

.testimonial-card.is-featured {
  opacity: 1;
  border-color: transparent;
  box-shadow: 0 30px 70px rgba(0,0,0,0.45);
  transform: scale(1.04);
}

/* Rotating two-tone glow border — only on the selected/featured card */
.card-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), var(--orange), var(--blue), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.testimonial-card.is-featured .card-glow-ring {
  opacity: 1;
  animation: card-glow-spin 2.6s linear infinite;
}

.testimonial-card.is-featured:hover {
  transform: scale(1.04) translateY(-4px);
}

.testimonial-card-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.testimonial-rating-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  white-space: nowrap;
}

.stars {
  position: relative;
  z-index: 1;
  font-size: 15px;
  color: #FBBF24;
  letter-spacing: 2px;
}

.testimonial-text {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  font-size: 14px;
  color: rgba(226,238,247,0.85);
  line-height: 1.8;
  margin-bottom: 22px;
}

.testimonial-author {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.testimonial-location {
  font-weight: 500;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
}

.brand-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}

.tag-orange {
  background: rgba(245,130,29,0.15);
  color: var(--orange);
  border: 1px solid rgba(245,130,29,0.3);
}

.tag-blue {
  background: rgba(0,24,72,0.1);
  color: var(--blue);
  border: 1px solid rgba(0,24,72,0.25);
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.testimonial-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(0,24,72,0.2);
  background: transparent;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.testimonial-arrow svg { width: 20px; height: 20px; }

.testimonial-arrow:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.testimonial-arrow:active { transform: translateY(0); }

/* ===================================================
   CONTACT
   =================================================== */
#contact {
  background: var(--bg-dark);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact-header {
  text-align: center;
  margin-bottom: 56px;
}

.contact-header p {
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 12px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.contact-form-wrap form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: #fff;
  border: 1px solid var(--border-studio);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-light);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.form-group select option {
  background: #fff;
  color: var(--text-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(245,130,29,0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(11,27,51,0.35);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.submit-btn {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  letter-spacing: 1px;
}

/* Contact info */
.contact-brand-block {
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-studio);
}

.contact-brand-block h3 {
  font-family: var(--font-head);
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.tavrax-color { color: var(--blue); }
#footer .tavrax-color { color: #BFD2EA; }

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.info-item a {
  color: var(--text-light);
  transition: color 0.2s;
}

.info-item a:hover { color: var(--orange); }

.info-item svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--orange); }

.location-item {
  margin-bottom: 20px;
  margin-top: -8px;
}

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-studio);
}

/* ===================================================
   FOOTER
   =================================================== */
#footer {
  background: var(--bg-footer);
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding: 64px 48px 48px;
}

.footer-col-brand {
  max-width: 420px;
}

.footer-col-contact {
  max-width: 360px;
  text-align: right;
}

.footer-col-contact .social-links {
  justify-content: flex-end;
}

.footer-col .footer-logo {
  font-family: var(--font-head);
  font-size: 24px;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.9);
}

.footer-logo-img {
  width: 172px;
  max-width: 62%;
  height: auto;
  display: block;
  margin-bottom: 16px;
}

.footer-col p {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.8;
  margin-bottom: 14px;
}

.footer-phone {
  font-size: 14px;
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer-phone:hover { opacity: 0.75; }

.footer-mail {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #57C9F2;
  margin-top: 8px;
  transition: opacity 0.2s;
}

.footer-mail:hover { opacity: 0.75; }

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: rgba(255,255,255,0.85); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
}

.social-btn:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 20px 24px;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* ===================================================
   SCROLL REVEAL
   =================================================== */
[data-reveal] {
  opacity: 0;
}

[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="up"] { transform: translateY(40px); }

[data-reveal].revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .services-grid-tavrax {
    grid-template-columns: repeat(3, 1fr);
  }

  .counters-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .advantages-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 72px 0; }

  /* Hero — puni zaslon na mobitelu */
  #hero {
    height: 100vh;
    height: 100svh;
    min-height: 500px;
  }

  /* Animacija — video puni ekran, tekst ide na dno */
  #entry-video {
    object-fit: cover;
  }

  /* Overlay lagano taman — ne blokira animaciju */
  .entry-overlay-dark {
    background: rgba(0, 0, 0, 0.3);
  }

  /* Tekst na dno ekrana s gradientom */
  .entry-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    padding: 30px 20px 44px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    animation: entryFadeIn 0.8s ease 0.3s both;
  }

  .entry-tagline {
    font-size: 12px;
    letter-spacing: 0.5px;
  }

  .entry-location {
    font-size: 10px;
    letter-spacing: 2px;
  }

  /* Sakrij logo u pozadini heroja na mobitelu */
  .hero-logo-bg { display: none; }

  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: block; }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .services-grid-tavrax {
    grid-template-columns: 1fr 1fr;
  }

  .counters-row {
    grid-template-columns: 1fr 1fr;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    columns: 2;
    column-gap: 10px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
    padding: 48px 24px 32px;
  }

  .footer-col-brand,
  .footer-col-contact {
    max-width: none;
    text-align: center;
    width: 100%;
  }

  .footer-col-brand .footer-logo-img {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-col-contact .social-links {
    justify-content: center;
  }

  .testimonial-card {
    min-width: 220px;
    max-width: 230px;
    padding: 14px;
  }

  .testimonial-card-top {
    margin-bottom: 10px;
  }

  .testimonial-rating-label {
    font-size: 10px;
  }

  .stars {
    font-size: 11px;
  }

  .testimonial-text {
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
  }

  .testimonial-author {
    font-size: 12px;
  }

  .testimonial-location {
    font-size: 10px;
  }

  /* Sekcije — manji padding na mobitelu */
  .section-inner {
    padding: 0 16px;
  }

  /* Service cards — manji padding */
  .service-card {
    padding: 20px 16px;
  }

  /* Contact forma — kompaktnije na mobitelu */
  .contact-form-wrap form {
    gap: 10px;
  }

  .form-group {
    gap: 4px;
  }

  .form-group label {
    font-size: 10px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px; /* sprječava zoom na iOS */
    padding: 7px 10px;
  }

  .form-group textarea {
    min-height: 72px;
  }

  .submit-btn {
    padding: 10px 18px;
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  h2 { font-size: 28px; }

  .contact-header { margin-bottom: 50px; }
  .contact-header p { font-size: 14px; }

  .gallery-grid { columns: 1; }

  .services-grid-tavrax {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .services-grid-tavrax .service-card {
    padding: 14px;
  }

  .services-grid-tavrax .card-img {
    margin: -14px -14px 12px;
  }

  .services-grid-tavrax .card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .services-grid-tavrax .card-icon svg {
    width: 18px;
    height: 18px;
  }

  .services-grid-tavrax .service-card h3 {
    font-size: 13.5px;
  }

  .services-grid-tavrax .service-card p {
    font-size: 12px;
    line-height: 1.5;
  }

  .services-grid-tavrax .card-link {
    font-size: 12px;
  }

  .counters-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .counter-item { padding: 18px 10px; }

  .counter-num { font-size: 34px; }

  .counter-plus { font-size: 24px; }

  .counter-label { font-size: 11px; margin-top: 4px; }

  .hero-btns { flex-direction: column; align-items: center; gap: 10px; }
  .hero-btns .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 11px 20px;
    font-size: 13px;
  }
  .hero-btns .btn svg,
  .hero-btns .btn i {
    width: 16px;
    height: 16px;
  }

  /* Scroll indicator sakrij na malom ekranu */
  .scroll-indicator { display: none; }
}

/* ===================================================
   ENHANCEMENTS — viral / premium polish (appended; overrides above)
   =================================================== */

/* Scroll progress bar */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--orange) 0%, #F6A84D 50%, var(--navy) 100%);
  z-index: 2000;
  box-shadow: 0 0 10px rgba(245,130,29,0.5);
}

/* Gradient buttons */
.btn-orange {
  background: linear-gradient(135deg, #FF9A3D 0%, #F5821D 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(245,130,29,0.34);
}
.btn-orange:hover { background: linear-gradient(135deg, #FFA756 0%, #E0680F 100%); }
.btn-blue {
  background: linear-gradient(135deg, #0A2E78 0%, #001848 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(0,24,72,0.26);
}
.btn-blue:hover { background: linear-gradient(135deg, #0C3A92 0%, #00102E 100%); }
.nav-cta {
  background: linear-gradient(135deg, #FF9A3D 0%, #F5821D 100%);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245,130,29,0.3);
}
.nav-cta:hover { box-shadow: 0 10px 24px rgba(245,130,29,0.42); transform: translateY(-1px); }
.mobile-cta { background: linear-gradient(135deg, #FF9A3D 0%, #F5821D 100%) !important; }

/* Gradient counter numbers */
.counter-num, .counter-plus {
  background: linear-gradient(135deg, #FFA756 0%, #F5821D 55%, #E06D10 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero — permanent video scrim (navy) + warm orange glow + particles above */
.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(245,130,29,0.22) 0%, transparent 70%),
    linear-gradient(180deg, rgba(0,16,46,0.55) 0%, rgba(0,16,46,0.62) 55%, rgba(0,16,46,0.85) 100%);
}
#hero-canvas { z-index: 2; }
.entry-overlay-dark { background: rgba(0,16,46,0.28); }

.hero-eyebrow {
  display: inline-block;
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(245,130,29,0.12);
  border: 1px solid rgba(245,130,29,0.3);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 22px;
  opacity: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

/* ===== GALLERY MARQUEE (omakase-style auto-scroll) ===== */
.gallery-marquee {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 7%, #000 93%, transparent 100%);
}
.marquee-row { display: flex; overflow: hidden; width: 100%; }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  flex-shrink: 0;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}
.marquee-row-reverse .marquee-track { animation-direction: reverse; }
.gallery-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-card {
  position: relative;
  flex-shrink: 0;
  width: 360px;
  height: 248px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: #EEF2F8;
}
.marquee-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.marquee-card:hover img { transform: scale(1.07); }
.marquee-tag {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  border: none;
}
.marquee-tag.tavrax-tag { background: rgba(0,24,72,0.92); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .service-card::before,
  .process-step::before,
  .process-step::after,
  .counter-item::before,
  .counter-item::after,
  .advantage-item::before,
  .advantage-item::after,
  .card-glow-ring {
    animation: none !important;
  }
}

/* Pause the always-on glow while its section is off-screen (perf) */
.process-grid:not(.in-view) .process-step::after,
.counters-row:not(.in-view) .counter-item::after,
.advantages-grid:not(.in-view) .advantage-item::after {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .marquee-card { width: 260px; height: 180px; border-radius: 12px; }
  .marquee-track { animation-duration: 42s; }
}


/* ===================================================
   PALETTE FIX v2 — logo colours: azure blue + warm orange
   (orange handled globally above; this block fixes blue + dark surfaces)
   =================================================== */
:root {
  --blue: #0BA9DF;
  --blue-dark: #0888B5;
  --navy: #0B2A40;
}
#hero { background: radial-gradient(ellipse at 50% 0%, #0A3A56 0%, #062436 62%); }
#footer { background: #062436; }
.hero-video-scrim {
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(245,130,29,0.24) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6,32,48,0.56) 0%, rgba(6,32,48,0.64) 55%, rgba(6,32,48,0.88) 100%);
}
.entry-overlay-dark { background: rgba(6,32,48,0.30); }

.badge-blue { background: rgba(11,169,223,0.12); color: var(--blue); border: 1px solid rgba(11,169,223,0.32); }
.card-blue { border-color: rgba(11,169,223,0.18); }
.card-blue:hover { border-color: var(--blue); box-shadow: 0 0 24px rgba(11,169,223,0.18), 0 14px 40px rgba(6,32,48,0.12); }
.card-icon.blue { background: rgba(11,169,223,0.14); color: var(--blue); }
#tavrax::before { color: rgba(11,169,223,0.06); }
.tag-blue { background: rgba(11,169,223,0.12); color: var(--blue); border: 1px solid rgba(11,169,223,0.3); }
.tavrax-tag, .marquee-tag.tavrax-tag { background: rgba(11,140,185,0.95); color: #fff; }
.testimonial-arrow { border-color: rgba(11,169,223,0.25); color: var(--blue); }
.testimonial-arrow:hover { border-color: var(--orange); color: var(--orange); }
.btn-blue { background: linear-gradient(135deg, #2EBDEF 0%, #0BA9DF 100%); color: #fff; box-shadow: 0 10px 26px rgba(11,169,223,0.30); }
.btn-blue:hover { background: linear-gradient(135deg, #46C8F2 0%, #0795C6 100%); }
#footer .tavrax-color { color: #57C9F2; }
#scroll-progress { background: linear-gradient(90deg, var(--orange) 0%, #F6A84D 45%, var(--blue) 100%); box-shadow: 0 0 10px rgba(245,130,29,0.5); }


/* ===== HERO CINEMATIC v3 — lighter scrim for crisp dusk video + text legibility ===== */
.hero-video-scrim {
  background:
    radial-gradient(72% 58% at 50% 100%, rgba(245,130,29,0.18) 0%, transparent 70%),
    linear-gradient(180deg, rgba(6,32,48,0.26) 0%, rgba(6,32,48,0.45) 50%, rgba(6,32,48,0.72) 100%);
}
.hero-title, .hero-subtitle { text-shadow: 0 2px 30px rgba(4,16,28,0.62), 0 1px 4px rgba(4,16,28,0.55); }
.hero-eyebrow { text-shadow: 0 1px 10px rgba(4,16,28,0.40); }


/* ===================================================
   NEXT-LEVEL UPGRADE v1 — brand split, process, CTA band
   =================================================== */
.accent-blue { color: var(--blue); }
.badge-light {
  background: rgba(255,255,255,0.08);
  color: #cfe8f5;
  border: 1px solid rgba(255,255,255,0.18);
}

/* ---------- PROCESS ---------- */
#process { background:#fff; position:relative; overflow:hidden; isolation: isolate; }
.process-header { text-align:center; max-width:660px; margin:0 auto 56px; }
.process-header h2 { color:var(--navy); }
.process-header p { color:var(--text-muted); font-size:16px; }
.process-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }
.process-step {
  position:relative; isolation: isolate; background:#fff;
  border:1px solid rgba(11,42,64,0.10);
  border-radius:16px; padding:34px 24px 28px;
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, filter .35s ease, opacity .35s ease;
}
.process-step:hover { transform:translateY(-6px); box-shadow:var(--shadow-md); border-color:rgba(245,130,29,0.32); }

/* Rotating two-tone glow border — only on hover */
.process-step::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--card-glow-angle), var(--orange), var(--blue), var(--orange));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 2;
}
.process-step:hover::before {
  opacity: 1;
  animation: card-glow-spin 2.6s linear infinite;
}

/* Soft rotating two-tone glow, always on, sitting behind the content */
.process-step::after {
  content: '';
  position: absolute;
  inset: -30%;
  background: conic-gradient(from var(--card-glow-angle), rgba(245,130,29,0.4), transparent 25%, rgba(11,169,223,0.35), transparent 75%);
  filter: blur(30px);
  opacity: 0.5;
  pointer-events: none;
  z-index: -1;
  animation: card-glow-spin 5s linear infinite;
}

/* Isolate the hovered step — dim & blur its siblings */
.process-grid:has(.process-step:hover) .process-step:not(:hover) {
  filter: blur(2px) brightness(0.65);
  opacity: 0.7;
  transform: scale(0.98);
}
.process-num {
  position:absolute; top:18px; right:22px;
  font-family:var(--font-head); font-size:38px; line-height:1; color:rgba(11,42,64,0.09);
}
.process-icon {
  width:56px; height:56px; border-radius:15px;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg, rgba(245,130,29,0.14), rgba(11,169,223,0.12));
  color:var(--orange); margin-bottom:18px;
}
.process-icon svg { width:27px; height:27px; }
.process-step:nth-child(even) .process-icon { color: var(--blue); }
.process-step h3 { font-size:18px; font-weight:700; color:var(--navy); margin-bottom:9px; }
.process-step p { font-size:14px; color:var(--text-muted); line-height:1.7; }

/* ---------- CTA BAND ---------- */
#cta-band {
  background: radial-gradient(95% 150% at 50% 0%, #0A3A56, #062436 70%);
  position:relative; overflow:hidden;
}
.cta-band-inner { display:flex; align-items:center; justify-content:space-between; gap:44px; flex-wrap:wrap; }
.cta-band-text { flex:1 1 360px; }
.cta-band-text h2 { color:#fff; margin-bottom:12px; }
.cta-band-text p { color:rgba(218,234,244,0.72); font-size:16px; max-width:440px; }
.cta-band-actions { display:flex; flex-direction:column; gap:14px; flex:0 0 auto; }
.cta-phone {
  display:inline-flex; align-items:center; gap:15px;
  padding:16px 28px; border-radius:13px; min-width:312px;
  background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.12);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.cta-phone:hover { transform:translateY(-3px); background:rgba(255,255,255,0.09); }
.cta-phone > svg { width:25px; height:25px; flex-shrink:0; }
.cta-phone span { display:flex; flex-direction:column; font-family:var(--font-head); font-size:25px; letter-spacing:1px; color:#fff; line-height:1.05; }
.cta-phone small { font-family:var(--font-body); font-size:11px; letter-spacing:1.5px; text-transform:uppercase; font-weight:600; margin-bottom:3px; }
.cta-phone-orange > svg, .cta-phone-orange small { color:var(--orange); }
.cta-phone-blue > svg, .cta-phone-blue small { color:#57C9F2; }
.cta-phone-orange:hover { border-color:rgba(245,130,29,0.5); }
.cta-phone-blue:hover { border-color:rgba(11,169,223,0.5); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .process-grid { grid-template-columns:1fr 1fr; }
  .cta-band-inner { flex-direction:column; align-items:flex-start; }
  .cta-phone { min-width:100%; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns:1fr 1fr; gap: 12px; }

  .process-step { padding: 20px 14px 16px; }

  .process-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 12px;
  }

  .process-icon svg { width: 20px; height: 20px; }

  .process-num { font-size: 26px; top: 12px; right: 14px; }

  .process-step h3 { font-size: 14.5px; margin-bottom: 6px; }

  .process-step p { font-size: 12px; line-height: 1.5; }
}

/* ===================================================
   DARK THEME — cijela stranica u tamnoj navy boji
   (appended last; overrides light surfaces above)
   =================================================== */

/* Redefine design tokens for dark surfaces */
:root {
  --text-light: #E7F1F8;
  --text-muted: rgba(205,224,236,0.66);
  --navy: #EAF3FA;
  --border-studio: rgba(255,255,255,0.10);
  --border-tavrax: rgba(255,255,255,0.10);
  --card-studio: rgba(255,255,255,0.045);
  --card-tavrax: rgba(255,255,255,0.045);
  --bg-tavrax: rgba(255,255,255,0.04);
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.35);
  --shadow-md: 0 18px 46px rgba(0,0,0,0.45);
}

/* Page background — deep navy with soft top glow (matches hero) */
body {
  background-color: #061F2C;
  background-image: radial-gradient(1200px 560px at 50% -80px, rgba(20,78,110,0.6) 0%, rgba(9,42,58,0) 70%);
  background-repeat: no-repeat;
  color: var(--text-light);
}

/* All light sections become transparent so the page reads as one colour */
#tavrax, #process, #why-us, #gallery, #testimonials, #contact, #cta-band, #footer {
  background: transparent;
}

/* Section watermarks / textures tuned for dark */
#tavrax::before { color: rgba(120,196,232,0.05); }
#why-us::before { background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); }

/* Navbar */
#navbar {
  background: rgba(7,30,44,0.82);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled { border-bottom-color: rgba(255,255,255,0.08); }
.nav-links a { color: #DCEAF3; }
.nav-links a:hover { color: var(--orange); background: rgba(245,130,29,0.12); }
.hamburger span { background: #DCEAF3; }
.mobile-menu { background: rgba(7,30,44,0.97); border-top: 1px solid rgba(255,255,255,0.08); }
.mobile-menu a { color: #DCEAF3; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-menu a:hover { color: var(--orange); }

/* Cards & panels — subtle translucent surfaces */
.service-card,
.card-blue,
.counter-item,
.advantage-item,
.process-step {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.10);
}
.service-card:hover,
.card-blue:hover { border-color: var(--blue); box-shadow: 0 0 26px rgba(11,169,223,0.18), 0 14px 40px rgba(0,0,0,0.4); }
.counter-item:hover,
.advantage-item:hover,
.process-step:hover { border-color: rgba(245,130,29,0.4); box-shadow: var(--shadow-md); }
.advantage-item { color: var(--text-light); }
.process-num { color: rgba(255,255,255,0.12); }
.marquee-card { background: rgba(255,255,255,0.06); }

/* Testimonials */
.testimonial-arrow { border-color: rgba(255,255,255,0.22); color: rgba(255,255,255,0.7); }
.testimonial-arrow:hover { border-color: var(--orange); color: var(--orange); }

/* Contact form — dark inputs */
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.14);
  color: #EAF3FA;
}
.form-group select option { background: #0A2C40; color: #EAF3FA; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(220,235,245,0.4); }
.info-item, .info-item a { color: var(--text-light); }
.map-embed { border-color: rgba(255,255,255,0.12); }
.contact-brand-block { border-bottom-color: rgba(255,255,255,0.1); }

/* Footer sits on the same background */
#footer { border-top: 1px solid rgba(255,255,255,0.06); }

/* ===================================================
   LANGUAGE SWITCHER (HR / EN / DE)
   =================================================== */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #DCEAF3;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.4;
}
.lang-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.lang-btn.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.mobile-lang {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 12px 0;
}
.mobile-menu .mobile-lang { border-bottom: 1px solid rgba(255,255,255,0.08); }
@media (max-width: 768px) {
  .lang-switch { display: none; }
}


.intro-skip{display:none;position:absolute;right:22px;bottom:22px;z-index:6;background:rgba(6,31,44,.55);border:1px solid rgba(255,255,255,.35);color:#DCEAF3;font-family:var(--font-body);font-size:.8rem;font-weight:600;letter-spacing:.08em;padding:8px 16px;border-radius:999px;cursor:pointer;backdrop-filter:blur(6px)}

/* Service card images */
.service-card { overflow: hidden; }
.card-img { margin: -28px -24px 18px; aspect-ratio: 16 / 10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.service-card:hover .card-img img { transform: scale(1.06); }

/* Hero — premium fade into the page background at the bottom edge */
#hero::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(120px, 20vh, 260px);
  background: linear-gradient(180deg, rgba(6,31,44,0) 0%, #061F2C 100%);
  pointer-events: none;
  z-index: 3;
}

/* ===================================================
   NAVBAR — white background, dark text for legibility
   =================================================== */
#navbar {
  background: #ffffff;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled { border-bottom-color: rgba(0,24,72,0.08); box-shadow: 0 2px 16px rgba(0,24,72,0.08); }
.nav-links a { color: #0B1B33; }
.nav-links a:hover { color: var(--orange); background: rgba(245,130,29,0.10); }
.hamburger span { background: #0B1B33; }
.mobile-menu { background: rgba(255,255,255,0.98); border-top: 1px solid rgba(0,24,72,0.08); }
.mobile-menu a { color: #0B1B33; border-bottom: 1px solid rgba(0,24,72,0.08); }
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .mobile-lang { border-bottom: 1px solid rgba(0,24,72,0.08); }
#navbar .lang-btn { border-color: rgba(0,24,72,0.25); color: #0B1B33; }
#navbar .lang-btn:hover { border-color: var(--orange); color: var(--orange); }
#navbar .lang-btn.active { color: #fff; }

/* ===================================================
   FOOTER — white background so the logo badge blends in
   =================================================== */
#footer {
  background: #ffffff;
  border-top: none;
}
.footer-col .footer-logo { color: var(--orange); }
.footer-col p { color: #000; }
.footer-mail { color: var(--blue); }
#footer .tavrax-color { color: #0B2A40; }
.social-btn {
  background: rgba(245,130,29,0.10);
  border: 1px solid rgba(245,130,29,0.25);
  color: var(--orange);
}
.social-btn:hover { background: var(--orange); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(11,27,51,0.08); }
.footer-bottom p { color: #000; }

/* ===================================================
   PRAVNI DIO — poveznice u footeru, potpis izrađivača,
   traka o kolačićima, privola u obrascu, karta iza privole
   =================================================== */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  padding: 22px 24px 4px;
  border-top: 1px solid rgba(11,27,51,0.08);
}
.footer-legal a {
  font-size: 13px;
  color: #4a5b68;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--orange); }
.footer-oib {
  font-size: 11.5px !important;
  color: #6b7f8c !important;
  margin-top: 6px;
  line-height: 1.6;
}

/* Potpis izrađivača — tamna traka na samom dnu */
.studio-credit {
  background: #0B1220;
  padding: 18px 24px 20px;
  text-align: center;
}
.studio-credit-brand {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
}
.studio-credit-url {
  display: inline-block;
  margin-top: 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: #8FA3BF;
  text-decoration: none;
}
.studio-credit-url:hover { color: #cfe0f5; }

/* Traka o kolačićima */
.cookie-bar {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 2500;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #0E3A54 0%, #082A3D 60%, #062436 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 20px 50px rgba(2,14,24,0.45);
  animation: callPop 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar-text { flex: 1 1 320px; }
.cookie-bar-text strong { display: block; color: #fff; font-size: 14px; margin-bottom: 4px; letter-spacing: 0.5px; }
.cookie-bar-text p { color: rgba(255,255,255,0.62); font-size: 13px; line-height: 1.55; }
.cookie-bar-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-bar-actions .btn { font-size: 12.5px; padding: 10px 18px; }
.cookie-decline {
  background: none;
  border: 1px solid rgba(255,255,255,0.28);
  color: #cfe8f5;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 100px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.cookie-decline:hover { border-color: var(--orange); color: var(--orange); }
.cookie-more { font-size: 12.5px; color: #8FB6CC; text-decoration: underline; }

/* Privola u obrascu */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
}
.form-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.form-consent label {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,0.62);
  cursor: pointer;
}
.form-consent label a { color: var(--orange); text-decoration: underline; }

/* Karta iza privole */
.map-embed { position: relative; }
.map-consent {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 18px;
  background: linear-gradient(160deg, #0E3A54 0%, #062436 100%);
  border-radius: inherit;
}
.map-consent p { font-size: 12.5px; color: rgba(255,255,255,0.66); line-height: 1.55; max-width: 320px; }
.map-consent .btn { font-size: 12.5px; padding: 9px 18px; }
.map-embed.map-allowed .map-consent { display: none; }

@media (max-width: 560px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 16px; }
  .cookie-bar-actions { width: 100%; }
  .cookie-bar-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* ===================================================
   HERO VIDEO — NIKAD PLAY GUMB

   Kad iOS/Android odbije autoplay, preglednik sam nacrta veliki play gumb preko
   videa. Dva sloja obrane:
   1) gasimo sve webkit media kontrole (to je taj gumb na iOS-u),
   2) ako se video ipak nije pokrenuo, js/main.js doda .video-stalled i preko
      videa legne statična slika — korisnik vidi kadar, nikad gumb.
   =================================================== */
#entry-video::-webkit-media-controls,
#entry-video::-webkit-media-controls-panel,
#entry-video::-webkit-media-controls-play-button,
#entry-video::-webkit-media-controls-overlay-play-button,
#entry-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Video je čista pozadina — dodir po njemu ne smije pozvati media UI preglednika */
#entry-video { pointer-events: none; }

.hero-poster-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  display: none;
  pointer-events: none;
}
#hero-intro.video-stalled .hero-poster-fallback { display: block; }

/* Poziv u mobilnom meniju */
.mobile-menu .mobile-call {
  display: block;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--blue) !important;
  border-bottom: none !important;
}

/* ===================================================
   POZIV — prozorčić s brojem

   `tel:` na desktopu često ne radi ništa (nema registriranog handlera), pa je
   klik na "Nazovi" izgledao kao pokvaren gumb. Na desktopu presrećemo klik i
   pokazujemo broj + gumb za kopiranje; na mobitelu se ovo nikad ne otvara jer
   `tel:` ide ravno u pozivnik (iOS i Android).
   =================================================== */
.call-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.call-modal[hidden] { display: none; }
.call-modal-backdrop { position: absolute; inset: 0; background: rgba(4,20,32,0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.call-modal-card {
  position: relative;
  width: min(420px, 100%);
  background: linear-gradient(160deg, #0E3A54 0%, #082A3D 60%, #062436 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 34px 28px 26px;
  text-align: center;
  box-shadow: 0 28px 70px rgba(2,14,24,0.55);
  animation: callPop 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes callPop { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
.call-modal-x {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; color: rgba(255,255,255,0.55);
  font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s;
}
.call-modal-x:hover { color: var(--orange); }
.call-modal-eyebrow { display: block; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.call-modal-card h3 { font-family: var(--font-head); font-size: 26px; letter-spacing: 1.5px; color: #fff; margin-bottom: 14px; }
.call-modal-number {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 6vw, 38px);
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 20px;
  word-break: keep-all;
}
.call-modal-number:hover { color: var(--orange); }
.call-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.call-modal-actions .btn { font-size: 13px; padding: 11px 18px; }
.call-modal-hours { font-size: 12px; color: rgba(255,255,255,0.55); margin-bottom: 4px; }
.call-modal-hint { font-size: 11px; color: rgba(255,255,255,0.38); }
body.call-open { overflow: hidden; }

/* Poruka o grešci forme — vidljiva, ne samo boja gumba */
.form-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  display: none;
}
.form-note.is-visible { display: block; }
.form-note.is-error { background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.35); color: #ffd9d9; }
.form-note.is-ok { background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.35); color: #d6ffe6; }
.form-note a { color: var(--orange); font-weight: 700; }

/* ===================================================
   HERO ANIMACIJA — MOBILNI PARITET (iOS + Android, sve verzije)

   Problem: klip je 16:9. Na portretnom ekranu (npr. 390x844) object-fit:cover
   ga skalira na visinu pa reže ~74% širine — garažna vrata, glavni subjekt,
   ispadnu iz kadra i animacija nema smisla.

   Rješenje: na portretu video ide kao TRAKA u normalnom toku, pune širine i
   vlastitog omjera (16/9) => rez je nula, vidi se točno isti kadar kao na PC-u.
   Tekst heroja ide ISPOD, na punu navy pozadinu (čitljiviji nego preko videa),
   a scrim se gasi da animacija bude svjetlija i jasnija.

   Ključ je (orientation: portrait), ne širina uređaja: pokriva svaki mobitel i
   tablet u portretu, a landscape zadržava full-bleed (viewport ≈ omjer klipa).
   =================================================== */
@media (orientation: portrait) and (max-width: 1100px) {
  #hero {
    height: auto;
    min-height: 100vh;   /* stariji iOS/Android bez svh podrške */
    min-height: 100svh;  /* iOS 15.4+ — bez skoka zbog Safari trake */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 70px 0 32px; /* 70px = fiksni navbar, traka počinje ispod njega */
  }

  /* Traka s animacijom — prvi element u toku
     (relative, a ne static, da rezervna slika legne točno preko trake) */
  #hero-intro {
    position: relative;
    order: -1;
    flex: 0 0 auto;
    display: block;
    width: 100%;
  }

  /* Rezervna slika prati isti omjer kao traka — bez reza */
  .hero-poster-fallback {
    object-fit: contain;
    background: #061F2C;
  }

  #entry-video {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;  /* drži visinu trake i prije nego video učita */
    object-fit: contain;   /* cijeli kadar, bez reza */
    background: #061F2C;
  }

  /* Bez zatamnjenja — ništa ne stoji preko animacije */
  .hero-video-scrim,
  .entry-overlay-dark { display: none; }

  /* Tekst se centrira u preostalom prostoru ispod trake */
  .hero-content {
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 26px;
  }

  #hero-canvas { opacity: 0.5; }
  #hero::after { height: clamp(70px, 10vh, 130px); }
}

/* Niži mobiteli — skrati tipografiju da traka + tekst stanu na jedan ekran */
@media (orientation: portrait) and (max-width: 560px) {
  #hero { padding-bottom: 24px; }
  .hero-eyebrow { margin-bottom: 14px; }
  #hero-title { font-size: clamp(34px, 9.5vw, 52px); margin-bottom: 16px; }
  #hero-sub { font-size: 14px; line-height: 1.6; margin-bottom: 22px; }
  .hero-btns { margin-bottom: 8px; }
}

/* Ako korisnik traži manje animacije: video se ne pušta (vidi js/main.js),
   poster ostaje na ekranu — hero nikad nije crn. */
@media (prefers-reduced-motion: reduce) {
  #entry-video { animation: none !important; }
}
