/* ==========================================================================
   Check-Up Merchandising — styles.css
   Mobile-first. Breakpoints: 48rem (tablet), 64rem (desktop), 80rem (wide)
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Boje */
  --ink: #070925;
  --night: #0e1140;
  --indigo: #2b33e8;
  --indigo-deep: #1c21a8;
  --violet: #7a5cff;
  --cyan: #19d3d0;
  --amber: #ffc21f;
  --red: #ff3355;
  --paper: #f3f4ff;
  --white: #ffffff;
  --text: #12143a;
  --text-muted: #4b4f7d;
  --text-on-dark: #f3f4ff;
  --text-muted-on-dark: #b8bbe6;
  --error: #b3122c;
  --line-light: rgba(18, 20, 58, 0.14);
  --line-dark: rgba(243, 244, 255, 0.16);

  /* Tipografija */
  --font-display: "Unbounded", "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: 1.25rem;
  --fs-lg: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  --fs-xl: clamp(1.625rem, 1.1rem + 2vw, 2.625rem);
  --fs-hero: clamp(2rem, 1.15rem + 3.7vw, 4rem);

  /* Razmaci */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(4rem, 2.75rem + 5.5vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --container: 72rem;
  --header-h: 4.5rem;

  /* Oblici i sjene */
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 28px;
  --shadow-s: 0 1px 2px rgba(7, 9, 37, 0.08), 0 4px 12px rgba(7, 9, 37, 0.06);
  --shadow-m: 0 14px 34px -14px rgba(28, 33, 168, 0.45);
  --shadow-l: 0 36px 70px -26px rgba(0, 0, 0, 0.7);

  /* Pokret */
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-spring: cubic-bezier(0.25, 1.1, 0.35, 1.15);
}

/* ---------- Reset i osnove ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

html.no-scroll {
  overflow: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.section--light :focus-visible {
  outline-color: var(--indigo);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  font-weight: 800;
  color: var(--ink);
  background: var(--amber);
  border-radius: var(--radius-s);
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: none;
}

#glavni-sadrzaj:focus {
  outline: none;
}

.container {
  width: min(calc(100% - 2 * var(--gutter)), var(--container));
  margin-inline: auto;
}

/* ---------- Gumbi ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

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

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: var(--ink);
  background: var(--amber);
  box-shadow: 0 10px 24px -12px rgba(255, 194, 31, 0.8);
}

.btn--primary:hover {
  background: #ffd24f;
  box-shadow: 0 16px 30px -12px rgba(255, 194, 31, 0.9);
}

.btn--ghost {
  color: var(--text-on-dark);
  border-color: var(--line-dark);
  background: rgba(255, 255, 255, 0.04);
}

.btn--ghost:hover {
  border-color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.1);
}

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

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.link-btn {
  padding: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text-muted-on-dark);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
  transition: color 0.2s var(--ease);
}

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

/* ---------- Zaglavlje i navigacija ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  height: var(--header-h);
  color: var(--text-on-dark);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 9, 37, 0.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  text-decoration: none;
}

.logo__word {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo__check {
  width: 1.2em;
  height: 1.2em;
  margin-inline: -0.12em;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.4s var(--ease-spring);
}

.logo:hover .logo__check {
  transform: rotate(-10deg) scale(1.12);
}

.logo__sub {
  margin-top: 0.3rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  color: var(--text-muted-on-dark);
}

.nav-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.875rem;
  height: 2.875rem;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-on-dark);
}

.nav-toggle__bar {
  position: absolute;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle__bar:nth-child(1) {
  transform: translateY(-6px);
}

.nav-toggle__bar:nth-child(3) {
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: rotate(-45deg);
}

.nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  display: grid;
  gap: var(--space-5);
  max-height: calc(100dvh - var(--header-h));
  padding: var(--space-5) var(--gutter) var(--space-6);
  overflow: auto;
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.nav__list {
  display: grid;
}

.nav__link {
  display: block;
  padding: 0.9rem 0.25rem;
  font-size: 1.125rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--line-dark);
}

.nav__link[aria-current="location"] {
  color: var(--cyan);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem));
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
  color: var(--text-on-dark);
  background:
    radial-gradient(60rem 40rem at 85% -10%, rgba(43, 51, 232, 0.55), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(122, 92, 255, 0.25), transparent 60%),
    var(--ink);
}

.hero__grid {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.08;
}

.hero__lead {
  max-width: 34rem;
  margin-top: var(--space-5);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-muted-on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-6);
}

.hero__facts {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.hero__facts li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--fs-sm);
  font-weight: 700;
}

.hero__facts li::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23070925' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
  border-radius: 50%;
}

/* ---------- Hero: polica ---------- */
.hero__visual {
  display: grid;
  justify-items: center;
}

