/* Inline 3D viewer + placeholder styling for "Zadnji projekti" tiles. */

/* Lift the entire project row above the fixed mm-paper grid overlay. */
.theme-project-row,
#theme-info-area .theme-info-area,
#theme-services .theme-services-content,
.navbar {
  position: relative;
  z-index: 2;
  isolation: isolate;
}

/* Hero slider: no background box, just strong text shadows so the copy
   stays legible against the photo. */
.theme-main-slider .title-large,
.theme-main-slider .description {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.85),
    0 2px 6px rgba(0, 0, 0, 0.6),
    0 4px 14px rgba(0, 0, 0, 0.45);
}
.theme-main-slider .description {
  color: #f4f4f4;
}
/* Darken the hero photos so the overlaid copy stays legible. */
.theme-main-slider .overlay {
  background-color: rgba(0, 0, 0, 0.55);
}

/* Orbital service carousel — cards float around a tilted circular orbit,
   always facing the viewer. */
.nacrti-service-cube-wrap {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 48px;
  z-index: 2;
}
.nacrti-service-cube-stage {
  position: relative;
  flex: 1 1 auto;
  width: 100%;
  max-width: 820px;
  height: 390px;
  perspective: 1600px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
}
.nacrti-service-cube {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}
.nacrti-service-face {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 300px;
  margin: 0;
  padding: 30px 28px;
  border-radius: 20px;
  background: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow:
    0 20px 55px rgba(0, 0, 0, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.08);
  transform: translate(-50%, -50%);
  will-change: transform, opacity;
  backface-visibility: visible;
}
.nacrti-service-face i {
  font-size: 42px;
  color: #1a73e8;
  background: #eaf2ff;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nacrti-service-face .nacrti-step-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #1a73e8, #4f8ff5);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.30);
  line-height: 1;
}
.nacrti-service-face h5 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1f29;
  margin: 0;
}
.nacrti-service-face p {
  font-size: 14.5px;
  line-height: 1.55;
  color: #3c4043;
  margin: 0;
}
.nacrti-cube-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #1a73e8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 5;
}
.nacrti-cube-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}
@media (max-width: 767px) {
  .nacrti-service-cube-stage { height: 370px; }
  .nacrti-service-face { width: 220px; height: 280px; padding: 18px 16px; gap: 10px; }
  .nacrti-service-face .nacrti-step-num {
    font-size: 24px;
    width: 48px;
    height: 48px;
  }
  .nacrti-service-face h5 { font-size: 16px; }
  .nacrti-service-face p { font-size: 12px; line-height: 1.45; }
}

.portfolio-thumbnail.nacrti-3d,
.portfolio-thumbnail.nacrti-3d-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 184;
  overflow: hidden;
  background: #f4f4f4;
  margin: 0;
}

.portfolio-thumbnail.nacrti-3d model-viewer {
  width: 100%;
  height: 100%;
  display: block;
  --poster-color: #f4f4f4;
}

.portfolio-thumbnail.nacrti-3d-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, #ececec, #f6f6f6);
  color: #8a8a8a;
}

.portfolio-thumbnail.nacrti-3d-placeholder .placeholder-icon {
  width: 40px;
  height: 40px;
  opacity: 0.55;
}

