/* ============================================================
   Montaža namještaja Banja Luka — majkic.net
   Design system: Baloo 2 (display) + Nunito (body)
   Palette: coral / teal / amber on warm cream
   ============================================================ */

:root {
  --coral: #f25c54;
  --coral-dark: #d8463e;
  --teal: #1b998b;
  --teal-dark: #157a6e;
  --amber: #f4a93c;
  --amber-dark: #d98e1f;

  --ink: #2d2a32;
  --ink-soft: #5b5560;
  --muted: #8a838f;
  --line: #efe6dd;
  --cream: #fff8f2;
  --cream-2: #fdeee2;
  --card: #ffffff;

  --shadow-sm: 0 2px 8px rgba(45, 42, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(45, 42, 50, 0.10);
  --shadow-lg: 0 20px 50px rgba(45, 42, 50, 0.14);

  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1140px;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; font-weight: 700; }

a { color: var(--coral-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 248, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.logo:hover { text-decoration: none; }
.logo span { font-size: 1.4rem; }
.nav { display: flex; gap: 6px; }
.nav a {
  color: var(--ink-soft); font-weight: 700; font-size: 0.95rem;
  padding: 10px 14px; border-radius: 10px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.nav a:hover { background: var(--cream-2); color: var(--coral-dark); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); padding: 8px; min-width: 44px; min-height: 44px; }

/* ---------------- Breadcrumb ---------------- */
.breadcrumb { padding: 14px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.86rem; color: var(--muted); }
.breadcrumb li::after { content: "›"; margin-left: 8px; color: var(--line); }
.breadcrumb li:last-child::after { content: ""; }
.breadcrumb a { color: var(--ink-soft); font-weight: 600; }

/* ---------------- Hero ---------------- */
.hero { padding: 30px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 44px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.1rem); color: var(--ink); letter-spacing: -0.5px; }
.hero h1 .accent { color: var(--coral); }
.hero .lead { margin-top: 16px; font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }

.stats { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 20px; box-shadow: var(--shadow-sm); min-width: 110px;
}
.stat .num { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; line-height: 1; }
.stat:nth-child(1) .num { color: var(--coral); }
.stat:nth-child(2) .num { color: var(--teal); }
.stat:nth-child(3) .num { color: var(--amber-dark); }
.stat .lbl { font-size: 0.85rem; color: var(--muted); font-weight: 700; margin-top: 4px; }

.hero-art {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg);
  background: var(--cream-2);
  display: block;
}
.hero-art img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.45) 100%);
  pointer-events: none;
}
.hero-art .tag {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  background: rgba(255,255,255,0.92); border-radius: 12px; padding: 12px 16px;
  font-weight: 700; font-size: 0.92rem; color: var(--ink); z-index: 2;
}

/* ---------------- Sections ---------------- */
section { padding: 56px 0; }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); color: var(--ink); }
.section-head h2 .accent { color: var(--teal); }
.section-head p { margin-top: 10px; color: var(--ink-soft); font-size: 1.05rem; }
.alt { background: linear-gradient(180deg, var(--cream-2), var(--cream)); }

/* ---------------- Services grid ---------------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service .ico {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 14px; background: var(--cream-2);
}
.service:nth-child(3n+1) .ico { background: rgba(242, 92, 84, 0.14); }
.service:nth-child(3n+2) .ico { background: rgba(27, 153, 139, 0.14); }
.service:nth-child(3n) .ico { background: rgba(244, 169, 60, 0.16); }
.service h3 { font-size: 1.12rem; color: var(--ink); }
.service p { margin-top: 8px; color: var(--ink-soft); font-size: 0.97rem; }

/* ---------------- Filter + search ---------------- */
.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink-soft);
  font-family: var(--font-body); font-weight: 700; font-size: 0.92rem;
  padding: 10px 16px; border-radius: 999px; cursor: pointer; min-height: 44px;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--coral); color: var(--coral-dark); }
.chip.active { background: var(--coral); border-color: var(--coral); color: #fff; }
.chip .count { opacity: 0.7; font-weight: 700; margin-left: 4px; }

.search { position: relative; flex: 1; max-width: 320px; }
.search input {
  width: 100%; padding: 12px 16px 12px 42px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); font-family: var(--font-body);
  font-size: 0.95rem; color: var(--ink); min-height: 44px;
}
.search input:focus { outline: none; border-color: var(--teal); }
.search::before { content: "🔍"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); font-size: 0.95rem; }

