/* styles.css */

/* ===== TIPOGRAFIJA ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@400;500;600;700&display=swap');

:root{
  --brand:#f6b100;
  --brand2:#ffcf4a;
  --brand-glow: rgba(246, 177, 0, 0.4);

  --bg:#0b0f14;
  --bg2:#0f1620;
  --text:#eaf0f6;
  --muted:#b8c5d4; /* Poboljšan kontrast */

  --success: #10b981;
  --error: #ef4444;

  --border: rgba(255,255,255,.08);
  --shadow: 0 14px 40px rgba(0,0,0,.35);

  --container: 1160px;
  --radius: 14px;

  /* Font families - Inter + Oswald */
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Oswald', sans-serif;
}

*{ box-sizing:border-box; }
html{ 
  height:100%; 
  scroll-behavior: smooth;
}
body{
  min-height: 100%;
  margin:0;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -20%, rgba(246,177,0,.12), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(255,207,74,.10), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

/* ===== ACCESSIBILITY: Skip Link ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: var(--brand);
  color: #171717;
  font-weight: 700;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 0;
}

/* Focus visible za accessibility */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ===== 2. MICRO-INTERACTIONS: Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays za child elemente */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.25s; }

.container{ width:min(var(--container), calc(100% - 40px)); margin:0 auto; }

/* ===== Topbar ===== */
.topbar{
  background: #FFCB08;
  border-bottom: 1px solid var(--border);
  transition: transform .25s ease, opacity .25s ease, height .25s ease;
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:5px 0;
  flex-wrap:wrap;
}
.topbar__left{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}
.topbar__item{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 0;
  border:none;
  border-radius:0;
  color:#1a1a1a;
  background: transparent;
  font-size:.92rem;
  white-space:nowrap;
}
.topbar__item:hover{ color:#000; }
.topbar__icon{
  width:16px;
  height:16px;
  flex-shrink:0;
  fill:currentColor;
}

.topbar__right{
  display:flex;
  gap:10px;
  align-items:center;
}
.social{
  width:34px; height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.15);
  background: rgba(255,255,255,.45);
  color: var(--brand);
  transition: color .2s ease, transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.social:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.9);
}
.social--fb:hover{ color: #1877F2; }
.social--ig:hover{
  color: #fff;
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.social--x:hover{ color: #000; }
.social--yt:hover{ color: #FF0000; }
.social svg{ width:18px; height:18px; fill: currentColor; }

/* Hide topbar on scroll */
body.is-scrolled .topbar{
  transform: translateY(-110%);
  opacity: 0;
  height: 0;
  border-bottom: none;
  overflow: hidden;
}

/* ===== Header ===== */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11,15,20,.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

/* 1 red: brand levo, nav centar, right desno */
.header__inner{
  display:flex;
  align-items:center;
  gap: 12px;
  padding: 6px 0;
}

.brand{ order:1; display:flex; align-items:center; gap:10px; min-width:0; flex-shrink:0; }
.brand__logo{ width: 190px; height: 62px; object-fit: contain; }
.brand__text{ display:flex; flex-direction:column; line-height:1.1; min-width:0; }
.brand__name{
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 1.2rem;
  text-transform: uppercase;
}
.brand__tagline{ color: var(--muted); font-size:.86rem; }

.header__right{
  order:3;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-shrink:0;
}

/* Language */
.lang{
  display:flex;
  align-items:center;
  gap:4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.03);
}
.lang__btn{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--muted);
  font-weight:800;
  font-size:.82rem;
  transition: .15s ease;
}
.lang__btn img{ width:18px; height:18px; border-radius:4px; }
.lang__btn.is-active{
  color: var(--text);
  background: rgba(255,255,255,.05);
}

/* Buttons - sa ripple efektom */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: var(--text);
  white-space:nowrap;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.25s ease,
              background 0.25s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--ripple-x, 50%) var(--ripple-y, 50%), 
              rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease-out, opacity 0.4s ease;
}

.btn:active::before {
  transform: scale(2.5);
  opacity: 1;
  transition: 0s;
}

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

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

.btn--offer{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: rgba(0,0,0,.25);
  color: #000;
  font-weight: 800;
  font-size:.82rem;
  padding: 8px 14px;
  text-transform: uppercase;
}

.btn--offer:hover {
  color: #fff;
  box-shadow: 0 8px 30px var(--brand-glow);
}

.nav .btn--offer,
.nav__offer{
  flex-shrink: 0;
  margin-right: 4px;
  padding: 6px 12px;
  font-size: .78rem;
  border-radius: 8px;
  color: #000;
}

.nav .btn--offer:hover{
  color: #fff;
}

.nav .btn--offer.is-active,
.nav .btn--offer[aria-current="page"]{
  color: #000;
}

.nav .btn--offer.is-active::after,
.nav .btn--offer[aria-current="page"]::after{
  display: none;
}

.cta-short{ display:none; }

/* Nav centar */
.nav{
  order:2;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:2px;
  flex: 1 1 auto;
}
.nav a{
  color: var(--muted);
  font-weight: 700;
  font-size:.82rem;
  padding:6px 8px;
  border-radius:8px;
  transition: color 0.2s ease, background 0.2s ease;
  position: relative;
  text-transform: uppercase;
  white-space:nowrap;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,.04);
}

/* Aktivna stranica */
.nav a.is-active,
.nav a[aria-current="page"] {
  color: var(--brand);
}

