/* Buttons */
.lf-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--lf-space-3);
  height: 37px;
  padding: 0 var(--lf-space-5);
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-m-size);
  font-weight: 400;
  text-decoration: none;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.lf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 42, 41, 0.18);
}
.lf-btn:active {
  transform: translateY(0);
  box-shadow: none;
}
.lf-btn__icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  transition: transform 0.25s ease;
}
.lf-btn:hover .lf-btn__icon {
  transform: translate(3px, -3px) rotate(180deg);
}
.lf-btn__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
.lf-btn--primary,
.lf-btn--primary-icon {
  background-color: var(--lf-color-primary);
  color: var(--lf-color-light);
  border: 1px solid var(--lf-color-primary);
}
.lf-btn--primary:hover,
.lf-btn--primary-icon:hover {
  background-color: var(--lf-color-primary-hover);
  border-color: var(--lf-color-primary-hover);
}
.lf-btn--secondary,
.lf-btn--secondary-icon {
  background-color: rgba(255, 250, 235, 0.05);
  color: var(--lf-color-light);
  border: 1px solid var(--lf-color-ink);
}
.lf-btn--secondary:hover,
.lf-btn--secondary-icon:hover {
  background-color: var(--lf-color-light);
  color: var(--lf-color-ink);
}
.lf-btn--secondary-stroke {
  background-color: transparent;
  color: var(--lf-color-ink);
  border: 1px solid var(--lf-color-ink);
}
/* The footer sits on the dark --lf-color-ink background, so the stroke
   button needs light colors here or it disappears against it. */
.lf-footer .lf-btn--secondary-stroke {
  color: var(--lf-color-light);
  border-color: var(--lf-color-light);
}
.lf-footer .lf-btn--secondary-stroke:hover {
  background-color: var(--lf-color-light);
  color: var(--lf-color-ink);
}
/* Same 302x37 footprint as the solid button beside it, just a near-invisible
   fill (Figma: "light" at 5% opacity) instead of a solid color. */