.shelf {
  display: grid;
  gap: var(--space-2);
  justify-items: center;
  width: 100%;
  max-width: 30rem;
}

.js .shelf:not(.is-ready) {
  visibility: hidden;
}

.shelf__stage {
  position: relative;
  display: grid;
  gap: 1.5rem;
  width: 100%;
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}

.shelf__row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  align-items: end;
  height: 5.75rem;
  padding-inline: 0.25rem;
  border-bottom: 0.5rem solid rgba(243, 244, 255, 0.22);
  border-radius: 2px;
}

.box {
  position: relative;
  height: var(--h, 70%);
  background: var(--c, var(--indigo));
  border-radius: 4px 4px 2px 2px;
  transform-origin: 50% 100%;
}

.box::before {
  content: "";
  position: absolute;
  inset: 18% 14% auto;
  height: 16%;
  background: var(--label, rgba(255, 255, 255, 0.8));
  border-radius: 2px;
}

.box::after {
  content: "";
  position: absolute;
  inset: auto auto 14% 14%;
  width: 40%;
  height: 8%;
  background: var(--label, rgba(255, 255, 255, 0.8));
  border-radius: 2px;
  opacity: 0.6;
}

.box:nth-child(1) { --c: #4650ff; --h: 68%; }
.box:nth-child(2) { --c: var(--violet); --h: 92%; }
.box:nth-child(3) { --c: var(--cyan); --h: 56%; --label: rgba(7, 9, 37, 0.5); }
.box:nth-child(4) { --c: var(--amber); --h: 80%; --label: rgba(7, 9, 37, 0.5); }
.box:nth-child(5) { --c: var(--red); --h: 64%; }
.box:nth-child(6) { --c: var(--paper); --h: 96%; --label: rgba(43, 51, 232, 0.7); }

.shelf__row:nth-child(2) .box:nth-child(odd) { --h: 84%; }
.shelf__row:nth-child(2) .box:nth-child(even) { --h: 58%; }
.shelf__row:nth-child(3) .box:nth-child(3n) { --h: 94%; }
.shelf__row:nth-child(3) .box:nth-child(3n + 1) { --h: 66%; }
.shelf__row:nth-child(3) .box:nth-child(3n + 2) { --h: 78%; }

.js .shelf .box {
  transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--rot, 0deg));
  transition: none;
}

.js .shelf.is-ordered .box {
  transform: none;
  transition: transform 0.9s var(--ease-spring) var(--delay, 0s);
}

.shelf__badge {
  position: absolute;
  top: -0.95rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 999px;
  box-shadow: var(--shadow-m);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease-spring);
}

.shelf__badge svg {
  width: 1.4rem;
  height: 1.4rem;
  padding: 0.25rem;
  background: var(--ink);
  border-radius: 50%;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.js .shelf:not(.is-ordered) .shelf__badge {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
}

.js .shelf.is-ordered .shelf__badge {
  transition-delay: 1.2s;
}

/* ---------- Sekcije ---------- */
.section {
  padding-block: var(--section-pad);
}

.section--light {
  color: var(--text);
  background: var(--paper);
}

.section--dark {
  color: var(--text-on-dark);
  background: var(--night);
}

.section__head {
  display: grid;
  gap: var(--space-4);
}

.section__title {
  font-size: var(--fs-xl);
  font-weight: 700;
}

.section__lead {
  max-width: 40rem;
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text-muted);
}

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

