/* Mesnica Vidović — stilovi (mobilno prvo, bez frameworka) */

/* ---------- Fontovi (self-host, varijabilni, podskup latin + latin-ext) ---------- */
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/plex.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokeni ---------- */
:root {
  --bg: #f6f2eb;
  --card: #ffffff;
  --ink: #1d1b1a;
  --accent: #7a1f24;
  --accent-hover: #5e161a;
  --muted: #6e6760;
  --line: #ddd5c9;

  --font-head: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(29 27 26 / 6%), 0 8px 24px rgb(29 27 26 / 5%);
  --wrap: 1120px;
  --gap: 16px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(1.9rem, 6vw, 2.9rem);
}

h2 {
  font-size: clamp(1.4rem, 4vw, 1.95rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

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

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

/* ---------- Pomoćne klase ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid/flex djeca ne smiju rasti preko roditelja (min-content zamka) */
.card,
.shop,
.offer__item,
.about > *,
.footer__grid > * {
  min-width: 0;
}

.section {
  padding: 40px 0;
}

.section--tight {
  padding: 28px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  font-size: 1.05rem;
  color: var(--ink);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

.num {
  font-variant-numeric: tabular-nums;
}

.todo {
  border-bottom: 2px dotted var(--accent);
  color: var(--muted);
  overflow-wrap: anywhere;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  color: #fff;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn--ghost:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
}

.btn--small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.875rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
}

.header__logo {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.header__logo:hover {
  color: var(--accent);
}

.header__call {
  margin-left: auto;
}

.header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.header__nav {
  display: none;
  padding-bottom: 12px;
}

.header__nav[data-open="true"] {
  display: block;
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header__list a {
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
}

.header__list a:hover {
  color: var(--accent);
}

@media (min-width: 880px) {
  .header__bar {
    min-height: 72px;
  }

  .header__toggle {
    display: none;
  }

  .header__nav {
    display: block;
    margin-left: auto;
    padding-bottom: 0;
  }

  .header__call {
    margin-left: 12px;
  }

  .header__list {
    flex-direction: row;
    gap: 22px;
  }

  .header__list a {
    padding: 4px 0;
    border-bottom: 0;
    font-size: 0.9rem;
  }
}

/* ---------- Hero ---------- */
.hero {
  padding: 28px 0 36px;
}

.hero__grid {
  display: grid;
  gap: 24px;
}

.hero__title {
  margin-bottom: 12px;
}

.hero__sub {
  max-width: 46ch;
  font-size: 1.05rem;
  color: var(--ink);
}

.hero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__media img {
  width: 100%;
  height: auto;
}

.hero__rating {
  margin: 14px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.hero__rating strong {
  color: var(--ink);
}

@media (min-width: 900px) {
  .hero {
    padding: 44px 0 52px;
  }

  .hero__grid {
    grid-template-columns: 1fr 0.95fr;
    align-items: center;
    gap: 40px;
  }
}

/* ---------- Kartice lokacija ---------- */
.locations {
  display: grid;
  gap: var(--gap);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.card__title {
  margin-bottom: 4px;
  font-size: 1.15rem;
}

.card__tag {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.card__list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.card__list li {
  display: flex;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.card__list li:last-child {
  border-bottom: 0;
}

.card__list dt,
.card__key {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 0.85rem;
}

.card__value {
  flex: 1 1 auto;
  min-width: 0;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (min-width: 720px) {
  .locations {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ---------- Ponuda ---------- */
.offer {
  display: grid;
  gap: var(--gap);
}

.offer__item {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.offer__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.offer__body {
  padding: 16px 18px 18px;
}

.offer__body h3 {
  margin-bottom: 6px;
}

.offer__body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.offer__item--text {
  justify-content: center;
  padding: 24px 22px;
  background: var(--accent);
  border-color: var(--accent);
}

.offer__item--text .offer__body {
  padding: 0;
}

.offer__item--text h3 {
  color: #fff;
}

.offer__item--text .offer__body p {
  color: rgb(255 255 255 / 86%);
}

@media (min-width: 620px) {
  .offer {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
}

@media (min-width: 960px) {
  .offer {
    grid-template-columns: repeat(3, 1fr);
  }

  .offer__item--wide {
    grid-column: span 2;
    flex-direction: row;
    align-items: stretch;
  }

  .offer__item--wide img {
    width: 46%;
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
  }

  .offer__item--wide .offer__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px 26px;
  }
}

/* ---------- Cjenik ---------- */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table caption {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: left;
}

.price-table th,
.price-table td {
  padding: 11px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-table td:last-child,
.price-table th:last-child {
  text-align: right;
}

.price-table .price {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.price-table .base-price {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.price-empty {
  margin: 4px 0 0;
  padding: 18px 12px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.price-links {
  margin: 14px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.price-links a {
  color: var(--accent);
}

@media (max-width: 560px) {
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td {
    display: block;
    width: 100%;
  }

  .price-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }

  .price-table td {
    padding: 4px 0;
    border: 0;
    text-align: left;
  }

  .price-table td::before {
    display: block;
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .price-table td:last-child {
    text-align: left;
  }
}

/* ---------- O nama ---------- */
.about {
  display: grid;
  gap: 22px;
  align-items: center;
}

.about__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__note {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: #fff;
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-size: 0.925rem;
}

@media (min-width: 880px) {
  .about {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* ---------- Recenzije ---------- */
.reviews {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
}

.reviews__score {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.reviews__score span {
  font-size: 0.45em;
  color: var(--muted);
}

.reviews__label {
  margin: 8px 0 14px;
  font-weight: 500;
}

.reviews .btn {
  margin-top: 6px;
}

/* ---------- Prodavaonice / kontakt ---------- */
.shops {
  display: grid;
  gap: var(--gap);
}

.shop {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.shop h3 {
  margin-bottom: 2px;
}

.shop__role {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

.shop__rows {
  margin: 0 0 16px;
  font-size: 0.95rem;
}

.shop__row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.shop__row:last-child {
  border-bottom: 0;
}

.shop__row dt {
  flex: 0 0 96px;
  color: var(--muted);
  font-size: 0.85rem;
}

.shop__row dd {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

@media (min-width: 720px) {
  .shops {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 12px;
  padding: 32px 0 28px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer__grid {
  display: grid;
  gap: 20px;
}

.footer h2 {
  margin: 0 0 8px;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
}

.footer p {
  margin: 0 0 6px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.footer__bottom {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}

@media (min-width: 780px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
  }
}

/* ---------- Podstranica Kotoriba ---------- */
.subhero {
  padding: 28px 0 32px;
}

.subhero__grid {
  display: grid;
  gap: 22px;
}

.subhero__sub {
  max-width: 48ch;
  font-size: 1.05rem;
}

.subhero__media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .subhero {
    padding: 40px 0 46px;
  }

  .subhero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 36px;
  }
}

.checklist {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding: 7px 0 7px 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  position: absolute;
  left: 0;
  top: 7px;
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

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