/* ==========================================================
   Inox Plus — style.css
   Fontovi: Montserrat (naslovi), Poppins (tekst)
   Paleta: ~70% svetlo, ~30% tamno
   ========================================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Tamni tonovi (~30%) */
  --dark: #101d2c;
  --dark-soft: #1b2c40;
  --dark-overlay: rgba(13, 24, 38, 0.55);

  /* Svetli tonovi (~70%) */
  --light: #ffffff;
  --light-tint: #f2f6fa;
  --light-border: #e2e9f0;

  /* Akcenat — čelično plava */
  --accent: #2e7fc2;
  --accent-strong: #1f649e;
  --accent-soft: #dcecf9;

  --text: #24313f;
  --text-muted: #5f7183;

  --font-head: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;

  --radius: 14px;
  --shadow-sm: 0 4px 16px rgba(16, 29, 44, 0.08);
  --shadow-md: 0 14px 40px rgba(16, 29, 44, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}

/* ===== Dugmad ===== */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  padding: 15px 34px;
  border-radius: 50px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease);
}

.btn--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(46, 127, 194, 0.35);
}

.btn--solid:hover {
  background: var(--accent-strong);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(46, 127, 194, 0.45);
}

.btn--ghost {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  transform: translateY(-3px);
}

/* ===== Sekcije — zajedničko ===== */
.section {
  padding: 96px 0;
}

.section--tinted {
  background: var(--light-tint);
}

.section__tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__tag--light {
  color: #7db8e8;
}

.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 28px;
}

.section__title--light {
  color: #fff;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  font-style: italic;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 80%, #d6eaf9 100%);
  transition: padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.header.is-scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-sm);
}

.header .container {
  width: 100%;
  max-width: none;
  padding-inline: 28px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 1;
  min-width: 0;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo img {
  height: 32px;
  width: auto;
  transition: transform 0.35s var(--ease);
}

.header__logo:hover img {
  transform: scale(1.05);
}

.header__delivery {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 1;
  min-width: 0;
}

.header__delivery-icon {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.header__delivery-icon svg {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
}

.header__delivery-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(46, 127, 194, 0.25);
  animation: delivery-pulse 2s var(--ease) infinite;
}

@keyframes delivery-pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.35);
    opacity: 0;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.header__delivery-text {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark);
  line-height: 1.35;
  max-width: 280px;
}

.header__nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}

.header__nav a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--dark);
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.header__nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--dark);
  border: 1.5px solid var(--light-border);
  border-radius: 50px;
  padding: 9px 20px;
  white-space: nowrap;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}

.header__cta svg {
  width: 15px;
  height: 15px;
}

.header__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.header__cta-phones {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
}

.header__cta-phones a {
  color: inherit;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: opacity 0.35s var(--ease);
}

.header__cta:hover .header__cta-phones a {
  color: #fff;
}

.header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.header__burger span {
  width: 26px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.header__burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header__burger.is-open span {
  background: #fff;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__slides {
  position: absolute;
  inset: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1s var(--ease), transform 6.5s linear;
}

.hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(13, 24, 38, 0.82) 0%, rgba(13, 24, 38, 0.55) 42%, rgba(13, 24, 38, 0.12) 78%, transparent 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin-left: max(calc((100% - 1180px) / 2), 24px);
  padding-top: 60px;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-style: italic;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9cc6ea;
  margin-bottom: 18px;
  animation: rise 0.9s var(--ease) both;
}

.hero__content h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.14;
  color: #fff;
  margin-bottom: 22px;
  animation: rise 0.9s 0.15s var(--ease) both;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  max-width: 540px;
  margin-bottom: 36px;
  animation: rise 0.9s 0.3s var(--ease) both;
}