.portfolio-thumbnail.nacrti-3d-placeholder .placeholder-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Expand-to-fullscreen button on the live tile. */
.nacrti-3d-expand {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, transform 0.15s;
  z-index: 3;
}
.nacrti-3d-expand:hover { background: rgba(0, 0, 0, 0.82); transform: scale(1.05); }
.nacrti-3d-expand svg { width: 18px; height: 18px; }
.theme-project-title.nacrti-3d-titlelink { cursor: pointer; transition: color 0.15s; }
.theme-project-title.nacrti-3d-titlelink:hover,
.theme-project-title.nacrti-3d-titlelink:focus-visible { color: #1a73e8; outline: 0; }

/* Fullscreen modal viewer. */
.nacrti-3d-modal {
  position: fixed;
  inset: 0;
  background: #f4f4f4;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  padding: 64px 24px 32px;
  isolation: isolate;
}
/* Keep the modal clear of the 38px tape scrollbar column on desktop; mirror on the left. */
@media (min-width: 768px) {
  .nacrti-3d-modal { right: 38px; left: 38px; }
}
.nacrti-3d-modal[hidden] { display: none; }
.nacrti-3d-modal-title {
  color: #222;
  font: 600 18px/1.3 sans-serif;
  margin: 0 0 14px;
  text-align: center;
  letter-spacing: 0.02em;
}
.nacrti-3d-modal-viewer {
  flex: 1;
  width: 100%;
  height: 100%;
  background: #f4f4f4;
  --poster-color: #f4f4f4;
}
.nacrti-3d-modal-hint {
  color: #777;
  font: 400 12px/1.4 sans-serif;
  text-align: center;
  margin: 10px 0 0;
  letter-spacing: 0.04em;
}
.nacrti-3d-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  color: #222;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.nacrti-3d-close:hover { background: rgba(0, 0, 0, 0.18); }

/* Google-styled review section. */
.nacrti-google-reviews { position: relative; z-index: 2; isolation: isolate; }

.nacrti-google-summary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin: 0 auto 32px;
  padding: 18px 24px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  max-width: 520px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #202124;
}
.nacrti-google-summary .nacrti-summary-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.nacrti-google-logo { width: 22px; height: 22px; flex: 0 0 auto; }
.nacrti-summary-label { font-weight: 600; font-size: 15px; }
.nacrti-summary-rating {
  font-weight: 700;
  font-size: 18px;
  color: #202124;
}
.nacrti-summary-stars { color: #e7711b; font-size: 18px; letter-spacing: 1px; }
.nacrti-summary-count { color: #70757a; font-size: 14px; }
.nacrti-summary-link {
  display: inline-block;
  font-size: 14px;
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
}
.nacrti-summary-link:hover { text-decoration: underline; color: #1a73e8; }

.nacrti-google-review {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  padding: 18px 18px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #202124;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.nacrti-review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.nacrti-review-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 40px;
  background: #ccc;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.nacrti-review-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nacrti-review-initials {
  font: 600 16px/1 sans-serif;
  color: #fff;
  background: #5f6368;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-review-author { flex: 1 1 auto; min-width: 0; }
.nacrti-review-name {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nacrti-review-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
  font-size: 12px;
  color: #5f6368;
}
.nacrti-review-stars { color: #e7711b; font-size: 14px; letter-spacing: 1px; }
.nacrti-review-google {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  opacity: 0.95;
}
.nacrti-review-text {
  font-size: 14px;
  line-height: 1.55;
  color: #3c4043;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
          line-clamp: 5;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nacrti-reviews-footer {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}
.nacrti-reviews-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #fff;
  color: #1a73e8;
  border-radius: 999px;
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s, background 0.15s;
}
.nacrti-reviews-cta:hover {
  text-decoration: none;
  color: #1a73e8;
  background: #f8f9fa;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.nacrti-reviews-cta svg { width: 16px; height: 16px; }

/* Reviews carousel — 3 cards visible, rotates one position at a time. */
.nacrti-review-carousel {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 80px;
}
.nacrti-review-window {
  overflow: hidden;
}
.nacrti-review-track {
  display: flex;
  align-items: stretch;
  transform: translateX(0);
  will-change: transform;
}
.nacrti-review-slide {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 0 14px;
  box-sizing: border-box;
  display: flex;
  /* row + default align-items:stretch makes the article fill the slide height */
}
.nacrti-review-slide > .nacrti-google-review {
  flex: 1 1 100%;
  margin: 0;
  box-sizing: border-box;
}
@media (max-width: 991px) {
  .nacrti-review-carousel { padding: 0 64px; }
  .nacrti-review-slide { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 575px) {
  .nacrti-review-carousel { padding: 0 48px; }
  .nacrti-review-slide { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
}
.nacrti-review-window { touch-action: pan-y; }
.nacrti-review-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #ffffff;
  color: #1a73e8;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s, box-shadow 0.15s;
  z-index: 5;
}
.nacrti-review-nav:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transform: translateY(calc(-50% - 1px));
}
.nacrti-review-nav.prev { left: 0; }
.nacrti-review-nav.next { right: 0; }
/* Mobile: no arrows — swipe with finger instead. */
@media (max-width: 767px) {
  .nacrti-review-nav { display: none !important; }
  .nacrti-review-carousel { padding: 0 12px; }
}

/* Mobile: hide the "Navigacija" footer column entirely. */
@media (max-width: 767px) {
  #nav_menu-3 { display: none !important; }
}
.nacrti-review-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 18px;
}
.nacrti-review-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.nacrti-review-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

/* === Primjeri nacrta — listing grid + project detail page === */

/* Listing grid */
.nacrti-primjeri-grid-wrap { padding: 48px 0 64px; position: relative; z-index: 2; }
.nacrti-primjeri-head { text-align: center; margin: 0 0 40px; }
.nacrti-primjeri-head h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  color: #1a1f29;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.nacrti-primjeri-head p { font-size: 16px; line-height: 1.55; color: #3c4350; max-width: 720px; margin: 0 auto; }
.nacrti-primjeri-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991px) { .nacrti-primjeri-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .nacrti-primjeri-grid { grid-template-columns: 1fr; } }
.nacrti-primjer-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nacrti-primjer-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(26, 115, 232, 0.16), 0 0 0 1px rgba(26, 115, 232, 0.10);
}
.nacrti-primjer-card .portfolio-thumbnail.nacrti-3d {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #f4f4f4;
  margin: 0;
  position: relative;
  overflow: hidden;
}
.nacrti-primjer-card .portfolio-thumbnail.nacrti-3d model-viewer {
  width: 100%; height: 100%; display: block; --poster-color: #f4f4f4;
}
.nacrti-primjer-meta { padding: 18px 20px 20px; }
.nacrti-primjer-meta h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1f29;
  margin: 0 0 6px;
}
.nacrti-primjer-meta p { font-size: 13.5px; line-height: 1.45; color: #5a6170; margin: 0; }
.nacrti-primjer-cta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nacrti-primjer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nacrti-primjer-chips .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f3f5f8;
  border: 1px solid #e3e7ee;
  font: 600 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #2b3140;
  letter-spacing: 0.02em;
}
.nacrti-primjer-chips .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}
.nacrti-primjer-chips .dot-3d { background: #1a73e8; }
.nacrti-primjer-chips .dot-mn { background: #16a34a; }
.nacrti-primjer-chips .dot-sk { background: #f59e0b; }
.nacrti-primjer-chips .dot-pj { background: #ef4444; }
.nacrti-primjer-arrow {
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  letter-spacing: 0.02em;
  align-self: flex-end;
}
.nacrti-primjer-arrow span { display: inline-block; margin-left: 2px; transition: transform 0.15s; }
.nacrti-primjer-card:hover .nacrti-primjer-arrow span { transform: translateX(3px); }

/* Kalkulatori index page */
.nacrti-kalk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) { .nacrti-kalk-grid { grid-template-columns: 1fr; } }
.nacrti-kalk-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}
.nacrti-kalk-card .nacrti-kalk-icon {
  flex: 0 0 56px;
  height: 56px;
  width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a73e8, #5aa6ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  line-height: 1;
}
.nacrti-kalk-card .nacrti-primjer-meta { padding: 0; flex: 1; }
.nacrti-kalk-card h3 { margin: 0 0 4px; font-size: 17px; }
.nacrti-kalk-card p { font-size: 13.5px; line-height: 1.45; color: #5a6170; margin: 0; }

/* Cjenik (pricing list) */
.nacrti-cjenik-banner {
  margin: 0 auto 28px;
  max-width: 720px;
  padding: 12px 18px;
  background: #fff8e1;
  border: 1px solid #f5deb6;
  border-radius: 10px;
  text-align: center;
  font-size: 15px;
  color: #2b3140;
  line-height: 1.5;
}
.nacrti-cjenik-banner strong { color: #b36b00; }

/* Cjenik — 2-card splash (Modeli / Kalkulator) */
.nacrti-cjenik-pick {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}
@media (max-width: 700px) { .nacrti-cjenik-pick { grid-template-columns: 1fr; } }
.nacrti-cjenik-pick-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 32px 28px 28px;
  background: #ffffff;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nacrti-cjenik-pick-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 115, 232, 0.16), 0 0 0 1px rgba(26, 115, 232, 0.10);
}
.nacrti-cjenik-pick-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1a73e8, #5aa6ff);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-cjenik-pick-icon svg { width: 32px; height: 32px; }
.nacrti-cjenik-pick-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1f29;
  line-height: 1.2;
}
.nacrti-cjenik-pick-card p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: #5a6170;
}
.nacrti-cjenik-pick-cta {
  margin-top: auto;
  padding-top: 6px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  letter-spacing: 0.01em;
}
.nacrti-cjenik-pick-cta span { margin-left: 4px; transition: transform 0.15s; display: inline-block; }
.nacrti-cjenik-pick-card:hover .nacrti-cjenik-pick-cta span { transform: translateX(3px); }

/* Cjenik — embedded field-trip calculator section */
.nacrti-cjenik-teren-section {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e3e7ee;
}
.nacrti-cjenik-teren-head {
  text-align: center;
  margin-bottom: 22px;
}
.nacrti-cjenik-teren-head h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: #1a1f29;
}
.nacrti-cjenik-teren-head p {
  margin: 0 auto;
  max-width: 640px;
  font-size: 15px;
  line-height: 1.55;
  color: #3c4350;
}

/* Navbar dropdown — pure CSS open on hover (SmartMenus disabled via data-sm-skip) */
.navbar-nav li.dropdown,
.navbar-nav li.menu-item-has-children { position: relative; }
.navbar-nav li.dropdown > .dropdown-menu,
.navbar-nav li.dropdown > .sub-menu,
.navbar-nav li.menu-item-has-children > .dropdown-menu,
.navbar-nav li.menu-item-has-children > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  min-width: 220px;
  padding: 6px 0;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1050;
  list-style: none;
}
.navbar-nav li.dropdown:hover > .dropdown-menu,
.navbar-nav li.dropdown:focus-within > .dropdown-menu,
.navbar-nav li.dropdown:hover > .sub-menu,
.navbar-nav li.menu-item-has-children:hover > .dropdown-menu,
.navbar-nav li.menu-item-has-children:hover > .sub-menu,
.navbar-nav li.menu-item-has-children:focus-within > .sub-menu { display: block; }
.navbar-nav .dropdown-menu .dropdown-item,
.navbar-nav .sub-menu .dropdown-item {
  display: block;
  padding: 8px 16px;
  color: #dc2626 !important;
  text-decoration: none;
  font: 700 14px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: transparent;
  white-space: nowrap;
}
.navbar-nav .dropdown-menu .dropdown-item:hover,
.navbar-nav .sub-menu .dropdown-item:hover {
  background: #fff1f2;
  color: #b91c1c !important;
  text-decoration: none;
}

