/* ============================================
   ART TEHNIKA — Premium Flooring Website
   Fonts: Widescreen (headings) + Inter (body)
   Fallback: Michroma (Google Fonts)
   ============================================ */

/* ——— Widescreen Font (self-hosted) ———
   Place Widescreen font files in /fonts/ directory.
   Download from: https://www.daltonmaag.com/font-library/widescreen.html
   Falls back to Michroma (Google Fonts) if files are missing. */
@font-face {
  font-family: 'Widescreen';
  src: url('fonts/Widescreen-Regular.woff2') format('woff2'),
       url('fonts/Widescreen-Regular.woff') format('woff'),
       url('fonts/Widescreen-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Widescreen';
  src: url('fonts/Widescreen-Bold.woff2') format('woff2'),
       url('fonts/Widescreen-Bold.woff') format('woff'),
       url('fonts/Widescreen-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Widescreen';
  src: url('fonts/Widescreen-Medium.woff2') format('woff2'),
       url('fonts/Widescreen-Medium.woff') format('woff'),
       url('fonts/Widescreen-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Widescreen';
  src: url('fonts/Widescreen-SemiBold.woff2') format('woff2'),
       url('fonts/Widescreen-SemiBold.woff') format('woff'),
       url('fonts/Widescreen-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Widescreen';
  src: url('fonts/Widescreen-Light.woff2') format('woff2'),
       url('fonts/Widescreen-Light.woff') format('woff'),
       url('fonts/Widescreen-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #0e1117;
  --color-bg-warm: #f6f1eb;
  --color-bg-cream: #faf7f3;
  --color-white: #ffffff;
  --color-accent: #ffe399;
  --color-accent-light: #d8c59a;
  --color-accent-dark: #8f7746;
  --color-text: #1b1b1b;
  --color-text-muted: #6b6b6b;
  --color-text-light: #999999;
  --color-border: #e8e0d8;
  --color-border-dark: #2a2d35;
  --color-surface: #f0ebe4;
  --color-dark-surface: #161920;

  --font-display: 'Sora', 'Inter', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --container-max: 1240px;
  --section-padding: clamp(80px, 10vw, 140px);
  --border-radius: 12px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ——— Accessibility: skip-to-content link ——— */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 20px;
  background: #0a0c12;
  color: #ffe399;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: top 0.2s ease-out;
}
.skip-link:focus {
  top: 16px;
  outline: 2px solid #ffe399;
  outline-offset: 2px;
}

/* ——— Utility: mobile-only <br> ———
   Useful for inserting an extra line break in headings on small screens
   only (e.g. extra breathing room before a highlighted word in the hero
   title). Use as: <br class="mobile-only-br" aria-hidden="true">.
   `!important` is required because some headings (notably .hero-title)
   have a blanket `.hero-title br { display: none }` rule on mobile that
   would otherwise swallow this break too. */
.mobile-only-br { display: none !important; }
@media (max-width: 768px) {
  .mobile-only-br { display: inline !important; }
}

/* ——— Reset & Base ——— */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(201, 162, 39, 0.18);
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  /* Prevent iOS auto-zoom on focus: inputs must be ≥16px effective */
  font-size: max(16px, 1em);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ——— Navigation ——— */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(20, 24, 32, 0.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.partners-bar-footer {
  background: linear-gradient(135deg, #fdfbf8 0%, #f5efe6 25%, #ebe2d6 50%, #f8f2ea 75%, #faf6f1 100%);
  padding: 60px 0;
  border-bottom: 1px solid rgba(143, 119, 70, 0.1);
  margin-bottom: 60px;
}

.partners-logos {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partners-logos img {
  height: 38px;
  width: auto;
  filter: grayscale(1) brightness(0.6) sepia(0.3) opacity(0.5);
  transition: var(--transition);
}

.partners-logos img:hover {
  filter: grayscale(0) brightness(1) sepia(0) opacity(1);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  padding: 10px 0;
  border-bottom-color: rgba(20, 24, 32, 0.1);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  z-index: 1001;
}

.brand-logo-image {
  display: block;
  width: 100%;
  height: auto;
}

.nav-logo-image {
  max-width: 150px;
  filter: brightness(1.08) contrast(1.02);
}

.footer-logo-image {
  max-width: 165px;
}

.nav-links {
  display: flex;
  gap: 36px;
}

/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.has-dropdown > .nav-link::after {
  content: '▾';
  font-size: 0.55rem;
  margin-left: 4px;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.has-dropdown:hover > .nav-link::after {
  opacity: 1;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 220px;
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-transform: none;
}

.dropdown-menu a:hover {
  background: var(--color-bg-cream);
  color: var(--color-accent-dark);
  padding-left: 25px;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sub-dropdown */
.has-dropdown-sub {
  position: relative;
}

.has-dropdown-sub > a::after {
  content: '›';
  font-size: 0.85rem;
  margin-left: 8px;
  opacity: 0.4;
  transition: opacity 0.25s ease;
}

.has-dropdown-sub:hover > a::after {
  opacity: 1;
}

.dropdown-submenu {
  position: absolute;
  top: 0;
  left: 100%;
  background: var(--color-white);
  min-width: 220px;
  padding: 12px 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  opacity: 0;
  visibility: hidden;
  transform: translateX(10px);
  transition: all 0.3s ease;
  z-index: 101;
}

.has-dropdown-sub:hover .dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.dropdown-submenu a {
  display: block;
  padding: 10px 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-transform: none;
}

.dropdown-submenu a:hover {
  background: var(--color-bg-cream);
  color: var(--color-accent-dark);
  padding-left: 25px;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(27, 27, 27, 0.72);
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  background: linear-gradient(135deg, #d4a843 0%, #c5a059 40%, #a07830 100%);
  padding: 11px 26px;
  border-radius: 6px;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(197, 160, 89, 0.35);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.nav-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
  pointer-events: none;
}

.nav-cta:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(197, 160, 89, 0.5);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
  /* WCAG 2.5.5: ≥ 44×44px touch target */
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -8px;
  border-radius: 8px;
  -webkit-tap-highlight-color: transparent;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
  transform-origin: center;
  border-radius: 2px;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

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

.btn-primary:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(184, 146, 106, 0.3);
}

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

.btn-primary.btn-light:hover {
  background: var(--color-bg-cream);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}

.btn-ghost {
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.05);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ——— Hero Section ——— */
.hero {
  position: relative;
  margin-top: 72px;
  min-height: 78vh;
  /* Use dvh on supporting browsers (iOS Safari) to avoid 100vh issue */
  min-height: 78dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.85s ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.hero-slide.is-front {
  z-index: 3;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.18);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  padding: 0 24px;
  transform: translateY(42px);
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 28px;
}

.label-line {
  width: 40px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-white);
  margin-bottom: 40px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ——— Hero Quiz Card ——— */
.hero-quiz {
  position: relative;
  max-width: 760px;
  margin: 0 auto 10px;
  padding: 20px 20px 16px;
  text-align: left;
  background: #ffffff;
  border: 1px solid rgba(20, 24, 33, 0.09);
  border-radius: 20px;
  box-shadow:
    0 2px 4px rgba(9, 13, 20, 0.04),
    0 8px 24px rgba(9, 13, 20, 0.10),
    0 28px 56px rgba(9, 13, 20, 0.14);
  display: flex;
  flex-direction: column;
}


/* ——— Step Container ——— */
.hero-quiz-steps {
  position: relative;
  /* JS (`adjustStepsHeight`) sets the exact min-height to match the active step's
     content. This 170px is just an initial fallback before JS runs. */
  min-height: 170px;
  margin-bottom: 0;
  transition: min-height 0.28s ease;
}

.hero-quiz-step {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(12px);
  pointer-events: none;
  display: block;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.hero-quiz-step.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* ——— Question Text ——— */
.hero-quiz-question {
  font-size: 0.98rem;
  font-weight: 600;
  color: #141821;
  margin-bottom: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.hero-quiz-description {
  margin: -4px 0 14px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(20, 24, 33, 0.72);
}

.hero-quiz-description p {
  margin: 0 0 8px;
}

.hero-quiz-description p:last-child {
  margin-bottom: 0;
}

/* ——— Option Grids ——— */
.hero-quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hero-quiz-options--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-quiz-options--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.hero-quiz-options--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-quiz-options--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-quiz-options--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

/* ——— Dynamic step 2 sub-panels ——— */
.hq-sub-panel {
  display: none;
}

.hq-sub-panel.is-visible {
  display: block;
}

.hero-quiz-option {
  position: relative;
  cursor: pointer;
}

.hero-quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* ——— Option Card ——— */
.hero-quiz-option-content {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 122px;
  padding: 0 9px 10px;
  border-radius: 11px;
  border: 2px solid transparent;
  background: #e0e0e0;
  color: #141821;
  font-size: 0.8rem;
  font-weight: 500;
  transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
  text-align: left;
  gap: 2px;
}

/* Dark gradient overlay */
.hero-quiz-option-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(8, 10, 16, 0.82) 0%,
    rgba(8, 10, 16, 0.22) 50%,
    rgba(8, 10, 16, 0.00) 88%
  );
  z-index: 1;
  transition: opacity 0.22s ease;
}

/* Checkmark badge (shown on selected) */
.hero-quiz-option-content::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23141821' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
  z-index: 3;
  opacity: 0;
  transform: scale(0.5) rotate(-15deg);
  transition: opacity 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 2px 8px rgba(198, 160, 74, 0.4);
}

/* Hover */
.hero-quiz-option:hover .hero-quiz-option-content {
  border-color: rgba(20, 24, 33, 0.18);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(9, 13, 20, 0.14);
}

.hero-quiz-option:hover .hero-quiz-option-image {
  transform: scale(1.10);
}

/* Selected */
.hero-quiz-option input:checked + .hero-quiz-option-content {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px rgba(198, 160, 74, 0.25) inset, 0 4px 14px rgba(198, 160, 74, 0.18);
  transform: translateY(-2px);
}

.hero-quiz-option input:checked + .hero-quiz-option-content::before {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Focus visible */
.hero-quiz-option input:focus-visible + .hero-quiz-option-content {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* ——— Image ——— */
.hero-quiz-option-image-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #d4d4d4;
  z-index: 0;
}

.hero-quiz-option-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* "Tepih v roli" — show bottom portion of the image */
.hero-quiz-option input[value="tepihi"] + .hero-quiz-option-content .hero-quiz-option-image {
  object-position: center bottom;
}

/* ——— Option Labels ——— */
.hero-quiz-option-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.01em;
}

.hero-quiz-option-sub {
  display: block;
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.80);
  line-height: 1.2;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
}

/* ——— Text Fields (Steps 3 & 4) ——— */
.hero-quiz-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-quiz-field label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(20, 24, 33, 0.45);
}

.hero-quiz-field input {
  width: 100%;
  height: 50px;
  border: 1.5px solid rgba(20, 24, 33, 0.13);
  border-radius: 12px;
  background: #fafafa;
  padding: 0 16px;
  color: #141821;
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-quiz-field input:focus {
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(198, 160, 74, 0.13);
}

.hero-quiz-field input::placeholder {
  color: rgba(20, 24, 33, 0.28);
}

.hero-quiz-field textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px 16px;
  border: 1.5px solid rgba(20, 24, 33, 0.13);
  border-radius: 12px;
  background: #fafafa;
  color: #141821;
  font-size: 0.92rem;
  font-family: var(--font-body);
  line-height: 1.5;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-quiz-field textarea:focus {
  border-color: var(--color-accent);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(198, 160, 74, 0.13);
}

.hero-quiz-field textarea::placeholder {
  color: rgba(20, 24, 33, 0.28);
}

.hero-quiz-field input[type="file"] {
  height: auto;
  padding: 10px 14px;
  font-size: 0.85rem;
  cursor: pointer;
}

.hero-quiz-file-hint {
  display: block;
  font-size: 0.72rem;
  color: rgba(20, 24, 33, 0.45);
  margin-top: 6px;
}

.hero-quiz-step[data-step="4"] .hero-quiz-file-hint {
  margin-bottom: 12px;
}

.hero-quiz-field--attachment {
  margin-top: 14px;
}

.hero-quiz-field--attachment .hero-quiz-description {
  margin-bottom: 4px;
}

.hero-quiz-field--attachment .hero-quiz-description p:last-child {
  margin-bottom: 0;
}

.hero-quiz-step-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.hero-quiz-step-actions .hq-btn-step-next {
  display: inline-flex;
}

.hero-quiz-step4-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 0;
}

/* ——— Success panel (shown after submitting the quiz) ——— */
.hero-quiz-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  min-height: 220px;
  opacity: 0;
  animation: hqSuccessIn 0.4s ease forwards;
}

.hero-quiz-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2d8a4e;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transform: scale(0);
  animation: hqSuccessPop 0.5s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  box-shadow: 0 6px 18px rgba(45, 138, 78, 0.28);
}

.hero-quiz-success-title {
  font-family: 'Sora', 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #141821;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.hero-quiz-success-text {
  font-size: 0.92rem;
  color: rgba(20, 24, 33, 0.65);
  margin: 0;
  line-height: 1.5;
  max-width: 420px;
}

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

@keyframes hqSuccessPop {
  to { transform: scale(1); }
}

.hero-quiz-step4-row input[type="file"] {
  flex: 1;
  min-width: 0;
}

/* ——— Actions Bar ——— */
.hero-quiz-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  min-height: 0;
}

.hero-quiz-actions.is-visible {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(20, 24, 33, 0.07);
}

/* Back button — minimal text link style */
.hq-btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px 4px;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 500;
  color: rgba(20, 24, 33, 0.38);
  cursor: pointer;
  transition: color 0.2s ease;
  letter-spacing: 0.01em;
  min-width: 60px;
}

.hq-btn-prev:hover {
  color: rgba(20, 24, 33, 0.65);
}

.hq-btn-prev:disabled {
  opacity: 0;
  pointer-events: none;
}

.hq-btn-prev--corner {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 5;
}

/* Next / Submit button — solid, prominent */
.hq-btn-next {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #141821;
  color: #ffffff;
  border: none;
  border-radius: 11px;
  padding: 0 22px;
  height: 42px;
  font-family: var(--font-body);
  font-size: 0.81rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.hq-btn-next:hover {
  background: #252e44;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 24, 33, 0.24);
}

/* Submit variant */
.hq-btn-submit {
  background: var(--color-accent);
  color: #141821;
}

.hq-btn-submit:hover {
  background: var(--color-accent-light);
  box-shadow: 0 6px 20px rgba(198, 160, 74, 0.35);
}

.highlight {
  color: var(--color-accent);
}

.hero-title .highlight {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: rgba(20, 24, 33, 0.82);
  max-width: 600px;
  margin: 0 auto 40px;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-scroll span {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(20, 24, 33, 0.55);
  font-weight: 500;
}

.hero .btn-ghost {
  color: rgba(20, 24, 33, 0.85);
  border: 1px solid rgba(20, 24, 33, 0.28);
  background: rgba(255, 255, 255, 0.68);
}

.hero .btn-ghost:hover {
  color: #141821;
  border-color: rgba(20, 24, 33, 0.45);
  background: rgba(255, 255, 255, 0.85);
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ——— Section Shared Styles ——— */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-tag-light {
  color: var(--color-accent-light);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 16px auto 0;
}

/* Svetla ozadja – enaka paleta kot services (naslovi, podnaslovi, ozadje) */
.benefits-section,
.solutions-section,
.reference-section,
.services-section {
  background: linear-gradient(135deg, #fdfbf8 0%, #f5efe6 25%, #ebe2d6 50%, #f8f2ea 75%, #faf6f1 100%);
  background-attachment: local;
}

.about-section .section-tag,
.benefits-section .section-tag,
.solutions-section .section-tag,
.showcase-section .section-tag,
.reference-section .section-tag,
.services-section .section-tag {
  color: var(--color-accent-dark);
  letter-spacing: 0.12em;
}

.about-section .section-title,
.benefits-section .section-title,
.solutions-section .section-title,
.showcase-section .section-title,
.reference-section .section-title,
.services-section .section-title {
  color: #2c2824;
}

.about-section .section-title .highlight,
.benefits-section .section-title .highlight,
.solutions-section .section-title .highlight,
.showcase-section .section-title .highlight,
.reference-section .section-title .highlight,
.services-section .section-title .highlight,
.partners-section .section-title .highlight {
  background: linear-gradient(211deg, #c9a227 12.82%, #a6852a 87.46%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.about-section .section-subtitle,
.benefits-section .section-subtitle,
.solutions-section .section-subtitle,
.showcase-section .section-subtitle,
.reference-section .section-subtitle,
.services-section .section-subtitle {
  color: #5c554c;
  font-weight: 300;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-accent-dark);
  transition: var(--transition);
  margin-top: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-link:hover {
  gap: 12px;
  color: var(--color-accent);
}

.btn-cta-gold {
  background: linear-gradient(211deg, #ffe399 12.82%, #c9a227 87.46%);
  color: var(--color-bg);
}

.btn-cta-gold:hover {
  background: linear-gradient(211deg, #ffffff 12.82%, #ffe399 87.46%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 227, 153, 0.35);
}

/* ——— Stats Section ——— */
.stats-section {
  position: relative;
  padding: 60px 0;
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.stats-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.35);
  z-index: 1;
}

.stats-section .stats-content {
  position: relative;
  z-index: 2;
}

.stats-section .stat-prefix,
.stats-section .stat-number,
.stats-section .stat-suffix,
.stats-section .stat-label,
.stats-section .stat-desc {
  color: var(--color-white);
}

.stats-section .stat-prefix {
  color: rgba(255, 255, 255, 0.75);
}

.stats-section .stat-suffix {
  color: var(--color-accent);
}

.stats-section .stat-desc {
  color: rgba(255, 255, 255, 0.82);
}

.stats-section .stat-divider {
  background: rgba(255, 255, 255, 0.25);
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px 32px;
}

.stat-top {
  margin-bottom: 8px;
}

.stat-prefix {
  display: block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 4px;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  letter-spacing: 0.02em;
}

.stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 400;
  color: var(--color-accent);
}

.stat-label {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 4px;
}

.stat-desc {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 300;
}

.stat-divider {
  width: 1px;
  height: 80px;
  background: var(--color-border);
}

/* ——— About Section ——— */
.about-section {
  padding: var(--section-padding) 0;
  background: url('images/marble.webp') no-repeat center center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(253, 251, 248, 0.65);
  z-index: 0;
}

.about-section .container {
  position: relative;
  z-index: 2;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px 80px;
  align-items: center;
}

.about-visual {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.about-visual img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

/* Split layout with full-height image on the right */
.about-section--split {
  position: relative;
  overflow: hidden;
}

.about-section--split .about-visual-full {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  z-index: 1;
}

.about-section--split .about-visual-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-section--split .about-grid {
  grid-template-columns: 1fr;
  max-width: 50%;
  padding-right: 60px;
}

.about-lead {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 16px;
  font-weight: 400;
}

.about-text p:not(.about-lead) {
  color: var(--color-text-muted);
  line-height: 1.8;
}

@media (max-width: 1024px) {
  .about-section--split .about-visual-full {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 40px;
  }
  
  .about-section--split .about-grid {
    max-width: 100%;
    padding-right: 0;
  }
}

@media (max-width: 768px) {
  .about-section--split .about-visual-full {
    height: 300px;
  }
}

.about-text p strong {
  background: linear-gradient(211deg, #c9a227 12.82%, #a6852a 87.46%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #c9a227; /* Fallback */
  font-weight: 700;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  border-radius: var(--border-radius);
  background: var(--color-bg-cream);
  border: 1px solid transparent;
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--color-border);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.feature-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-white);
  color: var(--color-accent);
  border: 1px solid var(--color-border);
}

.about-feature h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.about-feature p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ——— Services Section ——— */
.services-section {
  position: relative;
  padding: var(--section-padding) 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 60vh;
}

.service-card--text-below {
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  min-height: auto;
  display: flex;
  flex-direction: column;
}

.service-card--text-below .card-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(143, 119, 70, 0.14);
  box-shadow: 0 2px 12px rgba(44, 40, 36, 0.04);
  transition: var(--transition);
}

.service-card--text-below:hover .card-image-wrapper {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(44, 40, 36, 0.12);
  border-color: rgba(143, 119, 70, 0.3);
}

.service-card--text-below .card-image {
  position: absolute;
  inset: 0;
}

.service-card--text-below .card-content-below {
  padding: 20px 0 0;
  text-align: left;
}

.service-card--text-below .card-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: left;
}

.services-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, 
      transparent 10%, 
      rgba(143, 119, 70, 0.15) 10%, 
      rgba(143, 119, 70, 0.15) 10.1%, 
      transparent 10.1%,
      transparent 12%, 
      rgba(143, 119, 70, 0.15) 12%, 
      rgba(143, 119, 70, 0.15) 12.1%, 
      transparent 12.1%,
      transparent 14%, 
      rgba(143, 119, 70, 0.15) 14%, 
      rgba(143, 119, 70, 0.15) 14.1%, 
      transparent 14.1%
    );
  pointer-events: none;
  z-index: 0;
}

.services-section::after {
  content: '';
  position: absolute;
  bottom: -5%;
  right: -80px;
  width: 500px;
  height: 400px;
  background-image: url("data:image/svg+xml,%3Csvg width='500' height='400' viewBox='0 0 500 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 100 C 150 100, 200 60, 300 100 S 400 140, 450 140' stroke='%238f7746' fill='transparent' stroke-width='1.6' opacity='0.15'/%3E%3Cpath d='M50 160 C 150 160, 200 120, 300 160 S 400 200, 450 200' stroke='%238f7746' fill='transparent' stroke-width='1.8' opacity='0.1'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
  transform: none;
}

.services-section .container {
  position: relative;
  z-index: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: center;
  justify-content: center;
  animation: fadeUp 0.4s ease;
}

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

.service-card {
  position: relative;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(143, 119, 70, 0.14);
  transition: var(--transition);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(44, 40, 36, 0.04);
  min-height: 320px;
  color: inherit;
  text-decoration: none;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(44, 40, 36, 0.1);
  border-color: rgba(143, 119, 70, 0.28);
}

.card-image {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.7s ease;
  opacity: 0;
}

.service-card.visible .card-image img {
  opacity: 1;
}

.service-card:hover .card-image img {
  transform: scale(1.05);
}

.card-image-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #a08b5c 0%, var(--color-accent-dark) 40%, #b89d6d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-image-icon {
  color: rgba(255, 255, 255, 0.6);
}

.card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 20px 24px 22px;
  z-index: 2;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card h3,
.service-card--text-below h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
  color: #ffffff !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.category-description {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-top: 20px;
  text-align: center;
  padding: 0 15px;
  max-width: 380px;
}

.service-category-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-section .card-read-more {
  font-size: 0.8rem;
  background: linear-gradient(211deg, #f0d078 12.82%, #d4b04a 87.46%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
}

.service-card .card-subtitle {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.01em;
  text-transform: none;
  margin: -2px 0 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ——— Benefits Section ——— */
.benefits-section {
  padding: var(--section-padding) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  text-align: center;
  padding: 40px 28px 36px;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  background: var(--color-white);
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.05);
  border-color: var(--color-accent);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border-radius: 14px;
  background: var(--color-bg-cream);
  color: var(--color-accent);
  transition: var(--transition);
}

.benefit-card:hover .benefit-icon {
  background: var(--color-accent);
  color: var(--color-white);
}

.benefit-card h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.benefit-card p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ——— Solutions Section ——— */
.solutions-section {
  padding: var(--section-padding) 0;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.solution-card {
  position: relative;
  display: block;
  padding: 40px 36px;
  border-radius: var(--border-radius);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: var(--transition);
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.06);
  border-color: var(--color-accent);
}

.solution-card:hover .solution-link {
  color: var(--color-accent);
  gap: 10px;
}

.solution-card-wide {
  grid-column: 1 / -1;
}

.solution-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--color-border);
  line-height: 1;
  margin-bottom: 16px;
  transition: var(--transition);
  letter-spacing: 0.04em;
}

.solution-card:hover .solution-number {
  color: var(--color-accent);
}

.solution-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.solution-card p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ——— CTA Banner ——— */
.cta-banner {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 18, 0.55);
  z-index: 1;
}

.cta-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-banner .cta-content-wrap {
  position: relative;
  z-index: 3;
}

.cta-content {
  position: relative;
  text-align: center;
}

.cta-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 32px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ——— Showcase Section ——— */
.showcase-section {
  padding: 0 0 var(--section-padding);
  background: linear-gradient(to bottom, #fdfbf8 0%, #f5efe6 20%, #ebe2d6 45%, #f8f2ea 65%, #faf6f1 82%, #ffffff 100%);
  background-attachment: local;
  overflow: hidden;
}

.showcase-section .section-header {
  position: relative;
  padding: 38px 0 24px;
  margin-bottom: 60px;
}

.showcase-section .section-header::before,
.showcase-section .section-header::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1.2px;
  background: rgba(143, 119, 70, 0.3);
  z-index: 0;
}

.showcase-section .section-header::before {
  top: 0;
}

.showcase-section .section-header::after {
  bottom: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  position: relative;
}

.showcase-grid::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.2px;
  height: calc(100% + 60px + var(--section-padding));
  background: rgba(143, 119, 70, 0.3);
  z-index: 0;
}

.showcase-item {
  position: relative;
}

.showcase-visual {
  aspect-ratio: 16/9;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
}

.showcase-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
}

