/* ============ Variables ============ */
:root{
  --black:#0b0c0e;
  --charcoal:#3b3a3a;
  --gray-900:#1f2226;
  --gray-600:#655f56;
  --gray-300:#c8cbd1;
  --gray-100:#f3f4f6;
  --cream:#f5eee4;
  --beige:#d8d2c6;
  --white:#ffffff;
  --accent:#0b0c0e;
  --accent-dark:#3b3a3a;
  --font-head:'Poppins', 'Segoe UI', sans-serif;
  --font-body:'Inter', 'Segoe UI', sans-serif;
  --radius:12px;
  --shadow:0 10px 30px rgba(11,12,14,0.08);
  --shadow-lg:0 20px 50px rgba(11,12,14,0.18);
  --header-h:76px;
}

/* ============ Reset ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
body{
  font-family:var(--font-body);
  color:var(--gray-900);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;}
button{font:inherit;cursor:pointer;border:none;background:none;}
h1,h2,h3,h4{font-family:var(--font-head);font-weight:700;line-height:1.2;color:var(--black);}
.container{width:100%;max-width:1180px;margin:0 auto;padding:0 24px;position:relative;z-index:1;}

/* ============ Preloader ============ */
#preloader{
  position:fixed;inset:0;z-index:9999;background:var(--black);
  display:flex;align-items:center;justify-content:center;
  transition:opacity .5s ease, visibility .5s ease;
}
#preloader img{width:56px;height:56px;animation:pulse 1.1s ease-in-out infinite;}
#preloader.done{opacity:0;visibility:hidden;}
@keyframes pulse{0%,100%{transform:scale(1);opacity:1;}50%{transform:scale(1.15);opacity:.6;}}

/* ============ Buttons ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:14px 28px;border-radius:999px;font-weight:600;font-size:.95rem;
  transition:all .25s ease;white-space:nowrap;
}
.btn-accent{background:var(--accent);color:var(--white);}
.btn-accent:hover{background:var(--accent-dark);transform:translateY(-2px);box-shadow:0 12px 24px rgba(11,12,14,.25);}
.btn-outline-light{border:1.5px solid rgba(255,255,255,.5);color:var(--white);}
.btn-outline-light:hover{background:rgba(255,255,255,.12);border-color:#fff;}
.btn-outline{border:1.5px solid var(--charcoal);color:var(--black);background:transparent;}
.btn-outline:hover{background:var(--black);border-color:var(--black);color:var(--white);transform:translateY(-2px);}
.btn-sm{padding:10px 18px;font-size:.85rem;}
.btn-block{width:100%;}

/* ============ Header ============ */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:1000;
  background:rgba(255,255,255,.96);backdrop-filter:blur(8px);
  height:var(--header-h);
  box-shadow:0 1px 0 rgba(11,12,14,.06);
  transition:box-shadow .3s ease;
}
.site-header.scrolled{box-shadow:var(--shadow);}
.header-inner{
  height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px;
}
.logo img{height:46px;width:auto;}
.main-nav ul{display:flex;gap:32px;}
.nav-link{
  font-weight:600;font-size:.95rem;color:var(--gray-900);position:relative;padding:6px 0;
}
.nav-link::after{
  content:'';position:absolute;left:0;bottom:0;height:2px;width:0;background:var(--accent);
  transition:width .25s ease;
}
.nav-link:hover::after,.nav-link.active::after{width:100%;}
.nav-link:hover{color:var(--accent);}
.header-actions{display:flex;align-items:center;gap:20px;}
.header-phone{display:flex;align-items:center;gap:8px;font-weight:600;font-size:.92rem;color:var(--gray-900);}
.header-phone svg{color:var(--accent);}
.header-phone:hover{color:var(--accent);}

