/* ===== Variables ===== */
:root {
  --color-bg: #f8fafc;
  --color-bg-alt: #ffffff;
  --color-text: #1e293b;
  --color-text-muted: #475569;
  --color-accent: #c2410c;
  --color-accent-hover: #9a3412;
  --color-accent-light: #ffedd5;
  --color-dark: #0f172a;
  --color-border: #e2e8f0;
  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --tap-min: 44px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --color-skela: #c2410c;
  --color-skela-hover: #9a3412;
  --color-usluga: #2d3a4a;
  --color-usluga-hover: #3d4d60;
  --color-posao: #1a6b5a;
  --color-posao-hover: #15574a;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body > main {
  flex: 1 0 auto;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Layout ===== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-2xl) 0;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 var(--space-lg);
  color: var(--color-dark);
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}

.section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  background: var(--color-accent);
  border-radius: 2px;
  margin-top: 8px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease 0.4s;
}

.reveal.revealed .section-title::after,
.section-title.reveal.revealed::after {
  transform: scaleX(1);
}

/* ===== Header (mobile-first) ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  width: 100%;
  overflow-x: hidden;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  min-height: 56px;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  min-width: 0;
  flex-shrink: 0;
  align-self: center;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

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

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

.logo-word {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: 0.04em;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 48px;
  box-sizing: border-box;
  transform: translateY(-4px);
}

.header-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  transform: translateY(-4px);
}

/* Language dropdown */
.script-select {
  min-height: 32px;
  padding: 0 0.5rem;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.35rem center;
  padding-right: 1.5rem;
}

.script-select:hover {
  border-color: var(--color-accent);
}

.script-select:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 10px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

.header.open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header.open .hamburger span:nth-child(2) {
  opacity: 0;
}

.header.open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-2xl);
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.3s, opacity 0.3s;
  z-index: 99;
  -webkit-tap-highlight-color: transparent;
}

.header.open .nav {
  visibility: visible;
  opacity: 1;
}

.nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-dark);
  padding: var(--space-sm);
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* Phone link inside nav menu – highlighted */
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--color-accent);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.nav-phone:hover {
  background: var(--color-accent-hover);
  color: #fff !important;
  text-decoration: none;
}
.nav-phone svg {
  fill: #fff;
  flex-shrink: 0;
}

@media (min-width: 960px) {
  .nav-phone {
    animation: phonePulse 3s ease-in-out infinite;
  }
}

@keyframes phonePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(194, 65, 12, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(194, 65, 12, 0); }
}


/* ===== Hero (full-bleed image with overlay content) ===== */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 75vh;
  padding: var(--space-xl) var(--space-md);
  overflow: hidden;
  contain: layout paint;
  z-index: 0;
}

/* Block hero from showing through below (stops flash at bottom) */
.main-below-hero {
  position: relative;
  z-index: 1;
  background: var(--color-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
  color: #fff;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.95);
}
.hero-subtitle--accent {
  color: var(--color-accent-light);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin: 0 0 var(--space-lg);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.hero-ctas .btn {
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-md);
  min-width: 200px;
  box-shadow: 0 4px 14px rgb(0 0 0 / 0.25);
}

.hero-ctas .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
}

/* Mobile: all three buttons stacked, same width */
@media (max-width: 767px) {
  .hero-ctas {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    align-items: center;
    max-width: 100%;
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 220px;
    box-sizing: border-box;
  }
}

/* ===== Hero phone strip ===== */
.hero-phone {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero-phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  padding: 0.55rem 1.4rem;
  border-radius: 50px;
  transition: background 0.25s, transform 0.25s, color 0.25s;
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hero-phone-name::after {
  content: ' —';
}

@media (max-width: 374px) {
  .hero-phone-link {
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1.2rem;
  }
  .hero-phone-link svg {
    display: none;
  }
  .hero-phone-name::after {
    content: none;
  }
  .hero-phone-name {
    font-size: 0.9rem;
  }
  .hero-phone-number {
    font-size: 1.05rem;
  }
}

.hero-phone-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hero-phone-link svg {
  flex-shrink: 0;
}

/* ===== Form phone header ===== */
.form-phone-header {
  text-align: center;
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--color-border);
}

.form-phone-cta {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

.form-phone-header-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-accent);
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 0.2s;
  flex-wrap: wrap;
  justify-content: center;
}

.form-phone-header-link:hover {
  color: var(--color-accent-hover);
}

.form-phone-header-link svg {
  flex-shrink: 0;
}

.form-phone-name::after {
  content: ' —';
}

@media (max-width: 374px) {
  .form-phone-header-link {
    flex-direction: column;
    gap: 0;
  }
  .form-phone-header-link svg {
    display: none;
  }
  .form-phone-name::after {
    content: none;
  }
  .form-phone-name {
    font-size: 1.1rem;
  }
  .form-phone-number {
    font-size: 1.3rem;
  }
}

.form-phone-divider {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-transform: lowercase;
}

.form-alt-divider {
  margin: var(--space-xl) 0 var(--space-sm);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}

.google-form-toggle-btn {
  width: 100%;
  margin-bottom: 0;
}

.google-form-toggle-wrap {
  margin-top: var(--space-sm);
}

.google-form-embed-wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-bg);
}