.nav a.is-active::after,
.nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  animation: navUnderline 0.3s ease-out;
}

@keyframes navUnderline {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Hamburger sa animacijom */
.hamburger{
  display:none; /* desktop hidden */
  width:48px; height:48px;
  border-radius: 12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  padding: 0;
  position: relative;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255,255,255,.06);
}

.hamburger span{
  display:block; 
  width:20px; 
  height:2px;
  background: var(--text);
  margin: 5px auto;
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.2s ease;
  transform-origin: center;
}

/* Hamburger -> X animacija */
.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu panel - sa smooth tranzicijom */
.mobile{
  border-top: 1px solid var(--border);
  padding: 16px 20px 20px;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(10px);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              padding 0.3s ease;
}

.mobile:not([hidden]) {
  max-height: 500px;
  opacity: 1;
}

.mobile[hidden] {
  display: block !important;
  padding-top: 0;
  padding-bottom: 0;
}

.mobile a{
  display:block;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  text-transform: uppercase;
}
.mobile a:hover{ 
  background: rgba(255,255,255,.06); 
  color: var(--text); 
  transform: translateX(4px);
}

.mobile a.is-active {
  color: var(--brand);
  background: rgba(246, 177, 0, 0.1);
}

.mobile__offer{
  margin-top: 0;
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgba(246,177,0,.18), rgba(255,207,74,.10));
  border: 1px solid rgba(246,177,0,.28);
  color: #000;
  text-align: center;
  font-weight: 800;
}

.mobile__offer:hover{
  color: #fff;
}

.mobile__offer.is-active,
.mobile__offer[aria-current="page"]{
  color: #000;
}

.mobile__lang{
  margin-top: 16px;
  display:flex;
  gap:10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--border);
}
.mobile__langBtn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile__langBtn:hover {
  background: rgba(255,255,255,.06);
}
.mobile__langBtn img{ width:18px; height:18px; border-radius:4px; }
.mobile__langBtn.is-active{ 
  color: var(--text); 
  background: rgba(255,255,255,.06);
}

/* ===== 3. MOBILE FLOATING CTA ===== */
.mobile-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #171717;
  font-weight: 800;
  box-shadow: 0 8px 30px var(--brand-glow),
              0 4px 15px rgba(0,0,0,0.3);
  z-index: 90;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              box-shadow 0.2s ease;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.mobile-cta:active {
  transform: translateY(0) scale(0.95);
}

.mobile-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .mobile-cta {
    display: flex;
  }
}

/* ===== Footer ===== */
.footer{ margin-top: 26px; border-top: 1px solid var(--border); background: var(--bg); color: var(--text); }
.footer__grid{
  padding: 26px 0;
  display:grid;
  grid-template-columns: 1.25fr .75fr 1fr;
  gap: 22px;
}
.footer__title{
  margin: 0 0 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 400;
  font-family: var(--font-display);
  font-size: 1.1rem;
}
.footer__text{ margin: 0 0 10px; color: var(--muted); line-height:1.6; }
.footer__list{ margin:0; padding-left: 18px; color: var(--muted); }
.footer__list a{ color: var(--muted); }
.footer__list a:hover{ color: var(--text); }

.footer__block{ margin-top: 12px; }
.footer__label{ color: var(--text); font-weight:900; margin-bottom: 4px; }
.footer__value{ color: var(--muted); margin: 4px 0; }
.footer__value a{ color: var(--muted); }
.footer__value a:hover{ color: var(--text); }

.footer__bottom{
  border-top: 1px solid var(--border);
  padding: 14px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  flex-wrap:wrap;
  color: var(--muted);
  font-size:.92rem;
}
.footer__legal a{ color: var(--muted); font-weight:800; }
.footer__legal a:hover{ color: var(--text); }
.sep{ margin: 0 8px; opacity:.6; }

/* Placeholder */
.placeholder{
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 18px;
}
.placeholder h1{
  margin:0 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing:.3px;
}
.placeholder p{ margin:0; color: var(--muted); }

/* =========================
   RESPONSIVE / MOBILE UX
   ========================= */

/* Mobile: nav sakrij, hamburger prikaži */
@media (max-width: 980px){
  .nav{ display:none; }
  .hamburger{ display:inline-block; }

  .header__inner{ padding: 6px 0; }
  .brand__logo{ width:170px; height:60px; }

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

  /* sakrij SR/EN u gornjem headeru */
  .header__right .lang{ display:none !important; }

  /* burger ostaje vidljiv */
  .hamburger{ display:inline-block !important; }

  /* malo zategni spacing kad ostane samo burger */
  .header__right{ gap: 8px; }
}

/* Topbar: mobilni raspored (telefon pa email + socijalne ispod) */
@media (max-width: 640px){
  .topbar__inner{ gap:8px; padding:8px 0; }

  .topbar__left{
    width:100%;
    display:grid;
    grid-template-columns: 1fr;
    gap:8px;
  }

  /* Osiguraj redosled: telefon (1), email (2); radno vreme skriveno na mobilnom */
  .topbar__left .topbar__item:nth-child(1){ order: 1; }
  .topbar__left .topbar__item:nth-child(2){ order: 2; }
  .topbar__left .topbar__item:nth-child(3){ display:none; }

  .topbar__item{
    font-size:.85rem;
    justify-content:flex-start;
    overflow:hidden;
    text-overflow: ellipsis;
  }

  .topbar__right{
    width:100%;
    justify-content:center;
    gap:8px;
    margin-top: 6px;
  }
  .social{ width:32px; height:32px; border-radius:10px; }
  .social svg{ width:17px; height:17px; }

  /* U headeru skrati “šum”: sakrij tagline */
  .brand__tagline{ display:none; }

  /* Jezik: samo zastavice (bez SR/EN) */
  .lang__btn span{ display:none; }
  .lang__btn{ padding: 6px 8px; }
}