.hero__sub strong {
  font-weight: 600;
  color: #fff;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: rise 0.9s 0.45s var(--ease) both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}

.hero__nav svg {
  width: 22px;
  height: 22px;
}

.hero__nav:hover {
  background: var(--accent);
  transform: translateY(-50%) scale(1.08);
  translate: 0 0;
}

.hero__nav--prev {
  left: 28px;
}

.hero__nav--next {
  right: 28px;
}

.hero__dots {
  position: absolute;
  bottom: 34px;
  left: 50%;
  translate: -50% 0;
  z-index: 3;
  display: flex;
  gap: 10px;
}

.hero__dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.35s var(--ease), width 0.35s var(--ease);
}

.hero__dot.is-active {
  background: #fff;
  width: 52px;
}

/* ===== O nama ===== */
.about {
  position: relative;
  text-align: center;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/Kuhinja pozadina.webp') center / cover no-repeat;
  opacity: 0.2;
  pointer-events: none;
}

.about .container {
  position: relative;
  z-index: 1;
}

.about .section__tag,
.about .section__title {
  text-align: center;
}

.about__text {
  max-width: 760px;
  margin: 0 auto 52px;
}

.about__text p {
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 1.02rem;
}

.about__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 780px;
  margin-inline: auto;
}

.perk {
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}

.perk:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-soft);
}

.perk__icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--dark-soft));
  display: grid;
  place-items: center;
  color: #fff;
  transition: transform 0.4s var(--ease);
}

.perk:hover .perk__icon {
  transform: rotate(-6deg) scale(1.08);
}

.perk__icon svg {
  width: 28px;
  height: 28px;
}

.perk__icon img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.perk__icon--image {
  background: none;
  overflow: hidden;
  padding: 0;
}

.perk__icon--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.perk p {
  font-weight: 500;
  font-size: 0.98rem;
}

.perk a:hover {
  color: var(--accent-strong);
}

.perk__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.perk__phones a {
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}

/* ===== Grupe proizvoda ===== */
.products .section__tag,
.products .section__title,
.products .section__lead {
  text-align: center;
}

.products .section__lead {
  margin-inline: auto;
  margin-bottom: 36px;
  font-style: normal;
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 18px;
}

.card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9.5;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover img {
  transform: scale(1.09);
}

.card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 24, 38, 0.88) 0%, rgba(13, 24, 38, 0.28) 52%, transparent 100%);
  transition: background 0.45s var(--ease);
}

.card:hover .card__veil {
  background: linear-gradient(to top, rgba(13, 24, 38, 0.94) 0%, rgba(13, 24, 38, 0.45) 60%, rgba(13, 24, 38, 0.12) 100%);
}

.card__body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 28px 30px;
}

.card__body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #fff;
  margin-bottom: 4px;
}

.card__desc {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  color: #8fc3ec;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.card__more svg {
  width: 16px;
  height: 16px;
}

.card:hover .card__more {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Po meri (tamna sekcija) ===== */
.custom {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-soft) 100%);
  color: rgba(255, 255, 255, 0.82);
}

.custom__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.custom__text p {
  margin-bottom: 18px;
  font-weight: 300;
  font-size: 1.02rem;
}

.custom__highlight {
  border-left: 3px solid var(--accent);
  padding: 14px 20px;
  background: rgba(46, 127, 194, 0.1);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}

.custom__highlight strong {
  color: #fff;
  font-style: normal;
}

.custom__list {
  list-style: none;
  margin: 26px 0 34px;
  display: grid;
  gap: 12px;
}

.custom__list li {
  position: relative;
  padding-left: 30px;
  font-weight: 400;
  font-size: 0.98rem;
}

.custom__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  clip-path: polygon(14% 44%, 0 62%, 40% 100%, 100% 16%, 84% 4%, 40% 66%);
}

.custom__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: rotate(1.2deg);
  transition: transform 0.5s var(--ease);
}

.custom__media:hover {
  transform: rotate(0deg) scale(1.02);
}

.custom__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3.4;
}

/* ===== Naši projekti ===== */
.projects .section__tag,
.projects .section__title,
.projects .section__lead {
  text-align: center;
}

.projects .section__lead {
  margin-inline: auto;
  margin-bottom: 44px;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 260px;
  gap: 20px;
}

