/* =============================================================
   FILM IS NOT DEAD - Mobile Navigation
   Illesztési pont: Divi child theme / functions.php enqueue
   ============================================================= */

:root {
  --fnd-red: #8b0000;
  --fnd-red-light: #b30000;
  --fnd-black: #0f0f0f;
  --fnd-white: #ffffff;
  --fnd-grey-100: #f7f5f2;
  --fnd-grey-200: #edeae5;
  --fnd-grey-500: #999690;
  --fnd-grey-800: #3a3835;
  --fnd-ease: cubic-bezier(0.76, 0, 0.24, 1);

  --fnd-header-tall: 74px;
  --fnd-header-compact: 58px;

  --fnd-logo-tall: 46px;
  --fnd-logo-compact: 34px;

  --fnd-header-shadow: 0 10px 28px rgba(15, 15, 15, 0.08), 0 1px 0 rgba(15, 15, 15, 0.08);
}

/* Header */
#fnd-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--fnd-header-tall);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: var(--fnd-white);
  z-index: 9999;
  box-shadow: var(--fnd-header-shadow);
  transition: height 0.35s var(--fnd-ease), box-shadow 0.3s ease, padding 0.35s var(--fnd-ease);
}

#fnd-header.scrolled {
  height: var(--fnd-header-compact);
  box-shadow: 0 8px 20px rgba(15, 15, 15, 0.06), 0 1px 0 rgba(15, 15, 15, 0.1);
}

.fnd-logo {
  display: inline-flex;
  align-items: center;
  height: 100%;
  text-decoration: none;
  line-height: 0;
  flex-shrink: 0;
}

.fnd-logo img {
  height: var(--fnd-logo-tall);
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
  image-rendering: auto;
  transition: height 0.35s var(--fnd-ease), max-width 0.35s var(--fnd-ease);
}

#fnd-header.scrolled .fnd-logo img {
  height: var(--fnd-logo-compact);
  max-width: 118px;
}

.fnd-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

/* FiboSearch */
.fnd-search-wrap {
  display: flex;
  align-items: center;
}