.google-form-embed {
  display: block;
  width: 100%;
  min-height: 800px;
  border: 0;
}

@media (max-width: 767px) {
  .google-form-embed {
    min-height: 700px;
  }
}

/* ===== Buttons ===== */
.btn {
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: white;
}

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

.btn-secondary:hover {
  background: #334155;
  text-decoration: none;
  color: white;
}

.btn-skela {
  background: var(--color-skela);
  color: white;
}

.btn-skela:hover {
  background: var(--color-skela-hover);
  text-decoration: none;
  color: white;
}

.btn-usluga {
  background: var(--color-usluga);
  color: white;
}

.btn-usluga:hover {
  background: var(--color-usluga-hover);
  text-decoration: none;
  color: white;
}

.btn-posao {
  background: var(--color-posao);
  color: white;
}

.btn-posao:hover {
  background: var(--color-posao-hover);
  text-decoration: none;
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 2px solid var(--color-dark);
}

.btn-outline:hover {
  background: var(--color-dark);
  color: white;
  text-decoration: none;
  border-color: var(--color-dark);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
}

.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: white;
  text-decoration: none;
}

/* ===== Usluge cards (mobile-first) ===== */
.usluge {
  background: var(--color-bg-alt);
}

.cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px -4px rgb(0 0 0 / 0.12), 0 4px 8px -2px rgb(0 0 0 / 0.08);
}

.card--skela { border-top-color: var(--color-skela); }
.card--usluga { border-top-color: var(--color-usluga); }
.card--posao { border-top-color: var(--color-posao); }

.card-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 0 var(--space-sm);
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

.card-text {
  flex: 1;
  margin: 0 0 var(--space-md);
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card-cta {
  width: 100%;
  margin-top: 0;
  flex-shrink: 0;
}

.trust {
  background: #f5f4f2;
}

.how-it-works {
  background: var(--color-bg-alt);
}

.service-area {
  background: #fef7ee;
}

.testimonials {
  background: var(--color-bg);
}

.faq {
  background: var(--color-bg);
}

.trust .container,
.how-it-works .container,
.testimonials .container,
.service-area .container,
.faq .container {
  text-align: center;
}

.trust .section-title::after,
.how-it-works .section-title::after,
.testimonials .section-title::after,
.service-area .section-title::after,
.faq .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.trust-grid,
.how-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

.trust-card,
.how-card,
.testimonial-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.trust-card:hover,
.how-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgb(0 0 0 / 0.1);
}

.trust-number {
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}
.trust-number--long {
  font-size: clamp(1.65rem, 4.5vw, 2.5rem);
}

.trust-label,
.how-card-title,
.testimonial-name {
  margin: 0 0 var(--space-xs);
  color: var(--color-dark);
  font-size: 1.125rem;
  font-weight: 800;
}

.trust-text,
.how-card-text,
.service-area-text,
.faq-answer {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.how-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-md);
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -4px rgb(0 0 0 / 0.1);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--color-accent-light);
  font-size: 4rem;
  line-height: 1;
  font-weight: 800;
}

.testimonial-quote {
  flex: 1;
  position: relative;
  margin: 0 0 var(--space-md);
  padding-top: var(--space-lg);
  color: var(--color-text);
  line-height: 1.8;
  font-size: 1rem;
}

.testimonial-card .testimonial-name {
  margin-top: auto;
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.service-area-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: stretch;
}

.service-area-copy,
.service-area-map {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.service-area-copy {
  padding: var(--space-xl);
  text-align: left;
}

.service-area-tags {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.service-area-tag {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-size: 0.875rem;
  font-weight: 700;
}

.service-area-cta {
  width: 100%;
  max-width: 260px;
}

.service-area-map {
  overflow: hidden;
  min-height: 320px;
}

.service-area-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}
.service-area-map-link {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.service-area-map-link:hover {
  text-decoration: underline;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: var(--space-md);
  text-align: left;
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  list-style: none;
  cursor: pointer;
  padding: var(--space-lg);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-dark);
}

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

.faq-question::after {
  content: '+';
  float: right;
  color: var(--color-accent);
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.35s ease;
  display: inline-block;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
}

.faq-answer-wrap {
  overflow: hidden;
  transition: height 0.35s ease;
}

@media (min-width: 768px) {
  .trust-grid,
  .how-grid,
  .testimonials-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-area-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

/* ===== Form sections (form + picture per service) ===== */
.form-section {
  background: var(--color-bg-alt);
}

.form-section:nth-of-type(even) {
  background: var(--color-bg);
}

.form-section-grid {
  position: relative;
  min-height: calc(100vh - 72px);
}

.form-section-image {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.form-section-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.82);
  z-index: 1;
}

.form-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.form-section-form-wrap {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 767px) {
  .form-section-form-wrap {
    width: calc(100% - 2 * var(--space-md));
    margin: 0 auto;
    padding: var(--space-md);
    text-align: center;
  }

  .form-section-form-wrap label {
    text-align: center;
  }

  .form-section-form-wrap input,
  .form-section-form-wrap textarea,
  .form-section-form-wrap select {
    text-align: center;
  }

  body.form-page .form-section-form .input-file-wrap {
    display: block;
    text-align: center;
  }

  body.form-page .form-section-form .input-file-trigger {
    display: inline-flex;
    width: auto;
  }

  body.form-page .form-page-actions {
    display: block;
    text-align: center;
  }

  body.form-page .form-page-actions .btn-submit {
    display: inline-block;
    width: auto;
    max-width: none;
  }
}

.form-section-form .form-success,
.form-section-success {
  margin-top: var(--space-md);
}

.schedule-toggle-btn {
  width: 100%;
  text-align: center;
  border: 2px dashed var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.schedule-toggle-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg-alt);
}
.schedule-toggle-btn[aria-expanded="true"] {
  border-style: solid;
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: var(--color-bg-alt);
}
.schedule-toggle-wrap:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-md);
}