.project {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.project:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.project--wide {
  grid-column: span 2;
}

.project__btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
}

.project__btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.project__btn:hover img {
  transform: scale(1.1);
}

.project__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(13, 24, 38, 0.55);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.project__btn:hover .project__overlay,
.project__btn:focus-visible .project__overlay {
  opacity: 1;
}

.project__caption {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  text-align: center;
  transform: translateY(12px);
  transition: transform 0.4s var(--ease);
}

.project__btn:hover .project__caption,
.project__btn:focus-visible .project__caption {
  transform: translateY(0);
}

.project__zoom {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  transform: scale(0.7);
  transition: transform 0.4s var(--ease);
}

.project__zoom svg {
  width: 20px;
  height: 20px;
}

.project__btn:hover .project__zoom,
.project__btn:focus-visible .project__zoom {
  transform: scale(1);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 24, 38, 0.92);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.3s var(--ease);
}

.lightbox__close:hover {
  background: var(--accent);
}

.lightbox__figure {
  max-width: min(960px, 100%);
  margin: 0;
  transform: scale(0.92);
  transition: transform 0.4s var(--ease);
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__figure figcaption {
  margin-top: 16px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

/* ===== Reference (marquee) ===== */
.references {
  padding-bottom: 80px;
}

.references .section__tag,
.references .section__title,
.references .section__lead {
  text-align: center;
}

.references .section__lead {
  margin-inline: auto;
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.marquee__item {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  min-width: 210px;
  padding: 26px 34px;
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.marquee__item:hover {
  color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ===== Kontakt ===== */
.contact .section__tag,
.contact .section__title {
  text-align: center;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.contact__card {
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.contact__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.contact__icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}

.contact__card:hover .contact__icon {
  background: var(--accent);
  color: #fff;
  transform: scale(1.08);
}

.contact__icon svg {
  width: 26px;
  height: 26px;
}

.contact__card h3 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.contact__card a,
.contact__card p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact__card a:hover {
  color: var(--accent);
}

.contact__phones {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact__phones a {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.contact__phones a:hover {
  color: var(--accent);
}

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.7);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px;
  padding: 72px 0 52px;
}

.footer__logo {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
  filter: brightness(0) invert(1);
}

.footer__about p {
  font-weight: 300;
  font-size: 0.92rem;
  max-width: 320px;
}

.footer__col h4 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}

.footer__col a,
.footer__col p {
  display: block;
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 10px;
  transition: color 0.3s var(--ease), padding-left 0.3s var(--ease);
}

.footer__col a:hover {
  color: #8fc3ec;
  padding-left: 6px;
}

.footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding: 20px 0;
}

.footer__bar p {
  font-size: 0.82rem;
  font-weight: 300;
  font-style: italic;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ===== Reveal animacije ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Kaskadni delay za kartice */
.products__grid .card:nth-child(2),
.about__perks .perk:nth-child(2),
.contact__grid .contact__card:nth-child(2) {
  transition-delay: 0.1s;
}

.contact__grid .contact__card:nth-child(3) {
  transition-delay: 0.2s;
}

.products__grid .card:nth-child(3) {
  transition-delay: 0.2s;
}

.products__grid .card:nth-child(4),
.contact__grid .contact__card:nth-child(4),
.projects__grid .project:nth-child(3),
.projects__grid .project:nth-child(6) {
  transition-delay: 0.3s;
}

.products__grid .card:nth-child(5) {
  transition-delay: 0.4s;
}

.products__grid .card:nth-child(6) {
  transition-delay: 0.5s;
}

.projects__grid .project:nth-child(2),
.projects__grid .project:nth-child(5) {
  transition-delay: 0.1s;
}

.projects__grid .project:nth-child(4) {
  transition-delay: 0.2s;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .header__delivery-text {
    font-size: 0.65rem;
    max-width: 200px;
  }
  .custom__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .custom__media {
    order: -1;
    transform: none;
  }

  .projects__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 220px;
  }

  .products__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project--wide {
    grid-column: span 2;
  }

  .contact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 68px 0;
  }

  .header {
    padding: 12px 0;
  }

  .header .container {
    padding-inline: 16px;
  }

  .header__inner {
    position: relative;
    justify-content: center;
    align-items: center;
    gap: 0;
  }

  .header__brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    flex: none;
    width: 100%;
    padding: 0 44px;
  }

  .header__logo img {
    height: 28px;
  }

  .header__delivery {
    gap: 8px;
    justify-content: center;
  }

  .header__delivery-icon {
    width: 28px;
    height: 28px;
  }

  .header__delivery-icon svg {
    width: 16px;
    height: 16px;
  }

  .header__delivery-text {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    max-width: none;
    line-height: 1.3;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(320px, 82vw);
    height: 100dvh;
    background: var(--dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin: 0;
    transition: right 0.4s var(--ease);
    box-shadow: -18px 0 50px rgba(0, 0, 0, 0.3);
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav a,
  .header.is-scrolled .header__nav a {
    color: #fff;
    font-size: 1.1rem;
  }

  .header__cta {
    display: none;
  }

  .header__burger {
    display: flex;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 110;
    margin-left: 0;
    align-self: auto;
  }

  .hero__content {
    margin-left: 24px;
    margin-right: 24px;
    padding-top: 88px;
  }

  .hero__nav {
    width: 42px;
    height: 42px;
  }

  .hero__nav--prev {
    left: 14px;
  }

  .hero__nav--next {
    right: 14px;
  }

  .about__perks {
    grid-template-columns: 1fr;
  }

  .products__grid {
    grid-template-columns: 1fr;
  }

  .projects__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .project--wide {
    grid-column: span 1;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 56px 0 40px;
  }

  .footer__logo {
    height: calc(44px * 0.7);
    filter: brightness(0) invert(1);
  }
}

/* ===== Podstranice (kategorije proizvoda) ===== */
.page-sub .header--sub {
  position: sticky;
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}

.page-sub .header--sub .header__logo img {
  height: 28px;
}

.page-sub .header__inner {
  gap: 20px;
}

.page-head {
  background: linear-gradient(150deg, var(--dark) 0%, var(--dark-soft) 100%);
  padding: 36px 0 44px;
  color: #fff;
}

.page-head__inner {
  max-width: 1180px;
}

.page-head__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  transition: color 0.3s var(--ease);
}

.page-head__back svg {
  width: 18px;
  height: 18px;
}

.page-head__back:hover {
  color: #fff;
}

.page-head h1 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-head p {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
}

.cat-section {
  padding-top: 56px;
  padding-bottom: 80px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--light);
  border: 1px solid var(--light-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cat-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--light-tint);
}

.cat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.cat-card:hover .cat-card__media img {
  transform: scale(1.06);
}

.cat-card__desc {
  padding: 0 24px 22px;
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: var(--light);
  border-top: 1px solid var(--light-border);
  transition: border-color 0.4s var(--ease);
}

.cat-card:hover .cat-item {
  border-color: var(--accent-soft);
}

.cat-item__num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.cat-item h2 {
  flex: 1;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.12rem);
  color: var(--dark);
  line-height: 1.35;
}

.cat-item__arrow {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  transition: background 0.35s var(--ease), color 0.35s var(--ease), transform 0.35s var(--ease);
}

.cat-item__arrow svg {
  width: 16px;
  height: 16px;
}

.cat-item:hover .cat-item__arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
}

