/* Paleta iz brand book-a */
:root {
  --orange: #F57C00;      /* akcent / CTA */
  --orange-dark: #D96D00;
  --anthracite: #2B2B2B;  /* tekst / header */
  --green: #1F4D2E;       /* priroda / akcent */
  --metal: #B8BCC2;       /* detalji / ikonice */
  --light: #E6E6E6;       /* pozadine / kartice */
  --white: #FFFFFF;       /* glavna pozadina */

  --head: "Barlow Condensed", "Arial Narrow", sans-serif;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 68px; }
body {
  margin: 0;
  font-family: "Barlow", system-ui, sans-serif;
  font-size: 1.0625rem;
  color: var(--anthracite);
  background: var(--white);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--head); line-height: 1.05; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; }
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-block;
  padding: 14px 26px;
  border: 0;
  border-radius: 2px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--head);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--orange-dark); }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: var(--anthracite); color: var(--white); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo__mark { width: 34px; height: 41px; }
.logo__text { font-family: var(--head); font-weight: 800; font-size: 1.7rem; letter-spacing: 0.03em; line-height: 0.9; }
.logo__text small { display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; color: var(--metal); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--light); }
.nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.nav__phone { font-family: var(--head); font-weight: 700 !important; font-size: 1.25rem !important; color: var(--orange) !important; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--white); }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; background: #F2F2F0; }
.hero__text { padding: 88px 56px 80px max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); font-weight: 800; max-width: 15ch; margin-bottom: 26px; }
.hero__lead { max-width: 480px; color: #454545; margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.link-arrow { font-weight: 600; text-underline-offset: 4px; }
.link-arrow:hover { color: var(--orange-dark); }
.hero__media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; object-position: 40% 30%; }

/* Usluge */
.services { background: var(--anthracite); color: var(--white); padding: 88px 0 72px; }
.services h2 { margin-bottom: 36px; }
.service {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid rgba(184, 188, 194, .3);
}
.service h3 { font-size: 1.6rem; font-weight: 700; color: var(--orange); }
.service p { max-width: 620px; color: #d3d5d8; }

/* Ko smo */
.about { display: grid; grid-template-columns: 1.3fr 1fr; background: var(--green); color: var(--white); }
.about__text { padding: 80px 64px 80px max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.about h2 { margin-bottom: 6px; }
.about__names { font-family: var(--head); font-size: 1.7rem; font-weight: 600; color: var(--orange); margin-bottom: 28px; }
.about__text p:not(.about__names) { max-width: 540px; color: rgba(255, 255, 255, .88); }
.about__text p + p { margin-top: 14px; }
.about__media img { width: 100%; height: 100%; min-height: 360px; object-fit: cover; }

/* Pitanja */
.faq { padding: 88px 0; }
.faq__inner { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--metal); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 36px 20px 0;
  position: relative;
  font-family: var(--head);
  font-size: 1.5rem;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 2rem; font-weight: 600; color: var(--orange); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: #454545; max-width: 640px; }

/* Kontakt */
.contact { background: var(--light); padding: 88px 0; }
.contact__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: start; }
.contact h2 { margin-bottom: 14px; }
.contact__phone {
  display: inline-block;
  font-family: var(--head);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--orange);
  text-decoration: none;
  margin-bottom: 14px;
}
.contact__phone:hover { color: var(--orange-dark); }
.contact__info p { color: #454545; }
.contact__info p + p { margin-top: 10px; }

.form { background: var(--white); padding: 32px; display: grid; gap: 16px; border-top: 4px solid var(--anthracite); }
.form__title { font-family: var(--head); font-size: 1.45rem; font-weight: 700; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: 0.95rem; }
.form input, .form textarea {
  font: inherit;
  font-weight: 400;
  padding: 11px 12px;
  border: 1px solid var(--metal);
  border-radius: 2px;
  background: var(--white);
  color: var(--anthracite);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.form textarea { resize: vertical; }
.form .btn { justify-self: start; }

/* Footer */
.footer { background: var(--anthracite); color: var(--metal); font-size: 0.92rem; }
.footer__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer strong { color: var(--white); font-family: var(--head); font-size: 1.1rem; margin-right: 4px; }

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

/* Responsive */
@media (max-width: 900px) {
  .hero, .about { grid-template-columns: 1fr; }
  .hero__text, .about__text { padding: 56px 24px; }
  .hero__media img { min-height: 0; height: 320px; }
  .about__media { order: -1; }
  .about__media img { min-height: 0; height: 260px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .service { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .hero__text, .about__text { padding: 48px 16px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 16px 16px;
    background: var(--anthracite);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid rgba(184, 188, 194, .15); }
  .nav a:last-child { border-bottom: 0; }
  .services, .faq, .contact { padding: 60px 0; }
  .form { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Blog */
.blog { padding: 64px 0 96px; min-height: 60vh; }
.blog__head { margin-bottom: 40px; }
.blog__head h1 { font-size: clamp(2.6rem, 6vw, 3.8rem); font-weight: 800; margin-bottom: 8px; }
.blog__head p { color: #454545; }

.post-list { list-style: none; margin: 0; padding: 0; max-width: 860px; }
.post-list__state { color: #6b6f75; padding: 24px 0; }
.post-item { display: grid; grid-template-columns: 220px 1fr; gap: 28px; padding: 28px 0; border-top: 1px solid var(--light); }
.post-item:not(:has(.post-item__img)) { grid-template-columns: 1fr; }
.post-item__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.post-item time { font-size: 0.9rem; color: #6b6f75; }
.post-item h2 { font-size: 1.8rem; margin: 4px 0 8px; }
.post-item h2 a { text-decoration: none; }
.post-item h2 a:hover { color: var(--orange-dark); text-decoration: underline; text-underline-offset: 4px; }
.post-item p { color: #454545; }

.article { max-width: 760px; }
.article__back { display: inline-block; margin-bottom: 28px; font-weight: 600; text-decoration: none; color: #6b6f75; }
.article__back:hover { color: var(--anthracite); }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 12px; }
.article__meta { color: #6b6f75; margin-bottom: 32px; }
.article__cover { width: 100%; margin-bottom: 36px; }
.article__body { font-size: 1.12rem; line-height: 1.75; }
.article__body > * + * { margin-top: 1.1em; }
.article__body h2 { font-size: 2rem; margin-top: 1.6em; }
.article__body h3 { font-size: 1.5rem; margin-top: 1.4em; }
.article__body img { margin: 1.6em 0; }
.article__body blockquote { margin-left: 0; padding-left: 20px; border-left: 4px solid var(--orange); color: #454545; }
.article__body a { color: var(--green); text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-left: 1.3em; }
.article__body .ql-align-center { text-align: center; }
.article__body .ql-align-right { text-align: right; }

@media (max-width: 640px) {
  .post-item { grid-template-columns: 1fr; gap: 14px; }
  .blog { padding: 44px 0 64px; }
}

/* Strane usluga */
.page-body { padding: 72px 0 96px; }
.page-body__inner { max-width: 760px; }
.page-body h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin: 44px 0 14px; }
.page-body h2:first-child { margin-top: 0; }
.page-body p { color: #454545; }
.page-body p + p { margin-top: 12px; }
.page-body .checks { margin: 0 0 16px; }
.checks--dark li { color: var(--anthracite); font-weight: 500; }
.page-body__cta { margin-top: 36px !important; }
.service p a { color: var(--white); text-underline-offset: 3px; white-space: nowrap; }
.service p a:hover { color: var(--orange); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.4em; width: 14px; height: 8px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg); }