.form-page-actions .btn {
  text-decoration: none;
}

.form-page-actions .btn:hover {
  text-decoration: none;
}

/* ===== Scheduling (calendar + time slots) ===== */
.schedule-intro {
  margin-bottom: var(--space-md);
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.schedule-calendar-label {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.schedule-calendar-wrap {
  min-height: 220px;
  margin-bottom: var(--space-sm);
  display: block;
}

.schedule-calendar-wrap .schedule-calendar {
  display: block;
}

.schedule-calendar {
  margin-bottom: var(--space-md);
}

.schedule-times-wrap {
  min-height: 52px;
  margin-bottom: var(--space-md);
  display: block;
}

.schedule-calendar-title {
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-dark);
}

.schedule-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  max-width: 280px;
}

.schedule-calendar-head {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  padding: 4px 0;
}

.schedule-calendar-cell {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.schedule-calendar-cell:hover:not(.schedule-calendar-disabled):not(.schedule-calendar-empty) {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.schedule-calendar-cell.schedule-calendar-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.schedule-calendar-cell.schedule-calendar-disabled,
.schedule-calendar-cell.schedule-calendar-empty {
  cursor: default;
  background: var(--color-bg);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.schedule-calendar-empty {
  border: none;
  visibility: hidden;
}

.schedule-times-label {
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.schedule-times {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.schedule-time-btn {
  padding: var(--space-xs) var(--space-sm);
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.schedule-time-btn:hover:not([disabled]) {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}

.schedule-time-btn.schedule-time-selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}

.schedule-time-btn.schedule-time-taken,
.schedule-time-btn[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
  text-decoration: line-through;
}

.schedule-location {
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

.schedule-location strong {
  color: var(--color-text);
}

/* ===== About (mobile-first) ===== */
.usluge .container,
.about .container,
.gallery .container,
.contact .container {
  text-align: center;
}

.usluge .container > *:not(.section-title),
.about .container > *:not(.section-title),
.gallery .container > *:not(.section-title),
.contact .container > *:not(.section-title) {
  text-align: left;
}

.usluge .section-title,
.about .section-title,
.gallery .section-title,
.contact .section-title {
  font-weight: 800;
}

.usluge .section-title::after,
.about .section-title::after,
.gallery .section-title::after,
.contact .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.about-columns {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.about-column {
  flex: 1;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg, 1rem);
  padding: var(--space-md) var(--space-lg, 1.5rem);
  background: var(--color-bg-alt);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-column:nth-child(2) {
  border-color: var(--color-accent-hover);
}
@media (min-width: 768px) {
  .about-columns {
    flex-direction: row;
    gap: var(--space-xl, 3rem);
    align-items: stretch;
  }
}
.about-intro {
  max-width: none;
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-text);
  text-align: left;
  font-weight: 400;
}

/* ----- Principles: mobile = single stacked block ----- */
.principles-mobile {
  display: block;
  max-width: 900px;
  margin: 0 auto var(--space-lg);
  list-style: none;
  padding: 0;
}

.principles-mobile .about-principle {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  border-left: 4px solid var(--color-accent);
  margin-bottom: var(--space-sm);
}

.principles-mobile .about-principle:last-child {
  margin-bottom: 0;
}

.principles-mobile .principle-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent-light);
  margin-bottom: 0.35rem;
  color: var(--color-accent);
  vertical-align: middle;
}

.about-principle-title {
  display: block;
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 0.25rem;
}

.about-principle-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
}

/* ----- Desktop: video row (Profesionalizam | Video | Sigurnost) ----- */
.gallery-media-row {
  display: none;
}

.gallery-video-mobile {
  display: flex;
}

@media (min-width: 900px) {
  .principles-mobile {
    display: none;
  }

  .gallery-video.gallery-video-mobile {
    display: none;
  }

  .gallery-media-row {
    display: flex;
    align-items: flex-start;
    gap: var(--space-lg);
    max-width: 1100px;
    margin: 0 auto var(--space-xl);
  }

  .gallery-media-row .gallery-video {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
}

/* ----- Desktop: gallery side panels ----- */
@media (min-width: 900px) {
  .principle-side {
    flex: 0 0 220px;
    padding: var(--space-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    border-top: 4px solid var(--color-accent);
    max-width: 260px;
  }

  .principle-side .principle-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--color-accent-light);
    margin-bottom: var(--space-sm);
    color: var(--color-accent);
  }

  .principle-side .principle-symbol svg {
    display: block;
  }

  .principle-side .about-principle-title {
    font-size: 1rem;
  }

  .principle-side .about-principle-text {
    font-size: 0.875rem;
    line-height: 1.55;
  }
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-content {
  order: 1;
}

.about-text {
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.about-media {
  order: 2;
}

.about-media img {
  border-radius: var(--radius-lg);
  width: 100%;
}

/* ===== Gallery (carousel) ===== */
.gallery {
  background: #f0f4f8;
}

/* Desktop: same container width as O nama so left/right principle boxes align */
/* Desktop: Fleksibilnost | Gallery | Garancija kvaliteta */
.gallery-row {
  display: flex;
  flex-direction: column;
}

.gallery-row .principle-side {
  display: none;
}

@media (min-width: 900px) {
  .gallery-row {
    flex-direction: row;
    align-items: flex-start;
    gap: var(--space-lg);
  }

  .gallery-row .principle-side {
    display: block;
    flex: 0 0 220px;
    max-width: 260px;
  }

  .gallery-row .gallery-center {
    flex: 1;
    min-width: 0;
  }
}

.gallery-slider {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.gallery-track-wrap {
  flex: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.gallery-track {
  display: flex;
  transition: transform 0.35s ease-out;
}

.gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  min-width: 0;
}

.gallery-slide img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}


.gallery-arrow {
  flex-shrink: 0;
  width: var(--tap-min);
  height: var(--tap-min);
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: white;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}

.gallery-arrow:hover {
  background: var(--color-accent-hover);
  transform: scale(1.08);
}

.gallery-arrow:active {
  transform: scale(0.96);
}

.gallery-counter {
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0;
}

.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-sm);
}

.gallery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.gallery-dot:hover {
  background: var(--color-text-muted);
  transform: scale(1.3);
}

.gallery-dot.active {
  background: var(--color-accent);
  transform: scale(1.2);
}

.gallery-video {
  width: 100%;
  max-width: 800px;
  margin: 0 auto var(--space-xl);
  display: flex;
  justify-content: center;
}

.about-video {
  display: block;
  width: 100%;
  max-width: 800px;
  border-radius: var(--radius-lg);
  background: var(--color-dark);
  box-shadow: var(--shadow-lg);
}

/* ===== Contact (mobile-first) ===== */
.section.contact {
  background: var(--color-bg);
  isolation: isolate;
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--color-border);
}

.contact-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow);
}

