/* Grafike u gornjem dijelu bimini stranice (HR): sličice u karticama izvedbi,
   usporedba gotov bimini / bimini po mjeri, dijelovi biminija.
   Učitava se ISPRED bimini.css na svih 13 bimini*.html; pravila koja nadjačavaju bimini.css
   zato imaju veću specifičnost (.bm-cards.bm-cards--media). */

/* Crteži izvedbi (inline SVG, iscrtani iz mjera radionice) */
.bm-art { display: block; width: 100%; height: auto; }
.bm-art .h { fill: rgba(255, 255, 255, 0.035); stroke: rgba(255, 255, 255, 0.26); stroke-width: 1.2; stroke-linejoin: round; }
.bm-art .t { fill: none; stroke: #e8eef6; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.bm-art .tf { stroke: #7f93ab; }
.bm-art .tb { stroke-width: 2; }
.bm-art .c { fill: rgba(56, 189, 248, 0.26); stroke: none; }
.bm-art .cs { fill: none; stroke: #38bdf8; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.bm-art .g { fill: none; stroke: #fbbf24; stroke-width: 1.6; stroke-dasharray: 5 3.5; stroke-linecap: round; }
.bm-art .gf { stroke: rgba(251, 191, 36, 0.55); }
.bm-art .f { fill: #0b1220; stroke: #e8eef6; stroke-width: 1.2; }

/* Sličice u karticama izvedbi */
.bm-card-fig {
  position: relative;
  margin: -24px -22px 18px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
  background: #0b1322;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bm-card-fig img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bm-card-fig .bm-art { position: absolute; inset: 0; width: 100%; height: 100%; padding: 12px 10px 26px; box-sizing: border-box; }
.bm-card-fig figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(8, 13, 24, 0.74);
  color: #e0f2fe;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
}
.bm-card-ex { display: inline-block; margin-top: 12px; font-weight: 600; font-size: 0.92rem; }

/* Usporedba: gotov bimini iz trgovine / bimini po mjeri */
.bm-compare {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 28px 26px;
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: 8px 34px;
  align-items: center;
}
.bm-compare h3 {
  grid-column: 1 / -1;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
}
.bm-tubes { margin: 0; text-align: center; }
.bm-tubes-svg { display: block; width: 100%; max-width: 300px; height: auto; margin: 0 auto; }
.bm-tubes figcaption { margin-top: 10px; color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; line-height: 1.5; }
.tb-al { fill: none; stroke: #8d99a8; }
.tb-ix { fill: none; stroke: url(#bm-ix); }
.tb-n { fill: #fff; font: 700 13px var(--font-body, system-ui), sans-serif; }
.tb-m { fill: rgba(255, 255, 255, 0.65); font: 12px var(--font-body, system-ui), sans-serif; }
.tb-b { stroke: rgba(255, 255, 255, 0.2); }
.bm-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; line-height: 1.5; }
.bm-table caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bm-table th, .bm-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.bm-table thead th { border-top: 0; color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem; }
.bm-table tbody th { width: 24%; color: rgba(255, 255, 255, 0.6); font-weight: 600; }
.bm-table td { color: rgba(255, 255, 255, 0.82); }
.bm-table thead th:nth-child(3), .bm-table td:nth-child(3) { background: rgba(14, 165, 233, 0.09); color: #fff; }
.bm-table thead th:nth-child(3) { border-radius: 10px 10px 0 0; box-shadow: inset 0 2px 0 #38bdf8; }
.bm-table tbody tr:nth-last-child(2) td:nth-child(3) { border-radius: 0 0 10px 10px; }
.bm-table td[colspan] { color: #fff; font-weight: 600; }
/* zaključna rečenica na dnu usporedbe: redak bez naslova, preko cijele širine */
.bm-table .bm-table-note td { text-align: center; padding: 20px 14px 6px; font-family: var(--font-heading); font-size: 1.08rem; }

/* Dijelovi biminija (označeni crtež + popis) */
.bm-parts-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.bm-parts-fig { margin: 0; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 16px; overflow: hidden; }
.bm-parts-fig img { display: block; width: 100%; height: auto; }
.bm-parts-list { counter-reset: bm-part; list-style: none; margin: 0; padding: 0; }
.bm-parts-list li {
  counter-increment: bm-part;
  position: relative;
  padding: 0 0 13px 40px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.55;
  font-size: 0.97rem;
}
.bm-parts-list li::before {
  content: counter(bm-part);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
}
.bm-parts-list strong { color: #fff; font-weight: 600; }

@media (max-width: 991.98px) {
  .bm-compare { grid-template-columns: 1fr; gap: 18px; }
  .bm-parts-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 767.98px) {
  .bm-card-fig { margin: -20px -18px 16px; }
  .bm-compare { padding: 22px 18px; }
  /* kartice izvedbi u vodoravnom nizu: povlači se lijevo-desno, sljedeća kartica viri s ruba */
  .bm-cards.bm-cards--media {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    margin: 0 -14px;
    padding: 0 14px 12px;
    scrollbar-width: none;
  }
  .bm-cards.bm-cards--media::-webkit-scrollbar { display: none; }
  .bm-cards--media .bm-card { flex: 0 0 84%; scroll-snap-align: center; }
}
@media (max-width: 575.98px) {
  /* tablica: naziv retka preko cijele širine, ispod njega dvije vrijednosti jedna do druge */
  .bm-table { font-size: 0.9rem; }
  .bm-table thead tr, .bm-table tbody tr { display: grid; grid-template-columns: 1fr 1fr; }
  .bm-table thead th:first-child { display: none; }
  .bm-table thead th { padding: 10px; font-size: 0.86rem; }
  .bm-table tbody th { grid-column: 1 / -1; width: auto; padding: 12px 10px 2px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
  .bm-table td { border-top: 0; padding: 4px 10px 12px; }
  .bm-table td[colspan] { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .bm-table .bm-table-note td { border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 16px 10px 4px; font-size: 1rem; }
}