.nav-toggle{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:40px;height:40px;
}
.nav-toggle span{display:block;height:2px;width:24px;background:var(--black);border-radius:2px;transition:all .3s ease;}
.nav-toggle.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){opacity:0;}
.nav-toggle.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* ============ Hero ============ */
.hero{
  position:relative;min-height:92vh;display:flex;flex-direction:column;justify-content:center;
  padding-top:var(--header-h);overflow:hidden;color:var(--white);
}
.hero-bg{position:absolute;inset:0;z-index:0;overflow:hidden;background:var(--black);}
.hero-video{
  position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;
}
.hero-bg::before{
  content:'';position:absolute;inset:0;z-index:2;
  background-image:linear-gradient(100deg, rgba(11,12,14,.93) 0%, rgba(11,12,14,.88) 35%, rgba(11,12,14,.78) 65%, rgba(11,12,14,.9) 100%);
}
.hero-bg::after{
  content:'';position:absolute;inset:0;z-index:3;
  background-image:repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 2px, transparent 2px 90px);
}
.hero-inner{position:relative;z-index:1;max-width:760px;padding-top:64px;padding-bottom:80px;}
.eyebrow{
  display:inline-flex;text-transform:uppercase;letter-spacing:.13em;font-size:.72rem;font-weight:700;
  color:inherit;margin-bottom:18px;padding:8px 18px;border-radius:999px;border:1px solid currentColor;
  opacity:.9;
}
.section-head .eyebrow,.about-text .eyebrow{color:var(--charcoal);border-color:var(--beige);background:var(--cream);opacity:1;}
.hero h1{
  font-size:clamp(2.2rem, 5vw, 3.6rem);color:var(--white);margin-bottom:20px;letter-spacing:-.01em;
}
.hero-text{font-size:1.08rem;color:var(--gray-300);max-width:620px;margin-bottom:36px;}
.hero-actions{display:flex;gap:16px;flex-wrap:wrap;}

.hero-brandbar{
  position:relative;z-index:1;border-top:1px solid rgba(255,255,255,.12);padding:20px 0;
}
.brandbar-inner{
  display:flex;flex-wrap:wrap;align-items:center;gap:22px 40px;justify-content:space-between;
}
.brandbar-inner img{
  width:130px;height:30px;object-fit:contain;
  filter:brightness(0) invert(1);opacity:.6;transition:opacity .25s ease;
}
.brandbar-inner img:hover{opacity:1;}

/* ============ Sections ============ */
.section{padding:110px 0;position:relative;overflow:hidden;}
.section::before{
  content:'';position:absolute;inset:0;z-index:0;pointer-events:none;
  background-image:repeating-linear-gradient(115deg, rgba(59,58,58,.05) 0 1px, transparent 1px 100px);
}
.section-alt{background:var(--beige);}
.section-alt::before{
  background-image:repeating-linear-gradient(115deg, rgba(59,58,58,.07) 0 1px, transparent 1px 100px);
}
#brendovi::after,#za-nas::after{
  content:'';position:absolute;z-index:0;pointer-events:none;
  background:url('../images/watermark-circle.png') no-repeat center/contain;
  opacity:.05;
}
#brendovi::after{top:-100px;right:-100px;width:480px;height:480px;}
#za-nas::after{bottom:-140px;left:-140px;width:420px;height:420px;}
.section-head{max-width:640px;margin:0 auto 56px;text-align:center;}
.section-head h2{font-size:clamp(1.7rem,3.2vw,2.4rem);margin:14px 0 16px;}
.section-sub{color:var(--gray-600);font-size:1.02rem;}

/* ============ Brand cards ============ */
.brand-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.brand-card{
  background:var(--white);border:1px solid var(--beige);border-radius:var(--radius);
  padding:32px 28px;transition:transform .3s ease, box-shadow .3s ease;
}
.brand-card:hover{transform:translateY(-6px);box-shadow:var(--shadow-lg);}
.brand-logo-link{
  display:flex;align-items:center;height:44px;margin-bottom:22px;
}
.brand-logo{max-height:100%;max-width:180px;width:auto;height:auto;}
.brand-card h3{font-size:1.25rem;margin-bottom:10px;}
.brand-card p{color:var(--gray-600);font-size:.95rem;margin-bottom:22px;}
.brand-card-actions{display:flex;flex-direction:column;gap:10px;}

/* ============ Services ============ */
.service-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.service-card{
  background:var(--white);border-radius:var(--radius);padding:32px 28px;
  box-shadow:var(--shadow);transition:transform .3s ease;
}
.service-card:hover{transform:translateY(-4px);}
.service-icon{
  width:52px;height:52px;border-radius:12px;background:var(--cream);color:var(--charcoal);
  display:flex;align-items:center;justify-content:center;margin-bottom:20px;
}
.service-card h3{font-size:1.1rem;margin-bottom:10px;}
.service-card p{color:var(--gray-600);font-size:.93rem;}

/* ============ About ============ */
.about-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:60px;align-items:center;}
.about-text p{color:var(--gray-600);margin-bottom:16px;font-size:1rem;}
.about-text h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:14px 0 20px;}
.about-points{margin-top:28px;display:flex;flex-direction:column;gap:14px;}
.about-point{display:flex;align-items:center;gap:12px;font-weight:600;font-size:.95rem;}
.about-point svg{flex-shrink:0;color:var(--charcoal);background:var(--cream);border-radius:50%;padding:4px;width:26px;height:26px;}
.about-visual{
  aspect-ratio:1/1;border-radius:24px;background:var(--cream);
  display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;
  box-shadow:var(--shadow-lg);
}
.about-photo{width:100%;height:100%;object-fit:cover;}

