/* ==========================================================================
   Komponente: dugmad, naslovi sekcija, kartice, FAQ, forme, obavještenja
   ========================================================================== */

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
}

.btn--sm {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn--lg {
  min-height: 56px;
  padding: 14px 26px;
  font-size: 1.06rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: 0 8px 20px -10px rgba(242, 171, 0, 0.8);
}

.btn--primary:hover {
  background: var(--yellow-strong);
}

.btn--dark {
  background: var(--navy-900);
  color: var(--white);
}

.btn--dark:hover {
  background: var(--navy-700);
}

.btn--outline {
  border-color: var(--navy-900);
  color: var(--navy-900);
  background: transparent;
}

.btn--outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
  background: transparent;
}

.btn--outline-light:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn--ghost {
  background: var(--bg-light);
  color: var(--navy-900);
}

.btn--ghost:hover {
  background: var(--line);
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.65;
  cursor: progress;
  transform: none;
}

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

.btn-row--center {
  justify-content: center;
}

.btn-row--wrap .btn {
  flex: 0 1 auto;
}

@media (max-width: 480px) {
  .btn-row:not(.btn-row--wrap) > .btn {
    flex: 1 1 100%;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-900);
  text-decoration: none;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}

.link-arrow .icon {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover .icon {
  transform: translateX(4px);
}

.section--dark .link-arrow {
  color: var(--white);
}

/* ---------- Naslovi sekcija ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
}

.eyebrow--light {
  color: var(--yellow);
}

.section-title {
  font-size: var(--fs-h2);
  margin-bottom: 0.45em;
}

.section-title--sm {
  font-size: var(--fs-h2-sm);
}

.section-lead {
  font-size: clamp(1.06rem, 0.3vw + 1rem, 1.18rem);
  color: var(--text-muted);
  max-width: 60ch;
}

.section--dark .section-lead {
  color: var(--on-dark-muted);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px 64px;
  align-items: end;
}

.section-head--split .section-title {
  margin-bottom: 0;
  max-width: 20ch;
}

.section-head--split .section-lead {
  margin-bottom: 16px;
}

.section-head--center {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.section-head--center .section-lead {
  margin-inline: auto;
}

@media (max-width: 899px) {
  .section-head--split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Liste i značke ---------- */

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 28px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 550;
}

.checklist .icon {
  margin-top: 2px;
  padding: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-900);
  stroke-width: 2.6;
}

.checklist--compact {
  gap: 8px;
  margin: 12px 0 24px;
}

.checklist--compact li {
  font-size: 0.98rem;
}

.checklist--compact .icon {
  width: 22px;
  height: 22px;
}

.checklist--grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
}

@media (max-width: 640px) {
  .checklist--grid {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #7a5200;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.photo-note {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
}

/* ---------- Kartice usluga ---------- */

.services-grid {
  display: grid;
  gap: 24px;
}

.services-grid--feature {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.services-grid--others {
  margin-top: 0;
}

.svc-card {
  position: relative;
  display: flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.svc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.svc-card:focus-within {
  box-shadow: 0 0 0 3px var(--focus);
}

.svc-card .stretched-link:focus-visible {
  outline: none;
}

.svc-card__media {
  position: relative;
  overflow: hidden;
  background: var(--navy-800);
}

.svc-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.svc-card:hover .svc-card__media img {
  transform: scale(1.04);
}

.svc-card__title {
  margin-bottom: 8px;
}

.svc-card__title a {
  text-decoration: none;
}

.svc-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  font-weight: 700;
  font-size: 0.95rem;
}

.svc-card:hover .svc-card__more .icon {
  transform: translateX(4px);
}

.svc-card__more .icon {
  transition: transform var(--dur) var(--ease);
}

/* Istaknute (prioritetne) kartice */
.svc-card--feature {
  flex-direction: column;
  background: var(--navy-900);
  color: var(--white);
}

.svc-card--feature .svc-card__media {
  aspect-ratio: 4 / 3;
}

.svc-card__num {
  position: absolute;
  left: 16px;
  top: 16px;
  display: grid;
  place-items: center;
  min-width: 44px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy-900);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9rem;
}

.svc-card--feature .svc-card__body {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 44px 26px 26px;
}

.svc-card--feature .svc-card__icon {
  position: absolute;
  top: -28px;
  left: 26px;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5);
}