/* Extra small: skraćivanje CTA teksta */
@media (max-width: 420px){
  .cta-long{ display:none; }
  .cta-short{ display:inline; }

  .btn{ padding: 10px 10px; font-size:.92rem; }
  .btn--offer{ padding: 10px 9px; }
}
/* =========================
   HERO (ispod menija)
   ========================= */
.hero{
  position: relative;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 90vh;
  overflow: hidden;

  background:
    var(--hero-img) center/cover no-repeat,
    var(--bg2);
  background-attachment: fixed;
  background-size: cover;
}

.hero::after{
  /* suptilan “brand” glow */
  content: none;
}

.hero__inner{
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 28px;
}

.hero__block{
  width: 50%;
  overflow: hidden;
  border-radius: 4px;
}

.hero__title{
  margin: 0;
  padding: 0 0 16px 24px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  line-height: 1.05;
  font-size: 3rem;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,.7), 0 1px 4px rgba(0,0,0,.5);
}

.hero__stripe{
  width: 100%;
  height: 5px;
  background: #FFCB08;
}

.hero__content{
  background: rgba(11,15,20,.55);
  backdrop-filter: blur(8px);
  padding: 22px 24px;
}

.hero__subtitle{
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 1.05rem;
  line-height: 1.7;
}

.hero__breadcrumb{
  background: rgba(0,0,0,.7);
  padding: 12px 24px;
  font-size: .88rem;
  color: rgba(255,255,255,.7);
}
.hero__breadcrumb a{
  color: rgba(255,255,255,.7);
  transition: color .2s;
}
.hero__breadcrumb a:hover{ color: #fff; }
.hero__breadcrumb strong{ color: #fff; font-weight: 700; }
.hero__sep{ margin: 0 8px; color: rgba(255,255,255,.4); }

.hero__actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* CTA dugme za hero (odvojeno od btn--offer) */
.btn--primary{
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border-color: rgba(0,0,0,.25);
  color:#171717;
}

/* Hero — tablet i mobil */
@media (max-width: 980px){
  .hero{
    height: auto;
    min-height: 100svh;
    min-height: 100dvh;
    overflow: visible;
    background-attachment: scroll;
    justify-content: flex-end;
    padding: 88px 0 24px;
  }

  .hero__inner{
    width: 100%;
    padding: 0 0 20px;
  }

  .hero__block{
    width: 100%;
    max-width: 100%;
    overflow: visible;
    border-radius: 0;
  }

  .hero__title{
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
    padding: 0 16px 12px;
    line-height: 1.15;
  }

  .hero__content{
    padding: 18px 16px;
  }

  .hero__subtitle{
    font-size: .95rem;
    line-height: 1.6;
  }

  .hero__breadcrumb{
    padding: 10px 16px;
    font-size: .85rem;
  }
}

/* Mobile fine-tuning */
@media (max-width: 640px){
  .hero{
    min-height: 85svh;
    min-height: 85dvh;
    padding: 76px 0 16px;
  }

  .hero__inner{ padding: 0 0 16px; }

  .hero__title{
    font-size: 1.5rem;
    letter-spacing: .4px;
  }

  .hero__content{ padding: 16px; }

  .hero__subtitle{
    font-size: .9rem;
    line-height: 1.55;
  }

  .hero__breadcrumb{
    padding: 10px 16px;
    font-size: .82rem;
    line-height: 1.4;
  }
}

/* Main dobija belu pozadinu čim sadrži hero */
main:has(.hero) {
  background: #fff;
}

/* Deo ispod hero sekcije - bela pozadina */
.hero ~ * {
  background: #fff;
  color: #171717;
}
.hero ~ section .why__lead,
.hero ~ section .why-card__text,
.hero ~ section .about__lead,
.hero ~ section .about__mission,
.hero ~ section .about__text,
.hero ~ section .trust__quote,
.hero ~ section .trust__label,
.hero ~ section .trust__author {
  color: #4a5568;
}
.hero ~ section .trust__author strong {
  color: #171717;
}
.hero ~ section .why__title,
.hero ~ section .why-card__title,
.hero ~ section .about__title,
.hero ~ section .trust__value {
  color: #171717;
}
.hero ~ section .why-card {
  border-color: rgba(0,0,0,.12);
  background: #fff;
}
.hero ~ section .about__media {
  border-color: rgba(0,0,0,.12);
}
.hero ~ section .about__mission {
  border-top-color: rgba(0,0,0,.10);
}
.hero ~ section .about__timeline {
  border-left-color: rgba(0,0,0,.12);
}

/* Tiles imaju tamnu pozadinu — tekst ostaje beo */
.hero ~ section.tiles .tile__title,
.hero ~ section.tiles .tile__subtitle,
.hero ~ section.tiles .tile__btn {
  color: #fff;
}

/* btn--outline na beloj pozadini */
.hero ~ section .btn--outline {
  background: transparent;
  border: 2px solid #171717;
  color: #171717;
}
.hero ~ section .btn--outline:hover {
  background: #171717;
  color: #fff;
}
.hero ~ section .about__year {
  color: var(--brand);
  font-weight: 900;
}
.hero ~ section.why {
  background: #fff;
}
.hero ~ section.trust {
  background: #fff;
}

/* Main dobija belu pozadinu čim sadrži page-hero, tako da se iza reveal sekcija vidi belo */
main:has(.page-hero) {
  background: #fff;
}

/* Deo ispod page-hero sekcije - bela pozadina (substranice) */
.page-hero ~ * {
  background: #fff;
  color: #171717;
}
.page-hero ~ section .section__title {
  color: #171717;
}
.page-hero ~ section .section__lead,
.page-hero ~ section .card__text,
.page-hero ~ section .process__text,
.page-hero ~ section .split__content p,
.page-hero ~ section .list-checks li {
  color: #4a5568;
}
.page-hero ~ section .list-checks li::before {
  color: var(--brand);
}
.page-hero ~ section .pill-list {
  margin-top: 16px;
}
.page-hero ~ section .pill-list span {
  border-color: rgba(0,0,0,.12);
  background: #f7f8fa;
  color: #171717;
}
.page-hero ~ section .card {
  border-color: rgba(0,0,0,.12);
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
}
.page-hero ~ section .card__title,
.page-hero ~ section .process__title {
  color: #171717;
}
.page-hero ~ section .process__step {
  border-color: rgba(0,0,0,.08);
}
.page-hero ~ section .btn--outline {
  background: transparent;
  border: 2px solid #171717;
  color: #171717;
}
.page-hero ~ section .btn--outline:hover {
  background: #171717;
  color: #fff;
}
.page-hero ~ section.section--muted {
  background: #f7f8fa;
  border-top-color: rgba(0,0,0,.08);
  border-bottom-color: rgba(0,0,0,.08);
}
.page-hero ~ section.section--accent {
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}
.page-hero ~ section.section--accent .section__title,
.page-hero ~ section.section--accent .section__lead {
  color: #171717;
}
.page-hero ~ .mobile-cta {
  background: var(--brand);
  color: #171717;
}
.page-hero ~ .footer {
  background: var(--bg2);
  color: var(--text);
}
.page-hero ~ .footer .footer__title,
.page-hero ~ .footer .footer__text,
.page-hero ~ .footer .footer__value,
.page-hero ~ .footer .footer__label,
.page-hero ~ .footer .footer__list a,
.page-hero ~ .footer .footer__copy,
.page-hero ~ .footer .footer__legal a {
  color: inherit;
}

/* =========================
   SERVICES GRID (4 kvadrata)
   ========================= */
.services{
  padding: 22px 0 10px;
}

.services__grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Kartica je kvadrat */
.service-card{
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015));
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  transition: .2s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.service-card__inner{
  display:flex;
  flex-direction:column;
  height: 100%;
}

/* Kvadratni “okvir” preko aspect-ratio */
.service-card__media{
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Overlay da tekst dole bude čitljiv kad se slika vidi */
.service-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
}

.service-card__body{
  padding: 14px 14px 16px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.service-card__title{
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 1.05rem;
}

.service-card__text{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;

  /* da kartice budu jednake visine vizuelno */
  display: -webkit-box;
  -webkit-line-clamp: 6;       /* skraćuje tekst */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.service-card__more{
  margin-top: auto;
  color: var(--brand2);
  font-weight: 900;
  display:inline-flex;
  align-items:center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 1100px){
  .services__grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px){
  .services{ padding: 16px 0 6px; }
  .services__grid{ grid-template-columns: 1fr; gap: 14px; }
  .service-card__text{ -webkit-line-clamp: 7; }
}
/* =========================
   TILES (2x2 slike sa tekstom)
   ========================= */
.tiles{
  padding: 26px 0 10px;
  overflow: hidden;
}

.tiles__grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  width: 100%;
  max-width: 100%;
}

.tile{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 280px;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);

  /* Pozadina slika */
  background:
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.55)),
    var(--tile-img) center/cover no-repeat;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.tile::before{
  /* “Glass” overlay da tekst bude čitljiv */
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 380px at 50% 30%, rgba(255,255,255,.10), transparent 60%);
  pointer-events:none;
}

