/* ELEN GRADNJA – izgled preuzet sa starog sajta (Zakra + Elementor), bez WordPress-a */
:root {
  --red: #f05047;
  --red-dark: #d9372e;
  --navy: #081726;
  --grey-band: #67727c;
  --text: #222;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --wrap: 1240px;
  --f-ui: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-title: "Raleway", "Segoe UI", Arial, sans-serif;
  --f-head: "Roboto", "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--f-ui); color: var(--text); background: #fff; font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: calc(var(--wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.i { width: 14px; height: 14px; fill: currentColor; display: inline-block; vertical-align: -2px; margin-right: 5px; }

/* top bar */
.topbar { background: var(--red); color: #fff; font-size: 13.5px; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 22px; padding-top: 9px; padding-bottom: 9px; }
.topbar a:hover { opacity: .85; }

/* header */
.header { background: #fff; border-bottom: 1px solid #f1f1f1; }
.header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 162px; }
.logo img { width: 400px; height: auto; margin-left: 0; }
.nav { display: flex; gap: 30px; }
.nav a { font-family: var(--f-title); font-size: 22px; text-transform: uppercase; color: #222; letter-spacing: .2px; transition: color .2s; }
.nav a:hover, .nav a.active { color: var(--red); }
.menu-toggle, .burger { display: none; }

/* hero */
.hero { position: relative; min-height: 516px; display: flex; align-items: center; background: #3a3a3a center / cover no-repeat; color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.hero .wrap { position: relative; width: 100%; max-width: none; padding-left: 115px; }
.hero-sub { font-family: var(--f-head); font-weight: 400; font-size: 27px; text-transform: uppercase; margin: 0 0 14px; letter-spacing: .3px; }
.hero h1 { font-family: var(--f-head); font-weight: 700; font-size: 47px; line-height: 1.15; margin: 0 0 22px; }
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--red); color: #fff; font-family: var(--f-head); font-weight: 500; font-size: 15px; padding: 14px 32px; border-radius: 30px; transition: background .2s; }
.btn:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-ghost:hover { background: var(--red); color: #fff; }

/* projects band (home) */
.projects-band { background: var(--red); padding: 50px 0 70px; }
.projects-band h2 { font-family: var(--f-head); font-weight: 700; font-size: 50px; color: #fff; text-align: center; margin: 0 0 34px; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
.card { display: block; text-align: center; }
.card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .35s, filter .35s; }
.card { overflow: hidden; }
.card:hover img { filter: brightness(1.06); }
.card span { display: block; font-family: var(--f-title); font-weight: 600; font-size: 18px; line-height: 1.35; color: #222; padding: 20px 30px 18px; }
.projects-band .card span { color: #1d1d1d; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px; padding: 110px 10px 110px 10px; max-width: 1440px; margin: 0 auto; }
.about-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about-text { padding: 0 60px 0 0; }
.about-text h2 { font-family: var(--f-head); font-weight: 400; font-size: 46px; color: var(--red); text-transform: uppercase; margin: 0 0 22px; }
.about-text p { font-family: var(--f-ui); font-size: 16px; line-height: 1.95; margin: 0 0 14px; color: #111; }

/* page head (grey band) */
.page-head { background: var(--grey-band); color: #fff; }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 118px; padding-top: 20px; padding-bottom: 20px; }
.page-head h1 { font-family: var(--f-title); font-weight: 600; font-size: 38px; line-height: 1.2; margin: 0; text-transform: none; }
.crumbs { font-family: var(--f-title); font-size: 17px; white-space: nowrap; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 9px; }

/* projects page */
.projects-page { padding: 34px 0 40px; }
.red-title { font-family: var(--f-head); font-weight: 700; font-size: 46px; color: var(--red); text-align: center; margin: 0 0 34px; }
.projects-page .grid { gap: 16px; }

/* project */
.project { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 60px; padding-top: 80px; padding-bottom: 70px; }
.project-main { min-width: 0; }
.main-img { width: 100%; }
.caption { font-family: var(--f-title); font-size: 15px; color: var(--muted); margin: 20px 0 22px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 40px; margin: 0 0 18px; }
.facts dt { font-family: var(--f-head); font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--red); }
.facts dd { margin: 0; }
.desc p { margin: 0 0 14px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin: 10px 0 40px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .2s; }
.gallery a:hover img { opacity: .85; }
.prevnext { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; font-family: var(--f-title); font-size: 15px; }
.prevnext div:last-child { text-align: right; }
.prevnext a:hover { color: var(--red); }
.sidebar { border-left: 1px solid var(--line); padding-left: 60px; }
.side-nav a { display: block; font-family: var(--f-title); font-size: 15px; text-transform: uppercase; padding: 10px 0; border-bottom: 1px solid var(--line); }
.side-nav a:last-child { border-bottom: 0; }
.side-nav a:hover { color: var(--red); }
.sidebar h4 { font-family: var(--f-title); font-weight: 600; font-size: 17px; margin: 46px 0 22px; }
.side-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.side-grid img { aspect-ratio: 1 / 1; object-fit: cover; }

/* contact */
.contact { display: grid; grid-template-columns: 690px minmax(0, 1fr); gap: 60px; align-items: start; padding: 100px 0; }
.map iframe { width: 100%; height: 500px; border: 0; display: block; }
.contact-info { padding-right: 40px; }
.contact-info h2 { font-family: var(--f-head); font-weight: 500; font-size: 52px; line-height: 1.1; margin: 30px 0 40px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 40px; padding-left: 10px; }
.info-grid h3 { font-family: var(--f-head); font-weight: 700; font-size: 18px; text-transform: uppercase; margin: 0 0 18px; }
.info-grid p { font-family: var(--f-head); font-size: 16px; margin: 0 0 26px; }
.info-grid a:hover { color: var(--red); }

.notfound { padding: 80px 0; text-align: center; font-size: 17px; }
.notfound .btn { margin: 8px; }

/* footer */
.footer { background: var(--navy); color: #c9ced4; font-size: 14px; }
.footer .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 60px; padding-bottom: 50px; }
.footer h4 { font-family: var(--f-title); font-weight: 600; color: #fff; font-size: 17px; margin: 0 0 14px; }
.footer p { margin: 0; line-height: 1.9; }
.footer a:hover { color: #fff; }
.footer .copy { text-align: center; padding: 26px 20px 30px; font-size: 13.5px; }
.totop { position: fixed; right: 22px; bottom: 22px; width: 42px; height: 42px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; opacity: 0; pointer-events: none; transition: opacity .3s; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.totop.show { opacity: 1; pointer-events: auto; }

/* lightbox */
.lbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.lbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.lbox button { position: absolute; background: none; border: 0; color: #fff; font-size: 44px; cursor: pointer; padding: 10px 18px; line-height: 1; opacity: .8; }
.lbox button:hover { opacity: 1; }
.lbox .x { top: 10px; right: 10px; font-size: 38px; }
.lbox .pv { left: 10px; top: 50%; transform: translateY(-50%); }
.lbox .nx { right: 10px; top: 50%; transform: translateY(-50%); }
.lbox .cnt { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 13px; }

/* responsive */
@media (max-width: 1100px) {
  .hero .wrap { padding-left: 40px; }
  .project { grid-template-columns: 1fr; gap: 40px; }
  .sidebar { border-left: 0; padding-left: 0; }
  .side-nav { display: none; }
  .sidebar h4 { margin-top: 0; }
  .side-grid { grid-template-columns: repeat(4, 1fr); }
  .contact { grid-template-columns: 1fr; padding: 0 0 60px; gap: 30px; }
  .contact-info { padding: 0 20px; }
  .about-text { padding: 0 20px; }
}
@media (max-width: 860px) {
  .header .wrap { min-height: 90px; flex-wrap: wrap; }
  .logo img { width: 220px; margin-left: 0; }
  .burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
  .burger span { width: 26px; height: 3px; background: #222; border-radius: 2px; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 12px; }
  .menu-toggle:checked ~ .nav { display: flex; }
  .nav a { font-size: 17px; padding: 12px 0; border-top: 1px solid #f0f0f0; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; padding: 60px 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .page-head .wrap { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
  .page-head h1 { font-size: 28px; }
  .crumbs { white-space: normal; font-size: 14px; }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .topbar .wrap { font-size: 12.5px; gap: 2px 14px; }
  .hero { min-height: 420px; }
  .hero .wrap { padding-left: 20px; }
  .hero-sub { font-size: 18px; }
  .hero h1 { font-size: 32px; }
  .projects-band h2, .red-title { font-size: 32px; }
  .grid { grid-template-columns: 1fr; }
  .about-text h2 { font-size: 34px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .side-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-info h2 { font-size: 34px; }
  .info-grid { grid-template-columns: 1fr; padding-left: 0; gap: 0; }
  .info-grid p { margin-bottom: 12px; }
  .map iframe { height: 340px; }
  .footer .cols { grid-template-columns: 1fr; gap: 26px; padding-top: 40px; }
}