.showcase-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 20px;
  text-align: center;
  transition: var(--transition);
}

.showcase-item:hover .showcase-visual img {
  transform: scale(1.08);
}

.showcase-item:hover .showcase-title {
  color: var(--color-accent-dark);
}

@media (max-width: 900px) {
  .showcase-grid::before {
    display: none;
  }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .showcase-visual {
    aspect-ratio: 3/2;
  }
  
  .showcase-title {
    font-size: 1.1rem;
    margin-top: 16px;
  }
}

/* ——— Reference Section ——— */
.reference-section {
  padding: var(--section-padding) 0;
}

.reference-gallery {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  grid-template-rows: minmax(220px, 28vh) minmax(220px, 28vh);
  gap: 14px 18px;
  margin-top: 48px;
  width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

.reference-item {
  position: relative;
  overflow: hidden;
  background: var(--color-border);
  min-height: 0;
}

/* Hero: levo, 2 vrsti */
.reference-item--hero {
  grid-column: 1;
  grid-row: 1 / 3;
  border-radius: 20px 20px 8px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Vrsta 1: a, b, c */
.reference-item--a {
  grid-column: 2;
  grid-row: 1;
  border-radius: 20px 20px 8px 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.reference-item--b {
  grid-column: 3;
  grid-row: 1;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.reference-item--c {
  grid-column: 4;
  grid-row: 1;
  border-radius: 8px 20px 20px 8px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

/* Vrsta 2: d, e (e span 2) */
.reference-item--d {
  grid-column: 2;
  grid-row: 2;
  border-radius: 8px 8px 20px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.reference-item--e {
  grid-column: 3 / 5;
  grid-row: 2;
  border-radius: 8px 8px 20px 20px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.06);
}

.reference-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.reference-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 18px 16px;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.88) 0%, rgba(12, 10, 8, 0.4) 70%, transparent 100%);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.reference-item:hover img {
  transform: scale(1.04);
}

.reference-item:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

@media (max-width: 900px) {
  .reference-gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(220px, 30vh) minmax(180px, 24vh) minmax(180px, 24vh) minmax(180px, 24vh);
    gap: 10px 12px;
    margin-top: 36px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .reference-item--hero { grid-column: 1 / -1; grid-row: 1; border-radius: 18px; }
  .reference-item--a    { grid-column: 1;     grid-row: 2; border-radius: 14px; }
  .reference-item--b    { grid-column: 2;     grid-row: 2; border-radius: 14px; }
  .reference-item--c    { grid-column: 1;     grid-row: 3; border-radius: 14px; }
  .reference-item--d    { grid-column: 2;     grid-row: 3; border-radius: 14px; }
  .reference-item--e    { grid-column: 1 / -1; grid-row: 4; border-radius: 14px; }
}

@media (max-width: 600px) {
  .reference-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    margin-top: 28px;
    gap: 12px;
    padding-left: 16px;
    padding-right: 16px;
  }
  .reference-item--hero,
  .reference-item--a,
  .reference-item--b,
  .reference-item--c,
  .reference-item--d,
  .reference-item--e {
    grid-column: 1;
    grid-row: auto;
    min-height: 220px;
    border-radius: 14px;
    display: block;
  }
  .reference-caption {
    font-size: 0.85rem;
    padding: 12px 14px 14px;
  }
}

/* ——— Contact Section ——— */
.contact-section {
  position: relative;
  padding: var(--section-padding) 0;
  background: var(--color-bg);
  overflow: hidden;
}

.contact-grain {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 16px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.contact-detail svg {
  color: var(--color-accent);
  min-width: 20px;
}

.contact-map-header {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 24px;
}

.contact-map-and-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}

.contact-map-wrap {
  min-width: 0;
  height: 100%;
}

.contact-map-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 8px 0;
}

.contact-map-address {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.contact-map-embed {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  height: 100%;
}

.contact-map-embed iframe {
  display: block;
  width: 100%;
  height: 400px;
  vertical-align: middle;
}

.contact-company-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  height: 100%;
}

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

@media (max-width: 768px) {
  .contact-map-header {
    margin-top: 48px;
    padding-top: 36px;
  }
  .contact-map-and-image {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .contact-map-embed iframe {
    height: 300px;
  }
  .contact-company-image {
    height: 300px;
  }
}

.contact-form-wrap {
  background: var(--color-dark-surface);
  border-radius: var(--border-radius);
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--color-white);
  transition: var(--transition);
  outline: none;
  font-family: var(--font-body);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.2);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  background: rgba(184, 146, 106, 0.05);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--color-bg);
  color: var(--color-white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ——— Partners Section ——— */
.partners-section {
  position: relative;
  padding: calc(var(--section-padding) * 0.5) 0 calc(var(--section-padding) * 0.7);
  background: linear-gradient(135deg, #fdfbf8 0%, #f5efe6 25%, #ebe2d6 50%, #f8f2ea 75%, #faf6f1 100%);
  overflow: hidden;
}

.partners-section .section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.partners-section .section-tag {
  color: var(--color-accent-dark);
  letter-spacing: 0.12em;
  display: inline-block;
  margin-bottom: 14px;
}

.partners-section .section-title {
  color: #2c2824;
  margin-bottom: 18px;
}

.partners-section .section-subtitle {
  color: #5c554c;
  font-weight: 300;
  line-height: 1.7;
  font-size: 1rem;
}

.partners-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.partner-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
}

a.partner-card {
  cursor: pointer;
}

.partner-card img {
  height: 38px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(1) brightness(0.6) sepia(0.3) opacity(0.5);
  transition: var(--transition);
}

.partner-card:hover img {
  filter: grayscale(0) brightness(1) sepia(0) opacity(1);
}

/* ——— Footer ——— */
.footer {
  background: var(--color-bg);
  border-top: none;
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand .footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
  max-width: 280px;
}

/* Contact details (address) in the dark footer — match the muted white
   color used by the brand paragraph above so the whole brand column
   reads as one block. The inner <a> tags use inline `color: inherit`,
   so they pick this up automatically. */
.footer-brand address {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.4);
}