/* Kalkulator težine metalnih profila */
.nacrti-weight-calc {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 28px;
  max-width: 960px;
  margin: 0 auto 24px;
  align-items: start;
}
@media (max-width: 767px) { .nacrti-weight-calc { grid-template-columns: 1fr; } }
.nacrti-weight-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nacrti-weight-row { margin-bottom: 14px; }
.nacrti-weight-row label,
.nacrti-weight-field label {
  display: block;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f29;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.nacrti-weight-row select,
.nacrti-weight-row input,
.nacrti-weight-field input {
  width: 100%;
  padding: 10px 12px;
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f29;
  background: #f7f9fc;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.15s, background 0.15s;
  appearance: none;
}
.nacrti-weight-row select:focus,
.nacrti-weight-row input:focus,
.nacrti-weight-field input:focus { border-color: #1a73e8; background: #ffffff; }
.nacrti-weight-row .suffix,
.nacrti-weight-field .suffix {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  letter-spacing: 0.04em;
}
.nacrti-weight-shape {
  margin: 6px auto 14px;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-weight-shape svg { width: 100%; height: 100%; }
.nacrti-weight-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.nacrti-weight-fields .nacrti-weight-field { margin: 0; }
.nacrti-weight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 0;
}
.nacrti-weight-grid > div { display: flex; flex-direction: column; }
.nacrti-weight-result {
  background: #0f1116;
  color: #e6e8eb;
  border-radius: 14px;
  padding: 22px 24px 24px;
}
.nacrti-weight-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #b8bcc4;
}
.nacrti-weight-line:first-child { padding-top: 0; }
.nacrti-weight-line .val { font-weight: 600; color: #ffffff; font-size: 15px; }
.nacrti-weight-line.total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  font-size: 16px;
  color: #ffffff;
}
.nacrti-weight-line.total .val { font-size: 24px; font-weight: 700; color: #5aa6ff; }

/* Sheet Metal Bend Calculator — primary/steel palette per spec */
.nacrti-smb {
  --smb-primary-50:  #eff6ff;
  --smb-primary-100: #dbeafe;
  --smb-primary-200: #bfdbfe;
  --smb-primary-500: #3b82f6;
  --smb-primary-600: #2563eb;
  --smb-primary-700: #1d4ed8;
  --smb-steel-50:  #f8fafc;
  --smb-steel-100: #f1f5f9;
  --smb-steel-200: #e2e8f0;
  --smb-steel-300: #cbd5e1;
  --smb-steel-400: #94a3b8;
  --smb-steel-500: #64748b;
  --smb-steel-600: #475569;
  --smb-steel-700: #334155;
  --smb-steel-800: #1e293b;
  --smb-steel-900: #0f172a;
  display: block;
  max-width: 1080px;
  margin: 0 auto 32px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--smb-steel-900);
}
.nacrti-smb .smb-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 991px) { .nacrti-smb .smb-grid { grid-template-columns: 1fr; gap: 18px; } }
.nacrti-smb .smb-card {
  background: #ffffff;
  border: 1px solid var(--smb-steel-200);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 24px;
}
@media (max-width: 640px) { .nacrti-smb .smb-card { padding: 16px; } }
.nacrti-smb .smb-card-header {
  font-size: 18px;
  font-weight: 600;
  color: var(--smb-steel-900);
  margin: 0 0 16px;
  letter-spacing: -0.005em;
}
.nacrti-smb .smb-card-header-sm { font-size: 16px; margin-bottom: 4px; }
.nacrti-smb .smb-form { display: flex; flex-direction: column; gap: 16px; }
.nacrti-smb .smb-field { display: flex; flex-direction: column; }
.nacrti-smb .smb-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--smb-steel-700);
  margin: 0 0 6px;
}
.nacrti-smb .smb-input {
  width: 100%;
  padding: 9px 12px;
  font: 500 14px/1.4 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--smb-steel-900);
  background: #ffffff;
  border: 1px solid var(--smb-steel-300);
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.nacrti-smb select.smb-input {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.nacrti-smb .smb-input:focus {
  border-color: var(--smb-primary-500);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18);
}
.nacrti-smb .smb-input::placeholder { color: var(--smb-steel-400); }
.nacrti-smb .smb-section {
  border-top: 1px solid var(--smb-steel-200);
  padding-top: 16px;
  margin-top: 4px;
}
.nacrti-smb .smb-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--smb-steel-900);
  margin: 0 0 12px;
}
.nacrti-smb .smb-legs { display: flex; flex-direction: column; gap: 8px; }
.nacrti-smb .smb-leg { display: flex; flex-direction: column; gap: 6px; }
.nacrti-smb .smb-field-tight label { font-size: 13px; }
.nacrti-smb .smb-bend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0 4px 16px;
  padding-left: 12px;
  border-left: 2px solid var(--smb-primary-200);
}
.nacrti-smb .smb-dir-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  background: #ffffff;
  border: 1px solid var(--smb-steel-300);
  border-radius: 6px;
  color: var(--smb-primary-600);
  cursor: pointer;
  transition: background-color 0.15s;
}
.nacrti-smb .smb-dir-btn:hover { background: var(--smb-steel-100); }
.nacrti-smb .smb-dir-icon { display: inline-flex; }
.nacrti-smb .smb-bend-label {
  font-size: 13px;
  color: var(--smb-steel-600);
  font-weight: 500;
  white-space: nowrap;
}
.nacrti-smb .smb-input-angle {
  width: 80px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}
.nacrti-smb .smb-deg { font-size: 13px; color: var(--smb-steel-500); }
.nacrti-smb .smb-actions { padding-top: 8px; }
.nacrti-smb .smb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font: 500 14px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.18s;
}
.nacrti-smb .smb-btn-secondary {
  background: var(--smb-steel-200);
  color: var(--smb-steel-800);
}
.nacrti-smb .smb-btn-secondary:hover { background: var(--smb-steel-300); }
.nacrti-smb .smb-btn-block {
  width: 100%;
  justify-content: center;
}
.nacrti-smb .smb-empty {
  text-align: center;
  padding: 48px 0;
  color: var(--smb-steel-500);
}
.nacrti-smb .smb-empty p { margin: 0; font-size: 14px; }
.nacrti-smb .smb-viz {
  margin: 0 -8px 4px;
  overflow: hidden;
  max-height: 360px;
  display: flex;
  align-items: flex-end;
}
.nacrti-smb .smb-viz svg { width: 100%; height: auto; display: block; }
@media (max-width: 640px) { .nacrti-smb .smb-viz { margin: 0 -16px 4px; max-height: 280px; } }
.nacrti-smb .smb-hr {
  border: 0;
  border-top: 1px solid var(--smb-steel-200);
  margin: 18px 0;
}
.nacrti-smb .smb-results { display: flex; flex-direction: column; gap: 16px; }
.nacrti-smb .smb-headline {
  background: var(--smb-primary-50);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.nacrti-smb .smb-headline-label {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  color: var(--smb-primary-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nacrti-smb .smb-headline-value {
  margin: 8px 0 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--smb-primary-700);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.nacrti-smb .smb-chips-wrap {
  background: var(--smb-steel-50);
  border-radius: 10px;
  padding: 14px 16px;
}
.nacrti-smb .smb-chips-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--smb-steel-500);
}
.nacrti-smb .smb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.nacrti-smb .smb-chip {
  display: inline-block;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--smb-steel-700);
  background: #ffffff;
  border: 1px solid var(--smb-steel-200);
  border-radius: 999px;
}