.tile::after{
  /* Unutrašnji narandžasti okvir (kao na tvom primeru) */
  content:"";
  position:absolute;
  inset: 14px;
  border-radius: 12px;
  border: 1px solid rgba(246, 177, 0, .70);
  pointer-events:none;
}

.tile:hover{
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4),
              0 0 0 1px rgba(246, 177, 0, 0.3);
  border-color: rgba(246, 177, 0, 0.4);
  /* malo "življa" slika na hover */
  background:
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.50)),
    var(--tile-img) center/cover no-repeat;
}

.tile__content{
  position:absolute;
  inset: 0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 22px;
  z-index: 1;
}

.tile__title{
  margin: 0 0 8px;
  font-weight: 900;
  letter-spacing: .2px;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  text-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.tile__subtitle{
  margin: 0 0 14px;
  max-width: 460px;
  color: rgba(234,240,246,.92);
  font-weight: 600;
  line-height: 1.45;
  text-shadow: 0 10px 22px rgba(0,0,0,.45);
}

.tile__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid rgba(0,0,0,.25);
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #171717;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tile__btn::after {
  content: '→';
  transition: transform 0.3s ease;
}

.tile:hover .tile__btn {
  transform: scale(1.05);
  box-shadow: 0 4px 15px var(--brand-glow);
}