.lf-btn--ghost-icon {
  width: 302px;
  justify-content: flex-start;
  background-color: rgba(245, 247, 244, 0.05);
  color: var(--lf-color-white);
  border: none;
  gap: var(--lf-space-2);
}
.lf-btn--ghost-icon:hover {
  transform: none;
  box-shadow: none;
  background-color: rgba(245, 247, 244, 0.12);
}
.lf-btn--ghost-icon .lf-btn__icon {
  width: 24px;
  height: 24px;
  padding: 5px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
/* Overrides the generic .lf-btn:hover .lf-btn__icon rotate/shift (higher
   specificity here wins) — this one should just grow slightly and tint
   red instead of flipping. */
.lf-btn--ghost-icon:hover .lf-btn__icon {
  transform: scale(1.15);
  color: var(--lf-color-primary);
  border-color: var(--lf-color-primary);
}

/* Card */
.lf-card-category {
  position: relative;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  /* Title and label each get their own shared row (sized to the tallest
     among the 3 cards), so a title wrapping an extra line at some viewport
     width pushes every card's label down together — labels always start on
     the same line, never just whichever gap its own title happened to leave. */
  row-gap: var(--lf-space-2);
  text-decoration: none;
  transition: transform 0.35s ease;
  will-change: transform;
}
.lf-card-category:hover {
  transform: translateY(-8px);
}
.lf-card-category__title {
  display: block;
  font-family: var(--lf-font-heading);
  font-size: var(--lf-h2-size);
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lf-color-ink);
}
.lf-card-category__label {
  display: block;
  align-self: start;
  margin-bottom: var(--lf-space-3);
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-s-size);
  color: var(--lf-color-ink);
  opacity: 0.7;
}
.lf-card-category__image {
  position: relative;
  display: block;
  aspect-ratio: 410.67 / 465;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(44, 42, 41, 0.12);
  transition: box-shadow 0.35s ease;
}
.lf-card-category:hover .lf-card-category__image {
  box-shadow: 0 20px 32px rgba(44, 42, 41, 0.22);
}
.lf-card-category__arrow {
  position: absolute;
  left: var(--lf-space-3);
  bottom: var(--lf-space-3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(44, 42, 41, 0.25);
  color: var(--lf-color-white);
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.lf-card-category:hover .lf-card-category__arrow {
  transform: translate(3px, -3px);
  background: rgba(44, 42, 41, 0.5);
}

/* Header / Nav */
.lf-header {
  height: 80px;
  background: var(--lf-color-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.3s ease, background-color 0.3s ease, backdrop-filter 0.3s ease;
}
.lf-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--lf-container-max-padded);
  margin: 0 auto;
  padding: 0 var(--lf-container-margin);
}
.lf-header--scrolled {
  background: rgba(245, 247, 244, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 16px rgba(44, 42, 41, 0.1);
}
.lf-nav {
  display: flex;
  align-items: center;
  gap: var(--lf-space-4);
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-s-size);
}
.lf-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.lf-header__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lf-color-ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.lf-header__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.lf-header__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.lf-header__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
.lf-header__logo {
  display: inline-flex;
  align-items: center;
}
.lf-header__logo svg {
  display: block;
  height: 27px;
  width: auto;
}
.lf-footer__brand {
  margin-bottom: var(--lf-space-4);
}
.lf-footer__ctas {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--lf-space-3);
  margin-top: var(--lf-space-5);
}
.lf-footer__ctas .lf-btn {
  justify-content: center;
}
.lf-footer__brand svg {
  display: block;
  height: 27px;
  width: auto;
  margin-bottom: var(--lf-space-2);
}
.lf-footer__copyright {
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-s-size);
  color: var(--lf-color-cream);
  margin: 0;
}
.lf-nav__item {
  position: relative;
}
.lf-nav__item > a {
  color: var(--lf-color-ink);
  transition: opacity 0.2s ease;
}
.lf-nav__item > a:hover {
  opacity: 0.6;
}
.lf-nav__megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 280px;
  background: var(--lf-color-white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  padding: var(--lf-space-2) 0;
}
.lf-nav__item:hover .lf-nav__megamenu,
.lf-nav__item--open .lf-nav__megamenu {
  display: flex;
}
.lf-nav__megamenu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--lf-space-4);
  padding: var(--lf-space-3) var(--lf-space-4);
  color: var(--lf-color-ink);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.lf-nav__megamenu-link:hover {
  background: var(--lf-color-light);
}
.lf-nav__megamenu-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--lf-color-ink);
  color: var(--lf-color-ink);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.lf-nav__megamenu-arrow svg {
  width: 10px;
  height: 10px;
  transform: rotate(0deg);
  transition: transform 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.lf-nav__megamenu-link--has-children:hover .lf-nav__megamenu-arrow {
  opacity: 1;
}
.lf-nav__megamenu-entry:hover .lf-nav__megamenu-arrow svg,
.lf-nav__megamenu-entry--open .lf-nav__megamenu-arrow svg {
  transform: rotate(135deg);
}
/* Children fly out into their own panel to the right of the hovered row,
   vertically aligned with it — not nested inline underneath (per Figma). */
.lf-nav__megamenu-entry {
  position: relative;
}
.lf-nav__submenu {
  position: absolute;
  top: 0;
  /* Flush against the entry (no gap) — a gap here was a dead zone that lost
     :hover when the pointer moved diagonally toward the submenu, making the
     whole flyout flicker shut before it could be reached. */
  left: 100%;
  min-width: 240px;
  background: var(--lf-color-white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  padding: var(--lf-space-2) 0;
}
.lf-nav__megamenu-entry:hover .lf-nav__submenu,
.lf-nav__megamenu-entry--open .lf-nav__submenu {
  display: flex;
}
.lf-nav__submenu-link {
  display: block;
  padding: var(--lf-space-3) var(--lf-space-4);
  color: var(--lf-color-ink);
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.lf-nav__submenu-link:hover {
  background: var(--lf-color-light);
}

/* Footer */
.lf-footer {
  background: var(--lf-color-ink);
  color: var(--lf-color-light);
}
.lf-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--lf-space-5);
  max-width: var(--lf-container-max-padded);
  margin: 0 auto;
  padding: var(--lf-space-6) var(--lf-container-margin);
}
.lf-footer a {
  color: var(--lf-color-light);
  transition: opacity 0.2s ease;
}
.lf-footer__nav a:hover,
.lf-footer__contact a:hover {
  opacity: 0.6;
}
.lf-footer__col-heading {
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-s-size);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lf-color-light);
  opacity: 0.6;
  margin: 0 0 var(--lf-space-3);
}
.lf-footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--lf-space-2);
}
.lf-footer__social {
  display: flex;
  gap: var(--lf-space-3);
  margin-top: var(--lf-space-4);
}
.lf-footer__social-link {
  font-size: var(--lf-body-xs-size);
  opacity: 0.8;
}
.lf-footer__social-link:hover {
  opacity: 1;
}
.lf-footer__contact {
  display: flex;
  flex-direction: column;
  gap: var(--lf-space-2);
  margin-top: var(--lf-space-4);
}

