/**
 * BS AUDIO — globalni moderan sloj (2024+): tipografija, kartice, forme, hero podstranice.
 * Učitava se u headeru; na stranicama s velikim inline <style> blokom dodaj i <link> nakon </style>.
 */

:root {
  --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --bs-radius-sm: 12px;
  --bs-radius-md: 16px;
  --bs-radius-lg: 22px;
  --bs-radius-xl: 26px;
  --bs-radius-pill: 999px;
  --bs-line: rgba(255, 255, 255, 0.1);
  --bs-line-gold: rgba(233, 188, 46, 0.32);
  --bs-text-muted: rgba(255, 255, 255, 0.7);
  --bs-surface-1: linear-gradient(165deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.02) 100%);
  /* Uži sadržaj na velikim ekranima */
  --bs-content-max: 960px;
  --bs-section-pad-x: clamp(16px, 4vw, 40px);
  --bs-focus-ring: 0 0 0 3px rgba(233, 188, 46, 0.35);
  --bs-elev-nav: 0 14px 42px rgba(0, 0, 0, 0.42);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: rgba(233, 188, 46, 0.35);
  color: #0a0a0a;
}

body a:focus-visible,
body button:focus-visible,
body .btn-main:focus-visible,
body .btn-ghost:focus-visible,
body .btn-outline:focus-visible,
body input:focus-visible,
body textarea:focus-visible,
body select:focus-visible {
  outline: none;
  box-shadow: var(--bs-focus-ring);
}

h1,
h2,
h3,
.showcase-title,
.showcase-kicker,
.stat-num,
.bs-err-kicker {
  font-family: var(--font-display);
}

/* --- Navigacija --- */
body #mainNav.bs-site-header {
  border-bottom: 1px solid var(--bs-line-gold);
  border-radius: 0 0 var(--bs-radius-md) var(--bs-radius-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: var(--bs-elev-nav);
}

body #mainNav.bs-site-header .bs-header-nav-row {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body .bs-header-nav-row .nav-links a:not(.admin-link) {
  border-radius: var(--bs-radius-pill);
  padding: 9px 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body .bs-header-nav-row .nav-links a:not(.admin-link):hover {
  background: rgba(255, 204, 0, 0.1);
}

body .bs-header-nav-row .nav-links a:not(.admin-link):focus-visible {
  background: rgba(255, 204, 0, 0.14);
}

/* --- Primarni CTA --- */
body .btn-main {
  border-radius: var(--bs-radius-pill);
  padding: 15px 30px;
  font-weight: 800;
  letter-spacing: 0.07em;
  border: 1px solid rgba(233, 188, 46, 0.5);
  background: linear-gradient(155deg, var(--main-bright, #ffe566) 0%, var(--main) 42%, #c9a015 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 10px 32px rgba(0, 0, 0, 0.38),
    0 0 40px rgba(233, 188, 46, 0.12);
}

body .btn-main:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.25) inset,
    0 14px 40px rgba(0, 0, 0, 0.42),
    0 0 48px rgba(233, 188, 46, 0.18);
}

body .btn-main:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* Sekundarni / outline gumbi (komplementarni uz .btn-main iz headera) */
body .btn-ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  border-radius: var(--bs-radius-pill);
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.25s ease;
}

body .btn-ghost:hover {
  background: rgba(255, 204, 0, 0.12);
  border-color: rgba(255, 204, 0, 0.45);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 204, 0, 0.15);
}

body .btn-ghost:active {
  transform: translateY(0);
}