.footer__inner--compact {
  grid-template-columns: 1.5fr 1fr;
  padding: 48px 0 36px;
}

@media (max-width: 768px) {
  .page-sub .header__cta {
    display: none;
  }

  .page-sub .header__nav {
    margin-left: auto;
  }

  .cat-grid {
    grid-template-columns: 1fr;
  }

  .cat-item {
    padding: 18px 20px;
  }

  .cat-card__desc {
    padding: 0 20px 20px;
    font-size: 0.85rem;
  }

  .cat-card__media {
    aspect-ratio: 16 / 11;
  }

  .footer__inner--compact {
    grid-template-columns: 1fr;
  }
}

/* ===== Product page ===== */
.product-section {
  padding-top: 56px;
  padding-bottom: 80px;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 56px;
}

.product-layout__media {
  position: sticky;
  top: 88px;
}

.product-layout__main {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--light-tint);
}

.product-layout__main img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.product-gallery--count-2 {
  grid-template-columns: repeat(2, 1fr);
}

.product-gallery--count-4 {
  grid-template-columns: repeat(4, 1fr);
}

.product-gallery__thumb {
  padding: 0;
  border: 2px solid var(--light-border);
  border-radius: calc(var(--radius) - 4px);
  overflow: hidden;
  background: var(--light);
  cursor: pointer;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-gallery__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.product-gallery__thumb:hover,
.product-gallery__thumb.is-active {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.product-gallery__thumb.is-active {
  box-shadow: 0 0 0 1px var(--accent);
}

.product-contact {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.product-contact__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
}

.product-contact__icon svg {
  width: 24px;
  height: 24px;
}

.product-contact__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 6px;
}

.product-contact__phones a,
.product-contact__email {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  transition: color 0.3s var(--ease);
}

.product-contact__phones a:hover,
.product-contact__email:hover {
  color: var(--accent);
}

.product-contact__email {
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.product-contact__email:hover {
  color: var(--accent);
}

.product-layout__content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 18px;
}

.product-layout__subtitle {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--dark);
  margin: 28px 0 16px;
}