.tile:hover .tile__btn::after {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 900px){
  .tiles__grid{ grid-template-columns: 1fr; }
  .tile{ 
    min-height: 240px;
    width: 100%;
    max-width: 100%;
  }
}
/* Wide tile: zauzima 2 kolone i ima visinu kao standardna kartica */
.tile--wide{
  grid-column: 1 / -1;
  aspect-ratio: 32 / 9;
}
.tile--logo{
  background:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,.65)),
    var(--tile-img) center/contain no-repeat #fff;
}
.tile--logo:hover{
  background:
    linear-gradient(180deg, rgba(0,0,0,.30), rgba(0,0,0,.50)),
    var(--tile-img) center/contain no-repeat #fff;
}

/* Na mobilnom (1 kolona) wide tile se ponaša normalno */
@media (max-width: 900px){
  .tile--wide{
    grid-column: auto;
    aspect-ratio: 16 / 9;
  }
}

/* =========================
   WHY + ABOUT (SCOPED)
   Ne redefiniše :root, body, .btn, .container
   ========================= */
.why{
  padding: 26px 0 10px;
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__head{ max-width: 720px; }
.why__title{
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.why__lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.why__grid{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.why-card{
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.20);
  transition: .2s ease;
}
.why-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow); }
.why-card__title{
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 1.05rem;
}
.why-card__text{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
}

.why__actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* dodatni modifier, ne dira postojeći .btn */
.btn--outline{
  background: rgba(255,255,255,.03);
  border-color: var(--border);
  color: var(--text);
}
.btn--outline:hover{
  background: rgba(255,255,255,.06);
}

/* ABOUT */
.about{ padding: 40px 0 30px; }

.about__grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.about__images{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.about__media{
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(0,0,0,.20);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.about__media img{
  width:100%;
  height:100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.about__title{
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.about__lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.about__timeline{
  margin-top: 14px;
  border-left: 1px solid var(--border);
  padding-left: 16px;
  display:grid;
  gap: 12px;
}
.about__item{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
}
.about__year{ font-weight: 900; color: var(--text); }
.about__text{ color: var(--muted); }

.about__mission{
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: .98rem;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.about__actions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* responsive */
@media (max-width: 1100px){
  .why__grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px){
  .about__grid{ grid-template-columns: 1fr; }
  .about__images{ position: static; }
}
@media (max-width: 640px){
  .why__grid{ grid-template-columns: 1fr; gap: 14px; }
}

/* =========================
   GENERIC PAGE SECTIONS
   ========================= */
.page-hero{
  position: relative;
  padding: 64px 0;
  background:
    linear-gradient(120deg, rgba(0,0,0,.65), rgba(0,0,0,.35)),
    var(--page-hero-img) center/cover no-repeat,
    var(--bg2);
}
.page-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(900px 450px at 15% 10%, rgba(246,177,0,.18), transparent 60%);
  pointer-events:none;
}
.page-hero__inner{
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.page-hero__eyebrow{
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
  color: var(--brand2);
}
.page-hero__title{
  margin: 0 0 10px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: clamp(2rem, 5vw, 3.2rem);
}
.page-hero__lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}
.page-hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-hero--compact{
  padding: 52px 0;
}

.section{
  padding: 32px 0;
}
.section--muted{
  background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section--accent{
  background: linear-gradient(120deg, rgba(246,177,0,.08), rgba(255,207,74,.04));
  border-top: 1px solid rgba(246,177,0,.2);
  border-bottom: 1px solid rgba(246,177,0,.2);
}
.section__head{
  max-width: 760px;
  margin-bottom: 18px;
}
.section__title{
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.section__lead{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Section eyebrow */
.section__eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .4px;
  font-weight: 700;
  color: var(--brand);
  font-size: .95rem;
}
.page-hero ~ section .section__eyebrow {
  color: var(--brand);
}

/* Content blocks (servis page) */
.servis-intro {
  max-width: 720px;
  margin-bottom: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.servis-intro .section__eyebrow {
  letter-spacing: .12em;
  font-size: .85rem;
  margin-bottom: 12px;
}
.servis-intro .section__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin-bottom: 16px;
  line-height: 1.2;
}
.servis-intro .section__lead {
  font-size: 1.08rem;
  line-height: 1.75;
}
.servis-intro--full {
  max-width: 100%;
}

.content-block {
  max-width: 820px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(0,0,0,.08);
}
.content-block:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.content-block__title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: .2px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.content-block__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #171717;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(246,177,0,.3);
}
.content-block__text {
  margin: 0 0 14px;
  line-height: 1.75;
  font-size: 1.05rem;
}
.page-hero ~ section .content-block__text {
  color: #4a5568;
}
.page-hero ~ section .content-block__title {
  color: #171717;
}
.page-hero ~ section .content-block {
  border-top-color: rgba(0,0,0,.08);
}
.page-hero ~ section .list-checks strong {
  color: #171717;
}

/* Split content blocks sa slikama */
.content-block--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  max-width: 100%;
  margin-top: 56px;
  padding-top: 0;
  border-top: none;
}
.content-block--split:first-of-type {
  margin-top: 0;
}
.content-block__body {
  padding: 24px 0;
}
.content-block__media {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.06);
}
.content-block__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}
/* Logo prikazan u celosti, bez sečenja */
.content-block__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #f7f8fa;
}
.content-block__media--logo img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  min-height: unset;
  object-fit: contain;
}
.content-block--reverse .content-block__body { order: 2; }
.content-block--reverse .content-block__media { order: 1; }