/* Metal Weight Calculator additions (re-uses .nacrti-smb token + form styles) */
.nacrti-smb .smb-btn-primary {
  background: var(--smb-primary-600);
  color: #ffffff;
}
.nacrti-smb .smb-btn-primary:hover { background: var(--smb-primary-700); }
.nacrti-smb .mwc-left { display: flex; flex-direction: column; }
.nacrti-smb .mwc-svg-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  min-height: 260px;
}
.nacrti-smb .mwc-svg-inner {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1 / 1;
}
.nacrti-smb .mwc-svg-inner svg { width: 100%; height: 100%; display: block; }
.nacrti-smb .mwc-headline {
  margin-top: 16px;
  background: var(--smb-steel-50);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.nacrti-smb .mwc-headline.mwc-headline-has { background: var(--smb-primary-50); }
.nacrti-smb .mwc-headline-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--smb-steel-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nacrti-smb .mwc-headline-value {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  color: var(--smb-primary-700);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.nacrti-smb .mwc-headline-empty {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--smb-steel-300);
}
.nacrti-smb .mwc-headline-error {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #dc2626;
}
.nacrti-smb .mwc-profile-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) { .nacrti-smb .mwc-profile-row { grid-template-columns: 1fr; } }
.nacrti-smb .mwc-profile-info {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 16px;
  background: var(--smb-steel-50);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13px;
}
.nacrti-smb .mwc-pi-key { color: var(--smb-steel-500); }
.nacrti-smb .mwc-pi-val { font-weight: 500; color: var(--smb-steel-800); }
.nacrti-smb .mwc-dim-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 640px) { .nacrti-smb .mwc-dim-grid { grid-template-columns: 1fr; } }
.nacrti-smb .mwc-actions {
  display: flex;
  gap: 12px;
  padding-top: 8px;
}
.nacrti-smb .mwc-btn-flex { flex: 1; justify-content: center; }

/* Kalkulator izlaska na teren */
.nacrti-calc-teren {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  max-width: 920px;
  margin: 0 auto 24px;
  align-items: start;
}
@media (max-width: 767px) { .nacrti-calc-teren { grid-template-columns: 1fr; gap: 18px; } }
.nacrti-calc-teren-form {
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 24px 24px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nacrti-calc-teren-row { margin-bottom: 16px; }
.nacrti-calc-teren-row:last-child { margin-bottom: 0; }
.nacrti-calc-teren-row label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a1f29;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}
.nacrti-calc-teren-row input:not([type="range"]) {
  width: 100%;
  padding: 10px 12px;
  font: 500 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f29;
  background: #f7f9fc;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  outline: 0;
  transition: border-color 0.15s, background 0.15s;
}
.nacrti-calc-teren-row input:focus {
  border-color: #1a73e8;
  background: #ffffff;
}
.nacrti-calc-teren-row small {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}
.nacrti-calc-teren-geo { position: relative; }
.nacrti-calc-teren-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 16px);
  z-index: 30;
  background: #ffffff;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.10);
  max-height: 260px;
  overflow-y: auto;
}
.nacrti-calc-teren-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 9px 12px;
  font: 500 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f29;
  cursor: pointer;
  border-bottom: 1px solid #f0f2f6;
}
.nacrti-calc-teren-suggest-item:last-child { border-bottom: 0; }
.nacrti-calc-teren-suggest-item:hover { background: #f3f5f8; color: #1a73e8; }
.nacrti-calc-teren-suggest .empty {
  padding: 10px 12px;
  font-size: 13px;
  color: #6b7280;
}
.nacrti-calc-teren-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.nacrti-calc-teren-chips button {
  appearance: none;
  border: 1px solid #dde2ea;
  background: #f7f9fc;
  color: #1a1f29;
  padding: 6px 12px;
  border-radius: 999px;
  font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.nacrti-calc-teren-chips button:hover { border-color: #1a73e8; color: #1a73e8; }
.nacrti-calc-teren-chips button.is-active {
  background: #1a73e8;
  border-color: #1a73e8;
  color: #ffffff;
}
/* Range slider for "Procijenjeno trajanje izmjere" */
.nacrti-calc-teren-slider-row { margin-top: 4px; }
.nacrti-calc-teren-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.nacrti-calc-teren-slider-head label { margin: 0; }
.nacrti-calc-teren-slider-val {
  font: 700 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  letter-spacing: 0.02em;
}
.nacrti-calc-teren-slider,
.nacrti-calc-teren-slider-row input[type="range"].nacrti-calc-teren-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-height: 0;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: #e3e7ee;
  outline: 0;
  margin: 6px 0 0;
  padding: 0;
  touch-action: pan-y;
}
.nacrti-calc-teren-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.45);
  cursor: pointer;
  transition: transform 0.1s;
}
.nacrti-calc-teren-slider::-webkit-slider-thumb:active { transform: scale(1.1); }
.nacrti-calc-teren-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #1a73e8;
  border: 3px solid #ffffff;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.45);
  cursor: pointer;
}
.nacrti-calc-teren-slider-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11px;
  color: #6b7280;
  letter-spacing: 0.02em;
}
.nacrti-calc-teren-slider:disabled { opacity: 0.5; cursor: not-allowed; }
.nacrti-calc-teren-slider:disabled::-webkit-slider-thumb {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}
.nacrti-calc-teren-slider:disabled::-moz-range-thumb {
  background: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
}
.nacrti-calc-teren-slider-row.is-locked .nacrti-calc-teren-slider-val { color: #9ca3af; }
.nacrti-calc-teren-slider-row.is-locked label { color: #6b7280; }
.nacrti-calc-teren-slider-row:not(.is-locked) #terenSatiHint { display: none; }
.nacrti-calc-teren-result {
  background: #0f1116;
  color: #e6e8eb;
  border-radius: 14px;
  padding: 22px 24px 24px;
}
.nacrti-calc-teren-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: #b8bcc4;
}
.nacrti-calc-teren-line:first-child { padding-top: 0; }
.nacrti-calc-teren-line .val { font-weight: 600; color: #ffffff; font-size: 15px; }
.nacrti-calc-teren-line.total {
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 0;
  font-size: 16px;
  color: #ffffff;
}
.nacrti-calc-teren-line.total .val {
  font-size: 24px;
  font-weight: 700;
  color: #5aa6ff;
}
.nacrti-cjenik-card { cursor: default; }
.nacrti-cjenik-card:hover { transform: none; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04); }
.nacrti-cjenik-price {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef0f4;
  font: 700 22px/1.1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  letter-spacing: 0.01em;
}
.nacrti-cjenik-note {
  margin-top: 32px;
  padding: 18px 22px;
  background: #f7f9fc;
  border: 1px solid #e3e7ee;
  border-radius: 12px;
}
.nacrti-cjenik-note p { margin: 0; font-size: 14px; line-height: 1.6; color: #2b3140; }
.nacrti-cjenik-note a { color: #1a73e8; text-decoration: none; }
.nacrti-cjenik-note a:hover { text-decoration: underline; }

/* Detail page */
.nacrti-primjer-detail { padding: 32px 0 64px; position: relative; z-index: 2; }
.nacrti-primjer-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1a73e8;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 16px;
}
.nacrti-primjer-back:hover { text-decoration: underline; color: #1a73e8; }
.nacrti-primjer-detail h1 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #1a1f29;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.nacrti-primjer-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: #3c4350;
  max-width: 760px;
  margin: 0 0 28px;
}
.nacrti-primjer-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 28px;
  align-items: start;
}
@media (max-width: 991px) { .nacrti-primjer-layout { grid-template-columns: 1fr; gap: 24px; } }
.nacrti-primjer-model .portfolio-thumbnail.nacrti-3d {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  background: #f4f4f4;
  position: relative;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nacrti-primjer-docs {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.nacrti-primjer-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 12px 0;
  border-bottom: 1px solid #eef1f5;
  background: #f8fafc;
}
.nacrti-primjer-tab {
  flex: 1 1 auto;
  appearance: none;
  border: 0;
  background: transparent;
  color: #5a6170;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 12px 14px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nacrti-primjer-tab:hover { color: #1a73e8; background: rgba(26, 115, 232, 0.06); }
.nacrti-primjer-tab.is-active {
  color: #1a73e8;
  background: #ffffff;
  box-shadow: inset 0 -2px 0 0 #1a73e8;
}
.nacrti-primjer-viewer {
  height: 520px;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
  padding: 14px;
  background: #f4f6fa;
  scroll-behavior: smooth;
}
.nacrti-primjer-viewer .nacrti-primjer-page {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  user-select: none;
  -webkit-user-drag: none;
  cursor: zoom-in;
  transition: transform 0.15s;
}
.nacrti-primjer-viewer .nacrti-primjer-page:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.nacrti-primjer-viewer .nacrti-primjer-page:last-child { margin-bottom: 0; }
@media (max-width: 991px) {
  .nacrti-primjer-viewer { height: 460px; max-height: 60vh; }
}

/* === PDF page lightbox: pinch + wheel zoom + drag pan === */
.nacrti-pdf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 17, 22, 0.94);
  display: none;
  flex-direction: column;
  touch-action: none;
}
@media (min-width: 768px) {
  .nacrti-pdf-lightbox { right: 38px; left: 38px; }
}
.nacrti-pdf-lightbox.is-open { display: flex; }
.nacrti-pdf-lb-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  color: #e6e8eb;
  font: 500 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
.nacrti-pdf-lb-counter { opacity: 0.78; }
.nacrti-pdf-lb-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  padding: 6px 10px;
  font: 500 16px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}