.svc-card--feature .svc-card__text {
  color: var(--on-dark-muted);
}

.svc-card--feature .svc-card__more {
  color: var(--yellow);
}

/* Kompaktne kartice */
.svc-card--compact {
  background: var(--white);
  border: 1px solid var(--line);
  align-items: stretch;
}

.section--light .svc-card--compact {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.svc-card--compact .svc-card__media {
  flex: 0 0 34%;
  min-height: 100%;
}

.svc-card--compact .svc-card__media picture {
  height: 100%;
}

.svc-card--compact .svc-card__body {
  display: flex;
  flex-direction: column;
  padding: 20px 22px;
  min-width: 0;
}

.svc-card--compact .svc-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
  color: var(--navy-900);
}

.svc-card--compact .svc-card__title {
  font-size: 1.1rem;
}

.svc-card--compact .svc-card__text {
  color: var(--text-muted);
  font-size: 0.98rem;
}

.svc-card--compact .svc-card__more {
  color: var(--navy-900);
  padding-top: 10px;
}

@media (max-width: 1099px) {
  .services-grid--feature {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-grid--feature .svc-card:first-child {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .services-grid--feature .svc-card:first-child .svc-card__media {
    flex: 0 0 50%;
    aspect-ratio: auto;
    min-height: 320px;
  }

  .services-grid--feature .svc-card:first-child .svc-card__body {
    justify-content: center;
    padding: 36px;
  }

  .services-grid--feature .svc-card:first-child .svc-card__icon {
    position: static;
    margin-bottom: 18px;
  }

  .services-grid--compact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .services-grid--feature {
    grid-template-columns: 1fr;
  }

  .services-grid--feature .svc-card:first-child {
    flex-direction: column;
  }

  .services-grid--feature .svc-card:first-child .svc-card__media {
    flex: none;
    aspect-ratio: 4 / 3;
    min-height: 0;
  }

  .services-grid--feature .svc-card:first-child .svc-card__body {
    padding: 44px 24px 24px;
  }

  .services-grid--feature .svc-card:first-child .svc-card__icon {
    position: absolute;
    margin: 0;
  }

  .svc-card--compact .svc-card__media {
    flex-basis: 30%;
  }
}

/* ---------- FAQ (details/summary - radi tastaturom i bez JS-a) ---------- */

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.faq-item[open] {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.35;
  color: var(--navy-900);
  border-radius: var(--radius);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover .faq-item__q {
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

.faq-item__icon {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-light);
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 1px;
  background: var(--navy-900);
  transition: transform var(--dur) var(--ease);
}

.faq-item__icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-item__icon {
  background: var(--yellow);
}

.faq-item[open] .faq-item__icon::after {
  transform: rotate(0deg);
}

.faq-item__a {
  padding: 0 22px 22px;
  color: var(--text-muted);
}

.faq-item__a p {
  max-width: 68ch;
}

/* ---------- Forme ---------- */

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow);
  border-top: 5px solid var(--yellow);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.form-card:focus {
  outline: none;
}

.form-card__lead {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--navy-900);
}

.field__req,
.field__opt {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
  font-size: 1.02rem;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.field textarea {
  resize: vertical;
  min-height: 150px;
  line-height: 1.5;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #687386;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: var(--text-muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(10, 92, 255, 0.25);
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 1px;
}

.select {
  position: relative;
}

.select select {
  appearance: none;
  padding-right: 44px;
  cursor: pointer;
}

.select .icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-muted);
}

.field__error {
  margin: 0;
  min-height: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
  background: #fffafa;
}

.form-note,
.form-privacy {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.form-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 22px 0 10px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg-light);
}

.form-note .icon {
  margin-top: 2px;
  color: var(--navy-900);
}

.form-privacy {
  margin-bottom: 20px;
}

.form-privacy a {
  color: var(--navy-900);
  font-weight: 650;
}

