/* ===== Base ===== */
:root{
  --bg: #f4f4f4;
  --text: #2c3e50;
  --muted: #6b7280;
  --card: #ffffff;
  --border: #ddd;
  --dark: #2c3e50;
  --dark2: #1a252f;
  --accent: #e67e22;
  --accent2:#d35400;

  /* layout */
  --container: min(1100px, calc(100% - 40px));  /* jedna mjera za sve */
  --headerH: 86px;                               /* visina headera (za offset) */
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);

  /* da sadržaj ne upadne pod fixed header */
  padding-top: 0;
}

/* tipografija */
h1,h2,h3{ margin: 0 0 10px; color: var(--text); }
p{ margin: 0 0 10px; color: #555; font-size: 16px; line-height: 1.6; }

/* layout */
main{ width: var(--container); margin: 0 auto; padding: 20px 0; }

section{
  background: var(--card);
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 10px;

  /* da anchor linkovi ne upadaju pod header */
  scroll-margin-top: calc(var(--headerH) + 18px);
}

/* linkovi u sadržaju */
section a,
section a:visited{
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}
section a:hover{ text-decoration: underline; }

/* ===== HEADER (fixed + poravnat kao hero) ===== */
.site-header{
  position: sticky;
  top: 0; left: 0;
  width: 100%;
  z-index: 9999;

  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e6e6;
}

/* Header unutarnji container – isti kao footer i content */
.header-wrap{
  width: 100%;
  margin: 0 auto;
}


/* 3 stupca: lijevo / sredina / desno */
.header-3col{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO APSOLUTNO CENTRIRAN */
.brand-center{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}


/* LIJEVO: brand name + slogan */
.brand-left{
  text-decoration: none;
  color: inherit;
  line-height: 1.15;
}

.brand-name{
  font-size: 16px;
  font-weight: 700;
  opacity: 0.85;
}

.brand-slogan{
  font-size: 12px;
  opacity: 0.7;
}


/* SREDINA: logo */
.brand-center{
  justify-self: center;
  text-decoration: none;
}

.header-logo{
  height: 90px;        /* GLAVNO: povećano */
  width: auto;
  display: block;

  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.15));
  transition: transform 0.2s ease;
}

/* mali hover efekt */
.brand-center:hover .header-logo{
  transform: scale(1.05);
}


