/* =========================================================
   Bike Office Šime — stil stranice (verzija za objavu)
   Samo pravila koja koriste index.html, privatnost.html i 404.html.
   ========================================================= */

:root {
  --cream: #f6efe4;
  --paper: #fbf7f0;
  --brown-100: #ede1cf;
  --brown-300: #c9a983;
  --brown-500: #8a5f3f;
  --brown-700: #5a3a26;
  --brown-800: #3d271a;
  --brown-900: #2a1b12;
  --green-600: #6b8a5a;
  --green-700: #4a6741;
  --green-800: #33482e;
  --ember: #c97a3a;
  --text: #2f2219;
  --muted: #6f5d4f;
  --line: #e2d4c0;
  --footer-muted: #b39270; /* sitan tekst u podnožju, kontrast 5,7:1 */
  --radius: 14px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Osnova ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green-700); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0 0 .5em; color: var(--brown-800); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-700); margin-bottom: .6em;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid var(--green-700);
  background: var(--green-700); color: var(--cream);
  font: 600 .95rem var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--green-800); border-color: var(--green-800); }
.btn--ghost { background: transparent; color: var(--brown-800); border-color: var(--brown-300); }
.btn--ghost:hover { background: var(--brown-100); border-color: var(--brown-500); }

/* ---------- Kontakt traka ---------- */
.topbar { background: var(--brown-900); color: var(--brown-100); font-size: .85rem; }
.topbar__inner { display: flex; flex-wrap: wrap; gap: .4em 1.6em; padding: .55em 0; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: .45em; color: inherit; text-decoration: none; }
.topbar a.topbar__item:hover { color: #fff; }
.topbar__item svg { width: 14px; height: 14px; fill: var(--brown-300); }

/* ---------- Zaglavlje s fotografijom ---------- */
.header { position: relative; background: var(--brown-900); border-bottom: 4px solid #8f6140; }
.header__photo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  object-fit: cover; object-position: 50% 44%; filter: brightness(.8) saturate(.75);
}
/* tamnosmeđi prijelaz da se tekst čita, a desno se vide dijelovi */
.header::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(42, 27, 18, .95) 0%, rgba(42, 27, 18, .78) 38%, rgba(42, 27, 18, .2) 75%, rgba(42, 27, 18, .35) 100%),
    linear-gradient(rgba(42, 27, 18, .55), transparent 30%);
}
.header__bar { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0 6px; }
.header__brand { margin: 0; font-size: inherit; line-height: inherit; }
.header__tagline { position: relative; z-index: 2; padding: 60px 0 76px; }
.header__tagline .eyebrow { color: var(--green-600); }
.header__lead { font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.2 var(--serif); color: #fff; margin: 0; max-width: 16em; }
.header__lead span { font-weight: 400; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; flex-direction: column; line-height: .95; text-decoration: none; margin: 0; }
.logo__main { font: 700 2.3rem var(--serif); color: var(--cream); letter-spacing: -.01em; }
.logo__sub { font: 400 1.6rem var(--serif); color: var(--green-600); }
.header .logo { text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.header .logo__main { font-size: 3.2rem; }
.header .logo__sub { font-size: 2.2rem; }

/* ---------- Stranica u izradi ---------- */
.soon { background: var(--paper); }
.soon__tape {
  position: relative; height: 34px; display: grid; place-items: center;
  background: repeating-linear-gradient(-45deg, var(--ember) 0 22px, var(--brown-900) 22px 44px);
}
.soon__tape span {
  background: var(--brown-900); color: var(--cream); padding: .25em 1.1em; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.soon__inner { padding: clamp(56px, 9vw, 110px) 0; max-width: 820px; text-align: center; }
.soon__title { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
.soon__lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; margin: 0 auto 28px; }
.soon__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 48px; }
.soon__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.soon__list li {
  padding: 18px 14px; border-radius: var(--radius); border: 1.5px dashed var(--brown-300);
  background: var(--cream); display: grid; gap: 4px; align-content: start;
}
.soon__list strong { font: 600 1.05rem var(--serif); color: var(--brown-800); }
.soon__list span { font-size: .85rem; color: var(--muted); }

/* ---------- Podstranice: privatnost, 404 ---------- */
.page-bar { background: var(--brown-900); border-bottom: 4px solid #8f6140; }
.page-bar .header__bar { padding: 18px 0; }
.legal { max-width: 760px; padding: clamp(40px, 6vw, 72px) 0; }
.legal h2, .page-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 600; margin-bottom: .4em; }
.legal h3 { margin-top: 2em; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal__date { color: var(--muted); font-size: .9rem; margin-top: 2.5em; }
.not-found { text-align: center; padding: clamp(64px, 10vw, 120px) 0; }
.not-found h2, .not-found .page-title { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* ---------- Podnožje ---------- */
.footer { background: var(--brown-900); color: var(--brown-300); padding: 56px 0 24px; font-size: .92rem; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer a { color: var(--brown-100); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .logo { margin-bottom: 14px; }
.footer__legal { color: var(--brown-100); }
.footer__oib { font-size: .82rem; color: var(--footer-muted); margin: 0; }
.footer__title { color: var(--cream); font-weight: 600; margin-bottom: 6px; }
.footer__contact { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.footer__contact span { color: var(--footer-muted); font-size: .85rem; }
.footer__copy { border-top: 1px solid var(--brown-700); margin-top: 40px; padding-top: 20px; font-size: .82rem; }

/* ---------- Prozor za kontakt ---------- */
.contact {
  width: min(460px, 100% - 32px); padding: 28px; border: 0; border-radius: 20px;
  background: var(--paper); color: var(--text); box-shadow: 0 24px 60px rgba(42, 27, 18, .35);
}
.contact::backdrop { background: rgba(42, 27, 18, .55); }
.contact__close {
  position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; font-size: 1.6rem; line-height: 1; color: var(--muted); cursor: pointer;
}
.contact__close:hover { background: var(--brown-100); }
.contact__head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.contact__head .eyebrow { margin: 0 0 2px; }
.contact__head h2 { font-size: 1.45rem; margin: 0; }
.avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brown-500); color: var(--cream); font: 600 1.4rem var(--serif);
}
.contact__options { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.contact__options a {
  display: block; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; text-decoration: none; color: var(--brown-800);
}
.contact__options a:hover { border-color: var(--green-700); background: #eef3ea; }
.contact__options strong { display: block; }
.contact__options small { color: var(--muted); font-size: .8rem; }
.contact__full { grid-column: 1 / -1; }

/* ---------- Prilagodba ekranu ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

@media (max-width: 960px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .header::after { background: linear-gradient(rgba(42, 27, 18, .88), rgba(42, 27, 18, .74)); }
  .header__tagline { padding: 36px 0 44px; }
  .header .logo__main { font-size: 2.3rem; }
  .header .logo__sub { font-size: 1.6rem; }
  .logo__main { font-size: 1.8rem; }
  .logo__sub { font-size: 1.25rem; }
  .soon__list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .topbar__inner { font-size: .8rem; gap: .3em 1em; }
  .footer__inner { grid-template-columns: 1fr; }
  .legal dl { grid-template-columns: 1fr; gap: 0; }
  .legal dd { margin-bottom: 10px; }
}

/* ---------- Cjenik ---------- */
.soon__btn { justify-self: center; margin-top: 10px; padding: .5em 1.3em; font-size: .88rem; }
.cjenik { max-width: 860px; }
.cjenik__intro { color: var(--muted); }
.cjenik__group { margin-top: 2.2em; }
.cjenik__group h3 { margin: 0 0 .5em; }
.cjenik__table { width: 100%; border-collapse: collapse; font-size: .95rem; table-layout: fixed; }
.cjenik__table th:nth-child(2), .cjenik__table th:nth-child(3) { width: 130px; }
.cjenik__table th {
  text-align: left; font: 600 .78rem var(--sans); letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--line); padding: 8px 10px 8px 0; vertical-align: bottom;
}
.cjenik__table th small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.cjenik__table th + th, .cjenik__price { text-align: right; white-space: nowrap; padding-left: 14px; }
.cjenik__table td { border-bottom: 1px solid var(--line); padding: 10px 10px 10px 0; vertical-align: top; }
.cjenik__price { font-weight: 600; color: var(--brown-800); }
.cjenik__base { font-weight: 400; color: var(--muted); }
.cjenik__details { margin-top: 6px; font-size: .88rem; }
.cjenik__details summary { cursor: pointer; color: var(--green-700); font-weight: 600; }
.cjenik__details ul { margin: 6px 0 2px; padding-left: 1.1em; color: var(--muted); }
.cjenik__notes { margin-top: 2.5em; background: var(--cream); border-radius: var(--radius); padding: 18px 22px; }
.cjenik__notes ul { margin: 0; padding-left: 1.1em; }
.cjenik__notes li { margin-bottom: .5em; color: var(--text); }
@media (max-width: 600px) {
  .cjenik__table { font-size: .88rem; }
  .cjenik__table th + th, .cjenik__price { padding-left: 8px; }
  .cjenik__table th:nth-child(2), .cjenik__table th:nth-child(3) { width: 84px; }
  .cjenik__table th { font-size: .7rem; letter-spacing: .02em; padding-right: 0; }
  .cjenik__table th + th { white-space: normal; }
}
.cjenik__archive { font-size: .85rem; color: var(--muted); }