/* ---------- Prednosti ---------- */
.benefits {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-7);
}

.benefit {
  padding: var(--space-6);
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-s);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.benefit:hover {
  border-color: var(--indigo);
  box-shadow: var(--shadow-m);
  transform: translateY(-4px);
}

.benefit__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  color: var(--white);
  border-radius: 14px;
}

.benefit__icon svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit__icon--indigo { background: var(--indigo); }
.benefit__icon--violet { background: var(--violet); }
.benefit__icon--cyan { background: var(--cyan); color: var(--ink); }

.benefit__title {
  margin-top: var(--space-5);
  font-size: var(--fs-md);
}

.benefit__text {
  margin-top: var(--space-3);
  color: var(--text-muted);
}

/* ---------- O nama ---------- */
.about {
  display: grid;
  gap: var(--space-7);
}

.about__copy {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.about__copy .section__title {
  margin-bottom: var(--space-2);
}

.about__copy p {
  max-width: 38rem;
  color: var(--text-muted-on-dark);
}

.about__duties-title {
  font-size: var(--fs-md);
  margin-bottom: var(--space-3);
}

.duty {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line-dark);
}

.duty:last-child {
  border-bottom: 1px solid var(--line-dark);
}

.duty__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--cyan);
  background: rgba(25, 211, 208, 0.1);
  border-radius: 50%;
}

.duty__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.duty__title {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  font-weight: 800;
  letter-spacing: 0;
}

.duty__text {
  margin-top: var(--space-1);
  font-size: var(--fs-sm);
  color: var(--text-muted-on-dark);
}

.statement {
  display: grid;
  gap: var(--space-3);
  margin-top: clamp(3rem, 6vw, 5.5rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
  border-top: 1px solid var(--line-dark);
}

.statement__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1rem + 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--amber);
}

.statement__text {
  max-width: 36rem;
  font-size: var(--fs-md);
  color: var(--text-muted-on-dark);
}

/* ---------- Pokrivenost ---------- */
.coverage {
  display: grid;
  gap: var(--space-7);
  align-items: center;
}

.coverage__copy {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-2);
}

.chip {
  padding: 0.6rem 1.1rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--text);
  background: var(--white);
  border: 1.5px solid var(--line-light);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--indigo);
  transform: translateY(-1px);
}

.chip[aria-pressed="true"] {
  color: var(--white);
  background: var(--indigo);
  border-color: var(--indigo);
}

.map {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  background: var(--indigo);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
}

.map__svg {
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  height: auto;
  overflow: visible;
}

.map__land {
  fill: rgba(255, 255, 255, 0.16);
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-linejoin: round;
}

.map__dot circle {
  fill: var(--amber);
  transition: transform 0.35s var(--ease-spring), fill 0.2s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}

.map__dot .map__pulse {
  fill: var(--amber);
  opacity: 0.45;
  animation: pulse 2.6s var(--ease) infinite;
}

.map__dot:nth-child(2n) .map__pulse { animation-delay: 0.6s; }
.map__dot:nth-child(3n) .map__pulse { animation-delay: 1.2s; }

.map__dots.has-active .map__dot:not(.is-active) circle {
  fill: rgba(255, 255, 255, 0.5);
}

.map__dots.has-active .map__dot:not(.is-active) .map__pulse {
  animation: none;
  opacity: 0;
}

.map__dot.is-active circle:not(.map__pulse) {
  transform: scale(1.5);
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70%, 100% { transform: scale(3); opacity: 0; }
}

/* ---------- Kontakt ---------- */
.contact {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}

.contact__copy {
  display: grid;
  gap: var(--space-5);
}

.contact__list {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-3);
}

.contact__link {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-m);
  transition: background-color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.contact__link:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--cyan);
  transform: translateX(4px);
}

.contact__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  color: var(--ink);
  background: var(--cyan);
  border-radius: 50%;
}

.contact__icon svg {
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--text-muted-on-dark);
}

.contact__value {
  display: block;
  font-weight: 800;
  overflow-wrap: anywhere;
}