.contact-form-wrap {
  order: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* Shared form layout and modern input style (contact + scheduling) */
.contact-form,
.form-section-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form label,
.form-section-form label {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.9375rem;
}

.contact-form input,
.contact-form textarea,
.form-section-form input:not([type="hidden"]):not([type="file"]),
.form-section-form select,
.form-section-form textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  min-height: var(--tap-min);
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder,
.form-section-form input::placeholder,
.form-section-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.9;
}

.contact-form input:focus,
.contact-form textarea:focus,
.form-section-form input:not([type="hidden"]):not([type="file"]):focus,
.form-section-form select:focus,
.form-section-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.12);
}

.contact-form input:invalid:not(:placeholder-shown):not(:focus),
.form-section-form input:not([type="hidden"]):not([type="file"]):invalid:not(:placeholder-shown):not(:focus) {
  border-color: #e2e8f0;
}

.contact-form textarea,
.form-section-form textarea {
  min-height: 120px;
  resize: none;
}

/* Form pages: photo background + white card layout */
body.form-page .form-section {
  background: transparent;
}
body.form-page .seo-content {
  position: relative;
  z-index: 3;
}
body.form-page .footer,
body.form-page .header {
  position: relative;
  z-index: 3;
}

/* Form pages: compact height (posao, usluga, skela) — fit form on one screen */
body.form-page .form-section {
  padding: var(--space-lg) 0 0;
}
@media (min-width: 768px) {
  body.form-page .form-section-form-wrap {
    padding: var(--space-xl) var(--space-2xl);
  }
}
body.form-page .form-section-form {
  gap: var(--space-xs);
}
body.form-page .form-section-form label {
  gap: 1px;
  font-size: 0.8125rem;
}
body.form-page .form-section-form input:not([type="hidden"]):not([type="file"]),
body.form-page .form-section-form select,
body.form-page .form-section-form textarea {
  padding: 0.4rem 0.6rem;
  min-height: 34px;
  font-size: 0.875rem;
}
body.form-page .form-section-form textarea {
  min-height: 64px;
}
body.form-page .form-section-form .input-file-label,
body.form-page .form-section-form .input-hint {
  font-size: 0.8125rem;
}
body.form-page .form-section-form .input-file-trigger {
  padding: 0.4rem 0.6rem;
  min-height: 34px;
  font-size: 0.8125rem;
}
body.form-page .form-page-actions {
  margin-top: var(--space-xs);
  gap: var(--space-xs);
}
body.form-page .form-section-form .form-success,
body.form-page .form-section-success {
  margin-top: var(--space-xs);
}
body.form-page .schedule-intro {
  margin-bottom: var(--space-xs);
}
body.form-page .schedule-calendar-wrap {
  min-height: 1px;
  margin-bottom: var(--space-xs);
}
body.form-page .schedule-calendar {
  margin-bottom: var(--space-xs);
}
/* Calendar: half height only, same width — short rows via aspect-ratio */
body.form-page .sched-cal {
  padding: var(--space-xs);
  margin-bottom: var(--space-xs);
}
body.form-page .sched-cal__header {
  margin-bottom: var(--space-xs);
}
body.form-page .sched-cal__row {
  gap: 3px;
  margin-bottom: 3px;
}
body.form-page .sched-cal__day {
  aspect-ratio: 2;
  font-size: 0.8125rem;
  border-radius: var(--radius);
}
body.form-page .sched-cal__name {
  padding: 2px 0 3px;
  font-size: 0.5625rem;
}
body.form-page .sched-cal__status {
  margin-top: var(--space-xs);
  padding: 4px 8px;
  font-size: 0.75rem;
}
body.form-page .schedule-times-wrap {
  min-height: 1px;
  margin-bottom: var(--space-xs);
}
body.form-page .schedule-times {
  margin-bottom: var(--space-xs);
}
body.form-page .price-estimate {
  margin-top: 0;
}
body.form-page .price-chart {
  margin-top: 0;
}
body.form-page .container {
  position: relative;
  z-index: 2;
}
body.form-page .section-title {
  font-size: 1.75rem;
  margin-bottom: var(--space-md);
  color: white;
  position: relative;
  z-index: 2;
  text-align: center;
  display: block;
}
body.form-page .section-title::after {
  background: white;
  margin-left: auto;
  margin-right: auto;
}