/* Contact info block */
.content-block--contact {
  background: #f7f8fa;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 32px;
  margin-top: 40px;
}
.contact-info__person {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}
.contact-info__person strong {
  font-size: 1.15rem;
  color: #171717;
}
.contact-info__person a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
.contact-info__person a:hover {
  text-decoration: underline;
}
.contact-info__note {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}
.contact-info__note a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}
.contact-info__note a:hover {
  text-decoration: underline;
}
.contact-info--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.contact-info--grid .contact-info__person {
  margin-bottom: 0;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.card__title{
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 1.05rem;
}
.card__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}
.split__media{
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow:hidden;
  background: rgba(0,0,0,.2);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}
.split__media img{
  width:100%;
  height:100%;
  object-fit: cover;
}

.list-checks{
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display:grid;
  gap: 10px;
}
.list-checks li{
  padding-left: 26px;
  position: relative;
  color: var(--muted);
}
.list-checks li::before{
  content: \"✓\";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand2);
  font-weight: 900;
}

.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 18px;
  text-align: center;
}
.stat-card__value{
  font-size: 1.8rem;
  font-weight: 900;
}
.stat-card__label{
  color: var(--muted);
  font-size: .95rem;
}

.timeline{
  margin-top: 18px;
  display:grid;
  gap: 14px;
}
.timeline__item{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.timeline__year{
  font-weight: 900;
  color: var(--text);
}
.timeline__text{
  margin: 0;
  color: var(--muted);
}

.process{
  display:grid;
  gap: 14px;
}
.process__step{
  display:grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.process__number{
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(246,177,0,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color: var(--brand2);
}
.process__title{
  margin: 0 0 6px;
  font-weight: 800;
}
.process__text{
  margin: 0;
  color: var(--muted);
}

.pill-list{
  display:flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill-list span{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 700;
}

.cta-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(246,177,0,.3);
  background: rgba(0,0,0,.2);
}

.contact{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
}
.contact__cards{
  display:grid;
  gap: 12px;
  margin-top: 16px;
}
.contact__card{
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 16px;
  background: #f7f8fa;
  padding: 14px 16px;
}
.contact__card h3{
  margin: 0 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #171717;
}
.contact__card p{
  margin: 4px 0;
  color: #3a3f47;
}
.contact__card a{
  color: #171717;
  font-weight: 600;
}
.contact__card a:hover{
  color: #b8860b;
}

/* ===== 5. FORM UX - Floating Labels & Validation ===== */
.form{
  display:grid;
  gap: 20px;
}

.form-field{
  position: relative;
}

.form-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
  padding: 0 4px;
}

/* Textarea label pozicija */
.form-field:has(textarea) label {
  top: 18px;
  transform: translateY(0);
}

.form-field input,
.form-field textarea{
  width: 100%;
  padding: 18px 16px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

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

/* Floating label - kada je fokusiran ili ima sadržaj */
.form-field input:focus + label,
.form-field input:not(:placeholder-shown) + label,
.form-field textarea:focus + label,
.form-field textarea:not(:placeholder-shown) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--brand);
  background: var(--bg);
}

.form-field input:focus,
.form-field textarea:focus{
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(246,177,0,.15);
  background: rgba(0,0,0,.35);
}

/* Validation states */
.form-field.is-valid input,
.form-field.is-valid textarea {
  border-color: var(--success);
}

.form-field.is-valid input:focus,
.form-field.is-valid textarea:focus {
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.form-field.is-valid label {
  color: var(--success);
}

.form-field.has-error input,
.form-field.has-error textarea {
  border-color: var(--error);
}

.form-field.has-error input:focus,
.form-field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-field.has-error label {
  color: var(--error);
}

/* Error message */
.form-field__error {
  display: none;
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 6px;
  padding-left: 4px;
}

.form-field.has-error .form-field__error {
  display: block;
  animation: shakeError 0.4s ease;
}

@keyframes shakeError {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-4px); }
  40%, 80% { transform: translateX(4px); }
}

/* Success checkmark */
.form-field__check {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0;
  color: var(--success);
  transition: opacity 0.3s ease;
}

.form-field.is-valid .form-field__check {
  opacity: 1;
}

/* Submit button loading state */
.btn--submit {
  position: relative;
  min-width: 160px;
}

.btn--submit.is-loading {
  color: transparent;
  pointer-events: none;
}

.btn--submit.is-loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(23, 23, 23, 0.3);
  border-top-color: #171717;
  border-radius: 50%;
  animation: btnSpinner 0.8s linear infinite;
}

@keyframes btnSpinner {
  to { transform: rotate(360deg); }
}

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
}

.form-success.is-visible {
  display: block;
  animation: fadeInUp 0.5s ease;
}

.form-success__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 16px;
  color: var(--success);
}

.form-success__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 8px;
  letter-spacing: 1px;
}

.form-success__text {
  color: var(--muted);
  margin: 0;
}

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

