/* ============================================================
   LACI LAK — PILL ALAKÚ STICKY NAV (optimalizált)
   ============================================================ */

/* FIX 1: Elementor wrapper ne törje el a sticky-t.
   Ha bármelyik őselemnek overflow: hidden vagy transform van,
   a position:sticky nem működik. Felülírjuk. */
.elementor-element:has(> .elementor-widget-container > .laci-nav),
.elementor-element:has(.laci-nav) {
  overflow: visible !important;
  transform: none !important;
}

.laci-nav {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 14px clamp(16px, 3vw, 32px) 0;
  pointer-events: none;
  /* FIX 2: csak a padding-et animáljuk, nem mindent. 
     Az "all" tranzíció lassú és újraszámolja a layoutot. */
  transition: padding 0.3s ease;
}
.laci-logo-mark {
  /* ...a fenti szabályok... */
  filter: saturate(0.4) brightness(1.1);  /* csökkenti a sárga telítettséget, kicsit világosít */
}
.laci-nav-inner {
  pointer-events: auto;
  max-width: 1240px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 0.5px solid #E8DCC0;
  border-radius: 999px;
  padding: 8px 8px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 8px 24px -10px rgba(58, 74, 63, 0.12);
  /* Csak a változó tulajdonságokat animáljuk — jobb FPS */
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.laci-nav.is-scrolled .laci-nav-inner {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 40px -12px rgba(58, 74, 63, 0.18);
}

/* === LOGO === */
.laci-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

/* FIX 3: a logó most <img>, nem <span>. 
   A sárga kör háttér megmarad, de a kép kitölti. */
.laci-logo-mark {
  width: 40px;                /* kicsit nagyobb, mert a padding már nem eszi a helyet */
  height: 40px;
  border-radius: 50%;
  background: transparent;    /* NEM sárga kitöltés, átlátszó háttér */
  border: 2px solid #C9A84C;  /* arany keret */
  object-fit: contain;
  padding: 3px;               /* kis lélegzet a keret és a grafika között */
  display: block;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.laci-logo:hover .laci-logo-mark {
  transform: rotate(-12deg) scale(1.08);
}

.laci-logo-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: #3A4A3F;
  letter-spacing: -0.01em;
}

/* === MENÜ === */
.laci-menu {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.laci-menu a {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #6B5B3F;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 999px;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.laci-menu a:hover {
  color: #3A4A3F;
  background: #FAF6EE;
}

/* === CTA gomb === */
.laci-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #C26B47;
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(194, 107, 71, 0.35);
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.laci-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.laci-cta:hover {
  background: #9F542F;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(194, 107, 71, 0.45);
}

.laci-cta:hover::before {
  left: 100%;
}

.laci-cta:active {
  transform: translateY(0);
}

.laci-cta-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* === HAMBURGER (csak mobilon) ===
   FIX 4: A korábbi sötétzöld helyett a terrakotta (#C26B47) 
   illik a CTA gombhoz és a paletta többi részéhez. */
.laci-hamburger {
  display: none;
  background: transparent;
  border: 1.5px solid #E8DCC0;     /* világos krém keret, mint a navnál */
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.laci-hamburger:hover {
  background: #FAF6EE;
  border-color: #C26B47;
}

.laci-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #C26B47;             /* terrakotta — passzol a CTA-hoz */
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Nyitott állapot: az X is terrakotta marad */
.laci-hamburger.is-active {
  background: #C26B47;
  border-color: #C26B47;
}

.laci-hamburger.is-active span {
  background: #FFFFFF;             /* fehér X a terrakotta körben */
}

.laci-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.laci-hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.laci-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   RESPONSIVE — 900px alatt
   ============================================================ */
@media (max-width: 900px) {
  .laci-nav { padding: 10px 16px 0; }
  .laci-nav-inner { padding: 6px 6px 6px 12px; }
  .laci-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border: 0.5px solid #E8DCC0;
    border-radius: 22px;
    padding: 12px;
    gap: 2px;
    box-shadow: 0 16px 40px -12px rgba(58, 74, 63, 0.18);
  }
  .laci-menu.is-open { display: flex; }
  .laci-menu a {
    display: block;
    padding: 12px 18px;
    font-size: 15px;
    border-radius: 14px;
  }
  .laci-cta span { display: none; }
  .laci-cta { padding: 11px 14px; }
  .laci-hamburger { display: flex; }
  .laci-logo-text { font-size: 17px; }
}

@media (max-width: 480px) {
  .laci-nav-inner { border-radius: 22px; }
}

/* === Aktív link (scroll-spy) === */
.laci-menu a.is-active {
  color: #C26B47;
  background: #FAF6EE;
  font-weight: 600;
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  .laci-nav, .laci-nav-inner, .laci-logo-mark, .laci-cta, .laci-menu a, .laci-hamburger, .laci-hamburger span {
    transition: none !important;
  }
}