:root {
  --bg: #121418;
  --bg-2: #1b1e24;
  --card: #22262e;
  --text: #e7e2d8;
  --muted: #b7b1a6;
  --soft: #cfc9be;
  --line: rgba(231, 226, 216, 0.12);
  --copper: #c4845a;
  --copper-2: #e0a57a;
  --ink: #1a140f;
  --header: 72px;
  --max: 1160px;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

h1, h2, h3 {
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 { margin: 0; }

h2 {
  margin: 0 0 1.35rem;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

h3 { margin: 0; }

p { margin: 0 0 0.9rem; }

a { color: inherit; }

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

::selection { background: var(--copper); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 80;
  background: var(--copper);
  color: var(--ink);
  padding: 0.45rem 0.75rem;
  text-decoration: none;
}

.skip:focus { top: 12px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--copper);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header);
  background: rgba(18, 20, 24, 0.94);
  overflow: visible;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: #121418;
  border-bottom-color: var(--line);
}

.header-bar {
  height: 100%;
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.05rem;
}

.logo img { width: 28px; height: 28px; }

.site-nav { margin-left: auto; }

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a,
.sub-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.72rem;
  background: none;
  border: 0;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
}

.nav-list a:hover,
.sub-toggle:hover,
.nav-list a[aria-current="page"] { color: var(--copper-2); }

.has-sub { position: relative; }

.sub-toggle::after {
  content: "";
  margin-left: 0.4rem;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}

.submenu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 260px;
  background: var(--bg-2);
  border: 1px solid rgba(196, 132, 90, 0.4);
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  z-index: 60;
}

.has-sub:hover > .submenu,
.has-sub:focus-within > .submenu,
.has-sub.is-open > .submenu { display: block; }

.submenu a {
  display: flex;
  width: 100%;
  padding: 0.55rem 0.7rem;
  min-height: 40px;
}

.submenu a:hover { background: rgba(196, 132, 90, 0.1); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.65rem 1.05rem;
  border: 1px solid transparent;
  background: var(--copper);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn:hover { background: var(--copper-2); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(231, 226, 216, 0.28);
}

.btn-ghost:hover {
  background: transparent;
  border-color: var(--copper);
  color: var(--copper-2);
}

.btn-hot {
  min-height: 38px;
  padding: 0.35rem 0.75rem;
  background: transparent;
  color: var(--copper-2);
  border-color: rgba(196, 132, 90, 0.75);
  font-size: 0.86rem;
  white-space: nowrap;
}

.btn-hot:hover {
  background: var(--copper);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin-left: 4px;
  border: 1px solid rgba(231, 226, 216, 0.22);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before { top: -6px; }
.nav-toggle-lines::after { top: 6px; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  overflow: hidden;
  background: #0c0d10;
}

.hero-media { position: absolute; inset: 0; }

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.hero-media.is-live img { animation: hero-breathe 22s ease-in-out infinite; }

@keyframes hero-breathe {
  0%, 100% { transform: scale(1.06) translate3d(0, 0, 0); }
  50% { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 20, 24, 0.94) 0%, rgba(18, 20, 24, 0.72) 36%, rgba(18, 20, 24, 0.28) 68%, rgba(18, 20, 24, 0.2) 100%),
    linear-gradient(to top, rgba(18, 20, 24, 0.88), rgba(18, 20, 24, 0.05) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  padding: 7.5rem 0 6.5rem;
}

.hero h1 {
  max-width: min(11em, 100%);
  font-size: clamp(2.7rem, 6.2vw, 5.15rem);
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--copper-2); }

.hero-lead {
  max-width: 34rem;
  margin: 0;
  color: var(--soft);
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1.45rem;
}

.hero-meta {
  margin: 1.3rem 0 0;
  color: var(--muted);
  letter-spacing: 0.03em;
  font-size: 0.95rem;
}

#usluge,
#servis-hitne,
#o-nama,
#zasto,
#kontakt { scroll-margin-top: 84px; }

.section { padding: 4.6rem 0; }
.section-alt { background: var(--bg-2); }

.service-grid,
.pair,
.footer-grid,
.split,
.contact-grid,
.page-layout,
.form-row,
.reasons {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}

.card {
  background: var(--card);
  border: 1px solid rgba(231, 226, 216, 0.08);
  box-shadow: inset 0 2px 0 transparent;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-media {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background: #14171c;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.card-body {
  padding: 1.05rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.card h3 { font-size: 1.22rem; }

.card h3 a { color: inherit; text-decoration: none; }

.card h3 a:hover { color: var(--copper-2); }

.card p { margin: 0; color: var(--soft); }

.more {
  margin-top: auto;
  color: var(--copper-2);
  text-decoration: none;
  font-weight: 600;
}

.more::after { content: " →"; }

.more:hover { color: var(--text); }

.split,
.contact-grid,
.page-layout {
  gap: 28px;
}

.split img,
.page-figure img,
.inline-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #14171c;
}

.about-copy p:last-child { margin-bottom: 0; }

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.reasons li { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }

.reasons span {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.reasons h3 { margin-bottom: 0.4rem; font-size: 1.2rem; }

.reasons p { margin: 0; color: var(--soft); }

.lead-short {
  max-width: 36rem;
  color: var(--soft);
}

.field { margin-bottom: 0.9rem; }

.form-row { gap: 0.9rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.88rem;
  color: var(--soft);
}

input,
textarea {
  width: 100%;
  appearance: none;
  background: var(--bg);
  border: 1px solid #3a3f48;
  border-radius: 0;
  padding: 0.85rem 0.9rem;
}

textarea { min-height: 150px; resize: vertical; }

input:focus,
textarea:focus { border-color: var(--copper); }

.form-note {
  min-height: 1.4em;
  margin: 0.8rem 0 0;
  color: var(--muted);
}

.form-note.is-ok { color: #d5deC4; }
.form-note.is-err { color: #e7b2a4; }

.address { line-height: 1.6; }
.address a { color: var(--copper-2); }

.map-frame {
  margin-top: 1rem;
  aspect-ratio: 16 / 10;
  background: #14171c;
  border: 1px solid var(--line);
  overflow: hidden;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.45) contrast(1.05) brightness(0.88);
}

.map-link { margin-top: 0.85rem; }

.site-footer {
  background: #0e1013;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.4rem;
}

.footer-grid { gap: 1.6rem; }

.footer-name {
  margin: 0 0 0.25rem;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.footer-grid p { margin: 0 0 0.35rem; color: var(--soft); }
.footer-grid a { color: var(--text); text-decoration: none; }
.footer-grid a:hover { color: var(--copper-2); }

.social-row { margin: 0.75rem 0 0.15rem; }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(231, 226, 216, 0.28);
}

.social img { width: 18px; height: 18px; }

.social:hover,
.social:focus-visible { border-color: var(--copper); }

.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { display: inline-block; padding: 0.18rem 0; color: var(--soft); }

.footer-base {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: #8f897f;
  font-size: 0.88rem;
}

.footer-base p { margin: 0; }

.callbar { display: none; }

.page-hero {
  padding: 4.2rem 0 1.8rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(880px 260px at 0% 0%, rgba(196, 132, 90, 0.16), transparent 62%),
    var(--bg);
}

.page-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.3rem, 5vw, 4.1rem);
}

.page-lead {
  max-width: 36rem;
  margin: 0.9rem 0 0;
  color: var(--soft);
  font-size: 1.15rem;
}

.crumb { color: var(--muted); }
.crumb a { color: var(--copper-2); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-main { padding-bottom: 4.5rem; }

.prose p { color: var(--soft); }

.prose h2 { font-size: 1.35rem; margin: 1.5rem 0 0.6rem; }

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  padding: 0.6rem 0;
  border-top: 1px solid var(--line);
}

.work-list li:last-child { border-bottom: 1px solid var(--line); }

.inline-photo { margin: 1.2rem 0 0; }

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 1.4rem;
}

.link-back { color: var(--muted); text-decoration: none; }
.link-back:hover { color: var(--text); }

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-in { opacity: 1; transform: none; }

@media (min-width: 720px) {
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reasons li { padding: 1.4rem 1.3rem 1.4rem 0; border-bottom: 0; border-right: 1px solid var(--line); }
  .reasons li:nth-child(2n) { border-right: 0; padding-right: 0; padding-left: 1.3rem; }
  .reasons li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

@media (min-width: 860px) {
  .pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-wide { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.9fr); }
}

@media (min-width: 960px) {
  .split,
  .contact-grid,
  .page-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: start; }
  .page-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); padding-top: 2.2rem; }
  .page-main { padding-top: 0; }
}