.nacrti-pdf-lb-btn:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.nacrti-pdf-lb-actions { display: flex; gap: 4px; align-items: center; }
.nacrti-pdf-lb-close { font-size: 22px; padding: 6px 12px; }
.nacrti-pdf-lb-reset { font-size: 13px; letter-spacing: 0.04em; }
.nacrti-pdf-lb-stage {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-pdf-lb-img {
  max-width: 95%;
  max-height: 95%;
  transform-origin: 0 0;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  background: #ffffff;
}
.nacrti-pdf-lb-img.is-panning { transition: none; cursor: grabbing; }
.nacrti-pdf-lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 48px;
  line-height: 1;
  padding: 8px 12px;
  cursor: pointer;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transition: opacity 0.15s, transform 0.15s;
}
.nacrti-pdf-lb-arrow:hover { opacity: 0.75; }
.nacrti-pdf-lb-arrow.prev { left: 14px; }
.nacrti-pdf-lb-arrow.next { right: 14px; }
.nacrti-pdf-lb-arrow:disabled { opacity: 0.25; cursor: default; }

/* === O meni — image left, all text right === */
.nacrti-about { padding: 56px 0 24px; position: relative; z-index: 2; }
.nacrti-about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 380px) 1fr;
  gap: 48px;
  align-items: start;
}
.nacrti-about-image img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  display: block;
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.18),
    0 1px 3px rgba(0, 0, 0, 0.06);
}
.nacrti-about-caption {
  margin: 14px 0 0;
  text-align: center;
  font: 500 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a1f29;
}
.nacrti-about-caption .role {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: #6b7280;
  text-transform: uppercase;
}
.nacrti-about-text h1 {
  margin: 0 0 22px;
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 700;
  color: #1a1f29;
  line-height: 1.2;
}
.nacrti-about-text p {
  margin: 0 0 14px;
  line-height: 1.7;
  color: #2b3140;
  font-size: 16px;
}
.nacrti-about-text p:last-child { margin-bottom: 0; }
.nacrti-about-text a { color: #1a73e8; text-decoration: none; }
.nacrti-about-text a:hover { text-decoration: underline; }
.nacrti-about-experience { margin-top: 22px; }
.nacrti-about-experience h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 700;
  color: #1a1f29;
  letter-spacing: 0.02em;
}
.nacrti-about-experience ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}
.nacrti-about-experience li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f3f5f8;
  border: 1px solid #e3e7ee;
  border-radius: 999px;
  font-size: 14px;
  color: #2b3140;
}
.nacrti-about-experience li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1a73e8;
  flex: 0 0 auto;
}
@media (max-width: 767px) {
  .nacrti-about { padding: 32px 0 16px; }
  .nacrti-about-grid { grid-template-columns: 1fr; gap: 24px; }
  .nacrti-about-image { max-width: 320px; margin: 0 auto; }
}

/* === Footer redesign === */
.site-footer .row.footer-sidebar { gap: 0; }

.nacrti-footer-title {
  font: 600 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8ea0c6;
  margin: 0 0 16px;
  position: relative;
  padding-bottom: 10px;
}
.nacrti-footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #1a73e8, #4f8ff5);
  border-radius: 2px;
}
.nacrti-footer-trust .nacrti-footer-title,
.nacrti-footer-menu .nacrti-footer-title,
.nacrti-footer-map-wrap .nacrti-footer-title {
  text-align: left;
}
.nacrti-footer-menu .nacrti-footer-title { text-align: center; }
.nacrti-footer-menu .nacrti-footer-title::after { left: 50%; transform: translateX(-50%); }

.nacrti-footer-map-wrap { margin: 0; padding: 0; }
#nacrti-footer-map {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  background: #2a2a2a;
}
.leaflet-container { background: #2a2a2a; }
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.7) !important;
  font-size: 9px !important;
}
/* Footer is dark — make sure Leaflet zoom +/- buttons stay readable. */
.nacrti-footer-map-wrap .leaflet-bar a,
.nacrti-footer-map-wrap .leaflet-bar a:hover {
  background-color: #ffffff !important;
  color: #1a1f29 !important;
  text-decoration: none !important;
}
.nacrti-footer-map-wrap .leaflet-bar a:hover {
  background-color: #f0f0f0 !important;
}

