/* ============================================================
   NAVBAR — štýly
   Sticky shrink efekt: hore vyšší a polopriehľadný (nad tmavou
   hero sekciou), po scrolli (>40px) sa zmenší a stane plne bielym
   s jemným tieňom — trieda .navbar--scrolled sa pridáva cez navbar.js
   ============================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: none;

  transition: background .25s ease, box-shadow .25s ease;
}

.navbar__inner {
  /* logo vľavo a akcie vpravo cez flex (space-between), odkazy sú
     ABSOLÚTNE vycentrované na stred CELEJ lišty (position:absolute +
     left:50%/translateX(-50%)) — nezávisle od toho, aké široké je
     logo alebo akcie, takže to sedí aj po zmenšení pri scrolli */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 32px;
  height: 104px;
  transition: height .25s ease;
}
.navbar__nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: max-content;
}

/* --- scrolled state --- */
.navbar--scrolled {
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}
.navbar--scrolled .navbar__inner {
  height: 68px;
}
.navbar--scrolled .navbar__logo-img {
  height: 32px;
}

/* --- logo --- */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar__logo-img {
  height: 48px;
  width: auto;
  display: block;
  transition: height .25s ease;
}

/* --- links --- */
.navbar__links {
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar__links a {
  color: var(--c-ink, #1c1c1c);
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  transition: color .15s ease;
}
.navbar__links a:hover {
  color: var(--c-red, #c81e2c);
}

/* --- actions (phone + cta + burger) --- */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

/* --- jazykový prepínač SK / DE (skutočné odkazy na vamoelectric.de / .de) --- */
.navbar__lang {
  display: flex;
  align-items: center;
  gap: 10px;
}
.navbar__lang-btn {
  display: block;
  line-height: 0;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s ease, border-color .15s ease;
}
.navbar__lang-btn:hover {
  opacity: 1;
}
.navbar__lang-btn.is-active {
  opacity: 1;
  border-color: var(--c-red, #c81e2c);
}
.navbar__flag {
  width: 26px;
  height: 19.5px;
  border-radius: 2px;
  display: block;
}
.navbar__lang--mobile {
  margin-top: 16px;
}

/* --- ikona telefónu (vedie na #kontakt) --- */
.navbar__phone-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--c-ink, #1c1c1c);
  transition: background .15s ease, color .15s ease;
}
.navbar__phone-icon svg {
  width: 19px;
  height: 19px;
}
.navbar__phone-icon:hover {
  background: var(--c-grey-100, #f4f3f1);
  color: var(--c-red, #c81e2c);
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-red, #c81e2c);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .15s ease, transform .15s ease;
}
.navbar__cta:hover {
  background: var(--c-red-dark, #a4131f);
}
.navbar__cta:active {
  transform: translateY(1px);
}

/* --- burger (mobile) --- */
.navbar__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.navbar__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--c-ink, #1c1c1c);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.navbar__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.navbar__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- mobile menu panel --- */
.navbar__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #ffffff;
  padding: 12px 24px 24px;
  border-top: 1px solid #eee;
}
.navbar__mobile-menu.navbar__mobile-menu--open {
  display: flex;
}
.navbar__mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.navbar__mobile-menu ul a {
  display: block;
  color: var(--c-ink, #1c1c1c);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid #f0f0f0;
}

/* ikona telefónu v mobilnom menu — vedie na #kontakt, bez čísla v texte */
.navbar__mobile-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 14px;
  border-radius: 50%;
  background: var(--c-grey-100, #f4f3f1);
  color: var(--c-red, #c81e2c);
}
.navbar__mobile-phone svg {
  width: 19px;
  height: 19px;
}

.navbar__mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  background: var(--c-red, #c81e2c);
  color: #fff;
  text-decoration: none;
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .navbar__links,
  .navbar__actions .navbar__lang,
  .navbar__phone-icon,
  .navbar__cta {
    display: none;
  }
  .navbar__burger {
    display: flex;
  }
  .navbar__inner {
    height: 76px;
  }
  .navbar--scrolled .navbar__inner {
    height: 64px;
  }
  .navbar__logo-img {
    height: 38px;
  }
  .navbar--scrolled .navbar__logo-img {
    height: 30px;
  }
}