/* ==========================================================================
   SARA PLAST — VERSION 4: DOMAĆI & POUZDANI KVALITET (homegrown.css)
   ========================================================================== */

:root {
  color-scheme: light dark;

  /* Warm White & Light Beige Surfaces */
  --bg-warm: #faf9f6;
  --bg-surface: #f3f1eb;
  --bg-surface-card: #ffffff;
  --bg-surface-hover: #e9e6df;

  /* Brand Emerald Green (Sa logotipa) */
  --green-primary: #059669;
  --green-dark: #047857;
  --green-light: #10b981;
  --green-bg-light: #ecfdf5;

  /* Charcoal Typography */
  --text-charcoal: #1e232a;
  --text-body: #374151;
  --text-muted: #6b7280;

  /* Borders & Shadows */
  --border-subtle: rgba(30, 35, 42, 0.08);
  --border-medium: rgba(30, 35, 42, 0.16);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.08);

  /* Radius & Transitions */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-main: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --transition: all 0.25s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-warm);
  color: var(--text-charcoal);
  line-height: 1.6;
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

/* DUGMAD (Prominentna, visoke čitljivosti) */
.btn-hg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-hg-primary {
  background: var(--green-primary);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.25);
}

.btn-hg-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.35);
}

.btn-hg-phone {
  background: var(--text-charcoal);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(30, 35, 42, 0.2);
}

.btn-hg-phone:hover {
  background: #2d343e;
  transform: translateY(-2px);
}

.btn-hg-outline {
  background: #ffffff;
  border: 1.5px solid var(--border-medium);
  color: var(--text-charcoal);
}

.btn-hg-outline:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
  background: #ffffff;
}

/* NAVIGACIJA */
.hg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  height: 84px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.hg-nav.scrolled {
  height: 72px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.hg-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hg-logo img {
  height: 48px;
  width: auto;
}

.hg-nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hg-nav-link {
  color: var(--text-charcoal);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
}

.hg-nav-link:hover {
  color: var(--green-primary);
}

.hg-nav-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-medium);
  text-decoration: none;
  color: var(--text-charcoal);
  font-weight: 800;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: var(--transition);
}

.hg-nav-phone:hover {
  border-color: var(--green-primary);
  color: var(--green-primary);
}

/* POSTEPENO POJAVLJIVANJE KARTICA PRI SKROLU */
.hg-trust-grid .reveal:nth-child(1),
.hg-products-grid .reveal:nth-child(1),
.hg-areas-grid .reveal:nth-child(1),
.hg-reviews-grid .reveal:nth-child(1),
.hg-steps-grid .reveal:nth-child(1),
.hg-before-after-grid .reveal:nth-child(1),
.hg-stats-grid .reveal:nth-child(1) { transition-delay: 0s; }

.hg-trust-grid .reveal:nth-child(2),
.hg-products-grid .reveal:nth-child(2),
.hg-areas-grid .reveal:nth-child(2),
.hg-reviews-grid .reveal:nth-child(2),
.hg-steps-grid .reveal:nth-child(2),
.hg-before-after-grid .reveal:nth-child(2),
.hg-stats-grid .reveal:nth-child(2) { transition-delay: 0.12s; }

.hg-trust-grid .reveal:nth-child(3),
.hg-products-grid .reveal:nth-child(3),
.hg-areas-grid .reveal:nth-child(3),
.hg-reviews-grid .reveal:nth-child(3),
.hg-steps-grid .reveal:nth-child(3),
.hg-stats-grid .reveal:nth-child(3) { transition-delay: 0.24s; }

.hg-trust-grid .reveal:nth-child(4),
.hg-products-grid .reveal:nth-child(4),
.hg-steps-grid .reveal:nth-child(4),
.hg-stats-grid .reveal:nth-child(4) { transition-delay: 0.36s; }

.hg-products-grid .reveal:nth-child(5) { transition-delay: 0.48s; }