.footer-brand address a {
  color: inherit;
  transition: color 0.2s ease;
}

.footer-brand address a:hover {
  color: var(--color-accent);
}

.footer-links-col h5 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
}

.footer-links-col li {
  margin-bottom: 10px;
}

.footer-links-col a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

/* ——— Animations ——— */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .partners-grid {
    justify-content: center;
    gap: 24px 36px;
  }

  .showcase-item,
  .showcase-item.showcase-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: clamp(48px, 9vw, 80px);
  }

  .partners-bar-footer {
    padding: 30px 0;
    margin-bottom: 40px;
  }

  .partners-logos {
    gap: 18px 28px;
    justify-content: center;
  }

  .partners-logos img {
    height: 22px;
  }

  .partners-section .section-header {
    margin-bottom: 40px;
  }

  .partners-grid {
    gap: 18px 28px;
    justify-content: center;
  }

  .partner-card img {
    height: 22px;
  }

  .certifications-bar-footer {
    padding: 24px 0 !important;
    margin-bottom: 40px !important;
  }

  .certifications-text {
    white-space: normal !important;
    font-size: 0.85rem !important;
    line-height: 1.5 !important;
  }

  .certifications-logos {
    gap: 18px !important;
  }

  .certifications-logos img {
    height: 42px !important;
  }

  /* ——— Mobile navigation ——— */
  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    padding: 0 18px;
  }

  .nav-logo-image {
    max-width: 120px;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    top: 0;
    background: rgba(14, 17, 23, 0.985);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 84px 24px 32px;
    padding-bottom: max(32px, env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    /* CRITICAL: block all interaction with the off-screen overlay so its
       children (including dropdown links that override visibility) cannot
       capture clicks while the menu is closed. */
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.32s ease, transform 0.32s ease, visibility 0.32s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links > li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    font-size: 1rem;
    color: var(--color-white);
    padding: 16px 4px;
    letter-spacing: 0.08em;
    min-height: 48px;
    line-height: 1.4;
  }

  /* The global desktop rule (`.nav-link.active { color: var(--color-text) }`)
     also applies on mobile, which made the active link (e.g. "STORITVE" on
     subpages — added by partials/header.js) render in dark text on the dark
     mobile overlay. Override here so the current section is highlighted in
     brand gold instead. The pseudo-element underline is hidden on mobile
     (`.nav-link::after { display: none }` below), so we use plain color +
     weight to indicate active state. */
  .nav-link.active,
  .nav-link:hover {
    color: var(--color-accent);
  }

  .nav-link.active {
    font-weight: 600;
  }

  .nav-link::after {
    display: none;
  }

  .has-dropdown > .nav-link::after {
    content: '▾';
    display: inline-block;
    position: static;
    width: auto;
    height: auto;
    background: none;
    font-size: 0.7rem;
    margin-left: 8px;
    opacity: 0.7;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    /* `inherit` (rather than the desktop `visible`) ensures the dropdown
       follows the parent .nav-links visibility state, so it stays
       non-interactive while the off-canvas menu is closed. */
    visibility: inherit;
    transform: none;
    background: rgba(0, 0, 0, 0.18);
    box-shadow: none;
    border: none;
    border-radius: 8px;
    text-align: left;
    padding: 6px 12px 10px;
    margin-bottom: 12px;
    min-width: unset;
  }

  .dropdown-menu a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    padding: 10px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .dropdown-menu a:hover {
    padding-left: 8px;
    color: var(--color-accent);
    background: transparent;
  }

  .dropdown-submenu {
    position: static;
    opacity: 1;
    /* Same reasoning as .dropdown-menu above: follow the parent .nav-links
       visibility so submenu links cannot be clicked while the menu is hidden. */
    visibility: inherit;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    border-left: 2px solid rgba(255, 227, 153, 0.22);
    border-radius: 0;
    text-align: left;
    padding: 0 0 0 14px;
    margin: 2px 0 6px 12px;
    min-width: unset;
  }

  .dropdown-submenu a {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.85rem;
    padding: 9px 8px;
    min-height: 40px;
  }

  .dropdown-submenu a:hover {
    padding-left: 8px;
    color: var(--color-accent);
  }

  .nav-cta {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  /* Prevent body scroll when menu open */
  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }

  /* ——— Hero ——— */
  .hero {
    margin-top: 60px;
    min-height: auto;
    padding: 28px 0 36px;
  }

  .hero-content {
    padding: 0 16px;
    transform: translateY(0);
  }

  .hero-title {
    font-size: clamp(1.55rem, 6.4vw, 2rem);
    line-height: 1.18;
    /* Push the title a bit further down from the top of the hero so it
       doesn't feel glued to the navbar / hero-image edge on mobile. */
    margin-top: 56px;
    margin-bottom: 24px;
    letter-spacing: 0.015em;
    text-wrap: balance;
  }

  /* Collapse layout-only line breaks on mobile, but keep utility breaks
     (e.g. `.mobile-only-br`) intact so they can do their job. */
  .hero-title br:not(.mobile-only-br) {
    display: none;
  }

  /* ——— Hero Quiz (mobile) ——— */
  .hero-quiz {
    height: auto;
    padding: 16px 14px 14px;
    border-radius: 16px;
    margin: 0 auto;
  }

  .hero-quiz-step {
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    display: none;
    margin-bottom: 0;
  }

  .hero-quiz-step.is-active {
    display: block;
    transition: none;
  }

  .hero-quiz-steps {
    min-height: 0;
    margin-bottom: 0;
  }

  .hero-quiz-question {
    font-size: 0.95rem;
    padding-right: 70px; /* avoid overlap with back button */
    margin-bottom: 14px;
  }

  .hq-btn-prev--corner {
    top: 14px;
    right: 12px;
    padding: 8px 6px;
  }

  /* CRITICAL: 5-option grid was unusable on mobile (5 squashed cards). */
  .hero-quiz-options {
    gap: 8px;
  }

  .hero-quiz-options--three,
  .hero-quiz-options--four,
  .hero-quiz-options--five,
  .hero-quiz-options--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-quiz-options--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-quiz-option-content {
    min-height: 108px;
    padding: 0 8px 9px;
    border-radius: 10px;
  }

  .hero-quiz-option-label {
    font-size: 0.78rem;
  }

  .hero-quiz-option-sub {
    font-size: 0.6rem;
  }

  .hero-quiz-field input,
  .hero-quiz-field textarea {
    font-size: 16px; /* iOS no-zoom */
    height: 48px;
  }

  .hero-quiz-field textarea {
    height: auto;
    min-height: 92px;
  }

  .hero-quiz-step4-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-quiz-step4-row .hq-btn-step-next {
    width: 100%;
    justify-content: center;
  }

  .hero-quiz-success {
    padding: 28px 12px;
    min-height: 180px;
  }

  .hero-quiz-success-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 14px;
  }

  .hero-quiz-success-title {
    font-size: 1.1rem;
  }

  .hero-quiz-success-text {
    font-size: 0.88rem;
  }

  .hero-quiz-step-actions .hq-btn-step-next {
    width: 100%;
    justify-content: center;
  }

  .hero-quiz-actions {
    flex-direction: row;
  }

  .hq-btn-next {
    flex: 1;
    height: 46px;
    font-size: 0.82rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }

  /* ——— Section header spacing ——— */
  .section-header {
    margin-bottom: 36px;
  }

  .section-subtitle {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  /* ——— Stats ——— */
  .stats-section {
    padding: 40px 0;
  }

  .stats-grid {
    flex-direction: column;
    gap: 24px;
  }

  .stat-item {
    padding: 10px 16px;
  }

  .stat-divider {
    width: 80px;
    height: 1px;
  }

  /* ——— About ——— */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-lead {
    font-size: 1.02rem;
    line-height: 1.65;
  }

  .about-text p {
    line-height: 1.7;
  }

  /* ——— Services ——— */
  .services-section {
    min-height: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-card {
    min-height: 260px;
  }

  .card-body {
    padding: 18px 18px 18px;
  }

  .service-card h3,
  .service-card--text-below h3 {
    font-size: 1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .solutions-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* ——— CTA banner ——— */
  .cta-banner {
    padding: 56px 0;
  }

  .cta-content h2 {
    font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    margin-bottom: 24px;
    line-height: 1.3;
    letter-spacing: 0.04em;
  }

  /* ——— Contact ——— */
  .contact-section {
    padding: 56px 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-title {
    margin-bottom: 12px;
  }

  .contact-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .contact-detail {
    font-size: 0.92rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-form {
    gap: 16px;
  }

  .contact-form-wrap {
    padding: 22px 18px;
    border-radius: 14px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 14px;
    font-size: 16px; /* iOS no-zoom */
    border-radius: 8px;
    min-height: 48px;
  }

  .form-group textarea {
    min-height: 120px;
  }

  .btn {
    padding: 14px 22px;
    font-size: 0.84rem;
    min-height: 48px;
  }

  /* ——— Footer ——— */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 14px;
    text-align: center;
    padding: 22px 0;
  }

  .footer-bottom-links {
    justify-content: center;
    flex-wrap: wrap;
  }

  .testimonial-track {
    min-height: 280px;
  }
}

/* ——— Small Mobile (≤ 480px) ——— */
@media (max-width: 480px) {
  :root {
    --section-padding: clamp(40px, 8vw, 64px);
  }

  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: clamp(1.45rem, 7.2vw, 1.85rem);
    margin-bottom: 20px;
  }

  .section-title {
    font-size: clamp(1.3rem, 5.8vw, 1.7rem);
  }

  .stat-number {
    font-size: 2.2rem;
  }

  /* Hero quiz further compaction */
  .hero-quiz {
    padding: 14px 12px 12px;
    border-radius: 14px;
  }

  .hero-quiz-option-content {
    min-height: 96px;
  }

  .hero-quiz-option-label {
    font-size: 0.74rem;
  }

  .hero-quiz-option-sub {
    font-size: 0.56rem;
  }

  .nav-cta {
    /* If shown in mobile menu via class change in future: full width */
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ——— Ultra Small Mobile (≤ 380px) ——— */
@media (max-width: 380px) {
  .container {
    padding: 0 14px;
  }

  .hero-quiz {
    padding: 14px 10px 10px;
  }

  .hero-quiz-question {
    font-size: 0.9rem;
    padding-right: 64px;
  }

  .hero-quiz-option-label {
    font-size: 0.72rem;
  }

  .partners-logos img {
    height: 20px;
  }

  .partners-grid {
    gap: 14px 22px;
    justify-content: center;
  }

  .partner-card img {
    height: 20px;
  }
}

/* ——— Landscape phones: avoid hero clipping ——— */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  .hero {
    min-height: auto;
    padding: 20px 0 28px;
  }

  .hero-title {
    margin-bottom: 16px;
  }

  .nav-links {
    padding-top: 64px;
  }
}

/* ——— Reduced motion: honor system preference ——— */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ——— Improved keyboard focus visibility (a11y) ——— */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.hero-quiz-option input:focus-visible + .hero-quiz-option-content {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* =====================
   LIGHTBOX
   ===================== */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: lightboxFadeIn 0.25s ease;
}

.lightbox-overlay.active {
  display: flex;
}

@keyframes lightboxFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lightboxScaleIn 0.25s ease;
}

@keyframes lightboxScaleIn {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-caption {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.4rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255,255,255,0.25);
}

.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }

.card-image-wrapper {
  cursor: zoom-in;
}

/* ============================================
   INNER PAGES — Mobile Responsive Overrides
   ============================================ */

/* Inner-page hero banner */
.cta-banner[style*="margin-top: 72px"] {
  min-height: 220px !important;
}

/* Shine button animation (moved from inline <style> blocks) */
@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

.ekatalog-shine-btn {
  position: relative;
  overflow: hidden;
}

.ekatalog-shine-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: shine 2.8s ease-in-out infinite;
}