/* Honeypot - skriven ljudima, bez display:none radi botova */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Obavještenja ---------- */

.notice {
  padding: 16px 18px;
  border-radius: var(--radius);
  margin-bottom: 22px;
  border: 1px solid transparent;
}

.notice p {
  margin-bottom: 8px;
}

.notice .btn-row {
  margin-top: 12px;
}

.notice__title {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.notice__title .icon {
  margin-top: 2px;
}

.notice--success {
  background: var(--success-bg);
  border-color: #b6e2c9;
  color: #0d5132;
}

.notice--error {
  background: var(--error-bg);
  border-color: #f5c2bd;
  color: #7a1a12;
}

.notice--warn {
  background: var(--yellow-soft);
  border-color: #f3dc9a;
  color: #5c3d00;
}

/* ---------- Ostale kartice ---------- */

.tip-card {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--white);
}

.tip-card p {
  color: var(--on-dark-muted);
  margin-bottom: 14px;
}

.tip-card .tip-card__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 4px;
}

.tip-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--yellow);
  color: var(--navy-900);
}

.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  color: var(--navy-900);
}

.chip .icon {
  padding: 6px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--yellow-soft);
}

@media (max-width: 560px) {
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chip {
    padding: 14px;
    font-size: 0.95rem;
  }
}

/* ---------- CMS: saglasnost, pregled nacrta, logo slika ---------- */

.consent {
  position: fixed;
  z-index: 70;
  left: 16px;
  bottom: calc(16px + var(--mobile-bar-h) + env(safe-area-inset-bottom, 0px));
  width: min(460px, calc(100vw - 32px));
  padding: 20px;
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

.consent__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.consent__text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.consent__text a {
  color: var(--navy-900);
  font-weight: 650;
}

.consent__options {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.consent__opt {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.consent__opt strong {
  display: block;
  color: var(--navy-900);
}

.consent__opt input {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  accent-color: var(--navy-900);
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-button:hover {
  color: var(--white);
}

.preview-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 8px 16px;
  background: #b42318;
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 0.95rem;
}


.project-card__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.project-card__thumbs li {
  width: 64px;
  height: 48px;
  border-radius: 6px;
  overflow: hidden;
}

.project-card__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal__rich ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
}

.legal__rich li {
  position: relative;
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius);
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.55;
  list-style: none;
}

.legal__rich li::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 21px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 3px var(--yellow-soft);
}

.legal__rich ol {
  padding-left: 22px;
}

.legal__rich p + p,
.legal__rich ul + p {
  margin-top: 12px;
}

.legal__rich strong {
  color: var(--navy-900);
}

.legal__rich h2,
.legal__rich h3 {
  font-size: 1.15rem;
  color: var(--navy-900);
  margin-top: 1em;
}

.legal__rich p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.legal__rich a {
  color: var(--navy-900);
  font-weight: 650;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 2px;
}

/* ---------- Video na klik (poster + dugme; video se učitava tek na klik) ---------- */
.video-card,
.video-card__start {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  background: var(--navy-900);
}

.video-card__start picture,
.video-card__start img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.35);
  transition: transform 0.2s ease;
}

.video-card__play svg {
  fill: currentColor;
  margin-left: 3px;
}

.video-card__start:hover .video-card__play,
.video-card__start:focus-visible .video-card__play {
  transform: scale(1.08);
}

.video-card__start:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
}

.video-card__dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.65);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
}

.video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.project-card__media--video.is-playing {
  aspect-ratio: 3 / 4;
}

@media (prefers-reduced-motion: reduce) {
  .video-card__play {
    transition: none;
  }
}

/* ---------- WhatsApp / Viber: zvanični znakovi u bojama brenda ---------- */
.icon.icon--brand.icon-whatsapp {
  color: #25d366;
}

.icon.icon--brand.icon-viber {
  color: #7360f2;
}

/* Na žutim dugmadima jednobojno (dozvoljena varijanta znaka), zbog kontrasta */
.btn--primary .icon.icon--brand,
.mobile-bar__item--call .icon.icon--brand {
  color: currentColor;
}