.product-layout__list {
  list-style: none;
  margin-bottom: 32px;
  display: grid;
  gap: 10px;
}

.product-layout__list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

.product-layout__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.product-table-wrap {
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.product-table__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.product-table__intro {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.product-custom-note {
  margin-top: 24px;
  padding: 18px 20px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.product-custom-note strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-custom-note p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.product-custom-note p strong {
  display: inline;
  color: var(--accent-strong);
}

.product-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.product-table {
  width: 100%;
  min-width: 360px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.product-table th,
.product-table td {
  padding: 14px 18px;
  text-align: center;
  border: 1px solid var(--light-border);
}

.product-table thead th {
  font-family: var(--font-head);
  font-weight: 700;
  background: var(--dark);
  color: #fff;
  font-size: 0.88rem;
}

.product-table tbody tr:nth-child(even) td {
  background: var(--accent-soft);
  color: var(--text);
}

.product-table tbody tr:nth-child(odd) td {
  background: #fff;
  color: var(--text);
}

.product-table tbody tr:hover td {
  background: #c8dff5;
}

.product-delivery {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--light-border);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  text-align: center;
}

.product-layout__content .product-link {
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s var(--ease);
}

.product-layout__content .product-link:hover {
  color: var(--accent);
}

.product-faq {
  margin-top: 48px;
  background: var(--light);
  border: 1px solid var(--light-border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.product-faq__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 24px;
}

.product-faq__list {
  display: grid;
  gap: 10px;
}

.product-faq__details {
  border: 1px solid var(--light-border);
  border-radius: calc(var(--radius) - 4px);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-faq__details[open] {
  border-color: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.product-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--dark);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.product-faq__question::-webkit-details-marker {
  display: none;
}

.product-faq__question:hover {
  background: var(--light-tint);
}

.product-faq__details[open] .product-faq__question {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.product-faq__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
}

.product-faq__details[open] .product-faq__icon {
  transform: rotate(180deg);
}

.product-faq__answer {
  padding: 0 18px 16px;
}

.product-faq__answer p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid var(--light-border);
}

@media (max-width: 992px) {
  .product-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-layout__media {
    position: static;
  }
}

@media (max-width: 768px) {
  .product-table-wrap {
    padding: 20px 16px;
  }

  .product-gallery--count-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-faq {
    padding: 20px 16px;
    margin-top: 36px;
  }

  .product-table th,
  .product-table td {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}