body .btn-outline {
  color: var(--main);
  background: transparent;
  border: 2px solid rgba(255, 204, 0, 0.55);
  border-radius: var(--bs-radius-pill);
  padding: 12px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  display: inline-block;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

body .btn-outline:hover {
  background: rgba(255, 204, 0, 0.1);
  transform: translateY(-2px);
}

/* --- Hero (podstranice: kontakt, o nama, video, FAQ, 404, …) --- */
.hero:not(.hero-galerija--modern):not(.app-portal-hero) h1 {
  letter-spacing: 0.04em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero:not(.hero-galerija--modern):not(.app-portal-hero):not(.has-bg-video) {
  border-bottom: 1px solid rgba(255, 204, 0, 0.2);
}

/* Niži naslovi na podstranicama (početna, galerija, FAQ, portal imaju vlastite stilove) */
.hero:not(.hero--portal):not(.hero-galerija--modern):not(.app-portal-hero):not(.hero-faq) h1 {
  font-size: clamp(1.75rem, 4.8vw, 3rem) !important;
  line-height: 1.08 !important;
}

/* --- Generičke sekcije (zamjena za inline padding) --- */
.bs-page-section {
  padding: clamp(40px, 5vw, 72px) var(--bs-section-pad-x);
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 204, 0, 0.07), transparent 55%),
    linear-gradient(180deg, #030303 0%, #000 50%, #060606 100%);
}

.bs-page-section--narrow .bs-page-inner,
.bs-page-section.bs-page-section--narrow {
  max-width: min(880px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

.bs-page-inner {
  max-width: min(var(--bs-content-max), 94vw);
  margin: 0 auto;
}

.bs-page-section--footer-note {
  padding: 36px var(--bs-section-pad-x) 72px;
  background: #030303;
  text-align: center;
}

/* Admin traka za uređivanje */
.bs-admin-edit-bar {
  background: linear-gradient(180deg, #121212 0%, #0a0a0a 100%);
  padding: 14px 16px;
  text-align: center;
  border-bottom: 1px solid var(--bs-line);
}

.bs-admin-edit-bar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--main);
  color: #0a0a0a;
  padding: 11px 22px;
  text-decoration: none;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--bs-radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bs-admin-edit-bar a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 204, 0, 0.25);
}

/* --- Kontakt stranica: telefon, citat --- */
.bs-contact-hero-block {
  margin-bottom: 56px;
}

.bs-contact-phone {
  font-size: clamp(2.2rem, 7vw, 4rem);
  color: var(--main);
  text-decoration: none;
  font-weight: 900;
  border-bottom: 3px solid var(--main);
  display: inline-block;
  margin-bottom: 28px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.bs-contact-phone:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.bs-contact-quote {
  max-width: 850px;
  margin: 28px auto;
  color: var(--bs-text-muted);
  line-height: 1.85;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  font-style: italic;
}

.bs-contact-meta {
  margin-top: 36px;
}

.bs-contact-email {
  font-weight: 800;
  letter-spacing: 0.12em;
  font-size: 1.05rem;
  color: var(--main);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-decoration: none;
  display: inline-block;
  border-bottom: 2px solid var(--main);
}

.bs-contact-addr-line {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.bs-contact-addr-line i {
  color: var(--main);
  margin-right: 6px;
}

.bs-contact-social {
  font-size: 2.75rem;
  margin-top: 44px;
}

.bs-contact-social a {
  color: #fff;
  margin: 0 20px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.bs-contact-social a:hover {
  transform: scale(1.08);
}

/* --- O nama: CTA --- */
.bs-onama-cta {
  display: inline-block;
  margin-top: 48px;
  padding: 16px 36px;
  border-radius: var(--bs-radius-pill);
  background: linear-gradient(160deg, #ffe066 0%, var(--main) 50%, #e6b800 100%);
  color: #0a0a0a !important;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.bs-onama-cta:hover {
  transform: translateY(-2px);
}

/* --- Stat grid (O nama) --- */
.bs-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin: 56px 0;
}

.bs-stat-cell {
  border-top: 1px solid var(--bs-line);
  padding-top: 22px;
  border-radius: var(--bs-radius-sm);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.bs-stat-cell:hover {
  border-color: rgba(255, 204, 0, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

/* --- Video podnaslov --- */
.hero.hero-video-page > p:not([class]) {
  color: rgba(255, 204, 0, 0.95) !important;
  letter-spacing: 0.28em !important;
  font-weight: 800 !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  margin-top: 1.25rem !important;
}

/* --- 404 --- */
.bs-err-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px;
}

.bs-err-kicker {
  color: var(--main);
  font-weight: 900;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bs-err-inner h1 {
  font-size: clamp(1.85rem, 5vw, 2.65rem);
  margin: 0 0 16px;
  line-height: 1.1;
}

.bs-err-lead {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero.bs-err-hero {
  min-height: 0;
}

/* --- Početna + kontakt: forme i okviri (visoka specifičnost) --- */
body #home-contact .home-contact-prorent,
body .contact-map-layout {
  border-radius: var(--bs-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

body .home-contact-panel,
body .kontakt-form-panel {
  border-radius: var(--bs-radius-md);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
}

body .home-contact-panel-head,
body .kontakt-form-head {
  border-radius: var(--bs-radius-md) var(--bs-radius-md) 0 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

body #home-contact .contact-form input,
body #home-contact .contact-form textarea,
body #home-contact .contact-form select,
body .kontakt-page-form input,
body .kontakt-page-form textarea,
body .kontakt-page-form select {
  border-radius: 12px !important;
  border: 1px solid rgba(0, 0, 0, 0.14) !important;
  background: #fafafa !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body #home-contact .contact-form input:focus,
body #home-contact .contact-form textarea:focus,
body #home-contact .contact-form select:focus,
body .kontakt-page-form input:focus,
body .kontakt-page-form textarea:focus,
body .kontakt-page-form select:focus {
  border-color: rgba(233, 188, 46, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(233, 188, 46, 0.14) !important;
}

body #usluge {
  border-radius: 24px !important;
  gap: 10px !important;
  padding: 12px !important;
}

body .card-usluga {
  border-radius: 20px !important;
}

body .contact-bottom-strip {
  border-radius: 0 0 22px 22px;
}

/* --- FAQ / Reference kartice --- */
body .faq-section {
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 204, 0, 0.06), transparent 50%),
    linear-gradient(180deg, #050505 0%, #000 100%);
}

body .ref-section {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 204, 0, 0.05), transparent 55%),
    linear-gradient(180deg, #040404 0%, #000 100%);
}

/* --- Modal (početna) --- */
body .modal-content {
  border-radius: var(--bs-radius-lg);
  border: 1px solid rgba(255, 204, 0, 0.2);
  border-left-width: 6px;
}

/* --- Footer (kontakt / slični) --- */
body footer[style*="background: #050505"],
footer.bs-site-footer {
  background: linear-gradient(180deg, #060606 0%, #020202 100%) !important;
  border-top: 1px solid var(--bs-line) !important;
  padding: clamp(48px, 8vw, 88px) 8% !important;
}

/* --- Privatnost --- */
body .privacnost-page {
  padding: clamp(56px, 8vw, 88px) clamp(5%, 6vw, 10%);
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 204, 0, 0.06), transparent 55%),
    linear-gradient(180deg, #000 0%, #050505 100%);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body .btn-main,
  body .btn-ghost,
  body .btn-outline,
  body .nav-links a {
    transition: none;
  }
}

/* --- Početna: hero trust pills, kartice, mobilni CTA (izdvojeno iz index inline) --- */
body .hero-trust-list {
  list-style: none;
  padding: 0;
  margin: 20px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 780px;
}

body .hero-trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.28);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body .hero-trust-list li i {
  color: var(--main);
  font-size: 0.82rem;
}

body .card-mini {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
}

body .mobile-sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 9998;
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}

body .mobile-sticky-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

body .mobile-sticky-cta__btn--call {
  color: #fff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

body .mobile-sticky-cta__btn--quote {
  color: #111;
  background: linear-gradient(140deg, #ffe680 0%, var(--main) 55%, #cf9f10 100%);
}

body .mobile-sticky-cta--single {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  body .mobile-sticky-cta {
    display: grid;
  }

  body {
    padding-bottom: 86px;
  }

  body.modal-open {
    padding-bottom: 0;
  }

  body.modal-open .mobile-sticky-cta {
    display: none;
  }
}

@media (max-width: 700px) {
  body .card-mini {
    font-size: 0.62rem;
    margin-top: 4px;
  }
}

/* --- Početna: Kako radimo --- */
body .home-how-we-work {
  padding: clamp(48px, 7vw, 88px) var(--bs-section-pad-x) clamp(40px, 6vw, 72px);
  background:
    radial-gradient(ellipse 90% 55% at 50% 0%, rgba(255, 204, 0, 0.08), transparent 52%),
    linear-gradient(180deg, #030303 0%, #000 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body .home-how-inner {
  max-width: min(980px, 94vw);
  margin: 0 auto;
  text-align: center;
}

body .home-how-kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--main);
  margin-bottom: 10px;
}

body .home-how-title {
  font-family: var(--font-display);
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}

body .home-how-lead {
  margin: 0 auto 36px;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  font-size: clamp(0.95rem, 2vw, 1.08rem);
}

body .home-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.5vw, 22px);
  text-align: left;
}

body .home-how-step {
  display: flex;
  gap: 16px;
  padding: 22px 20px;
  border-radius: var(--bs-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--bs-surface-1);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  transition:
    border-color 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.25s ease;
}

body .home-how-step:hover {
  border-color: rgba(233, 188, 46, 0.3);
  transform: translateY(-3px);
  box-shadow:
    0 22px 52px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(233, 188, 46, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  body .home-how-step {
    transition: none;
  }

  body .home-how-step:hover {
    transform: none;
  }
}

body .home-how-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  color: #111;
  background: linear-gradient(145deg, #ffe680 0%, var(--main) 55%, #cf9f10 100%);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}

body .home-how-step-body h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

body .home-how-step-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  body .home-how-steps {
    grid-template-columns: 1fr;
  }
}

/* --- Početna: footer (bez inline style) --- */
footer.bs-site-footer.bs-home-footer {
  text-align: center;
}

body .footer-glow--home {
  opacity: 0.6;
}

body .footer-brand-title {
  font-weight: 900;
  font-size: 1.8rem;
  letter-spacing: 3px;
  color: #fff;
}

body .footer-brand-accent {
  color: var(--main);
}

body .footer-brand-tag {
  font-size: 0.7rem;
  margin-top: 10px;
  letter-spacing: 4px;
  color: #555;
  text-transform: uppercase;
}

body .footer-social-row {
  margin: 30px 0;
  font-size: 1.5rem;
}

body .footer-social-link {
  color: #fff;
  margin: 0 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

body .footer-social-link:hover {
  color: var(--main);
  transform: translateY(-2px);
}

body .footer-copy {
  font-size: 0.6rem;
  color: #333;
  margin-top: 40px;
}

body .home-contact-map-iframe {
  border: 0;
}