.nacrti-footer-contact address {
  font-style: normal;
  margin: 0 0 14px;
  color: #d8dbe1;
}
.nacrti-footer-contact address p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 6px;
  line-height: 1.45;
}
.nacrti-footer-contact address p i {
  width: 18px;
  text-align: center;
  color: #4f8ff5;
  margin-top: 3px;
  flex: 0 0 18px;
}
.nacrti-footer-contact address a {
  color: #ffffff;
  text-decoration: none;
}
.nacrti-footer-contact address a:hover { text-decoration: underline; }
.nacrti-footer-contact address .nacrti-line-inline {
  align-items: center;
  flex-wrap: wrap;
  white-space: normal;
}
.nacrti-footer-contact address .nacrti-line-inline .lbl { color: #b6bac5; }
.nacrti-footer-contact address .nacrti-line-inline .val { color: #ffffff; }
.nacrti-footer-contact address .nacrti-line-inline i { margin-top: 0; }

.nacrti-company-card {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 12.5px;
  color: #cfd2da;
}
.nacrti-company-name {
  font-weight: 600;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 2px;
}
.nacrti-company-owner {
  font-style: italic;
  margin-bottom: 8px;
  color: #b6bac5;
}
.nacrti-company-data { margin: 0; display: grid; grid-template-columns: 1fr; gap: 2px; }
.nacrti-company-data > div { display: flex; gap: 8px; }
.nacrti-company-data dt {
  width: 70px;
  flex: 0 0 70px;
  color: #8d92a0;
  font-weight: 500;
  margin: 0;
}
.nacrti-company-data dd { margin: 0; color: #ffffff; font-variant-numeric: tabular-nums; }

/* Footer menu w/ collapsible Kalkulatori */
.nacrti-footer-menu .menu { list-style: none; padding: 0; margin: 0; text-align: center; }
.nacrti-footer-menu .menu > li { margin: 0 0 8px; }
.nacrti-footer-menu .menu > li > a {
  color: #d8dbe1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.nacrti-footer-menu .menu > li > a:hover {
  color: #ffffff;
  background: rgba(26, 115, 232, 0.12);
  transform: translateY(-1px);
}
.nacrti-footer-menu .nacrti-menu-toggle {
  cursor: pointer;
}
.nacrti-footer-menu .nacrti-menu-caret {
  display: inline-block;
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  margin-left: 4px;
  transition: transform 0.2s ease;
}
.nacrti-footer-menu .menu-item-has-children.is-open .nacrti-menu-caret { transform: rotate(180deg); }
.nacrti-footer-menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.nacrti-footer-menu .menu-item-has-children.is-open > .sub-menu {
  max-height: 300px;
}
.nacrti-footer-menu .sub-menu li {
  padding: 6px 0 0 0;
  text-align: center;
}
.nacrti-footer-menu .sub-menu a {
  color: #b6bac5;
  text-decoration: none;
  font-size: 14px;
}
.nacrti-footer-menu .sub-menu a:hover { color: #ffffff; }

/* Trust panel */
.nacrti-trust-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.nacrti-trust-list > li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.nacrti-trust-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a73e8, #4f8ff5);
  color: #ffffff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-trust-number {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
}
.nacrti-trust-label {
  font-size: 12px;
  color: #b6bac5;
  line-height: 1.3;
}
.nacrti-trust-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.nacrti-trust-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  color: #ffffff;
}
.nacrti-trust-cta i { font-size: 18px; }

/* Footer bottom legal row */
.nacrti-footer-bottom {
  margin-top: 36px;
  padding: 18px 0 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 12px;
  color: #8b91a1;
}
.nacrti-footer-bottom-dot { opacity: 0.5; }

/* ============================================================
   Mobile responsiveness — global tightening
   Added 2026-06-08
   ============================================================ */

/* Block any stray horizontal scroll caused by mis-sized children */
html, body { max-width: 100%; }
body { overflow-x: hidden; }
img, video, canvas { max-width: 100%; }

/* iOS auto-zoom: input font must be ≥ 16px when focused on a phone */
@media (max-width: 767px) {
  .nacrti-smb .smb-input,
  .nacrti-weight-row input,
  .nacrti-weight-row select,
  .nacrti-weight-field input,
  .nacrti-calc-teren-row input,
  .nacrti-bend-form input,
  .nacrti-bend-form select,
  .input-row input,
  .input-row select {
    font-size: 16px;
  }
}

/* Container side-padding tighter on phones */
@media (max-width: 480px) {
  .container,
  .container-full {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* Navbar dropdowns — never push past the viewport */
@media (max-width: 480px) {
  .navbar-nav li.dropdown > .dropdown-menu,
  .navbar-nav li.menu-item-has-children > .dropdown-menu,
  .navbar-nav li.menu-item-has-children > .sub-menu {
    min-width: 0;
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
  }
  .navbar-brand img,
  .custom-logo { max-height: 38px; height: auto; width: auto; }
}

/* Language flag buttons — readable & tap-friendly on phones */
@media (max-width: 480px) {
  .nacrti-translate-li { margin-left: 8px; padding: 2px; }
  .nacrti-lang-buttons { gap: 6px; padding: 3px; }
  .nacrti-lang-btn { width: 30px; height: 30px; }
  .nacrti-lang-btn img { width: 24px; height: 24px; }
}

/* Sticky menu + logo on mobile. position:fixed (not sticky) because the
   mobile reset puts overflow-x:hidden on html/body, which breaks sticky. */
@media (max-width: 991px) {
  .navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1500;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    margin: 0;
    padding-top: 6px !important;
    padding-bottom: 6px !important;
  }
  .navbar .navbar-brand { padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; }
  .navbar-brand img,
  .navbar .custom-logo {
    height: 48px !important;
    max-height: 48px !important;
    width: auto !important;
  }
  /* bar is 48px logo + 2×6px padding = 60px — offset the page by that */
  body { padding-top: 60px !important; }
  html { scroll-padding-top: 70px; }
  /* expanded hamburger menu scrolls if taller than the screen */
  .navbar .navbar-collapse { max-height: calc(100vh - 60px); overflow-y: auto; }
}

/* PDF lightbox — bigger touch targets and wrap-friendly bar on phones */
@media (max-width: 767px) {
  .nacrti-pdf-lb-bar { padding: 8px 10px; gap: 6px; flex-wrap: wrap; }
  .nacrti-pdf-lb-btn {
    padding: 12px 16px;
    font-size: 16px;
    min-width: 44px;
    min-height: 44px;
  }
  .nacrti-pdf-lb-close {
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 24px;
    line-height: 44px;
  }
  .nacrti-pdf-lb-arrow {
    padding: 14px 12px;
    font-size: 26px;
    min-width: 44px;
    min-height: 44px;
  }
  .nacrti-pdf-lb-counter { font-size: 13px; min-width: 0; }
}

/* Sheet-metal bend + metal weight calculator chrome on phones */
@media (max-width: 640px) {
  .nacrti-smb .smb-card { padding: 16px; }
  .nacrti-smb .smb-input { padding: 12px 14px; min-height: 44px; }
  .nacrti-smb .smb-dir-btn { width: 44px; height: 44px; flex: 0 0 44px; }
  .nacrti-smb .smb-input-angle { width: 92px; min-height: 44px; }
  .nacrti-smb .smb-btn { padding: 12px 18px; min-height: 44px; }
  .nacrti-smb .smb-bend-row { flex-wrap: wrap; row-gap: 6px; }
  .nacrti-smb .mwc-actions { flex-direction: column; }
  .nacrti-smb .mwc-btn-flex { width: 100%; }
  .nacrti-smb .smb-headline-value,
  .nacrti-smb .mwc-headline-value { font-size: 30px; }
  .nacrti-smb .mwc-svg-wrap { min-height: 220px; padding: 4px; }
  .nacrti-smb .mwc-svg-inner { max-width: 240px; }
  .nacrti-smb .mwc-headline { padding: 18px 14px; }
  .nacrti-smb .smb-headline { padding: 20px 14px; }
  .nacrti-smb .mwc-profile-info { padding: 10px 12px; gap: 4px 12px; font-size: 12.5px; }
}

/* Legacy weight + teren calculator forms (older selectors) */
@media (max-width: 640px) {
  .nacrti-weight-form,
  .nacrti-weight-result,
  .nacrti-calc-teren-form,
  .nacrti-calc-teren-result {
    padding: 16px 16px 18px;
    border-radius: 12px;
  }
  .nacrti-weight-line.total .val,
  .nacrti-calc-teren-line.total .val { font-size: 22px; }
  .nacrti-calc-teren-row input,
  .nacrti-weight-row input,
  .nacrti-weight-row select,
  .nacrti-weight-field input { min-height: 44px; }
  .nacrti-weight-grid,
  .nacrti-weight-fields { grid-template-columns: 1fr 1fr; }
}

/* Bend calc (`/kalkulator-savijanja-lima/`) inputs */
@media (max-width: 640px) {
  .nacrti-bend-form input,
  .nacrti-bend-form select { min-height: 44px; }
  .nacrti-bend-grid { grid-template-columns: 1fr 1fr; }
}

/* Inline fence-layout calc inputs (p=875 / kalkulator-ograda — page-scoped) */
@media (max-width: 640px) {
  .input-row { gap: 10px; }
  .input-row .input-group { min-width: 0; }
  .input-row input,
  .input-row select { min-height: 44px; }
  .input-row .button-group { flex-wrap: wrap; gap: 8px; }
  .input-row .button-group button {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    padding: 10px 12px;
  }
  .canvas-container { margin-left: -6px; margin-right: -6px; }
  canvas { display: block; }
}

/* Result cards on calculator pages */
@media (max-width: 480px) {
  .results-container { grid-template-columns: 1fr !important; gap: 8px; }
  .result-card { padding: 14px 16px; }
  .result-value { font-size: 22px; }
}

/* Footer — tighter on tiny screens */
@media (max-width: 480px) {
  #nacrti-footer-map { height: 220px; }
  .nacrti-footer-title { font-size: 12px; }
  .nacrti-company-card { font-size: 12px; }
  .footer-sidebar [class*="col-"] { margin-bottom: 18px; }
}

/* Cards on listing pages (cjenik picks, kalkulatori, primjeri) */
@media (max-width: 480px) {
  .nacrti-cjenik-pick { gap: 14px; }
  .nacrti-cjenik-pick-card { padding: 18px 16px; }
  .nacrti-cjenik-pick-card h2 { font-size: 18px; }
  .nacrti-primjer-card .nacrti-primjer-meta h3 { font-size: 16px; }
  .nacrti-primjer-card .nacrti-primjer-meta p { font-size: 13px; }
  .nacrti-kalk-card .nacrti-kalk-icon { font-size: 28px; }
}

/* 3D model modal hint and title block more compact on phones */
@media (max-width: 480px) {
  .nacrti-3d-modal { padding: 56px 14px 18px; }
  .nacrti-3d-modal-title { font-size: 15px; margin: 0 0 8px; }
  .nacrti-3d-modal-hint { font-size: 11px; line-height: 1.45; padding: 0 6px; }
  .nacrti-3d-close { top: 10px; right: 12px; width: 38px; height: 38px; }
}

/* Generic: anything wide/tabular should be scrollable, not pushing the page */
@media (max-width: 640px) {
  table { display: block; max-width: 100%; overflow-x: auto; }
}

/* Hero slider mobile: match the live nacrti.com WP rule exactly. */
@media only screen and (max-width: 767px) {
  .theme-main-slider .item { height: 500px; }
  /* Theme overlaps the info-area box over the hero bottom on desktop;
     the existing mobile override is too low-specificity to win.
     Force the white "Nacrti / Izmjere / Vizualizacija" card flush below
     the hero so it stops covering the "Vidi više detalja" button. */
  .theme-main-slider ~ #theme-info-area .theme-info-area,
  #theme-info-area .theme-info-area {
    margin-top: 0 !important;
  }
  /* Hide prev/next arrows on the hero — touch swipe is enough on phones. */
  .theme-main-slider .owl-nav,
  .theme-main-slider .owl-prev,
  .theme-main-slider .owl-next {
    display: none !important;
  }
}

/* ============================================================
   Aggressive mobile reset (2026-06-08-r2)
   ============================================================ */
@media (max-width: 767px) {
  /* Hard reset: never wider than the viewport */
  html, body { width: 100% !important; max-width: 100vw !important; min-width: 0 !important; overflow-x: hidden !important; }
  body, body * { box-sizing: border-box !important; }
  body img,
  body svg:not(.mwc-svg-inner svg):not(.smb-viz svg),
  body iframe,
  body video,
  body table { max-width: 100% !important; height: auto; }
  body iframe { width: 100% !important; }

  /* Force every wp/elementor/bootstrap section to never exceed viewport */
  .container,
  .container-fluid,
  .container-full,
  .elementor-section,
  .elementor-container,
  .elementor-column,
  .row,
  .wp-block-group,
  section,
  main,
  article {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Bootstrap rows: drop horizontal margin that creates side-scroll */
  .row { margin-left: 0 !important; margin-right: 0 !important; }
  .row > [class*="col-"] { padding-left: 12px !important; padding-right: 12px !important; }

  /* Smaller h1/h2 so they don't blow past the screen — but DON'T touch
     the hero title; let the theme own that. */
  h1:not(.title-large) { font-size: 26px !important; line-height: 1.15 !important; }
  h2 { font-size: 22px !important; line-height: 1.2 !important; }
  h3 { font-size: 18px !important; line-height: 1.25 !important; }
  p:not(.description)  { font-size: 15px !important; line-height: 1.5 !important; }

  /* Ensure navbar items wrap onto multiple lines instead of overflowing */
  .navbar { flex-wrap: wrap !important; }
  .navbar-collapse { width: 100% !important; }
  .navbar-nav { flex-direction: column !important; width: 100% !important; padding: 8px 0; }
  .navbar-nav li.nav-item,
  .navbar-nav li.menu-item { width: 100% !important; }
  .navbar-nav .nav-link { padding: 12px 16px !important; }

  /* Mm-paper grid + cursor effect: hover decoration only — kill it on touch */
  .mm-paper-bg,
  .mm-paper-cursor { display: none !important; }
}

@media (max-width: 420px) {
  .theme-main-slider .item { height: 360px !important; }
  .theme-main-slider .title-large { font-size: 22px !important; }
  .theme-main-slider .description { font-size: 13px !important; -webkit-line-clamp: 2; }
}

/* ============================================================
   Blog post pages — /blog/<slug>/
   ============================================================ */
.nacrti-blog-post {
  padding: 36px 26px 48px;
  background: #fbf6e3;
  background-image: radial-gradient(rgba(31,41,55,0.08) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: 0 0;
}
.nacrti-blog-article {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 36px 44px 44px;
  box-shadow: 0 6px 24px rgba(15,23,42,0.06);
}
@media (max-width: 640px) {
  .nacrti-blog-post { padding: 18px 16px 28px; }
  .nacrti-blog-article { padding: 22px 18px 28px; border-radius: 10px; }
}
.nacrti-blog-cat {
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 6px;
}
.nacrti-blog-article h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #0f172a;
  margin: 0 0 10px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .nacrti-blog-article h1 { font-size: 24px; line-height: 1.22; }
}
.nacrti-blog-meta {
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  color: #64748b;
  margin: 0 0 24px;
}
.nacrti-blog-cover {
  margin: 0 -10px 24px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
}
.nacrti-blog-cover img,
.nacrti-blog-cover svg {
  width: 100%;
  height: auto;
  display: block;
}
.nacrti-blog-body p.lead {
  font-size: 17px;
  line-height: 1.55;
  color: #334155;
  margin: 0 0 22px;
  font-weight: 500;
}
.nacrti-blog-body h2 {
  font-size: 20px;
  line-height: 1.3;
  color: #0f172a;
  margin: 28px 0 10px;
  font-weight: 700;
}
.nacrti-blog-body h3 {
  font-size: 17px;
  color: #0f172a;
  margin: 20px 0 8px;
  font-weight: 600;
}
.nacrti-blog-body p,
.nacrti-blog-body li {
  font-size: 16px;
  line-height: 1.65;
  color: #1e293b;
  margin: 0 0 14px;
}
.nacrti-blog-body ul { padding-left: 22px; margin: 0 0 18px; }
.nacrti-blog-body a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nacrti-blog-body a:hover { color: #1d4ed8; }
.nacrti-blog-foot {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.nacrti-blog-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: #2563eb;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
}
.nacrti-blog-cta.is-ghost {
  background: #ffffff;
  color: #2563eb !important;
  border: 1px solid #cbd5e1;
}
.nacrti-blog-cta:hover { background: #1d4ed8; color: #fff !important; }
.nacrti-blog-cta.is-ghost:hover { background: #f1f5f9; color: #1d4ed8 !important; }
.nacrti-blog-back {
  display: inline-block;
  font-family: "Roboto Mono", Consolas, monospace;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
}
.nacrti-blog-back:hover { color: #2563eb; }

/* === Blog — listing grid + article page === */
.nacrti-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 991px) { .nacrti-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .nacrti-blog-grid { grid-template-columns: 1fr; } }
.nacrti-blog-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nacrti-blog-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(26, 115, 232, 0.16), 0 0 0 1px rgba(26, 115, 232, 0.10);
}
.nacrti-blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e8ecf2;
}
.nacrti-blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s;
}
.nacrti-blog-card:hover .nacrti-blog-card-img img { transform: scale(1.04); }
.nacrti-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}
.nacrti-blog-card-date {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a93a3;
}
.nacrti-blog-card-body h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  color: #1a1f29;
  line-height: 1.3;
}
.nacrti-blog-card-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #5a6170;
}
.nacrti-blog-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  letter-spacing: 0.01em;
}
.nacrti-blog-card-cta span { margin-left: 4px; transition: transform 0.15s; display: inline-block; }
.nacrti-blog-card:hover .nacrti-blog-card-cta span { transform: translateX(3px); }

