/* TLC Header / floating nav — scoped port of floating-nav.tsx. */

.tlc-header {
  position: fixed;
  inset-inline: 0;
  top: 3rem;            /* top-12 */
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1rem 1rem 0; /* pt-4 + px-4 */
  transition: top 0.5s ease, padding 0.5s ease;
}
.tlc-header.is-scrolled {
  top: 0;
  padding-top: 0.75rem; /* pt-3 */
}

.tlc-header__bar {
  display: flex;
  width: 100%;
  max-width: 72rem;
  align-items: center;
  justify-content: space-between;
}

/* ---- logo ---- */
.tlc-header__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--tlc-brass) 20%, transparent);
  background: rgba(10, 20, 34, 0.7);
  padding: 0.5rem 1rem;
  backdrop-filter: blur(16px);
  text-decoration: none;
}
.tlc-header__logo img { height: 2rem; width: auto; display: block; }
.tlc-header__brand {
  display: none;
  font-family: var(--tlc-font-display);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  color: var(--tlc-ivory);
}
@media (min-width: 1024px) { .tlc-header__brand { display: inline; } }

/* ---- desktop nav ---- */
.tlc-nav {
  position: relative;
  display: none;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--tlc-brass) 15%, transparent);
  background: rgba(10, 20, 34, 0.6);
  padding: 0.25rem;
  backdrop-filter: blur(16px);
}
@media (min-width: 768px) { .tlc-nav { display: flex; } }

.tlc-nav__link {
  position: relative;
  border-radius: 9999px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: color-mix(in srgb, var(--tlc-ivory) 70%, transparent);
  text-decoration: none;
  transition: color 0.3s ease;
  white-space: nowrap;
}
@media (min-width: 1024px) { .tlc-nav__link { padding: 0.5rem 1.25rem; } }
.tlc-nav__link:hover { color: var(--tlc-brass-soft); }
.tlc-nav__link.is-active { color: var(--tlc-ink); }
.tlc-nav__label { position: relative; z-index: 10; }

/* sliding "lamp" behind the active item */
.tlc-nav__lamp {
  position: absolute;
  top: 0.25rem;
  left: 0;
  height: calc(100% - 0.5rem);
  width: 0;
  border-radius: 9999px;
  background: var(--tlc-brass);
  z-index: 0;
  opacity: 0;
  transform: translateX(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              width 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.2s ease;
  pointer-events: none;
}
.tlc-nav__lamp.is-ready { opacity: 1; }
.tlc-nav__lamp-glow {
  position: absolute;
  top: -0.5rem;
  left: 50%;
  height: 0.25rem;
  width: 2rem;
  transform: translateX(-50%);
  border-radius: 9999px;
  background: var(--tlc-brass-soft);
  filter: blur(1px);
}

/* ---- phone ---- */
.tlc-header__phone {
  display: none;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--tlc-brass) 40%, transparent);
  background: rgba(10, 20, 34, 0.7);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tlc-brass-soft);
  backdrop-filter: blur(16px);
  text-decoration: none;
}
@media (min-width: 768px) { .tlc-header__phone { display: flex; } }
@media (min-width: 1024px) { .tlc-header__phone { padding-inline: 1rem; } }
.tlc-header__phone-label { display: none; }
@media (min-width: 1024px) { .tlc-header__phone-label { display: inline; } }

/* ---- hamburger ---- */
.tlc-header__burger {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  border: 1px solid color-mix(in srgb, var(--tlc-brass) 20%, transparent);
  background: rgba(10, 20, 34, 0.7);
  padding: 0.75rem;
  color: var(--tlc-brass-soft);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
@media (min-width: 768px) { .tlc-header__burger { display: none; } }
.tlc-header__burger-open,
.tlc-header__burger-close { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.tlc-header__burger-close { display: none; }
.tlc-header.is-menu-open .tlc-header__burger-open { display: none; }
.tlc-header.is-menu-open .tlc-header__burger-close { display: inline-flex; }
.tlc-header__burger .tlc-icon { display: block; }

/* ---- mobile drawer ---- */
.tlc-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  background: var(--tlc-ink);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
@media (min-width: 768px) { .tlc-drawer { display: none; } }
.tlc-drawer.is-open { opacity: 1; visibility: visible; }

.tlc-drawer__accent {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, color-mix(in srgb, var(--tlc-brass) 60%, transparent), transparent);
}

.tlc-drawer__items {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  /* reserve space for the fixed logo/announcement bar at the top so the first
     item is never hidden behind it; scroll if the viewport is very short */
  padding: 6.5rem 2rem 1.5rem;
  overflow-y: auto;
}

.tlc-drawer__item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--tlc-brass) 10%, transparent);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: border-color 0.3s ease, background-color 0.3s ease;
  /* staggered entrance */
  opacity: 0;
  transform: translateY(24px);
}
.tlc-drawer.is-open .tlc-drawer__item {
  animation: tlc-rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 0.07s + 0.1s);
}
.tlc-drawer__item:hover {
  border-color: color-mix(in srgb, var(--tlc-brass) 40%, transparent);
  background: var(--tlc-navy-light);
}
.tlc-drawer__icon { color: var(--tlc-brass); flex-shrink: 0; }
.tlc-drawer__label {
  font-family: var(--tlc-font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--tlc-ivory);
  transition: color 0.3s ease;
}
.tlc-drawer__item:hover .tlc-drawer__label { color: var(--tlc-brass-soft); }

.tlc-drawer__footer {
  border-top: 1px solid color-mix(in srgb, var(--tlc-brass) 10%, transparent);
  padding: 2rem;
  text-align: center;
}
.tlc-drawer__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tlc-brass-soft);
  text-decoration: none;
}
.tlc-drawer__tagline { margin: 0.5rem 0 0; font-size: 0.75rem; color: var(--tlc-fog); }

/* body lock when drawer open */
body.tlc-no-scroll { overflow: hidden; }