/* Posao and usluga: name+email one row, phone+CV/slike radnog mesta one row; calendar stays below */
@media (min-width: 768px) {
  body.form-page .form-section-form[data-type="posao"],
  body.form-page .form-section-form[data-type="usluga"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
    align-items: start;
  }
  body.form-page .form-section-form[data-type="posao"] > input[type="hidden"],
  body.form-page .form-section-form[data-type="posao"] > .hidden,
  body.form-page .form-section-form[data-type="usluga"] > input[type="hidden"],
  body.form-page .form-section-form[data-type="usluga"] > .hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  body.form-page .form-section-form[data-type="posao"] > label:nth-child(3),
  body.form-page .form-section-form[data-type="usluga"] > label:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
  }
  body.form-page .form-section-form[data-type="posao"] > label:nth-child(4),
  body.form-page .form-section-form[data-type="usluga"] > label:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }
  body.form-page .form-section-form[data-type="posao"] > label:nth-child(5),
  body.form-page .form-section-form[data-type="usluga"] > label:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
  }
  body.form-page .form-section-form[data-type="posao"] > .input-file-wrap,
  body.form-page .form-section-form[data-type="usluga"] > .input-file-wrap {
    grid-column: 2;
    grid-row: 2;
  }
  body.form-page .form-section-form[data-type="posao"] > label:nth-child(6),
  body.form-page .form-section-form[data-type="usluga"] > label:nth-child(6),
  body.form-page .form-section-form[data-type="posao"] > .sched-cal,
  body.form-page .form-section-form[data-type="usluga"] > .sched-cal,
  body.form-page .form-section-form[data-type="posao"] > .schedule-toggle-btn,
  body.form-page .form-section-form[data-type="usluga"] > .schedule-toggle-btn,
  body.form-page .form-section-form[data-type="posao"] > .schedule-toggle-wrap,
  body.form-page .form-section-form[data-type="usluga"] > .schedule-toggle-wrap,
  body.form-page .form-section-form[data-type="posao"] > .schedule-time-picker,
  body.form-page .form-section-form[data-type="usluga"] > .schedule-time-picker,
  body.form-page .form-section-form[data-type="posao"] > input[type="hidden"]:last-of-type,
  body.form-page .form-section-form[data-type="usluga"] > input[type="hidden"]:last-of-type,
  body.form-page .form-section-form[data-type="posao"] > .form-page-actions,
  body.form-page .form-section-form[data-type="usluga"] > .form-page-actions {
    grid-column: 1 / -1;
  }
}

/* Custom file input — no default "Choose file" textbox, bar-style trigger */
@media (min-width: 768px) {
  body.form-page .form-section-form[data-type="skela"] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xs) var(--space-sm);
    align-items: start;
  }
  body.form-page .form-section-form[data-type="skela"] > input[type="hidden"],
  body.form-page .form-section-form[data-type="skela"] > .hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(3) {
    grid-column: 1;
    grid-row: 1;
  }
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(4) {
    grid-column: 2;
    grid-row: 1;
  }
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(5) {
    grid-column: 1;
    grid-row: 2;
  }
  body.form-page .form-section-form[data-type="skela"] > .input-file-wrap:nth-child(8) {
    grid-column: 2;
    grid-row: 2;
  }
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(6),
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(7),
  body.form-page .form-section-form[data-type="skela"] > label:nth-child(9),
  body.form-page .form-section-form[data-type="skela"] > .price-estimate,
  body.form-page .form-section-form[data-type="skela"] > .price-chart,
  body.form-page .form-section-form[data-type="skela"] > .sched-cal,
  body.form-page .form-section-form[data-type="skela"] > .form-page-actions {
    grid-column: 1 / span 2;
  }
  body.form-page .form-section-form[data-type="skela"] > input[type="hidden"][name="rental_start"],
  body.form-page .form-section-form[data-type="skela"] > input[type="hidden"][name="rental_end"],
  body.form-page .form-section-form[data-type="skela"] > input[type="hidden"][name="rental_days"],
  body.form-page .form-section-form[data-type="skela"] > input[type="hidden"][name="rental_price_estimate"] {
    grid-column: 1 / span 2;
    height: 0;
    min-height: 0;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border: 0;
  }
}

