:root {
  --bg-body: #020617;
  --bg-section: #ffffff;
  --bg-muted: #f9fafb;
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-soft: #ffe4e6;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-soft: #e2e8f0;
  --radius-card: 18px;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%, #020617 100%);
  color: var(--text-main);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* LAYOUT */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(15, 23, 42, 0.94);
  border-bottom: 1px solid rgba(148, 163, 184, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-wrap img {
  width: 180px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  color: #e5e7eb;
  padding-left: 20px;
}

.brand-text strong {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}

.desktop-nav a {
  color: #e5e7eb;
  padding: 6px 10px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta {
  border-radius: 999px;
  padding: 7px 14px;
  border: 1px solid rgba(248, 250, 252, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

/* MOBILE NAV TOGGLE (HAMBURGER) */
.mobile-nav-toggle {
  display: none; /* prikazuje se samo u @media ispod */
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.95);
  position: relative;
  cursor: pointer;
  transition:
      background 0.2s ease,
      border-color 0.2s ease,
      box-shadow 0.15s ease,
      transform 0.15s ease;
  display: none;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle:hover {
  background: #020617;
  border-color: rgba(248, 250, 252, 0.9);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

.mobile-nav-toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

/* Tri CRTE – pozicionirane apsolutno, uvijek centrirane po X osi */

.mobile-nav-toggle .hamb-line {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
  transform: translateX(-50%);
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, top 0.18s ease;
}

/* Gornja, srednja, donja linija */
.mobile-nav-toggle .hamb-line:nth-child(1) {
  top: 12px;
}

.mobile-nav-toggle .hamb-line:nth-child(2) {
  top: 19px;
}

.mobile-nav-toggle .hamb-line:nth-child(3) {
  top: 26px;
}

/* X ANIMACIJA – obje linije se pomaknu na sredinu i rotiraju */

.mobile-nav-toggle.is-open .hamb-line:nth-child(1) {
  top: 19px;
  transform: translateX(-50%) rotate(45deg);
}

.mobile-nav-toggle.is-open .hamb-line:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.is-open .hamb-line:nth-child(3) {
  top: 19px;
  transform: translateX(-50%) rotate(-45deg);
}
/* MOBILE NAV */

.mobile-nav {
  display: none;
  background: #020617;
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 10px;
}

.mobile-nav a {
  font-size: 14px;
  padding: 6px 10px;
  color: #e5e7eb;
  border-radius: 6px;
}

.mobile-nav a:hover {
  background: rgba(15, 23, 42, 0.7);
}

.mobile-nav.is-open {
  display: block;
}

/* GENERIC BUTTONS */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  box-shadow: none;
  transition:
      transform 0.15s ease,
      box-shadow 0.15s ease,
      background 0.2s ease,
      color 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 16px 40px rgba(190, 24, 93, 0.65);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 20px 52px rgba(190, 24, 93, 0.8);
}

.btn-secondary {
  background: transparent;
  /*color: #e5e7eb;*/
  border: 1px solid rgba(148, 163, 184, 0.8);
}

.btn-secondary:hover {
  background: rgba(15, 23, 42, 0.8);
}

/* BREADCRUMB (PRODUCT STRANICE) */

.breadcrumb {
  font-size: 12px;
  color: #9ca3af;
  margin: 0 0 18px;
}

.breadcrumb a {
  color: #cbd5f5;
}

.breadcrumb span {
  opacity: 0.8;
}

/* ============================
   PRODUCT – HERO BLOK
   ============================ */

.product-hero {
  padding: 40px 0;
  color: #f9fafb;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 10px;
}

.product-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
}

/* naslov i tagline na PRODUCT stranicama */

.product-hero .product-name {
  font-size: clamp(32px, 4.3vw, 40px);
  margin: 0 0 6px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

.product-hero .product-tagline {
  font-size: 18px;
  margin: 0 0 10px;
  color: #e5e7eb;
}

.product-lead {
  font-size: 14px;
  max-width: 520px;
  color: #cbd5f5;
  margin: 0 0 22px;
}

.product-meta-line {
  font-size: 12px;
  color: #9ca3af;
  margin-bottom: 18px;
}

/* stat kartice u hero */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 10px;
}

.stat-card {
  background: rgba(15, 23, 42, 0.85);
  border-radius: 16px;
  padding: 14px 14px 13px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.6);
}

.stat-value {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 12px;
  color: #e5e7eb;
}

.stat-meta {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 4px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

/* PRODUCT – HERO SLIKA */

.product-hero-media {
  position: relative;
}

.product-image {
  border-radius: 26px;
  min-height: 260px;
  background:
      radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.08), transparent 55%),
      radial-gradient(circle at 90% 100%, rgba(56, 189, 248, 0.28), transparent 55%),
      linear-gradient(135deg, #020617, #111827);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.6);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.product-image-label {
  position: absolute;
  top: 14px;
  left: 16px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
  opacity: 0.86;
}

.product-image-note {
  font-size: 11px;
  color: #9ca3af;
  text-align: center;
  margin-top: 10px;
}

/* VARIJANTE PO MODELU */

.product-image--w1 {
  background:
      radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.10), transparent 55%),
      radial-gradient(circle at 90% 100%, rgba(59, 130, 246, 0.32), transparent 55%),
      linear-gradient(135deg, #020617, #111827);
}

.product-image--w2 {
  background:
      radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.10), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(34, 197, 94, 0.30), transparent 55%),
      linear-gradient(135deg, #020617, #0b1220);
}

.product-image--w3 {
  background:
      radial-gradient(circle at 20% 0, rgba(248, 250, 252, 0.10), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.32), transparent 55%),
      linear-gradient(135deg, #020617, #020617);
}

.product-image--p1 {
  background:
      radial-gradient(circle at 10% 0, rgba(248, 250, 252, 0.09), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(96, 165, 250, 0.35), transparent 55%),
      linear-gradient(135deg, #020617, #111827);
}

.product-image--f {
  background:
      radial-gradient(circle at 0 0, rgba(248, 250, 252, 0.09), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(244, 63, 94, 0.35), transparent 55%),
      linear-gradient(135deg, #020617, #020617);
}

/* ============================
   PRODUCT – GENERIČKE SEKCIJE
   ============================ */

section.product-section {
  padding: 46px 0;
  background: var(--bg-section);
}

section.product-section-alt {
  background: var(--bg-muted);
}

.section-header {
  margin-bottom: 26px;
}

.section-eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 4px;
}

.section-title {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.03em;
}

.section-intro {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 680px;
}

/* FEATURE GRID (PRODUCT) */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.feature-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 16px 16px 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border-soft);
}