/* Empty state while there are no posts yet */
.nacrti-blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 56px 20px;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.04);
  color: #5a6170;
}
.nacrti-blog-empty svg { width: 44px; height: 44px; color: #b9c2d0; margin-bottom: 12px; }
.nacrti-blog-empty p { margin: 0; font-size: 16px; }

/* Article (single post) */
.nacrti-blog-post { max-width: 780px; margin: 0 auto; }
.nacrti-blog-post-hero {
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 26px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.nacrti-blog-post-hero img { display: block; width: 100%; height: auto; }
.nacrti-blog-post-meta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a93a3;
  margin: 0 0 10px;
}
.nacrti-blog-post h1 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #1a1f29;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-align: left;
}
.nacrti-blog-post h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  color: #1a1f29;
  margin: 34px 0 12px;
}
.nacrti-blog-post h3 { font-size: 18px; font-weight: 700; color: #1a1f29; margin: 26px 0 10px; }
.nacrti-blog-post p { font-size: 16px; line-height: 1.7; color: #3c4350; margin: 0 0 16px; }
.nacrti-blog-post ul, .nacrti-blog-post ol { margin: 0 0 16px; padding-left: 22px; }
.nacrti-blog-post li { font-size: 16px; line-height: 1.7; color: #3c4350; margin-bottom: 6px; }
.nacrti-blog-post img { max-width: 100%; height: auto; border-radius: 10px; }
.nacrti-blog-back {
  display: inline-block;
  margin: 0 0 22px;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: #1a73e8;
  text-decoration: none;
}
.nacrti-blog-back:hover { text-decoration: underline; color: #1a73e8; }

/* === Blog article components === */
.nacrti-post-lead { font-size: 18px !important; line-height: 1.65 !important; color: #1a1f29 !important; }
.nacrti-post-note {
  margin: 24px 0;
  padding: 24px 26px;
  border-radius: 12px;
  background: #e8f0fe;
  border: 1px solid #c9dcfb;
  border-left: 5px solid #1a73e8;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}
.nacrti-post-note p { margin: 0 !important; font-size: 15.5px !important; line-height: 1.6 !important; color: #1d3a63 !important; }
/* Icon hangs at the start; text wraps full-width from the left edge of the box. */
.nacrti-post-note .ico { float: left; margin: 1px 10px 0 0; font-size: 18px; line-height: 1.4; }
.nacrti-post-note.warn { background: #fde7b8; border-color: #f3d27a; border-left-color: #e8a300; }
.nacrti-post-note.warn p { color: #5e4500 !important; }

.nacrti-post-check {
  list-style: none !important;
  margin: 18px 0 22px !important;
  padding: 20px 22px !important;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}
@media (max-width: 640px) { .nacrti-post-check { grid-template-columns: 1fr; } }
.nacrti-post-check li {
  position: relative;
  margin: 0 !important;
  padding-left: 28px;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
.nacrti-post-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e1f0e5;
  color: #1e8e3e;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nacrti-post-tablewrap { margin: 20px 0 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; box-shadow: 0 4px 18px rgba(0,0,0,0.07), 0 0 0 1px rgba(0,0,0,0.05); }
.nacrti-post-table { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
.nacrti-post-table th {
  background: #17212c;
  color: #ffffff;
  text-align: left;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 12px 14px;
}
.nacrti-post-table td { padding: 12px 14px; font-size: 14.5px; line-height: 1.5; color: #3c4350; border-top: 1px solid #edf0f4; vertical-align: top; }
.nacrti-post-table tr td:first-child { font-weight: 700; color: #1a1f29; white-space: nowrap; }
.nacrti-post-table tbody tr:nth-child(even) td { background: #f7f9fc; }
.nacrti-post-table td .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  margin-bottom: 6px;
}
.tag-blue { background: #eaf2fe; color: #1a73e8; }
.tag-green { background: #e1f0e5; color: #1e8e3e; }
.tag-orange { background: #fef3e2; color: #b06000; }

.nacrti-post-cost {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 8px;
  margin: 22px 0 26px;
}
@media (max-width: 640px) {
  .nacrti-post-cost { grid-template-columns: 1fr; }
  .nacrti-post-cost .arr { transform: rotate(90deg); }
}
.nacrti-post-cost .step {
  border-radius: 12px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid transparent;
}
.nacrti-post-cost .step .eur { font-size: 22px; font-weight: 800; letter-spacing: 2px; margin-bottom: 6px; }
.nacrti-post-cost .step .lbl { font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.nacrti-post-cost .s1 { background: #e1f0e5; border-color: #bfe3c8; }
.nacrti-post-cost .s1 .eur, .nacrti-post-cost .s1 .lbl { color: #1e6b34; }
.nacrti-post-cost .s2 { background: #fef3e2; border-color: #f6ddb0; }
.nacrti-post-cost .s2 .eur, .nacrti-post-cost .s2 .lbl { color: #8a5a00; }
.nacrti-post-cost .s3 { background: #fdeaea; border-color: #f3c2c2; }
.nacrti-post-cost .s3 .eur, .nacrti-post-cost .s3 .lbl { color: #b3261e; }
.nacrti-post-cost .arr { align-self: center; justify-self: center; color: #8a93a3; font-size: 20px; font-weight: 700; }

.nacrti-post-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 24px;
}
@media (max-width: 640px) { .nacrti-post-trio { grid-template-columns: 1fr; } }
.nacrti-post-trio .cell {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.nacrti-post-trio .cell .who {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1a73e8;
  background: #eaf2fe;
  border-radius: 20px;
  padding: 4px 10px;
  margin-bottom: 8px;
}
.nacrti-post-trio .cell p { margin: 0 !important; font-size: 14px !important; line-height: 1.55 !important; }

.nacrti-post-conclusion {
  margin: 28px 0 8px;
  padding: 24px 26px;
  border-radius: 14px;
  background: linear-gradient(135deg, #17212c, #24344a);
  color: #eef3fa;
}
.nacrti-post-conclusion h2 { color: #ffffff !important; margin: 0 0 10px !important; font-size: 21px !important; }
.nacrti-post-conclusion p { color: #c9d6e6 !important; font-size: 15.5px !important; margin: 0 0 14px !important; }
.nacrti-post-conclusion p:last-of-type { margin-bottom: 0 !important; }
.nacrti-post-conclusion a.cta {
  display: inline-block;
  margin-top: 6px;
  background: #1a73e8;
  color: #ffffff;
  font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
}
.nacrti-post-conclusion a.cta:hover { background: #3b8bf0; color: #fff; text-decoration: none; }

/* Article preparation checklist (title + description per item) */
.nacrti-post-prep {
  list-style: none !important;
  margin: 18px 0 24px !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nacrti-post-prep li {
  position: relative;
  margin: 0 !important;
  padding: 15px 18px 15px 54px !important;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.05);
  font-size: 14.5px !important;
  line-height: 1.55 !important;
  color: #5a6170 !important;
}
.nacrti-post-prep li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 15px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e1f0e5;
  color: #1e8e3e;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nacrti-post-prep strong { display: block; color: #1a1f29; font-size: 15.5px; margin-bottom: 3px; }

/* Two-column variant of the trio (e.g. side-by-side comparison) */
.nacrti-post-trio.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .nacrti-post-trio.duo { grid-template-columns: 1fr; } }
.nacrti-post-trio .cell .who.bad { color: #b3261e; background: #fdeaea; }