.hg-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* FOOTER SOCIAL IKONICE */
.hg-footer-social {
  display: flex;
  gap: 12px;
}

.hg-footer-social a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  color: var(--text-charcoal);
  transition: var(--transition);
}

.hg-footer-social a:hover {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #ffffff;
}

.hg-footer-social .icon {
  width: 18px;
  height: 18px;
}

/* JEZIČKI SWITCH (BA / DE) */
.hg-lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.hg-lang-btn {
  padding: 5px 11px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.hg-lang-btn.active, .hg-lang-btn:hover {
  background: var(--green-primary);
  color: #ffffff;
}

/* MOBILNI BURGER MENI */
.hg-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hg-burger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-charcoal);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.hg-burger.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}
.hg-burger.active span:nth-child(2) {
  opacity: 0;
}
.hg-burger.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Meni se prebacuje na burger ranije nego ostatak layouta, jer duži
   njemački nazivi ne staju u jedan red na srednje širokim ekranima.
   Ovaj blok mora doći POSLIJE osnovnih .hg-nav-phone/.hg-burger
   pravila da bi ih ispravno pregazio na užim ekranima. */
@media (max-width: 1320px) {
  .hg-nav {
    height: 72px;
  }

  .hg-logo img {
    height: 40px;
  }

  .hg-nav-links {
    display: none;
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: rgba(250, 249, 246, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px 18px;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .hg-nav-links.active {
    display: flex;
  }
  .hg-nav-phone {
    display: none;
  }
  .hg-burger {
    display: flex;
  }
}

/* HERO SECTION (Realna bosanska kuća) */
.hg-hero {
  padding: 140px 0 80px;
}

.hg-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hg-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--green-bg-light);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-full);
  color: var(--green-dark);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hg-hero-title {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hg-hero-title span {
  color: var(--green-primary);
}

.hg-hero-desc {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 560px;
}

.hg-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
}

.hg-hero-img-box {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-subtle);
}

.hg-hero-img-box img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Bez sporog zoom efekta unutar uokvirene hero slike (izaziva sjeckanje
   jer se transform mora klipovati po zaobljenim ivicama okvira) - samo
   blagi crossfade između slika. */
.hg-hero-img-box .hero__slide {
  transition: opacity 1.4s ease;
}
.hg-hero-img-box .hero__slide.is-active {
  transform: none;
}

.hg-hero-img-badge {
  position: absolute;
  bottom: 16px; left: 16px; right: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* TRUST SECTION ("Vaša kuća. Naša odgovornost.") */
.hg-trust-section {
  padding: 80px 0;
  background: #ffffff;
  border-y: 1px solid var(--border-subtle);
}

.hg-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.hg-trust-card {
  padding: 28px 24px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hg-trust-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.hg-trust-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hg-trust-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* PROIZVODI GRID ("Sve za vašu kuću na jednom mjestu.") */
.hg-products-section {
  padding: 100px 0;
}

.hg-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.hg-product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

@media (max-width: 992px) {
  .hg-products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hg-products-grid {
    grid-template-columns: 1fr;
  }
}

.hg-product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--green-primary);
}

.hg-product-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.hg-product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hg-product-card:hover .hg-product-img-wrap img {
  transform: scale(1.06);
}

.hg-product-content {
  padding: 24px;
}

.hg-product-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hg-product-content p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 16px;
}

/* REAL PROJECTS ("Pogledajte kako to izgleda kod naših klijenata.") */
.hg-projects-section {
  padding: 100px 0;
  background: #ffffff;
  border-y: 1px solid var(--border-subtle);
}

.hg-before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.hg-ba-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hg-ba-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.hg-ba-tag {
  position: absolute;
  top: 14px; left: 14px;
  padding: 6px 14px;
  background: rgba(30, 35, 42, 0.85);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
}

/* SOCIAL PROOF (Recenzije klijenata) */
.hg-reviews-section {
  padding: 100px 0;
}