/* ============ Contact ============ */
.contact-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:48px;}
.contact-info{display:flex;flex-direction:column;gap:26px;}
.info-row{display:flex;gap:16px;align-items:flex-start;}
.info-icon{
  width:44px;height:44px;border-radius:10px;background:var(--white);color:var(--accent);
  display:flex;align-items:center;justify-content:center;flex-shrink:0;box-shadow:var(--shadow);
}
.info-row h4{font-size:.98rem;margin-bottom:4px;}
.info-row p{color:var(--gray-600);font-size:.93rem;}
.info-row a:hover{color:var(--accent);}
.map-embed{border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow);margin-top:6px;}
.map-embed iframe{display:block;}

.contact-form{
  background:var(--white);padding:36px;border-radius:var(--radius);box-shadow:var(--shadow-lg);
}
.form-row{margin-bottom:18px;}
.form-row--split{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.contact-form label{display:block;font-size:.85rem;font-weight:600;margin-bottom:7px;color:var(--gray-900);}
.contact-form input,.contact-form select,.contact-form textarea{
  width:100%;padding:13px 14px;border:1.5px solid #e4e5e9;border-radius:8px;
  font:inherit;font-size:.93rem;background:var(--gray-100);transition:border-color .2s ease, background .2s ease;
}
.contact-form input:focus,.contact-form select:focus,.contact-form textarea:focus{
  outline:none;border-color:var(--accent);background:var(--white);
}
.contact-form textarea{resize:vertical;}
.form-note{margin-top:12px;font-size:.85rem;text-align:center;color:var(--gray-600);min-height:1.2em;}
.form-note.success{color:#1a7f37;font-weight:600;}
.form-note.error{color:var(--accent);font-weight:600;}
.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}

/* ============ Leasing calculator ============ */
.calc-card{
  display:grid;grid-template-columns:1.3fr 1fr;gap:0;
  background:var(--white);border-radius:var(--radius);box-shadow:var(--shadow-lg);
  overflow:hidden;
}
.calc-inputs{padding:44px 40px;display:flex;flex-direction:column;gap:32px;}
.calc-field-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:16px;}
.calc-field-head label{font-weight:600;font-size:.95rem;color:var(--gray-900);}
.calc-field-value{
  display:flex;align-items:center;gap:6px;background:var(--gray-100);border:1.5px solid #e4e5e9;
  border-radius:8px;padding:6px 12px;flex-shrink:0;
}
.calc-field-value input{
  width:80px;border:none;background:none;font:inherit;font-weight:700;font-size:1rem;
  text-align:right;color:var(--black);
}
.calc-field-value input:focus{outline:none;}
.calc-field-value span{color:var(--gray-600);font-weight:600;font-size:.9rem;}
.calc-range-labels{display:flex;justify-content:space-between;margin-top:8px;font-size:.78rem;color:var(--gray-600);}

.calc-slider{
  -webkit-appearance:none;appearance:none;width:100%;height:6px;border-radius:999px;
  background:var(--beige);outline:none;cursor:pointer;
}
.calc-slider::-webkit-slider-thumb{
  -webkit-appearance:none;appearance:none;width:22px;height:22px;border-radius:50%;
  background:var(--black);border:3px solid var(--white);box-shadow:0 2px 8px rgba(11,12,14,.35);cursor:pointer;
}
.calc-slider::-moz-range-thumb{
  width:22px;height:22px;border-radius:50%;background:var(--black);
  border:3px solid var(--white);box-shadow:0 2px 8px rgba(11,12,14,.35);cursor:pointer;
}

.calc-result{
  background:var(--charcoal);color:var(--white);padding:44px 40px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;
}
.calc-result-label{font-size:.9rem;color:rgba(255,255,255,.65);margin-bottom:10px;}
.calc-result-value{
  font-family:var(--font-head);font-weight:800;font-size:2.6rem;color:var(--white);
  margin-bottom:24px;letter-spacing:-.01em;
}
.calc-result .btn-accent{background:var(--white);color:var(--charcoal);margin-bottom:20px;}
.calc-result .btn-accent:hover{background:var(--cream);color:var(--charcoal);box-shadow:0 12px 24px rgba(0,0,0,.3);}
.calc-disclaimer{font-size:.76rem;line-height:1.6;color:rgba(255,255,255,.5);}

@media (max-width:840px){
  .calc-card{grid-template-columns:1fr;}
}
@media (max-width:640px){
  .calc-inputs,.calc-result{padding:32px 26px;}
  .calc-result-value{font-size:2.1rem;}
}

