/* ═══════════════════════════════════════════════════════════════
   BUDGT LINE  –  Global Styles
   ═══════════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;
  --navy:   #071c33;
  --blue:   #0a5fa8;
  --sky:    #16bce8;
  --ice:    #eaf7ff;
  --white:  #fff;
  --text:   #10283f;
  --muted:  #64788c;
  --line:   #cfe4f1;
  --radius: 24px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  font-family: Manrope, Arial, sans-serif;
  color: var(--text);
  background: #f8fcff;
  color-scheme: light;
}

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

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

/* ═══════════════════════════════════════════════════════════════
   1.  LOADER
   ═══════════════════════════════════════════════════════════════ */

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: grid;
  place-content: center;
  text-align: center;
  transition: opacity 1.2s ease, visibility 1.2s;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  width: min(520px, 80vw);
  filter: brightness(0) invert(1);
  animation: loaderGlow 2s ease-in-out infinite alternate;
  color-scheme: only light;
}

.loader p {
  font-size: clamp(34px, 5vw, 68px);
  font-weight: 700;
  letter-spacing: -.035em;
  margin: 22px 0 0;
}

.loader-name span {
  color: #163d5d;
  text-shadow: 0 0 20px rgba(22, 188, 232, 0.4);
}

.loader-name strong {
  color: #08a9d4;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(22, 188, 232, 0.6);
}

@keyframes loaderGlow {
  from {
    filter: drop-shadow(0 0 5px rgba(22, 188, 232, 0.3));
  }
  to {
    filter: drop-shadow(0 0 25px rgba(22, 188, 232, 0.7));
  }
}

/* DARK MODE - kada je uključen na Androidu */
@media (prefers-color-scheme: dark) {
  .loader {
    background: #071c33;
  }
  
  .loader-logo {
    filter: brightness(0) invert(1);
    animation: loaderGlow 2s ease-in-out infinite alternate;
  }
  
  /* BUDGET LINE tekst u logu — postaje bijeli */
  .loader-logo[src*="logo"] {
    filter: brightness(0) invert(1) !important;
  }
  
  .loader-name span {
    color: #ffffff !important;
    text-shadow: 0 0 20px rgba(22, 188, 232, 0.6);
  }
  
  .loader-name strong {
    color: #16bce8 !important;
    text-shadow: 0 0 20px rgba(22, 188, 232, 0.9);
  }
}

/* ═══════════════════════════════════════════════════════════════
   2.  HEADER & NAVIGATION
   ═══════════════════════════════════════════════════════════════ */

.site-header {
  position: absolute;
  z-index: 20;
  top: 0; left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 24px 5vw;
  color: #fff;
}

.brand img {
  width: 190px;
  display: block;
  filter: none !important;
  -webkit-filter: none !important;
  color-scheme: only light;
  forced-color-adjust: none;
}

.desktop-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.desktop-nav a { font-size: 14px; font-weight: 700; }

.quote-btn {
  border: 1px solid rgba(255,255,255,.45);
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 800;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}

.menu-btn {
  display: none;
  background: none;
  border: 0;
}

/* mobile menu (injected via JS) */
.mobile-menu {
  position: fixed;
  z-index: 19;
  top: 0; right: 0;
  width: 100%;
  padding: 100px 25px 35px;
  background: #06243b;
  display: grid;
  gap: 20px;
  color: #fff;
  transform: translateY(-110%);
  transition: .3s;
}
.mobile-menu.open { transform: none; }