.hg-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 50px;
}

.hg-review-card {
  background: #ffffff;
  padding: 32px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
}

.hg-review-stars {
  color: #f59e0b;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.hg-review-text {
  font-size: 0.98rem;
  color: var(--text-body);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.6;
}

.hg-review-author {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text-charcoal);
}

/* PRICE & VALUE SECTION */
.hg-value-box {
  background: linear-gradient(135deg, #1e232a, #111418);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  margin: 60px 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

/* HOW IT WORKS (5 Koraka) */
.hg-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 50px;
}

.hg-step-card {
  background: #ffffff;
  padding: 24px 18px;
  border-radius: var(--radius-sm);
  border-top: 4px solid var(--green-primary);
  border-x: 1px solid var(--border-subtle);
  border-b: 1px solid var(--border-subtle);
}

.hg-step-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--green-primary);
  margin-bottom: 10px;
}

.hg-steps-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

/* GDJE RADIMO */
.hg-areas-section {
  padding: 100px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hg-areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 50px;
}

.hg-area-card {
  padding: 32px 28px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hg-area-card--accent {
  background: var(--green-bg-light);
  border-color: rgba(5, 150, 105, 0.25);
}

.hg-area-card-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.hg-area-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.hg-area-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.hg-area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hg-area-tag {
  padding: 5px 12px;
  background: var(--bg-surface-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-body);
}

.hg-area-card--accent .hg-area-tag {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(5, 150, 105, 0.3);
  color: var(--green-dark);
}

/* MATERIJALI */
.hg-materials-section {
  padding: 100px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.hg-materials-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 50px;
  align-items: center;
}

.hg-brands-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.hg-brand-tile {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 88px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.hg-brand-tile:hover {
  transform: translateY(-3px);
  border-color: var(--green-primary);
  box-shadow: var(--shadow-hover);
}

.hg-brand-tile img {
  max-width: 85%;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hg-brand-tile--salamander {
  padding: 16px 24px;
}

.hg-brand-tile--salamander img {
  height: 58px;
  max-width: 90%;
  object-fit: contain;
}

.hg-brand-tile:hover img {
  transform: scale(1.04);
}

/* O NAMA */
.hg-about-section {
  padding: 100px 0;
  background: var(--bg-surface);
}

.hg-about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 60px;
}

.hg-about-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hg-about-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hg-stat {
  text-align: center;
  padding: 28px 16px;
  background: var(--bg-warm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.hg-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--green-primary);
  margin-bottom: 8px;
}

.hg-stat-label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 700;
}

/* FAQ (preuzeto iz V1, prilagođeno zelenoj paleti) */
.faq { padding: 100px 0; background: var(--bg-warm); border-top: 1px solid var(--border-subtle); }
.faq__item { border-color: var(--border-medium); background: #ffffff; border-radius: var(--radius-md); }
.faq__item:hover { border-color: var(--green-primary); box-shadow: var(--shadow-card); }
.faq__item.active { border-color: var(--green-primary); box-shadow: 0 6px 20px rgba(5, 150, 105, 0.12); }
.faq__question { color: var(--text-charcoal); font-family: var(--font-main); }
.faq__item.active .faq__question { color: var(--green-dark); }
.faq__icon { background: var(--bg-surface-hover); color: var(--text-charcoal); }
.faq__item.active .faq__icon { background: var(--green-primary); color: #ffffff; }
.faq__answer p { color: var(--text-muted); }

/* SOCIAL FEED / TERENSKE FOTOGRAFIJE */
.hg-social-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.hg-social-item {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.hg-social-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hg-social-item:hover img {
  transform: scale(1.08);
}

/* AUSTRIA & GERMANY SECTION */
.hg-export-box {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-top: 40px;
}

/* FINAL CTA SECTION */
.hg-final-cta {
  padding: 100px 0;
  text-align: center;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

/* FLOATING 3-WAY SWITCHER PANEL */
.hg-switcher-panel {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  display: flex;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(30, 35, 42, 0.94);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.hg-switcher-btn {
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9ca3af;
  text-decoration: none;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.08);
}

.hg-switcher-btn:hover, .hg-switcher-btn.active {
  background: #ffffff;
  color: var(--text-charcoal);
}

@media (max-width: 1024px) {
  .container {
    padding: 0 18px;
  }

  .hg-hero {
    padding: 110px 0 50px;
  }

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

  .hg-hero-title {
    font-size: clamp(2rem, 7vw, 3.2rem);
  }

  .hg-hero-desc {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hg-hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn-hg {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 16px 24px;
  }

  .hg-trust-section {
    padding: 60px 0;
  }

  .hg-trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hg-products-section {
    padding: 60px 0;
  }

  .hg-products-grid {
    gap: 20px;
  }

  .hg-product-card {
    flex-basis: 100%;
    max-width: 420px;
  }

  .hg-projects-section {
    padding: 60px 0;
  }

  .hg-before-after-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hg-reviews-section {
    padding: 60px 0;
  }

  .hg-reviews-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hg-value-box {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 36px 20px;
    margin: 40px 0;
  }

  .hg-steps-grid, .hg-steps-grid--4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hg-areas-section {
    padding: 60px 0;
  }

  .hg-areas-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .faq { padding: 60px 0; }

  .hg-materials-section { padding: 60px 0; }
  .hg-materials-grid { grid-template-columns: 1fr; gap: 30px; }
  .hg-brands-row {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: 100%;
    margin-top: 10px;
  }
  .hg-brand-tile {
    min-height: 84px;
    padding: 16px 20px;
  }
  .hg-brand-tile img {
    height: 46px;
  }
  .hg-brand-tile--salamander img {
    height: 54px;
  }

  .hg-about-section { padding: 60px 0; }
  .hg-about-grid { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .hg-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hg-stat-num { font-size: 1.9rem; }

  .hg-social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .hg-export-box {
    flex-direction: column;
    gap: 24px;
    padding: 28px 20px;
  }

  .hg-final-cta {
    padding: 70px 0;
  }

  /* Switcher mobilno prilagođavanje */
  .hg-switcher-panel {
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 480px;
    justify-content: center;
    padding: 6px 8px;
    gap: 4px;
  }

  .hg-switcher-btn {
    padding: 6px 12px;
    font-size: 0.72rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   LOGO PREBACIVANJE ZA TAMNI MOD
   ========================================================================== */
.logo-dark {
  display: none !important;
}

@media (prefers-color-scheme: dark) {
  .logo-light {
    display: none !important;
  }
  .logo-dark {
    display: block !important;
  }
}

/* ==========================================================================
   PROFESIONALNI TAMNI MOD (Automatski prati podešavanje uređaja)
   Potpuno prilagođen sa ultra-visokim kontrastom i čistim, čitljivim slovima.
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Duboke, elegantne tamne podloge (tamni grafit/škriljac umjesto čisto crne) */
    --bg-warm: #0f1216;
    --bg-surface: #171c22;
    --bg-surface-card: #1f252e;
    --bg-surface-hover: #2a323d;

    /* Smaragdno zeleni akcenti prilagođeni za tamnu pozadinu */
    --green-primary: #10b981;
    --green-dark: #059669;
    --green-light: #34d399;
    --green-bg-light: rgba(16, 185, 129, 0.18);

    /* Tipografija visokog kontrasta */
    --text-charcoal: #f8fafc;  /* Naslovi: kristalno bijela */
    --text-body: #e2e8f0;      /* Glavni tekst: vrlo svijetlo siva (100% čitljivo) */
    --text-muted: #94a3b8;     /* Pomoćni tekst: srebrnkasto siva */

    /* Suptilne konture i sjenke */
    --border-subtle: rgba(255, 255, 255, 0.12);
    --border-medium: rgba(255, 255, 255, 0.22);
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.45);
    --shadow-hover: 0 12px 30px rgba(0, 0, 0, 0.65);
  }

  body {
    background-color: var(--bg-warm);
    color: var(--text-body);
  }

  /* Naslovi i opšti tekst */
  h1, h2, h3, h4, strong {
    color: var(--text-charcoal);
  }

  p {
    color: var(--text-body);
  }

  /* Zaglavlje / Navigacija */
  .hg-nav {
    background: rgba(15, 18, 22, 0.92);
    border-bottom-color: var(--border-subtle);
  }

  .hg-nav.scrolled {
    background: rgba(15, 18, 22, 0.98);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5);
  }

  .hg-nav-link {
    color: var(--text-body);
  }

  .hg-nav-link:hover {
    color: var(--green-light);
  }

  .hg-nav-phone {
    background: var(--bg-surface-card);
    border-color: var(--border-medium);
    color: var(--text-charcoal);
  }

  .hg-nav-phone:hover {
    border-color: var(--green-light);
    color: var(--green-light);
  }

  .hg-lang-switch {
    background: var(--bg-surface);
    border-color: var(--border-subtle);
  }

  .hg-lang-btn {
    color: var(--text-muted);
  }

  .hg-lang-btn.active {
    background: var(--bg-surface-card);
    color: var(--text-charcoal);
  }

  .hg-burger span {
    background: var(--text-charcoal);
  }

  @media (max-width: 1320px) {
    .hg-nav-links {
      background: rgba(23, 28, 34, 0.98);
      border-bottom-color: var(--border-subtle);
    }
  }

  /* Hero bedževi i dugmad */
  .hg-hero-badge {
    background: var(--green-bg-light);
    border-color: rgba(52, 211, 153, 0.35);
    color: var(--green-light);
  }

  .hg-hero-img-badge {
    background: rgba(31, 37, 46, 0.95);
    border-color: var(--border-medium);
    color: var(--text-charcoal);
  }

  .hg-hero-img-badge strong {
    color: var(--text-charcoal);
  }

  .hg-hero-img-badge span {
    color: var(--text-muted);
  }

  .btn-hg-phone {
    background: var(--bg-surface-card);
    border: 1px solid var(--border-medium);
    color: var(--text-charcoal);
  }

  .btn-hg-phone:hover {
    border-color: var(--green-light);
    color: var(--green-light);
  }

  .btn-hg-outline {
    background: var(--bg-surface-card);
    border-color: var(--border-medium);
    color: var(--text-charcoal);
  }

  .btn-hg-outline:hover {
    background: var(--bg-surface-hover);
    border-color: var(--green-light);
    color: var(--green-light);
  }

  /* Sekcije i kartice u tamnom modu */
  .hg-trust-section,
  .hg-products-section,
  .hg-projects-section,
  .hg-reviews-section,
  .hg-materials-section,
  .hg-areas-section,
  .hg-about-section,
  .hg-final-cta,
  .faq,
  .kontakt {
    background: var(--bg-surface) !important;
    border-color: var(--border-subtle) !important;
  }

  .hg-trust-card,
  .hg-product-card,
  .hg-review-card,
  .hg-stat,
  .hg-step-card,
  .faq__item {
    background: var(--bg-surface-card) !important;
    border-color: var(--border-subtle) !important;
  }

  .hg-trust-card p,
  .hg-product-content p,
  .hg-step-card p,
  .faq__answer p {
    color: var(--text-body) !important;
  }

  /* Detaljne kartice radova sa inline stilovima */
  .hg-detail-card {
    background: var(--bg-surface-card) !important;
    border-color: var(--border-subtle) !important;
  }

  .hg-detail-card strong {
    color: var(--text-charcoal) !important;
  }

  .hg-detail-card span {
    color: var(--text-muted) !important;
  }

  /* Brendovi: čiste svijetle pločice za logotipe kao što je bilo ranije */
  .hg-brand-tile {
    background: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  }

  /* 1. GDJE RADIMO */
  .hg-areas-section {
    background: var(--bg-surface) !important;
  }

  .hg-areas-section h2 {
    color: var(--text-charcoal) !important;
  }

  .hg-areas-section p {
    color: var(--text-body) !important;
  }

  .hg-area-card {
    background: var(--bg-surface-card) !important;
    border-color: var(--border-subtle) !important;
  }

  .hg-area-card h3 {
    color: var(--text-charcoal) !important;
  }

  .hg-area-card p {
    color: var(--text-body) !important;
  }

  .hg-area-tag {
    background: var(--bg-surface) !important;
    color: var(--text-body) !important;
    border: 1px solid var(--border-subtle) !important;
  }

  .hg-area-card--accent {
    background: linear-gradient(145deg, #064e3b, #047857) !important;
    border-color: rgba(52, 211, 153, 0.4) !important;
  }

  .hg-area-card--accent h3,
  .hg-area-card--accent p {
    color: #ffffff !important;
  }

  .hg-area-card--accent .hg-area-tag {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
  }

  /* 2. O NAMA / KO SMO MI */
  .hg-about-section {
    background: var(--bg-surface) !important;
  }

  .hg-about-section h2 {
    color: var(--text-charcoal) !important;
  }

  .hg-about-section p {
    color: var(--text-body) !important;
  }

  .hg-stat {
    background: var(--bg-surface-card) !important;
    border-color: var(--border-subtle) !important;
  }

  .hg-stat-num {
    color: var(--green-light) !important;
  }

  .hg-stat-label {
    color: var(--text-body) !important;
  }

  /* 3. FINAL CTA (Planirate novu stolariju?) */
  .hg-final-cta {
    background: var(--bg-warm) !important;
    border-top-color: var(--border-subtle) !important;
  }

  .hg-final-cta h2 {
    color: var(--text-charcoal) !important;
  }

  .hg-final-cta p {
    color: var(--text-body) !important;
  }

  /* Recenzije */
  .hg-review-text {
    color: var(--text-body);
  }

  .hg-review-author {
    color: var(--text-muted);
  }

  /* Kontakt prozor forma */
  .pvc-window-frame {
    background: #0f1216;
    border-color: var(--border-medium);
  }

  .pvc-window-sash {
    background: var(--bg-surface-card);
    border-color: var(--border-subtle);
  }

  .info-item {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    color: var(--text-charcoal);
  }

  .info-item span {
    color: var(--text-charcoal);
  }

  .info-item:hover {
    border-color: var(--green-light);
    color: var(--green-light);
  }

  .info-item__icon {
    background: var(--bg-surface-card);
    color: var(--green-light);
    border-color: var(--border-subtle);
  }

  .kontakt__form label {
    color: var(--text-charcoal);
  }

  .kontakt__form input,
  .kontakt__form textarea {
    background: var(--bg-surface);
    border: 1px solid var(--border-medium);
    color: var(--text-charcoal);
  }

  .kontakt__form input::placeholder,
  .kontakt__form textarea::placeholder {
    color: #64748b;
  }

  .kontakt__form input:focus,
  .kontakt__form textarea:focus {
    border-color: var(--green-light);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  }

  /* FAQ stavke */
  .faq__question {
    color: var(--text-charcoal);
  }

  /* Footer */
  footer {
    background: #090b0e !important;
    border-top-color: var(--border-subtle) !important;
  }

  footer p {
    color: var(--text-muted) !important;
  }

  .hg-footer-social a {
    background: var(--bg-surface-card);
    color: var(--text-body);
    border: 1px solid var(--border-subtle);
  }

  .hg-footer-social a:hover {
    border-color: var(--green-light);
    color: var(--green-light);
  }
}