@media (max-width: 980px){
  .cards{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: repeat(2, 1fr); }
  .split{ grid-template-columns: 1fr; }
  .cta-band{ flex-direction: column; align-items: flex-start; }
  .contact{ grid-template-columns: 1fr; }
}
@media (max-width: 768px){
  .content-block--split{
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 40px;
  }
  .content-block--reverse .content-block__body,
  .content-block--reverse .content-block__media{ order: unset; }
  .content-block__media img{ min-height: 220px; }
  .content-block__media--logo img{ min-height: unset; max-height: 180px; }
}
@media (max-width: 640px){
  .page-hero{ padding: 48px 0; }
  .page-hero--compact{ padding: 40px 0; }
  .page-hero__lead{ font-size: 1rem; }
  .stats{ grid-template-columns: 1fr; }
  .timeline__item{ grid-template-columns: 1fr; }
  .process__step{ grid-template-columns: 1fr; }
  .servis-intro{ margin-bottom: 32px; padding-bottom: 28px; }
  .content-block--split{ margin-top: 36px; }
  .content-block__media img{ min-height: 200px; }
  .content-block__media--logo img{ min-height: unset; max-height: 160px; }
}

/* =========================
   OFFER LISTING + PRODUCT PAGE
   ========================= */
.breadcrumbs{
  display:flex;
  gap: 8px;
  align-items:center;
  color: rgba(234,240,246,.8);
  font-weight: 600;
  margin-bottom: 10px;
}
.breadcrumbs a{ color: var(--text); }
.breadcrumbs span{ opacity: .7; }

.offer-controls{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap: 18px;
}
.offer-controls__actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}
.select-field{
  display:grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 600;
}
.select-field select{
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 10px 12px;
  font-family: inherit;
}

.offer-list{
  display:grid;
  gap: 18px;
}
.offer-card{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
}
.offer-card__image{
  width: 100%;
  height: 100%;
  border-radius: 14px;
  object-fit: cover;
}
.offer-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
}
.offer-card__code{
  margin: 0 0 6px;
  font-weight: 900;
  font-size: 1.2rem;
}
.offer-card__title{
  margin: 0 0 6px;
  font-weight: 800;
}
.offer-card__desc{
  margin: 0;
  color: var(--muted);
}
.offer-card__price{
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--brand2);
  white-space: nowrap;
}