/* hide mobile menu on desktop */
@media (min-width: 651px) {
  .mobile-menu { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   3.  HERO
   ═══════════════════════════════════════════════════════════════ */

.hero {
  min-height: 100vh;
  position: relative;
  color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero video {
  position: absolute;
  inset: -2%;
  width: 104%; height: 104%;
  object-fit: cover;
  will-change: transform;
  transform: scale(1.035);
  animation: heroDrift 16s ease-in-out infinite alternate;
  backface-visibility: hidden;
}
@keyframes heroDrift {
  from { transform: scale(1.035) translate3d(-.4%, 0, 0); }
  to   { transform: scale(1.08)  translate3d(.4%, -.4%, 0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(2,15,31,.94),
    rgba(2,29,56,.68) 55%,
    rgba(8,89,139,.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, 90vw);
  margin-left: 7vw;
  padding-top: 90px;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 800;
  color: #91dff5;
}
.eyebrow.dark { color: var(--blue); }

h1 {
  font-size: clamp(47px, 7.4vw, 105px);
  line-height: .95;
  margin: 22px 0;
  letter-spacing: -.06em;
}
h1 em { font-style: normal; color: #6fdcf4; }

.hero-content > p {
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  max-width: 690px;
  color: #d9eef8;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.primary-btn {
  border: 0;
  background: linear-gradient(135deg, #0fa7da, #42d4f3);
  color: #03223c;
  padding: 16px 24px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(18,180,225,.25);
}

.text-link { font-weight: 700; }

/* ── hero metrics (right-side card) ── */
.hero-metrics {
  position: absolute;
  z-index: 3;
  right: 5vw;
  bottom: 5vh;
  width: 500px;
  max-width: 42vw;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  padding: 10px 24px;
}

.hero-metrics div {
  display: grid;
  grid-template-columns: 42px 120px minmax(0, 1fr);
  align-items: start;
  column-gap: 16px;
  padding: 16px 0;
}
.hero-metrics strong,
.hero-metrics span,
.hero-metrics small { min-width: 0; }

.hero-metrics strong { line-height: 1.45; }
.hero-metrics span   { line-height: 1.35; }
.hero-metrics small  { font-size: 14px; line-height: 1.45; overflow-wrap: normal; }

/* ═══════════════════════════════════════════════════════════════
   4.  TYPOGRAPHY HELPERS
   ═══════════════════════════════════════════════════════════════ */

h2 {
  font-size: clamp(38px, 5vw, 72px);
  line-height: 1.05;
  letter-spacing: -.045em;
  margin: 15px 0;
}

.section { padding: 110px 7vw; }

.section-heading { max-width: 800px; margin-bottom: 48px; }
.section-heading p { color: var(--muted); font-size: 18px; }

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════
   5.  INTRO
   ═══════════════════════════════════════════════════════════════ */

.intro {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 80px;
  background: #fff;
}

.intro-copy {
  padding-top: 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════
   6.  SERVICES
   ═══════════════════════════════════════════════════════════════ */

.services { background: #f9fcff; }

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

.service-card {
  position: relative;
  min-height: 330px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px;
  overflow: hidden;
  --mx: 50%; --my: 50%;
  transition: transform .25s, box-shadow .25s;
}

/* radial glow on hover */
.service-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: radial-gradient(280px circle at var(--mx) var(--my), #0c9ed4, transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s;
  pointer-events: none;
}
.service-card:hover::before { opacity: 1; }

/* decorative circle */
.service-card::after {
  content: "";
  position: absolute;
  width: 120px; height: 120px;
  border-radius: 50%;
  right: -55px; bottom: -55px;
  background: #dff5ff;
  transition: .3s;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(15,75,120,.12);
}

.service-card b {
  font-size: 12px;
  letter-spacing: .14em;
  color: #5f7f95;
}

.service-card i {
  display: block;
  width: 54px; height: 54px;
  margin: 35px 0 42px;
  border-radius: 15px;
  background: #e2f8ff;
  color: #0797c9;
  font-style: normal;
  display: grid;
  place-content: center;
  font-size: 22px;
}

.service-card h3 { font-size: 23px; margin: 0 0 12px; }
.service-card p  { color: var(--muted); line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   7.  PROCESS
   ═══════════════════════════════════════════════════════════════ */

.process {
  background: var(--navy);
  color: #fff;
}
.process .section-heading { max-width: 900px; }

.process-list { border-top: 1px solid rgba(255,255,255,.16); }

.process-list article {
  display: grid;
  grid-template-columns: 120px 1fr;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255,255,255,.16);
}

.process-list article > span {
  color: #51d3f3;
  font-size: 18px;
  font-weight: 800;
}

.process-list h3 { font-size: 30px; margin: 0 0 10px; }
.process-list p  { color: #b8cad6; max-width: 760px; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════════
   8.  FAQ
   ═══════════════════════════════════════════════════════════════ */

.faq { background: #fff; }

.accordion { max-width: 1000px; }

.accordion details {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.accordion details:last-child { border-bottom: 1px solid var(--line); }

.accordion summary {
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.accordion summary::after { content: "+"; color: var(--blue); }
.accordion details[open] summary::after { content: "−"; }

.accordion p {
  color: var(--muted);
  line-height: 1.8;
  max-width: 850px;
}

/* ═══════════════════════════════════════════════════════════════
   9.  CONTACT & FORM
   ═══════════════════════════════════════════════════════════════ */

.contact {
  background: linear-gradient(135deg, #082642, #0a5c91);
  color: #fff;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 70px;
}

.contact-info p { color: #c4dce9; font-size: 18px; }

.contact-list {
  display: grid;
  gap: 20px;
  margin-top: 48px;
}

.contact-list a,
.contact-list div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-list small { color: #77d6ef; }

/* ── form ── */
.quote-form {
  background: #fff;
  color: var(--text);
  border-radius: 30px;
  padding: 38px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.quote-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  font-weight: 700;
  font-size: 14px;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #c6ddea;
  background: #f8fcff;
  border-radius: 12px;
  padding: 14px;
  outline: none;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: #0c9ed4;
  box-shadow: 0 0 0 3px #dff6ff;
}

.phone-wrap { display: flex; }
.phone-wrap input { border-radius: 12px 0 0 12px; }

.phone-wrap button,
.otp-box button {
  border: 0;
  background: #0b659e;
  color: #fff;
  padding: 0 15px;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
}

.otp-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 15px;
  background: #edf8ff;
  border-radius: 14px;
  margin-bottom: 18px;
}
.otp-box small { grid-column: 1 / -1; color: var(--muted); }

.captcha {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
}
.captcha span { font-weight: 800; min-width: 90px; }

.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
}
.consent input { width: auto; margin-top: 2px; }

.submit-btn { width: 100%; }

#formMessage { font-weight: 700; }
.success { color: #087b58; }
.error   { color: #bd2c2c; }

/* ═══════════════════════════════════════════════════════════════
   10.  FOOTER
   ═══════════════════════════════════════════════════════════════ */

footer {
  background: #041821;
  color: #d7ebf2;
  padding: 75px 8vw 25px;
  display: grid;
  grid-template-columns: 1fr .65fr 1fr;
  gap: 70px;
}

.footer-brand img {
  width: 75px;
  background: #fff;
  padding: 8px;
  color-scheme: only light;
}

.footer-brand > div { display: flex; align-items: center; gap: 16px; }
.footer-brand p {
  color: #91acb9;
  line-height: 1.8;
  max-width: 470px;
}
.footer-brand small { color: #547685; }

footer h4 {
  color: #638493;
  font-size: 12px;
  letter-spacing: .14em;
}

footer a,
footer button {
  display: block;
  margin: 16px 0;
  color: #c8dfe8;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.footer-map iframe {
  width: 100%;
  height: 270px;
  border: 0;
  border-radius: 22px;
}

.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid #173540;
  padding-top: 22px;
  color: #678794;
}
.copyright a { display: inline; }

/* ═══════════════════════════════════════════════════════════════
   11.  CHAT WIDGET
   ═══════════════════════════════════════════════════════════════ */

.chat-launch {
  position: fixed;
  right: 24px; bottom: 22px;
  z-index: 40;
  border: 1px solid #3ac8e8;
  background: #052b3c;
  color: #fff;
  border-radius: 999px;
  padding: 15px 20px;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  cursor: pointer;
}

.chat {
  position: fixed;
  right: 24px; bottom: 90px;
  z-index: 50;
  width: min(370px, calc(100vw - 32px));
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 25px 80px rgba(0,20,40,.28);
  overflow: hidden;
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.chat.open {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}

.chat header {
  background: #062c42;
  color: #fff;
  padding: 18px;
  display: flex;
  justify-content: space-between;
}
.chat header small { display: block; color: #7edff2; }
.chat header button {
  background: none;
  color: #fff;
  border: 0;
  font-size: 28px;
  cursor: pointer;
}

.chat-body {
  height: 230px;
  overflow: auto;
  padding: 18px;
  background: #f3faff;
}

.bot-msg, .user-msg {
  max-width: 85%;
  padding: 11px 13px;
  border-radius: 14px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
}
.bot-msg   { background: #fff; }
.user-msg  { background: #0c88bd; color: #fff; margin-left: auto; }

.quick-questions {
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  
}
.quick-questions button {
  border: 1px solid #baddeb;
  background: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  color: #0b527e;
  cursor: pointer;
}
.chat-input {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #edf8ff;
  border-top: 1px solid #d7ebf5;
}
.chat-input input {
  flex: 1;
  width: 100%;
  border: 1px solid #c6ddea;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}
.chat-input input:focus {
  border-color: #0c9ed4;
  box-shadow: 0 0 0 3px #dff6ff;
}
.chat-input button {
  border: 0;
  background: #0b659e;
  color: #fff;
  width: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}
/* ═══════════════════════════════════════════════════════════════
   12.  COOKIE BANNER (pojednostavljena verzija)
   ═══════════════════════════════════════════════════════════════ */

.cookie-banner {
  display: none;  /* DODAJTE OVO — početno skriven */
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  z-index: 80;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  box-shadow: 0 20px 70px rgba(0,30,60,.22);
  transition: opacity .35s ease, transform .35s ease;
}

.cookie-banner.hide {
  opacity: 0;
  transform: translateY(28px);
  pointer-events: none;
}

.cookie-copy { max-width: 760px; }
.cookie-copy strong { font-size: 18px; }
.cookie-copy p { margin: 5px 0; color: var(--muted); }

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  background: #fff;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.cookie-actions button:hover { border-color: #0e9fd2; }

.cookie-actions .primary-btn {
  border: 0;
  background: linear-gradient(135deg, #0fa7da, #42d4f3);
  color: #03223c;
}/* ═══════════════════════════════════════════════════════════════
   13.  GENERIC MODAL (privacy / cookies text)
   ═══════════════════════════════════════════════════════════════ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0,15,30,.65);
  display: grid;
  place-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
}
.modal.open { opacity: 1; pointer-events: auto; }

.modal-card {
  background: #fff;
  width: min(720px, 95vw);
  max-height: 80vh;
  overflow: auto;
  border-radius: 24px;
  padding: 35px;
  position: relative;
}

.modal-close {
  position: absolute;
  right: 18px; top: 12px;
  border: 0;
  background: none;
  font-size: 30px;
  cursor: pointer;
}

/* ═══════════════════════════════════════════════════════════════
   14.  RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .site-header { padding: 18px; }
  .brand img { width: 150px; }
  .quote-btn { margin-left: auto; }
  .hero-content { margin-left: 5vw; }
  .hero-metrics { display: none; }
  .intro, .contact { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-map { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .quote-btn { display: none; }
  .menu-btn {
    display: grid;
    gap: 5px;
    margin-left: auto;
  }
  .menu-btn span { display: block; width: 28px; height: 2px; background: #fff; }

  .hero-content { padding-top: 60px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }

  .section { padding: 78px 20px; }
  .intro { gap: 25px; }
  .service-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: 23px; }
  .process-list article { grid-template-columns: 60px 1fr; }
  .contact { gap: 35px; }

  footer { grid-template-columns: 1fr; padding: 60px 22px 22px; }
  .footer-map { grid-column: auto; }

  .chat-launch span { display: none; }

  .cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-banner > div:last-child { width: 100%; flex-direction: column; }
}

@media (max-width: 560px) {
  .hero-point {
    grid-template-columns: 36px 1fr;
  }
  .hero-point p {
    grid-column: 2;
    margin-top: 5px;
  }
}

@media (max-width: 650px) {
  .cookie-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-actions button { width: 100%; }
  .cookie-modal-card { padding: 28px 20px; }
  .cookie-option { align-items: flex-start; }
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cookie-modal-actions button { width: 100%; }
  .cookie-intro { margin-right: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   15.  ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .hero video { animation: none; }
  .reveal { transition: none; }
}