/* Custom file input — no default "Choose file" textbox, bar-style trigger */
.input-file-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.input-file-label {
  font-weight: 500;
  color: var(--color-dark);
  font-size: 0.9375rem;
}
.input-hint-inline {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}
.input-file-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius);
  background: var(--color-accent);
  color: white;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  width: 100%;
  min-height: 44px;
}
.input-file-trigger:hover {
  background: var(--color-accent-hover);
}
.input-file-trigger:focus-within {
  outline: none;
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.2);
}
.input-file-btn {
  color: white;
  font: inherit;
  font-weight: inherit;
}
.input-file-name {
  font-size: 0.8125rem;
  font-weight: 400;
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.input-file-native {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Time picker — same style as date (discrete slots 9–18) */
.schedule-time-picker {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}
.schedule-time-picker .schedule-time-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg-alt);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.schedule-time-picker .schedule-time-btn:hover:not([disabled]) {
  background: var(--color-accent-light);
  border-color: var(--color-accent);
}
.schedule-time-picker .schedule-time-btn.selected {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: white;
}
.schedule-time-picker .schedule-time-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: line-through;
}

/* Placeholder state: greyed out before a date is chosen — no strikethrough */
.schedule-time-picker .schedule-time-btn--placeholder {
  opacity: 0.28;
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}

/* Honeypot: hide in all forms (contact + scheduling) */
.hidden,
.contact-form .hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
}

.form-success {
  margin-top: var(--space-md);
  padding: var(--space-sm);
  background: #dcfce7;
  color: #166534;
  border-radius: var(--radius);
  font-weight: 500;
}

.contact-direct {
  order: 2;
  padding-top: 0;
  align-self: start;
}

.contact-phone-primary {
  margin: 0 0 var(--space-sm);
  font-size: 1.1rem;
  font-weight: 700;
}

.contact-phone-primary .contact-link {
  color: var(--color-accent);
}

.contact-name--primary {
  margin: 0 0 var(--space-xs);
}

.contact-direct-intro {
  margin: 0 0 var(--space-sm);
  font-weight: 500;
}

.contact-name {
  margin: 0 0 var(--space-xs);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1.05rem;
}

.contact-messengers {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.contact-messenger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s, opacity 0.2s;
}

.contact-messenger:hover {
  transform: scale(1.12) translateY(-2px);
  opacity: 0.95;
}

.contact-messenger--disabled {
  cursor: default;
  pointer-events: none;
  opacity: 0.85;
}

.contact-messenger--disabled:hover {
  transform: none;
}

/* Force all messenger icons to same pixel size (override img attributes) */
.contact-messenger img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  display: block;
  object-fit: contain;
}

.icon-viber-img {
  object-fit: contain;
}

.contact-link {
  display: flex;
  align-items: center;
  min-height: var(--tap-min);
  padding: var(--space-sm) 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.contact-link:hover {
  text-decoration: none;
  color: var(--color-accent-hover);
}

.contact-address {
  margin: var(--space-md) 0 0;
  color: var(--color-text-muted);
}

/* ===== Footer (mobile-first) ===== */
.footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: var(--space-lg) 0;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: var(--space-md);
  text-align: center;
  min-width: 0;
  align-items: center;
  justify-content: center;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
}