.vat-note {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.offer-card__meta{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  border-top: 1px solid var(--border);
  margin-top: 16px;
  padding-top: 14px;
}
.offer-card__meta span{
  display:block;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 4px;
}
.offer-card__meta strong{
  font-weight: 800;
}
.offer-card__actions{
  margin-top: 16px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items:start;
}
.product__media img{
  width:100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.product__gallery{
  margin-top: 12px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.product__gallery img{
  width:100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  object-fit: cover;
}
.product__header{
  display:flex;
  justify-content:space-between;
  gap: 16px;
}
.product__code{
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 700;
}
.product__title{
  margin: 0 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.product__desc{
  margin: 0;
  color: var(--muted);
}
.product__price{
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand2);
  white-space: nowrap;
}
.product__highlights{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product__highlights span{
  display:block;
  color: var(--muted);
  font-size: .85rem;
}
.product__highlights strong{
  font-weight: 800;
}
.product__cta{
  margin-top: 18px;
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}
.product__specs{
  margin-top: 18px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.product__specs h3{
  margin: 0 0 8px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.product__specs ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.related-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.related-card{
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  overflow:hidden;
}
.related-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.related-card__body{
  padding: 14px;
}
.related-card__body h3{
  margin: 0 0 6px;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.related-card__body p{
  margin: 0 0 10px;
  color: var(--muted);
}
.related-card__body div{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.related-card__body a{
  color: var(--brand2);
  font-weight: 700;
}

@media (max-width: 980px){
  .offer-card{ grid-template-columns: 1fr; }
  .offer-card__header{ flex-direction: column; align-items:flex-start; }
  .offer-card__meta{ grid-template-columns: repeat(2, 1fr); }
  .offer-controls{ flex-direction: column; align-items:flex-start; }
  .product{ grid-template-columns: 1fr; }
  .product__specs{ grid-template-columns: 1fr; }
  .related-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 640px){
  .offer-card__meta{ grid-template-columns: 1fr; }
  .product__header{ flex-direction: column; align-items:flex-start; }
  .product__highlights{ grid-template-columns: 1fr; }
  .product__gallery{ grid-template-columns: 1fr; }
}

/* ===== 4. TRUST SECTION - Statistike i partneri ===== */
.trust {
  padding: 48px 0;
  background: linear-gradient(180deg, rgba(246, 177, 0, 0.05), transparent);
  border-top: 1px solid rgba(246, 177, 0, 0.15);
  border-bottom: 1px solid rgba(246, 177, 0, 0.15);
}

.trust__inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trust__stat {
  text-align: center;
  padding: 24px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust__stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.trust__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--brand);
  line-height: 1;
  letter-spacing: 2px;
}

.trust__label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

/* Animated counter */
.trust__value[data-count] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.trust__value[data-count].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.trust__partners {
  text-align: center;
}

.trust__partners-title {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 0 0 20px;
}

.trust__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.trust__logos:hover {
  opacity: 0.9;
}

.trust__logo {
  height: 40px;
  width: auto;
  filter: grayscale(100%) brightness(1.5);
  transition: filter 0.3s ease;
}

.trust__logo:hover {
  filter: grayscale(0%) brightness(1);
}

/* Testimonial card (opciono) */
.trust__testimonial {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  padding: 32px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
}

.trust__quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
  margin: 0 0 20px;
}

.trust__quote::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--brand);
  display: block;
  line-height: 0.5;
  margin-bottom: 10px;
}

.trust__author {
  color: var(--muted);
  font-weight: 600;
}

.trust__author strong {
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

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

@media (max-width: 480px) {
  .trust__stats {
    grid-template-columns: 1fr;
  }
  
  .trust__logos {
    gap: 24px;
  }
}

/* ===== HERO ANIMATIONS ===== */
.hero__title,
.hero__subtitle,
.hero__actions {
  opacity: 0;
  transform: translateY(30px);
  animation: heroReveal 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.hero__title { animation-delay: 0.1s; }
.hero__subtitle { animation-delay: 0.25s; }
.hero__actions { animation-delay: 0.4s; }

@keyframes heroReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.85rem;
  opacity: 0;
  animation: heroReveal 0.8s 0.6s forwards, scrollBounce 2s 1.4s infinite;
}

.hero__scroll-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--muted);
  border-radius: 12px;
  position: relative;
}

.hero__scroll-icon::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--brand);
  border-radius: 2px;
  animation: scrollDot 2s infinite;
}

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

@keyframes scrollDot {
  0%, 100% { opacity: 1; top: 6px; }
  50% { opacity: 0.3; top: 18px; }
}

/* ===== WHY CARDS ENHANCED ===== */
.why-card {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.4s ease,
              border-color 0.3s ease;
}

.why-card:hover { 
  transform: translateY(-6px); 
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border-color: rgba(246, 177, 0, 0.2);
}

.why-card__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* ===== PAGE HERO ENHANCED ===== */
.page-hero__title,
.page-hero__lead,
.page-hero__eyebrow,
.page-hero__actions {
  opacity: 0;
  transform: translateY(25px);
  animation: heroReveal 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.page-hero__eyebrow { animation-delay: 0.05s; }
.page-hero__title { animation-delay: 0.15s; }
.page-hero__lead { animation-delay: 0.25s; }
.page-hero__actions { animation-delay: 0.35s; }

/* ===== SMOOTH SCROLL PADDING ===== */
html {
  scroll-padding-top: 100px;
}

/* ===== PRODUCT STATUS BADGES ===== */
.offer-card {
  position: relative;
}

.offer-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 5;
}

.offer-card__badge--reserved {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.offer-card__badge--sold {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.offer-card__badge--draft {
  background: rgba(107, 114, 128, 0.8);
  color: #fff;
}

/* Reserved card styling */
.offer-card--reserved {
  border-color: rgba(245, 158, 11, 0.3);
}

.offer-card--reserved:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

/* Sold card styling */
.offer-card--sold {
  opacity: 0.85;
  border-color: rgba(239, 68, 68, 0.3);
}

.offer-card--sold .offer-card__price {
  text-decoration: line-through;
  opacity: 0.6;
}

.offer-card--sold:hover {
  border-color: rgba(239, 68, 68, 0.5);
}

/* Status indicator dot for admin */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-dot--draft { background: #6b7280; }
.status-dot--active { background: #10b981; }
.status-dot--reserved { background: #f59e0b; }
.status-dot--sold { background: #ef4444; }

/* ===== Legal pages ===== */
.legal-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:28px;
  padding-bottom:24px;
  border-bottom:1px solid rgba(0,0,0,.08);
}
.legal-nav a{
  padding:8px 14px;
  border-radius:8px;
  font-size:.78rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.3px;
  color:#5a6270;
  border:1px solid rgba(0,0,0,.1);
  background:#f7f8fa;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.legal-nav a:hover{
  color:#171717;
  border-color:rgba(246,177,0,.45);
  background:rgba(246,177,0,.1);
}
.legal-nav a.is-active{
  color:#171717;
  border-color:var(--brand);
  background:rgba(246,177,0,.16);
}
.legal-doc{
  max-width:820px;
}
.legal-doc__updated{
  font-size:.88rem;
  color:#6b7280;
  margin:0 0 24px;
}
.legal-doc h2{
  margin:32px 0 12px;
  font-family:var(--font-display);
  font-size:1.15rem;
  letter-spacing:.2px;
  color:#171717;
}
.legal-doc h2:first-of-type{ margin-top:0; }
.legal-doc h3{
  margin:20px 0 8px;
  font-size:1rem;
  color:#171717;
}
.legal-doc p,
.legal-doc li{
  margin:0 0 12px;
  line-height:1.75;
  color:#3a3f47;
}
.legal-doc ul,
.legal-doc ol{
  margin:0 0 16px;
  padding-left:1.25rem;
}
.legal-doc a{
  color:inherit;
  font-weight:700;
  text-decoration:underline;
  text-underline-offset:2px;
}
.legal-doc a:hover{ color:#000; }
.legal-doc__box{
  margin:20px 0;
  padding:16px 18px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.08);
  background:#f7f8fa;
}
.legal-doc__box p:last-child{ margin-bottom:0; }
.page-hero ~ section .legal-doc h2,
.page-hero ~ section .legal-doc h3,
.page-hero ~ section .legal-doc p,
.page-hero ~ section .legal-doc li{
  color:#3a3f47;
}
.page-hero ~ section .legal-doc h2,
.page-hero ~ section .legal-doc h3{
  color:#171717;
}
.footer__legal a.is-active{
  color:var(--brand);
}
