/* Header styles for Live Paris FR */

.lp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #050b1a 0%, #07132a 50%, #050b1a 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.lp-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.lp-header__branding {
  display: flex;
  align-items: center;
  min-width: 0;
}

.lp-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.75rem;
}

.lp-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #e5f0ff 12%, transparent 60%),
              radial-gradient(circle at 70% 80%, #f3294c 0, #bd1235 35%, transparent 70%),
              radial-gradient(circle at 50% 50%, #182a4d 0, #020618 70%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.12),
              0 12px 30px rgba(0, 0, 0, 0.6);
}

.lp-header__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lp-header__site-name {
  font-family: "Playfair Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.lp-header__tagline {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  white-space: nowrap;
}

/* Navigation */

.lp-header__nav {
  display: flex;
}

.lp-header__nav-list {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.lp-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.12s ease;
}

.lp-header__nav-link::after {
  content: "";
  position: absolute;
  inset: auto 18% -0.2rem 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(220, 38, 38, 0.9) 45%, rgba(37, 99, 235, 0.9) 100%);
  opacity: 0;
  transform: scaleX(0.7);
  transform-origin: center;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.lp-header__nav-link:hover,
.lp-header__nav-link:focus-visible {
  color: #ffffff;
  background-color: rgba(15, 23, 42, 0.9);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.7);
}

.lp-header__nav-link:hover::after,
.lp-header__nav-link:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.lp-header__nav-link:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 2px;
}

.lp-header__logo-link::after {
  content: none !important;
}

.lp-header__nav-item--cta .lp-header__nav-link--cta {
  padding-inline: 1rem;
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(239, 68, 68, 0.4);
}

.lp-header__nav-item--cta .lp-header__nav-link--cta:hover,
.lp-header__nav-item--cta .lp-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, #f97316, #b91c1c);
  box-shadow: 0 14px 35px rgba(248, 113, 113, 0.55);
}

/* Mobile toggle */

.lp-header__toggle {
  display: none;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.4rem 0.55rem;
  cursor: pointer;
  line-height: 0;
}

.lp-header__toggle:focus-visible {
  outline: 2px solid #f97316;
  outline-offset: 3px;
}

.lp-header__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #f9fafb;
  transition: transform 0.18s ease, opacity 0.18s ease, background-color 0.18s ease;
}

.lp-header__toggle-bar + .lp-header__toggle-bar {
  margin-top: 4px;
}

.lp-header__toggle[aria-expanded="true"] .lp-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.lp-header__toggle[aria-expanded="true"] .lp-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.lp-header__toggle[aria-expanded="true"] .lp-header__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile layout */

@media (max-width: 768px) {
  .lp-header__inner {
    padding-block: 0.6rem;
  }

  .lp-header__tagline {
    display: none;
  }

  .lp-header__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lp-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: radial-gradient(circle at top, rgba(15, 23, 42, 0.98), #020617 55%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.4);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: max-height 0.25s ease, opacity 0.2s ease, transform 0.2s ease;
  }

  .lp-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.4rem 1.25rem 0.9rem;
  }

  .lp-header__nav-link {
    width: 100%;
    justify-content: flex-start;
    padding-block: 0.55rem;
  }

  .lp-header--menu-open .lp-header__nav {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-header__nav,
  .lp-header__nav-link,
  .lp-header__toggle-bar {
    transition: none !important;
  }
}