/* ============ Footer ============ */
.site-footer{background:var(--black);color:rgba(255,255,255,.75);padding-top:70px;}
.footer-inner{
  display:grid;grid-template-columns:1.4fr 1fr 1fr 1.1fr;gap:40px;padding-bottom:50px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-logo{height:38px;margin-bottom:16px;}
.footer-brand p{font-size:.88rem;line-height:1.7;max-width:280px;}
.social-links{display:flex;gap:12px;margin-top:20px;}
.social-icon{
  width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.08);
  display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.75);
  transition:background .2s ease, color .2s ease, transform .2s ease;
}
.social-icon:hover{background:var(--white);color:var(--black);transform:translateY(-2px);}
.footer-col h5{color:var(--white);font-family:var(--font-head);font-size:.95rem;margin-bottom:18px;}
.footer-col ul{display:flex;flex-direction:column;gap:11px;font-size:.88rem;}
.footer-col a:hover{color:var(--white);}
.footer-contact li{color:rgba(255,255,255,.65);}
.footer-bottom{padding:22px 0;}
.footer-bottom-inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 24px;}
.footer-bottom p{font-size:.82rem;color:rgba(255,255,255,.45);}
.footer-bottom-inner a{font-size:.82rem;color:rgba(255,255,255,.45);text-decoration:underline;}
.footer-bottom-inner a:hover{color:var(--white);}

/* ============ Cookie banner ============ */
.cookie-banner{
  position:fixed;left:0;right:0;bottom:0;z-index:1100;
  background:var(--black);color:rgba(255,255,255,.85);
  padding:18px 24px;box-shadow:0 -8px 30px rgba(0,0,0,.25);
  transform:translateY(100%);transition:transform .4s ease;
}
.cookie-banner.show{transform:translateY(0);}
.cookie-banner-inner{
  max-width:1180px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;
}
.cookie-banner p{font-size:.85rem;line-height:1.6;margin:0;flex:1;min-width:240px;}
.cookie-banner a{color:var(--white);text-decoration:underline;}
.cookie-banner .btn{flex-shrink:0;}

@media (max-width:640px){
  .cookie-banner-inner{flex-direction:column;align-items:stretch;text-align:center;}
  .cookie-banner .btn{width:100%;}
}

/* ============ Back to top ============ */
#back-to-top{
  position:fixed;bottom:28px;right:28px;width:48px;height:48px;border-radius:50%;
  background:var(--black);color:var(--white);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--shadow-lg);opacity:0;visibility:hidden;transform:translateY(10px);
  transition:all .3s ease;z-index:900;
}
#back-to-top.show{opacity:1;visibility:visible;transform:translateY(0);}
#back-to-top:hover{background:var(--accent);}

/* ============ Reveal animation (progressive enhancement: hidden only if JS runs) ============ */
html.js .reveal{opacity:0;transform:translateY(24px);transition:opacity .7s ease, transform .7s ease;}
html.js .reveal.in{opacity:1;transform:translateY(0);}

/* ============ Responsive ============ */
@media (max-width:1024px){
  .brand-grid{grid-template-columns:repeat(2,1fr);}
  .service-grid{grid-template-columns:repeat(2,1fr);}
  .about-inner{grid-template-columns:1fr;}
  .about-visual{max-width:340px;margin:0 auto;}
  .contact-grid{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr 1fr;}
}

@media (max-width:840px){
  .main-nav{
    position:fixed;top:var(--header-h);left:0;right:0;background:var(--white);
    box-shadow:var(--shadow-lg);padding:16px 24px 24px;
    transform:translateY(-140%);opacity:0;transition:all .3s ease;
  }
  .main-nav.open{transform:translateY(0);opacity:1;}
  .main-nav ul{flex-direction:column;gap:4px;}
  .main-nav .nav-link{display:block;padding:12px 4px;border-bottom:1px solid var(--gray-100);}
  .header-phone span{display:none;}
  .nav-toggle{display:flex;}
  .header-actions .btn-sm{display:none;}
}

@media (max-width:640px){
  .section{padding:76px 0;}
  .brand-grid{grid-template-columns:1fr;}
  .service-grid{grid-template-columns:1fr;}
  .form-row--split{grid-template-columns:1fr;}
  .footer-inner{grid-template-columns:1fr;gap:32px;}
  .hero{min-height:auto;padding-bottom:20px;}
  .hero-inner{padding-top:48px;padding-bottom:48px;}
  .contact-form{padding:26px;}

  .brandbar-inner{
    display:grid;grid-template-columns:repeat(3,1fr);
    justify-items:center;align-items:center;row-gap:22px;column-gap:12px;
  }
  .brandbar-inner a{display:flex;align-items:center;justify-content:center;height:26px;width:100%;}
  .brandbar-inner img{width:90px;height:22px;}
}