.product-section-alt .feature-card {
  background: #ffffff;
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.feature-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* SPEC TABLICA */

.spec-table-wrap {
  margin-top: 20px;
  background: #ffffff;
  border-radius: var(--radius-card);
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.spec-table thead th {
  background: #f3f4f6;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft);
}

.spec-table tbody th {
  width: 38%;
  text-align: left;
  padding: 9px 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
  background: #f9fafb;
}

.spec-table tbody td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border-soft);
}

.spec-note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ============================
   HOMEPAGE HERO
   ============================ */

.hero {
  padding: 72px 0 52px;
  color: #f9fafb;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.3vw, 42px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  margin: 0;
  font-size: 15px;
  color: #cbd5f5;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 10px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-meta {
  margin-top: 18px;
  font-size: 13px;
  color: #9ca3af;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta .hero-highlight {
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

/* HERO DESNO – KARTICA */

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 420px;
  background:
      radial-gradient(circle at top, rgba(248, 250, 252, 0.08), transparent 60%),
      linear-gradient(145deg, #020617, #0b1120);
  border-radius: 24px;
  padding: 18px 18px 16px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.75);
}

.hero-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.hero-card-title span:first-child {
  font-size: 14px;
  font-weight: 600;
  color: #f9fafb;
}

.hero-card-title span:last-child {
  font-size: 11px;
  color: #9ca3af;
}

.hero-card-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 16px;
  font-size: 13px;
  color: #e5e7eb;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #cbd5f5;
  margin-bottom: 10px;
}

.badge-chip span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
}

.hero-card-list {
  padding-left: 18px;
  margin: 8px 0 10px;
  color: #cbd5f5;
}

.hero-card-list li {
  margin-bottom: 4px;
}

.hero-card-stats {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

/* ============================
   HOMEPAGE SECTIONS
   ============================ */

.section-white {
  background: #ffffff;
  padding: 46px 0;
}

.section-muted {
  background: #f9fafb;
  padding: 46px 0;
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 720px;
}

/* GRID PROIZVODA NA POČETNOJ */
/* (OVDJE JE NAMJERNO SCOPE-ANO NA .products-grid DA NE GAZI PRODUCT HERO) */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Thumbnail slika unutar kartice proizvoda na početnoj */

.product-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 10px 10px 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-thumb {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  background: #020617;
  position: relative;
  aspect-ratio: 4 / 3; /* lijepi omjer za punjače */
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.product-card:hover .product-thumb img {
  transform: scale(1.05);
}

.product-body {
  padding: 4px 4px 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
}

/* naslov/tagline NA POČETNOJ (samo u .products-grid) */

.products-grid .product-name {
  font-size: 17px;
  margin: 0;
  color: var(--text-main);
}

.products-grid .product-tagline {
  font-size: 13px;
  margin: 2px 0;
  color: #0f172a;
}

.products-grid .product-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 6px;
}

.product-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  gap: 10px;
}

.product-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--primary);
}

.product-link:hover {
  text-decoration: underline;
}

.pill {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f9fafb;
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
}

/* PROMO BOX NA POČETNOJ */

.section-muted .promo-box {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--border-soft);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 26px;
  padding: 24px 24px 20px;
}

.promo-text h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 22px;
}

.promo-text p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.section-muted .promo-box .hero-actions {
  margin-top: 12px;
}

.promo-image {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  background-image: url('images/promo-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.promo-detail {
  font-size: 11px;
  color: #cbd5f5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.promo-detail span { text-shadow: 1px 1px black }

/* USLUGE & ZAŠTO MI (HOMEPAGE) */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  padding: 16px 16px 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.service-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.service-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 800px;
  font-size: 14px;
  color: var(--text-main);
}

.why-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.why-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 13px;
  color: #22c55e;
}

/* FOOTER */

footer {
  background: #020617;
  color: #9ca3af;
  padding: 26px 0 30px;
  margin-top: auto;
  border-top: 1px solid rgba(148, 163, 184, 0.5);
}

.footer-inner {
  text-align: center;
  font-size: 13px;
}

footer strong {
  color: #e5e7eb;
}

footer a {
  color: #fb7185;
}

/* ============================
   RESPONSIVE
   ============================ */

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: inline-flex;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .product-hero {
    padding-top: 40px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .section-muted .promo-box {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  section.product-section {
    padding: 36px 0;
  }

  .products-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-image {
    min-height: 220px;
  }

  .hero {
    padding: 52px 0 40px;
  }

  .hero-card {
    max-width: 100%;
  }
}