.fnd-search-wrap .dgwt-wcas-search-wrapp {
  min-width: 0 !important;
  width: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.fnd-search-wrap .dgwt-wcas-sf-wrapp {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.fnd-search-wrap .dgwt-wcas-ico-magnifier svg,
.fnd-search-wrap .dgwt-wcas-ico-magnifier-handler svg {
  display: none !important;
}

.fnd-search-wrap .dgwt-wcas-ico-magnifier::after,
.fnd-search-wrap .dgwt-wcas-ico-magnifier-handler::after {
  content: '';
  display: block;
  width: 18px;
  height: 18px;
  background-color: var(--fnd-black);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 L21 21' stroke-linecap='round' stroke-width='2.5'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 L21 21' stroke-linecap='round' stroke-width='2.5'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-position: center;
  mask-position: center;
}

.fnd-search-wrap .dgwt-wcas-ico-magnifier,
.fnd-search-wrap .dgwt-wcas-ico-magnifier-handler {
  width: 20px !important;
  height: 20px !important;
  color: var(--fnd-black) !important;
  opacity: 1 !important;
}

.fnd-search-wrap .dgwt-wcas-search-icon-handler {
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.fnd-search-wrap .dgwt-wcas-search-icon-handler:hover {
  background: var(--fnd-grey-100);
}

.fnd-search-wrap svg path,
.fnd-search-wrap svg circle,
.fnd-search-wrap svg line,
.fnd-search-wrap svg rect {
  fill: var(--fnd-black) !important;
  stroke: none !important;
}

/* Hamburger */
.fnd-hamburger {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.fnd-hamburger span {
  display: block;
  height: 1.5px;
  background: var(--fnd-black);
  border-radius: 2px;
  transition: transform 0.4s var(--fnd-ease), opacity 0.3s ease, width 0.3s ease;
}

.fnd-hamburger span:nth-child(1) { width: 22px; }
.fnd-hamburger span:nth-child(2) { width: 16px; }
.fnd-hamburger span:nth-child(3) { width: 22px; }

.fnd-hamburger.is-open span:nth-child(1) {
  width: 22px;
  transform: translateY(7.5px) rotate(45deg);
}

.fnd-hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.fnd-hamburger.is-open span:nth-child(3) {
  width: 22px;
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Overlay */
#fnd-menu-overlay {
  position: fixed;
  inset: 0;
  background: var(--fnd-white);
  z-index: 9998;
  display: grid;
  grid-template-rows: var(--fnd-header-tall) 1fr auto;
  transform: translateY(-100%);
  transition: transform 0.55s var(--fnd-ease);
  will-change: transform;
}

#fnd-menu-overlay.is-open {
  transform: translateY(0);
}

.fnd-menu-topbar {
  display: flex;
  align-items: center;
  padding: 0 18px;
}

.fnd-menu-topbar .fnd-logo {
  height: 100%;
}

.fnd-menu-topbar .fnd-logo img {
  height: var(--fnd-logo-tall);
  max-width: 150px;
}

/* Nav */
.fnd-nav-list {
  padding: 60px 28px 0;
  margin: 0;
  list-style: none;
  overflow-y: auto;
}

.fnd-nav-list > .fnd-nav-item:first-child {
  margin-top: 30px !important;
}


.fnd-nav-item {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.08s; }
#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.13s; }
#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.18s; }
#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.23s; }
#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.28s; }
#fnd-menu-overlay.is-open .fnd-nav-item:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.33s; }

.fnd-nav-btn {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  padding: 11px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  gap: 12px;
}

.fnd-nav-label {
  font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
  font-size: 38px;
  letter-spacing: 0.04em;
  color: var(--fnd-black);
  line-height: 1;
  transition: color 0.2s ease;
}

.fnd-nav-btn:hover .fnd-nav-label,
.fnd-nav-btn.is-active .fnd-nav-label {
  color: var(--fnd-red);
}

.fnd-nav-indicator {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--fnd-grey-200);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  color: var(--fnd-grey-500);
  font-size: 16px;
  font-weight: 300;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.3s var(--fnd-ease);
}

/* Csak a lenyitható gomboknál jelenik meg a + */
.fnd-nav-btn[data-submenu] .fnd-nav-indicator::before {
  content: '+';
  font-family: var(--font-sans), sans-serif;
  font-weight: 300;
}

/* Nyitott állapotban × és elfordul */
.fnd-nav-btn.is-active .fnd-nav-indicator {
  border-color: var(--fnd-red);
  background: var(--fnd-red);
  color: #fff;
  transform: rotate(45deg);
}

.fnd-nav-btn:hover .fnd-nav-indicator {
  border-color: var(--fnd-red);
  color: var(--fnd-red);
}

/* Subnav */
.fnd-subnav {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--fnd-ease);
  padding-left: 0;
}

.fnd-subnav.is-open {
  max-height: 320px;
}

.fnd-subnav a {
  display: block;
  padding: 9px 0 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fnd-grey-800);
  text-decoration: none;
  letter-spacing: 0.01em;
  line-height: 1.2;
  transition: color 0.15s, padding-left 0.15s;
  border-left: 2px solid var(--fnd-grey-200);
}

.fnd-subnav a:hover {
  color: var(--fnd-red);
  border-left-color: var(--fnd-red);
  padding-left: 20px;
}

/* Footer */
.fnd-menu-footer {
  padding: 12px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease 0.42s, transform 0.35s ease 0.42s;
}

#fnd-menu-overlay.is-open .fnd-menu-footer {
  opacity: 1;
  transform: none;
}

/* Language toggle */
.fnd-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--fnd-grey-100);
  border-radius: 14px;
  padding: 10px 16px;
}

.fnd-lang-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fnd-grey-500);
}

.fnd-lang-toggle {
  display: flex;
  background: var(--fnd-grey-100);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.fnd-lang-btn {
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--fnd-grey-500);
  transition: background 0.2s, color 0.2s;
}

.fnd-lang-btn.is-active {
  background: var(--fnd-red);
  color: #fff;
}

/* Body lock */
body.fnd-menu-open {
  overflow: hidden;
}

/* Mobile */
@media (max-width: 980px) {
  #fnd-header {
    padding: 0 18px;
  }

  .fnd-logo img {
    max-width: 132px;
  }

  #fnd-header.scrolled .fnd-logo img {
    max-width: 108px;
  }

  .fnd-nav-list {
    padding-top: 6px;
  }
}

/* Desktop safety */
@media (min-width: 981px) {
  body {
    padding-top: 0 !important;
  }

  #fnd-header {
    height: 82px;
    padding: 0 28px;
  }

  #fnd-header.scrolled {
    height: 68px;
  }

  .fnd-logo img {
    height: 50px;
    max-width: 170px;
  }

  #fnd-header.scrolled .fnd-logo img {
    height: 40px;
    max-width: 140px;
  }

  #fnd-menu-overlay {
    display: none !important;
  }
}