/* ---------- Forma ---------- */
.contact__panel {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text);
  background: var(--white);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
}

.form {
  display: grid;
  gap: var(--space-5);
}

.form__title {
  font-size: var(--fs-lg);
}

.form__grid {
  display: grid;
  gap: var(--space-4);
}

.field {
  display: grid;
  gap: 0.4rem;
  align-content: start;
}

.field label {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.field__optional {
  font-weight: 500;
  color: var(--text-muted);
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  background: var(--paper);
  border: 1.5px solid var(--line-light);
  border-radius: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2312143a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.25rem;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: rgba(43, 51, 232, 0.5);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background-color: var(--white);
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px rgba(43, 51, 232, 0.18);
  outline: none;
}

.field [aria-invalid="true"] {
  border-color: var(--error);
  background-color: #fff6f7;
}

.field__error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  color: var(--error);
}

.field__error::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--white);
  background: var(--error);
  border-radius: 50%;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.check input {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.15rem 0 0;
  accent-color: var(--indigo);
  cursor: pointer;
}

.check label {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
}

.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  font-size: var(--fs-sm);
  font-weight: 700;
}

.form__status:empty {
  display: none;
}

.form__status[data-state="success"] {
  padding: var(--space-4);
  color: #0b5e5c;
  background: rgba(25, 211, 208, 0.16);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-s);
}

.form__status[data-state="error"] {
  padding: var(--space-4);
  color: var(--error);
  background: #fff1f3;
  border-left: 4px solid var(--error);
  border-radius: var(--radius-s);
}

/* ---------- Podnožje ---------- */
.site-footer {
  padding-block: var(--space-7);
  color: var(--text-muted-on-dark);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.site-footer__logo {
  display: inline-block;
}

.site-footer__logo img {
  width: 10rem;
  height: auto;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}

.site-footer__logo img.is-loaded,
.site-footer__logo noscript img {
  opacity: 1;
}

.site-footer__nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
}

.site-footer__nav a {
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.site-footer__nav a:hover {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.site-footer__copy {
  font-size: var(--fs-xs);
}

/* ---------- Animacije pri skrolanju ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease) var(--d, 0ms), transform 0.7s var(--ease) var(--d, 0ms),
    border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.js .benefit[data-reveal].is-visible:hover {
  transform: translateY(-4px);
}

/* ---------- Tablet (>= 768px) ---------- */
@media (min-width: 48rem) {
  .hero__facts {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: var(--space-5) var(--space-6);
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefit:last-child {
    grid-column: 1 / -1;
  }

  .form__grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    justify-items: start;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

/* ---------- Desktop (>= 1024px) ---------- */
@media (min-width: 64rem) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    inset: auto;
    display: flex;
    align-items: center;
    gap: var(--space-5);
    max-height: none;
    padding: 0;
    overflow: visible;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav__list {
    display: flex;
    gap: var(--space-1);
  }

  .nav__link {
    padding: 0.5rem 0.9rem;
    font-size: var(--fs-sm);
    color: var(--text-muted-on-dark);
    border: 0;
    border-radius: 999px;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }

  .nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
  }

  .nav__link[aria-current="location"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 -2px 0 var(--cyan);
  }

  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--space-8);
  }

  .section__head {
    grid-template-columns: 1fr 1.1fr;
    gap: var(--space-7);
    align-items: end;
  }

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

  .benefit:last-child {
    grid-column: auto;
  }

  .about {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
  }

  .statement {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: var(--space-7);
  }

  .coverage {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .contact {
    grid-template-columns: 0.9fr 1.1fr;
    gap: var(--space-8);
  }

  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    gap: var(--space-7);
  }

  .site-footer__nav {
    justify-self: center;
  }

  .site-footer__copy {
    grid-column: auto;
  }
}

/* ---------- Široki ekrani (>= 1280px) ---------- */
@media (min-width: 80rem) {
  :root {
    --container: 76rem;
  }

  .shelf__row {
    height: 6.5rem;
  }
}

/* ---------- Smanjeno kretanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .js .shelf .box {
    transform: none;
  }
}