.footer-link {
  color: #cbd5e1;
  min-height: var(--tap-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-link:hover {
  color: white;
  text-decoration: none;
}

.footer-socials {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: var(--space-md);
}

.footer-social {
  color: #94a3b8;
  padding: var(--space-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.25s, transform 0.25s;
}

.footer-social:hover {
  color: var(--color-accent-light);
  transform: translateY(-3px) scale(1.15);
}

.footer-social svg {
  width: 24px;
  height: 24px;
}

.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ===== Nav inline breakpoint (960px+) ===== */
@media (min-width: 960px) {
  .hamburger {
    display: none;
  }

  .script-select {
    min-height: 36px;
    font-size: 0.875rem;
    padding: 0 var(--space-md);
    padding-right: 2rem;
    background-position: right var(--space-sm) center;
  }

  .nav {
    position: static;
    flex-direction: row;
    visibility: visible;
    opacity: 1;
    background: transparent;
    padding: 0;
    transform: translateY(-4px);
    gap: var(--space-sm);
  }

  .nav-link {
    font-size: 1rem;
    padding: var(--space-xs) var(--space-sm);
    position: relative;
  }

  .nav-link:not(.nav-phone)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-sm);
    right: var(--space-sm);
    height: 2px;
    background: var(--color-accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
  }

  .nav-link:not(.nav-phone):hover::after {
    transform: scaleX(1);
  }
}

/* ===== Tablet breakpoint (768px+) ===== */
@media (min-width: 768px) {
  .logo-img {
    height: 58px;
  }

  .logo-word {
    font-size: 1.35rem;
    height: 58px;
  }

  .hero {
    min-height: 80vh;
    padding: var(--space-2xl) var(--space-md);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-ctas {
    flex-direction: row;
    gap: var(--space-md);
    justify-content: center;
  }

  .hero-ctas .btn {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    box-sizing: border-box;
  }

  .cards {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .card {
    flex: 1 1 calc(50% - var(--space-lg) / 2);
  }

  .card-third {
    flex: 1 1 100%;
  }

  .form-section-grid {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: var(--space-xl);
    align-items: stretch;
    min-width: 0;
  }

  .form-section-grid > * {
    min-width: 0;
  }

  .form-section--reverse .form-section-grid {
    direction: rtl;
  }

  .form-section--reverse .form-section-grid > * {
    direction: ltr;
  }

  body.form-page .form-section-grid {
    display: block;
  }

  .about-grid {
    flex-direction: row;
    align-items: center;
    gap: var(--space-xl);
  }

  .about-content {
    flex: 1;
    order: 1;
  }

  .about-media {
    flex: 0 0 45%;
    order: 2;
  }

  .gallery-slider {
    gap: var(--space-md);
  }

  .gallery-arrow {
    width: 52px;
    height: 52px;
    font-size: 2rem;
  }

  .contact-grid {
    flex-direction: row;
    gap: var(--space-2xl);
    align-items: start;
  }

  .contact-form-wrap {
    flex: 1;
  }

  .contact-direct {
    flex: 0 0 280px;
  }

  .footer-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    text-align: left;
  }

  .footer-copy {
    white-space: nowrap;
  }

  .footer-link {
    white-space: nowrap;
  }

  .footer-contacts {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: var(--space-lg);
  }
}

/* ===== Desktop breakpoint (1024px+) ===== */
@media (min-width: 1024px) {
  .section-title {
    font-size: 2.15rem;
  }

  .hero-title {
    font-size: 3rem;
  }

  .card {
    flex: 1 1 calc(33.333% - var(--space-lg) * 2 / 3);
  }

  .card-third {
    flex: 1 1 calc(33.333% - var(--space-lg) * 2 / 3);
  }
}

/* ===== Form pages: always use large header (same as skela), no viewport dependency ===== */
/* !important so nothing (media queries, order, other CSS) can shrink the header on posao/usluga. */
body.form-page .header-inner {
  min-height: 64px !important;
  padding-top: var(--space-sm) !important;
  padding-bottom: var(--space-sm) !important;
  padding-right: var(--space-md) !important;
  padding-left: var(--space-md) !important;
  gap: var(--space-sm) !important;
  position: relative !important;
}
body.form-page .logo-img {
  height: 58px !important;
  width: auto !important;
}
body.form-page .logo-word {
  font-size: 1.35rem !important;
  height: 58px !important;
}
body.form-page .script-select {
  min-height: 40px !important;
  padding: 0 var(--space-md) !important;
  padding-right: 2rem !important;
  font-size: 0.875rem !important;
}
body.form-page .header-right {
  transform: translateY(-4px) !important;
}
body.form-page .hamburger {
  position: static !important;
  transform: none !important;
}

/* ===== Mobile: compact header, hamburger at right edge, less space below logo ===== */
/* Only on non–form pages; form pages use the block above. */
@media (max-width: 600px) {
  body:not(.form-page) .header-inner {
    position: relative;
    padding-top: var(--space-xs);
    padding-bottom: 2px;
    padding-right: 0;
    gap: var(--space-sm);
  }

  body:not(.form-page) .header-right {
    padding-right: 48px;
  }

  body:not(.form-page) .hamburger {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  body:not(.form-page) .logo-img {
    height: 42px;
  }

  body:not(.form-page) .logo-word {
    font-size: 1rem;
    height: 42px;
  }

  body:not(.form-page) .script-select {
    min-height: 30px;
    padding: 0 0.4rem;
    padding-right: 1.4rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  body:not(.form-page) .header-inner {
    padding-left: var(--space-sm);
    padding-right: 0;
    padding-bottom: 2px;
    gap: var(--space-sm);
  }

  body:not(.form-page) .logo-img {
    height: 40px;
    width: auto;
  }

  body:not(.form-page) .logo-word {
    font-size: 0.9375rem;
    height: 40px;
  }

  .hero-ctas .btn {
    min-width: 0;
    width: 100%;
  }

  .hero-phone-link {
    font-size: 1rem;
    padding: 0.45rem 1.1rem;
  }

  .form-phone-header-link {
    font-size: 1.15rem;
  }

  .form-phone-cta {
    font-size: 0.95rem;
  }
}

/* ===== Custom scheduling calendar widget ===== */

.sched-cal {
  margin-bottom: var(--space-md);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-sm);
  user-select: none;
  -webkit-user-select: none;
}

.sched-cal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  gap: var(--space-xs);
}

.sched-cal__label {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-dark);
  flex: 1;
  text-align: center;
}

.sched-cal__nav {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  font-size: 1.375rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.sched-cal__nav:hover:not(:disabled) {
  background: var(--color-accent-light, #eef2ff);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sched-cal__nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.sched-cal__row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  margin-bottom: 3px;
}

.sched-cal__name {
  text-align: center;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  font-weight: 700;
  padding: 2px 0 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-cal__day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  min-width: 0;
  color: var(--color-text);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

.sched-cal__day:hover:not(:disabled):not(.sched-cal__day--selected) {
  background: var(--color-accent-light, #eef2ff);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.sched-cal__day--past {
  opacity: 0.28;
  cursor: default;
}

.sched-cal__day--today {
  border-color: var(--color-accent);
  color: var(--color-accent);
  font-weight: 700;
}

.sched-cal__day--selected {
  background: var(--color-accent);
  color: #fff !important;
  border-color: var(--color-accent);
  font-weight: 600;
}

/* Range selection */
.sched-cal__day--range-start,
.sched-cal__day--range-end {
  background: var(--color-accent);
  color: #fff !important;
  border-color: var(--color-accent);
  font-weight: 600;
}

.sched-cal__day--in-range {
  background: var(--color-accent-light);
  color: var(--color-dark);
  border-color: transparent;
  border-radius: 4px;
}

.sched-cal__day--hover-preview {
  background: rgba(194, 65, 12, 0.13);
  border-color: transparent;
  border-radius: 4px;
  color: var(--color-dark);
}

.sched-cal__day--hover-invalid {
  background: #fee2e2;
  color: #b91c1c !important;
  border-color: transparent;
  border-radius: 4px;
}

/* Range calendar status line */
.sched-cal__status {
  margin-top: var(--space-sm);
  padding: 6px 10px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-radius: var(--radius);
  min-height: 2em;
  line-height: 1.4;
  transition: background 0.2s, color 0.2s;
}

.sched-cal__status--selected {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 600;
}

.sched-cal__status--error {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 600;
}

/* ===== Skela price estimate ===== */

.price-estimate {
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent-light);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  animation: fadeIn 0.2s ease;
}

.price-estimate__row {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
}

.price-estimate strong {
  font-size: 1.125rem;
  color: var(--color-accent);
  font-weight: 700;
}

.price-estimate__breakdown {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* ===== Skela price chart ===== */

.price-chart {
  margin-bottom: var(--space-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
  animation: fadeIn 0.2s ease;
}

.price-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Input hint text ===== */

.input-hint {
  display: block;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 3px;
  font-style: italic;
}

/* ===== Checkout step ===== */

.checkout-step {
  padding: var(--space-lg) var(--space-md);
  text-align: center;
  animation: fadeIn 0.25s ease;
}

/* ===== Scroll reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .section-title::after {
    transform: scaleX(1);
    transition: none;
  }
  .faq-answer-wrap {
    transition: none;
  }
  .nav-phone {
    animation: none;
  }
  .card:hover,
  .trust-card:hover,
  .how-card:hover,
  .testimonial-card:hover {
    transform: none;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Scroll-to-top button ===== */
.scroll-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s;
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-accent-hover);
}

.scroll-top:active {
  transform: scale(0.93);
}

.checkout-step__check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
}

.checkout-step__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: var(--space-md);
}

/* Summary table */
.checkout-summary {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px var(--space-sm);
}

.checkout-summary dt {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.checkout-summary dd {
  font-size: 0.9375rem;
  color: var(--color-dark);
  font-weight: 500;
  margin: 0;
}

.checkout-days {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.875rem;
}

.checkout-price {
  color: var(--color-accent);
  font-size: 1.125rem;
  font-weight: 700;
}

/* Actions */
.checkout-step__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
  margin-bottom: var(--space-md);
}

.checkout-step__pay-btn,
.checkout-step__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  min-height: 52px;
  font-size: 1rem;
}

.checkout-step__call-btn {
  flex-direction: column;
  gap: 2px;
}

.checkout-step__call-btn small {
  font-size: 0.75rem;
  opacity: 0.8;
  font-weight: 400;
}

.checkout-step__or {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  padding: 4px 0;
}

.checkout-step__back {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.875rem;
  cursor: pointer;
  padding: var(--space-xs) 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-family: inherit;
}

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

/* ===== Zakazani termini page ===== */
.bookings-block {
  margin-bottom: var(--space-xl);
}
.bookings-block__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 var(--space-sm);
}
.bookings-list {
  min-height: 2rem;
}
.bookings-loading,
.bookings-error,
.bookings-empty {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.bookings-error {
  color: var(--color-accent);
}
.bookings-dates {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bookings-date {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  align-items: baseline;
  min-height: var(--tap-min);
}
.bookings-date:last-child {
  border-bottom: none;
}
.bookings-date__label {
  font-weight: 500;
  color: var(--color-text);
}
.bookings-date__time {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.bookings-date__contact {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}
.bookings-date__phone {
  color: var(--color-accent);
  text-decoration: none;
}
.bookings-date__phone:hover {
  text-decoration: underline;
}
.bookings-date__times {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.seo-content {
  padding: var(--space-2xl) 0;
  background: #1e293b;
  color: rgba(255,255,255,0.75);
}
.seo-content__title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-lg);
  color: white;
}
.seo-content__title::after {
  background: var(--color-accent);
  margin-left: auto;
  margin-right: auto;
  width: 48px;
  height: 3px;
}
.seo-text {
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.8;
  color: rgba(255,255,255,0.6);
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-align: center;
}
.seo-text p {
  margin-bottom: 1.25rem;
}
.seo-text p:last-child {
  margin-bottom: 0;
}
.seo-text strong {
  color: var(--color-accent);
  font-weight: 700;
}

.about-skele__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  text-align: left;
}
.about-skele__text {
  line-height: 1.7;
  color: var(--color-text-muted);
  font-size: 0.975rem;
  margin: 0;
}
.about-skele__text strong {
  color: var(--color-text);
  font-weight: 600;
}