/* ---------------- Cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.badge {
  align-self: flex-start; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.4px;
  text-transform: uppercase; padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}
.badge.montazer { background: rgba(242, 92, 84, 0.14); color: var(--coral-dark); }
.badge.proizvodjac { background: rgba(27, 153, 139, 0.14); color: var(--teal-dark); }
.badge.majstor { background: rgba(244, 169, 60, 0.18); color: var(--amber-dark); }
.card h3 { font-size: 1.22rem; color: var(--ink); }
.card .desc { margin-top: 8px; color: var(--ink-soft); font-size: 0.95rem; flex-grow: 1; }
.card-meta { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; font-size: 0.9rem; }
.card-meta .row { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); }
.card-meta .row .mi { width: 18px; flex-shrink: 0; text-align: center; }
.card-meta a { font-weight: 700; }
.price { color: var(--teal-dark); font-weight: 800; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag-pill {
  font-size: 0.76rem; font-weight: 700; color: var(--ink-soft);
  background: var(--cream-2); padding: 4px 10px; border-radius: 8px;
}
.no-results {
  display: none; text-align: center; padding: 40px; color: var(--muted);
  font-weight: 700; grid-column: 1 / -1;
}

/* ---------------- Map ---------------- */
#map { height: 440px; border-radius: var(--radius); box-shadow: var(--shadow-md); border: 1px solid var(--line); z-index: 1; }
.map-note {
  margin-top: 16px; background: var(--card); border: 1px dashed var(--coral);
  border-radius: var(--radius-sm); padding: 14px 18px; color: var(--ink-soft);
  font-size: 0.95rem; display: flex; gap: 10px; align-items: flex-start;
}
.leaflet-popup-content { font-family: var(--font-body); }
.leaflet-popup-content b { font-family: var(--font-display); }

/* ---------------- Table ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; background: var(--card); min-width: 640px; }
thead th {
  background: var(--teal); color: #fff; font-family: var(--font-display); font-weight: 700;
  text-align: left; padding: 14px 16px; font-size: 0.92rem;
}
tbody td { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-soft); }
tbody tr:nth-child(even) { background: var(--cream); }
tbody td:first-child { font-weight: 800; color: var(--ink); font-family: var(--font-display); }

/* ---------------- Tips ---------------- */
.tips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tip {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.tip .ico { font-size: 1.8rem; }
.tip h3 { margin: 10px 0 6px; font-size: 1.08rem; color: var(--ink); }
.tip p { font-size: 0.93rem; color: var(--ink-soft); }

/* ---------------- FAQ ---------------- */
.faq-list { max-width: 800px; }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 18px 22px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 14px;
  min-height: 44px;
}
.faq-q .plus { color: var(--coral); font-size: 1.5rem; transition: transform .25s ease; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-soft); font-size: 0.97rem; }
.faq-item.open .faq-a { max-height: 360px; }

/* ---------------- Share ---------------- */
.share { text-align: center; }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 22px; border-radius: 999px;
  font-weight: 800; font-family: var(--font-body); color: #fff; cursor: pointer; border: 0;
  font-size: 0.95rem; min-height: 44px; transition: transform .15s ease, filter .15s ease;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.sb-fb { background: #1877f2; }
.sb-vb { background: #7360f2; }
.sb-wa { background: #25d366; }
.sb-cp { background: var(--ink); }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #d8d3dd; padding: 40px 0 30px; margin-top: 20px; }
.site-footer .upd { font-size: 0.9rem; color: #b3aebd; }
.site-footer a { color: var(--amber); }
.site-footer .legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid #423d4a; font-size: 0.86rem; color: #948e9e; }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; aspect-ratio: 16 / 9; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tips { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    background: var(--cream); border-bottom: 1px solid var(--line); padding: 10px 16px; gap: 4px; }
  .nav.open { display: flex; }
  .nav a { width: 100%; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .services { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .controls { flex-direction: column; align-items: stretch; }
  .search { max-width: none; }
  section { padding: 44px 0; }
  .card-meta .row { flex-wrap: wrap; word-break: break-word; }
  .table-wrap { margin: 0 -20px; border-radius: 0; border-left: 0; border-right: 0; }
  .hero-art { aspect-ratio: 4 / 3; }
}
@media (max-width: 400px) {
  .wrap { padding: 0 16px; }
  .table-wrap { margin: 0 -16px; }
  .chip { padding: 8px 12px; font-size: 0.88rem; }
}