@media (min-width: 1100px) {
  .service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .service-grid .card { grid-column: span 2; }
  .service-grid .card:nth-child(4) { grid-column: 2 / span 2; }
  .service-grid .card:nth-child(5) { grid-column: 4 / span 2; }
  .reasons { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reasons li {
    border-top: 0;
    border-right: 1px solid var(--line);
    padding: 1.5rem 1.2rem 0 0;
  }
  .reasons li:nth-child(2n) { padding-left: 0; border-right: 1px solid var(--line); }
  .reasons li:last-child { border-right: 0; }
}

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { margin-left: 0; }
  .btn-hot { margin-left: auto; }

  .site-nav {
    display: none;
    position: fixed;
    z-index: 45;
    inset: var(--header) 0 54px 0;
    margin: 0;
    padding: 8px 12px 28px;
    background: #121418;
    overflow: auto;
  }

  .site-header.is-open .site-nav { display: block; }

  .nav-list { flex-direction: column; align-items: stretch; }

  .nav-list a,
  .sub-toggle {
    width: 100%;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-inline: 4px;
  }

  .submenu {
    position: static;
    display: none;
    min-width: 0;
    border: 0;
    background: transparent;
    padding: 0 0 8px 12px;
  }

  .has-sub:hover > .submenu,
  .has-sub:focus-within > .submenu { display: none; }

  .has-sub.is-open > .submenu { display: block; }

  .submenu a { border-bottom: 0; min-height: 42px; }
}

@media (max-width: 899px) {
  .callbar {
    position: fixed;
    z-index: 60;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #1b1e24;
    border-top: 1px solid rgba(196, 132, 90, 0.5);
  }

  .callbar a {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
  }

  .callbar a:first-child { background: var(--copper); color: var(--ink); }
  .callbar a:last-child { color: var(--text); }

  body { padding-bottom: 54px; }

  .hero h1 { font-size: clamp(2.15rem, 8.6vw, 3rem); }
  .hero-lead { max-width: 100%; font-size: 1.05rem; }
  .hero-content { padding-bottom: 8.6rem; }
  .header-bar,
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .btn-hot { font-size: 0.78rem; padding: 0.32rem 0.48rem; }
  .page-layout > *,
  .split > *,
  .contact-grid > *,
  .card { min-width: 0; }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover { transform: translateY(-4px); box-shadow: inset 0 2px 0 var(--copper); }
  .card:hover .card-media img { transform: scale(1.04); }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .card:hover { box-shadow: inset 0 2px 0 var(--copper); }
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img,
  .hero-media.is-live img { animation: none; transform: scale(1.06); }
  .card,
  .card-media img { transition: none; }
}

@media (max-width: 420px) {
  .btn-hot { padding-inline: 0.5rem; }
  .logo span { font-size: 0.98rem; }
}
