/* STANDEKOR preview. Mobile first, sistemski fontovi, bez vanjskih resursa. */

:root {
  --bg: #faf6f0;          /* topla krem podloga */
  --surface: #fffdfa;
  --ink: #1b242c;         /* tamna tinta za tekst */
  --muted: #5d6771;
  --accent: #12333d;      /* duboka morska zelena, iz fotografija */
  --accent-soft: #e7eeef;
  --line: #e6ded2;
  --tag: #8a6a3a;         /* topli mesing, za oznaku primjera */
  --wa: #1f7a4d;
  --radius: 10px;
  --pad: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h2 { font-size: 26px; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; }

a { color: var(--accent); }

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

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #fff; padding: 12px 16px; z-index: 10;
}
.skip:focus { left: 0; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 var(--pad); }
.wrap--narrow { max-width: 640px; }

.section { padding: 44px 0; }
.section--intro { padding-bottom: 20px; }
.section--ba { background: var(--surface); border-block: 1px solid var(--line); }
.section--form { background: var(--accent-soft); border-block: 1px solid var(--line); }

/* ---------- Gumbi ---------- */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 13px 20px;
  min-height: 48px;
  cursor: pointer;
}
.btn--big { padding: 16px 26px; font-size: 18px; }
.btn--full { width: 100%; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #0c2630; }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12, 26, 32, .74) 0%, rgba(12, 26, 32, .82) 100%);
}
.hero__inner { max-width: 1000px; margin: 0 auto; padding: 64px var(--pad) 56px; }
.hero__eyebrow {
  margin: 0 0 10px; font-size: 13px; letter-spacing: .16em;
  text-transform: uppercase; color: #d8c9ae;
}
.hero__name { font-size: 40px; letter-spacing: .06em; margin-bottom: 6px; }
.hero__tagline { font-size: 20px; font-weight: 600; margin-bottom: 14px; color: #f2e9da; }
.hero__line { color: #e2e6e7; margin-bottom: 26px; }

/* ---------- Prije i poslije ---------- */
.ba { margin: 0 0 40px; }
.ba__switch { display: flex; gap: 8px; margin-bottom: 12px; }
.ba__btn {
  font: inherit; font-weight: 600;
  padding: 11px 22px; min-height: 46px;
  border: 1px solid var(--accent); border-radius: var(--radius);
  background: transparent; color: var(--accent); cursor: pointer;
}
.ba__btn.is-active { background: var(--accent); color: #fff; }
.ba__stage {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ddd6ca;
  border-radius: var(--radius);
  overflow: hidden;
}
.ba__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 200ms ease;
}
.ba__img.is-visible { opacity: 1; }
.ba figcaption { margin-top: 12px; color: var(--muted); }

.gallery__title { margin-top: 32px; }
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 12px; grid-template-columns: 1fr;
}
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius);
}

/* ---------- Usluge ---------- */
.pricebanner {
  background: #fff4dd;
  border: 1px solid #e6cfa2;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card p { color: var(--muted); }
.card__price { color: var(--ink) !important; font-weight: 600; }
.tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--tag); background: #f6ecd9; border: 1px solid #e6cfa2;
  border-radius: 4px; padding: 2px 6px; margin-right: 6px;
  vertical-align: 2px;
}

/* ---------- Obrazac ---------- */
.field { margin-bottom: 22px; }
.field--fs { border: 0; padding: 0; margin-inline: 0; }
label, legend { display: block; font-weight: 600; margin-bottom: 7px; padding: 0; }
.opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="number"], select, textarea, input[type="file"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid #b9c2c6;
  border-radius: var(--radius);
  padding: 13px 14px;
  min-height: 50px;
}
textarea { min-height: 110px; resize: vertical; }
input[type="file"] { padding: 12px; }
.hint { font-size: 15px; color: var(--muted); margin: 7px 0 0; }
.err { color: #9b2226; font-size: 15px; margin: 7px 0 0; min-height: 0; }
.err:empty { display: none; }
.is-bad input, .is-bad select, .is-bad textarea { border-color: #9b2226; }

.conds { display: grid; gap: 10px; }
.cond { display: block; margin: 0; font-weight: 400; cursor: pointer; }
.cond input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cond__box {
  display: block;
  background: #fff;
  border: 2px solid #c9d1d4;
  border-radius: var(--radius);
  padding: 16px;
}
.cond input:focus-visible + .cond__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.cond input:checked + .cond__box { border-color: var(--accent); background: #f4f9fa; }
.cond__name { display: block; font-weight: 700; }
.cond__desc { display: block; color: var(--muted); }
.cond__range { display: none; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 15px; }
.cond input:checked + .cond__box .cond__range { display: block; }

.why { margin: 16px 0 0; font-size: 17px; font-weight: 600; }
.privacy { font-size: 14px; color: var(--muted); margin-top: 10px; }

.done {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
}
.done h3 { margin-bottom: 8px; }
.done__note { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Kontakt i podnozje ---------- */
.contact { list-style: none; margin: 0 0 14px; padding: 0; }
.contact li { margin-bottom: 10px; }
.contact a { font-size: 19px; font-weight: 600; }
.hours { color: var(--muted); font-size: 15px; }
.foot { background: var(--accent); color: #cfd9db; padding: 22px 0; font-size: 14px; }

/* ---------- Sire od telefona ---------- */
@media (min-width: 600px) {
  .hero__name { font-size: 54px; }
  .hero__inner { padding: 96px var(--pad) 84px; }
  h2 { font-size: 31px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