/* Marquee */
.lf-marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--lf-color-light);
  padding: var(--lf-space-2) 0;
}
.lf-marquee a {
  color: var(--lf-color-ink);
  margin-right: var(--lf-space-4);
}
.lf-marquee__dot {
  color: var(--lf-color-ink);
  opacity: 0.5;
  margin-right: var(--lf-space-2);
}
.lf-marquee__track {
  display: inline-block;
  animation: lf-marquee-scroll 20s linear infinite;
}
.lf-marquee:hover .lf-marquee__track,
.lf-marquee:focus-within .lf-marquee__track {
  animation-play-state: paused;
}
@keyframes lf-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Mobile nav: the full inline menu doesn't fit next to the logo below this
   width (confirmed via real viewport testing — it was overflowing the
   header and causing page-wide horizontal scroll), so it collapses into a
   burger-toggled dropdown panel instead. */
@media (max-width: 860px) {
  .lf-header__burger {
    display: flex;
  }
  .lf-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: var(--lf-color-light);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    transition: max-height 0.3s ease;
  }
  .lf-nav.lf-nav--open {
    max-height: 80vh;
    overflow-y: auto;
  }
  .lf-nav__item {
    width: 100%;
  }
  .lf-nav__item > a {
    display: block;
    padding: var(--lf-space-3) var(--lf-container-margin);
  }
  .lf-nav__megamenu {
    position: static;
    box-shadow: none;
    min-width: 0;
    padding: 0 0 var(--lf-space-2) var(--lf-container-margin);
  }
  /* No room for a side flyout on mobile — children drop back into an
     inline accordion under their parent row, toggled by tap. */
  .lf-nav__megamenu-arrow {
    opacity: 1;
  }
  .lf-nav__submenu {
    position: static;
    margin-left: 0;
    box-shadow: none;
    min-width: 0;
    padding-left: var(--lf-space-3);
  }
  .lf-nav__megamenu-entry:hover .lf-nav__submenu {
    display: none;
  }
  .lf-nav__megamenu-entry--open .lf-nav__submenu {
    display: flex;
  }
}

/* Video modal (About Brand play button) */
body.lf-video-modal-open {
  overflow: hidden;
}
.lf-video-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lf-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}
.lf-video-modal__box {
  position: relative;
  z-index: 1;
  width: min(960px, 90vw);
  aspect-ratio: 16 / 9;
}
.lf-video-modal__media {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}
.lf-video-modal__close {
  /* Was floating 40px above the box — on a short/narrow viewport that
     space falls off-screen and the button becomes unreachable. Sitting
     inside the box, on top of the video, always stays visible regardless
     of viewport size. */
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: var(--lf-color-white);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.lf-video-modal__close:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* Generic placeholder page — keeps header/footer/menu consistent on pages
   that haven't been individually redesigned yet. */
.lf-generic-page {
  min-height: 50vh;
}
.lf-generic-page__inner {
  max-width: var(--lf-container-max-padded);
  margin: 0 auto;
  padding: var(--lf-space-6) var(--lf-container-margin);
}
.lf-generic-page__title {
  font-family: var(--lf-font-heading);
  font-size: var(--lf-h1-size);
  font-weight: 700;
  color: var(--lf-color-ink);
  margin-bottom: var(--lf-space-4);
}
.lf-generic-page__content {
  font-family: var(--lf-font-body);
  font-size: var(--lf-body-size);
  color: var(--lf-color-ink);
  max-width: 760px;
}
.lf-generic-page__content p {
  margin-bottom: var(--lf-space-3);
}

/* Scroll-reveal utility shared by every LuxeForm template: initScrollReveal()
   adds .lf-reveal to matched elements on load, then toggles
   .lf-reveal--visible once each scrolls into view. */
.lf-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.lf-reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance fade-up: shared by every hero section's text/buttons (they're
   visible on load, above the fold, so this plays immediately instead of
   waiting on the scroll-triggered .lf-reveal above). */
@keyframes lf-hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