/* DESNO: nav */
.header-nav-right{
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-nav-right a{
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 8px;
}

.header-nav-right a:hover{ background: #f2f2f2; }

.header-nav-right .nav-cta{
  background: var(--dark);
  color: #fff;
  padding: 10px 14px;
}
.header-nav-right .nav-cta:hover{ background: #1f2d3a; }

/* MOBILE header */
@media (max-width: 1000px){
  :root{ --headerH: 112px; } /* malo veći header na mobitelu */

  .header-3col{
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand-center{ justify-self: start; }
  .header-nav-right{
    justify-self: start;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-logo{ height: 44px; }
}

@media (max-width: 520px){
  .brand-slogan{ display:none; }
}

/* ===== HERO ===== */
.hero{
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;

  background: var(--dark);
  color: #fff;
  padding: 32px;
  border-radius: 14px;
}

.hero h1{
  color: #fff;
  font-size: 34px;
  margin-bottom: 12px;
}

.hero p{
  color: #ecf0f1;
  font-size: 16px;
  margin-bottom: 16px;
  max-width: 560px;
}

.hero-buttons{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Gumbi u hero */
.hero .button{
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}

.hero .button:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Primarni */
.hero .button.primary{
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}
.hero .button.primary:hover{
  background: var(--accent2);
  border-color: var(--accent2);
}

/* Outline */
.hero .button.outline{
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.hero .button.outline:hover{
  background: #fff;
  color: var(--text);
}

.hero-image img{
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.35);
}

/* Mobile hero */
@media (max-width: 900px){
  .hero{
    grid-template-columns: 1fr;
    padding: 26px 22px;
  }
  .hero-image img{ height: 220px; }
  .hero h1{ font-size: 26px; }
}

/* ===== SERVICES ===== */
.services{
  display: grid;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(3, 1fr); /* TOČNO 3 stupca */
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 900px){
  .services{
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px){
  .services{
    grid-template-columns: 1fr;
  }
}


.service-card{
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.service-card h3{ margin-top: 0; }
.service-card p{ color: #555; }

/* ===== CONTACT: 3 kartice (forma + mapa + info) ===== */
.contact-3col{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: stretch;
}

.contact-card{
  background: #f8f8f8;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.contact-card h3{ margin: 0 0 12px; }

/* forma unutar kartice */
.contact-card .contact-form{
  max-width: none;
  margin: 0;
  flex: 1;
}

.contact-form label{
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  color: #333;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
}

.contact-form textarea{ min-height: 140px; resize: vertical; }

.contact-form button{
  margin-top: 10px;
  padding: 10px 16px;
  background: var(--dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}
.contact-form button:hover{ background: var(--dark2); }

/* MAP header */
.map-head{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}

.map-logo{
  width: 62px;
  height: 62px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}

.map-sub{
  margin: 4px 0 0;
  font-size: 13px;
  color: #666;
}

/* mapa */
.map-wrap{
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  flex: 1;
  min-height: 280px;
  background: #eee;
}
.map-wrap iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* gumbi ispod mape */
.map-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

.map-btn{
  display:inline-block;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid var(--border);
  background:#fff;
  color: var(--text);
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.map-btn:hover{ background:#f2f2f2; }

.map-btn.primary{
  background: var(--dark);
  color:#fff;
  border-color: var(--dark);
}
.map-btn.primary:hover{ background: var(--dark2); }

/* CTA call */
.call-button{
  display: inline-block;
  margin-top: auto;
  padding: 12px 16px;
  background: var(--dark);
  color: #fff !important;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 900;
  text-align: center;
}
.call-button:hover{ background: var(--dark2); }

/* responsive kontakt */
@media (max-width: 1100px){
  .contact-3col{ grid-template-columns: 1fr; }
  .contact-card{ min-height: auto; }
  .map-wrap{ height: 260px; }
}

/* ===== FOOTER ===== */
.footer{
  background: transparent;
  color: #222;
  margin-top: 8px;
  padding: 10px 0 16px;
}

.footer-inner,
.footer-copy{
  width: var(--container);
  margin: 0 auto;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.3;
}

.footer a,
.footer a:visited,
.footer a:hover,
.footer a:active{
  color: #222;
  text-decoration: none;
}
.footer a:hover{ text-decoration: underline; }

.sep{ opacity: 0.5; }

.footer-copy{
  margin-top: 6px;
  font-size: 12px;
  text-align: center;
  opacity: 0.75;
}

/* Razmak nakon usluga */
#usluge{
  margin-bottom: 28px;
}

/* Kontakt kao odvojeni blok */
#kontakt{
  margin-top: 28px;
}

/* Separator između usluga i kontakta */
#usluge::after{
  content: "";
  display: block;
  height: 1px;
  background: #e6e6e6;
  margin-top: 22px;
}

.hero,
section{
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Usklađeno zaglavlje i prikaz na manjim zaslonima. */
.header-wrap { width: var(--container); }
.header-3col { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 24px; min-height: 128px; padding: 10px 0; }
.brand-center { position: static; transform: none; justify-self: center; }
.header-left, .contact-card, .service-card { min-width: 0; }
.header-nav-right { justify-content: flex-end; }
.brand-slogan { max-width: 330px; line-height: 1.5; font-size: 14px; }
.header-logo { height: 108px; max-width: 100%; object-fit: contain; }
:root { --headerH: 128px; }
#usluge::after { content: none; }
.services { margin-top: 20px; }
.contact-card a { overflow-wrap: anywhere; }
.map-wrap { position: relative; }
.map-wrap iframe { position: absolute; inset: 0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b65300; outline-offset: 4px; }
.hero .button.primary { background: #b65300; border-color: #b65300; }
@media (max-width: 1000px) {
  :root { --headerH: 170px; }
  .header-3col { grid-template-columns: minmax(0, 1fr) 88px; gap: 10px 16px; }
  .brand-center { justify-self: end; }
  .header-logo { height: 76px; }
  .header-nav-right { grid-column: 1 / -1; justify-content: space-between; gap: 4px; flex-wrap: wrap; }
  .header-nav-right a { padding: 10px 8px; }
  .brand-slogan { font-size: 14px; }
}
@media (max-width: 520px) {
  :root { --container: calc(100% - 24px); --headerH: 158px; }
  section { padding: 20px 16px; }
  .hero { padding: 26px 20px; }
  .contact-card { padding: 16px; }
  .hero-buttons { gap: 10px; }
  .hero .button { text-align: center; width: 100%; }
  .footer-inner { line-height: 1.8; }
}

.hero .hero-announcement { border-left: 3px solid var(--accent); padding-left: 14px; margin: 22px 0; }
.service-card--featured { grid-column: 1 / -1; border: 1px solid #b65300; border-top-width: 4px; padding: 26px; }
.service-badge { display: inline-block; color: #914200; background: #fff1e4; padding: 6px 10px; border-radius: 6px; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.service-card--featured h3 { font-size: 26px; }
.service-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 22px 0 12px; }
.service-details h4 { margin: 0 0 8px; font-size: 18px; }
.service-card { display: flex; flex-direction: column; border-top: 4px solid #b65300; }
.service-link { display: inline-block; align-self: flex-start; margin-top: auto; padding: 14px 0 4px; }
.service-badge { align-self: flex-start; }
@media (max-width: 600px) {
  .service-details { grid-template-columns: 1fr; gap: 12px; }
  .service-card--featured { padding: 20px; }
  .service-card--featured h3 { font-size: 23px; }
}


/* Jednake kartice usluga, sa sadržajem koji se prilagođava zaslonu. */
.services { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }


/* Fotografije stvarnih radova. */
.work-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 22px; }
.work-card { min-width: 0; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.work-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; background: #edf0f3; }
.work-photos a { display: block; min-width: 0; }
.work-photos img { display: block; width: 100%; height: 300px; object-fit: contain; }
.work-photos--single { grid-template-columns: 1fr; }
.work-caption { padding: 20px; }
.work-caption p { margin-bottom: 0; }
.gallery-hint { font-size: 14px; color: #555; }
@media (max-width: 760px) { .work-gallery { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .work-photos img { height: 210px; } .work-caption { padding: 16px; } }

.company-details { font-size: 14px; color: var(--text); margin: 12px 0 8px; }