/* Mix & Match section */
.mix-match-redesign {
  background: #f5efe6;
  border-radius: 30px;
  padding: 30px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
  overflow: visible;
}

/* Usage carousel */
.usage-carousel-container {
  position: relative;
}

.usage-carousel {
  display: flex;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
}

.usage-slide {
  flex: 0 0 66.666%;
  padding: 0 15px;
  user-select: none;
  -webkit-user-drag: none;
}

.usage-slide > div {
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  pointer-events: none;
}

/* Carousel nav buttons */
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 30px;
  position: relative;
  z-index: 100;
}

.btn-nav {
  background: #4e706f;
  border: none;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(78,112,111,0.4);
  transition: all 0.3s ease;
}

.btn-nav:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(78,112,111,0.55);
}

/* Grid modifier classes (replacing inline !important styles) */
.services-grid.grid-5col {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.services-grid.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: var(--container-max);
  margin: 0 auto;
  align-items: start;
}

.services-grid.grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
  align-items: start;
}

/* System cards, catalog bars, content grids → handled via attribute selectors in media queries */

/* ——— Tablet (max-width: 1024px) ——— */
@media (max-width: 1024px) {
  .services-grid.grid-5col {
    grid-template-columns: repeat(3, 1fr);
  }

  .mix-match-redesign {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .mix-match-redesign .arrow-animation {
    display: none !important;
  }

  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* ——— Mobile (max-width: 768px) ——— */
@media (max-width: 768px) {
  .services-grid.grid-5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .services-grid.grid-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services-grid.grid-2col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* System cards: image + text side-by-side → stacked */
  [style*="grid-template-columns: 0.25fr 1fr"],
  [style*="grid-template-columns: 0.4fr 1fr"],
  [style*="grid-template-columns: 0.3fr 1fr"],
  [style*="grid-template-columns: 0.5fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  [style*="grid-template-columns: 0.25fr 1fr"] > div:first-child,
  [style*="grid-template-columns: 0.4fr 1fr"] > div:first-child,
  [style*="grid-template-columns: 0.3fr 1fr"] > div:first-child,
  [style*="grid-template-columns: 0.5fr 1fr"] > div:first-child {
    max-height: 220px;
    overflow: hidden;
  }

  [style*="grid-template-columns: 0.25fr 1fr"] > div:last-child,
  [style*="grid-template-columns: 0.4fr 1fr"] > div:last-child,
  [style*="grid-template-columns: 0.3fr 1fr"] > div:last-child,
  [style*="grid-template-columns: 0.5fr 1fr"] > div:last-child {
    padding: 24px !important;
  }

  /* 2-column content grids → single column */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* 3-column inline grids → single col on mobile */
  [style*="grid-template-columns: repeat(3, 1fr)"]:not(.partners-logos) {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* 4-column inline grids → 2 cols on mobile */
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px !important;
  }

  /* 5-column benefits grid (microtopping) */
  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }

  /* Small icon-row inline grids (42px col + content) - keep horizontal but tighten */
  [style*="grid-template-columns: 42px 1fr"],
  [style*="grid-template-columns: 40px 1fr"],
  [style*="grid-template-columns: 48px 1fr"] {
    gap: 14px !important;
  }

  /* Mix & Match section */
  .mix-match-redesign {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 20px !important;
    border-radius: 20px !important;
  }

  .mix-match-redesign .arrow-animation {
    display: none !important;
  }

  .mix-match-content h3 {
    font-size: 1.3rem !important;
  }

  /* Carousel slides: wider and shorter */
  .usage-slide {
    flex: 0 0 90% !important;
    padding: 0 8px !important;
  }

  .usage-slide > div {
    height: 280px !important;
  }

  /* Inner page hero (only pages with margin-top inline) */
  .cta-banner[style*="margin-top"] {
    min-height: 200px !important;
    margin-top: 60px !important;
    padding: 32px 0 !important;
  }

  .cta-banner .hero-title {
    font-size: clamp(1.4rem, 6vw, 2rem) !important;
    line-height: 1.2;
    padding: 0 4px;
  }

  /* About section padding */
  .about-section[style*="padding: 80px 0"],
  .about-section[style*="padding: 100px 0"],
  .about-section[style*="padding: 100px 0 60px"],
  .about-section[style*="padding: 60px 0 100px"] {
    padding: 50px 0 !important;
  }

  .about-section[style*="padding: 60px 0"],
  .about-section[style*="padding: 50px 0"] {
    padding: 40px 0 !important;
  }

  .services-section[style*="padding: 80px 0"],
  .services-section[style*="padding: 100px 0"] {
    padding: 50px 0 !important;
  }

  /* Inline padding inner-page sections */
  [style*="padding: 80px 0"]:not(.cta-banner) {
    padding: 50px 0 !important;
  }

  /* Quote/CTA blocks: reduce padding */
  [style*="padding: 50px 60px"],
  [style*="padding: 60px 50px"],
  [style*="padding: 60px 60px"],
  [style*="padding: 60px 80px"] {
    padding: 30px 20px !important;
  }

  /* Catalog/CTA bottom bars */
  [style*="justify-content: space-between"][style*="gap: 40px"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 24px !important;
  }

  /* Catalog bar buttons */
  .ekatalog-shine-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.82rem !important;
    padding: 14px 20px !important;
    min-height: 48px;
  }

  /* Carousel nav buttons smaller on mobile */
  .btn-nav {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.1rem !important;
  }

  .carousel-nav {
    margin-top: 22px;
    gap: 18px;
  }

  /* Microtopping hero: logo + title inline → stack */
  .cta-content [style*="display: flex"][style*="gap: 30px"] {
    flex-direction: column !important;
    gap: 16px !important;
    align-items: center !important;
  }

  .cta-content [style*="display: flex"][style*="gap: 30px"] img {
    height: 35px !important;
  }

  /* About text blocks */
  .about-text[style*="max-width: 900px"] {
    margin-bottom: 30px !important;
  }

  /* Concept image boxes that overflow */
  [style*="width: calc(100% + 60px)"],
  [style*="width: calc(100% + 80px)"],
  [style*="width: calc(100% + 100px)"] {
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  /* Visual badges on about-section--split */
  .visual-badges {
    top: 15px !important;
    left: 15px !important;
    gap: 8px !important;
  }

  .visual-badges img {
    width: 50px !important;
  }

  /* Standards tables - better mobile padding */
  [style*="padding: 30px 40px"],
  [style*="padding: 40px 30px"] {
    padding: 20px 16px !important;
  }

  [style*="padding: 0 40px"] {
    padding: 0 16px !important;
  }

  /* Inner-page system card text sizes */
  [style*="font-size: 1.5rem"] {
    font-size: 1.2rem !important;
  }

  [style*="font-size: 2.5rem"],
  [style*="font-size: 2.8rem"],
  [style*="font-size: 3rem"] {
    font-size: 1.6rem !important;
  }

  [style*="font-size: 2rem"] {
    font-size: 1.4rem !important;
  }

  /* List items with inline 15px font become readable */
  [style*="font-size: 15px"] {
    font-size: 14px !important;
  }

  /* Partners bar responsive */
  .partners-logos {
    justify-content: center !important;
  }

  /* Inner-page closed/hidden sections */
  .about-section--split .split-image {
    height: 250px !important;
  }

  /* Inner page hero: video heights inside cta-banner */
  .cta-banner[style*="min-height: 300px"] {
    min-height: 220px !important;
  }
}

/* ——— Small Mobile (max-width: 480px) ——— */
@media (max-width: 480px) {
  .services-grid.grid-5col {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  [style*="grid-template-columns: repeat(5, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .usage-slide {
    flex: 0 0 100% !important;
    padding: 0 4px !important;
  }

  .usage-slide > div {
    height: 220px !important;
  }

  .mix-match-redesign {
    padding: 16px !important;
    border-radius: 16px !important;
  }

  .cta-banner[style*="margin-top"] {
    min-height: 160px !important;
  }

  .cta-banner .hero-title {
    font-size: clamp(1.25rem, 6.4vw, 1.6rem) !important;
  }

  [style*="padding: 50px 60px"],
  [style*="padding: 60px 50px"],
  [style*="padding: 60px 60px"],
  [style*="padding: 60px 80px"] {
    padding: 24px 16px !important;
  }

  /* Tighter inline list text on very small screens */
  [style*="font-size: 15px"] {
    font-size: 13.5px !important;
    line-height: 1.55 !important;
  }
}

/* ——— Legal pages (Politika zasebnosti, Pogoji uporabe) ——— */
.legal-page {
  padding: 80px 0;
  background: #ffffff;
  color: var(--color-text);
}

.legal-page .legal-container {
  max-width: 820px;
  margin: 0 auto;
}

.legal-page .legal-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(143, 119, 70, 0.18);
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: #2c2824;
  margin: 40px 0 14px;
  letter-spacing: 0.02em;
}

.legal-page > .legal-container > h2:first-of-type {
  margin-top: 0;
}

.legal-page h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c2824;
  margin: 24px 0 10px;
  letter-spacing: 0.01em;
}

.legal-page p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin: 0 0 14px;
}

.legal-page ul,
.legal-page ol {
  margin: 0 0 16px 22px;
  padding: 0;
  color: var(--color-text-muted);
  line-height: 1.75;
}

.legal-page li {
  margin-bottom: 6px;
}

.legal-page strong {
  color: #2c2824;
  font-weight: 600;
}

.legal-page a {
  color: #a6852a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: #8a6c1d;
}

.legal-page address {
  font-style: normal;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .legal-page {
    padding: 50px 0;
  }

  .legal-page h2 {
    font-size: 1.2rem;
    margin-top: 32px;
  }

  .legal-page h3 {
    font-size: 1rem;
  }
}
