/* FILA — full-bleed mega menu
   Panel spans the header (viewport width). 100% avoids the 100vw scrollbar gap. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  color: #111111;
  background: #f8f9fa;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 2px solid #e21837;
  outline-offset: 3px;
}

/* Header */

.fila-header {
  --fila-header-height: 72px;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 45, 98, 0.08);
}

.fila-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 32px;
  max-width: 1440px;
  height: 72px;
  margin: 0 auto;
  padding: 0 48px;
}

.fila-header__logo {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.fila-header__logo img {
  width: auto;
  height: 32px;
}

.fila-header__nav {
  min-width: 0;
}

.fila-header__menu {
  display: flex;
  align-items: stretch;
  justify-content: center;
  height: 72px;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 4px;
}

.fila-header__item {
  position: static;
  display: flex;
  align-items: stretch;
}

.fila-header__link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 12px;
  color: #111111;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.fila-header__link::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: #e21837;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.28s ease;
}

.fila-header__item:hover > .fila-header__link,
.fila-header__item:focus-within > .fila-header__link,
.fila-header__link:hover {
  color: #002d62;
}

.fila-header__link--campaign,
.fila-header__item:hover > .fila-header__link--campaign,
.fila-header__item:focus-within > .fila-header__link--campaign,
.fila-header__link--campaign:hover {
  color: #e21837;
  font-weight: 700;
}

.fila-header__item:hover > .fila-header__link::after,
.fila-header__item:focus-within > .fila-header__link::after,
.fila-header__link:hover::after {
  transform: scaleX(1);
}

.fila-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fila-header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  margin-right: 8px;
  padding: 0 14px;
  background: #f8f9fa;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #666666;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.fila-header__search:focus-within {
  background: #ffffff;
  border-color: #002d62;
  color: #002d62;
}

.fila-header__search-icon {
  flex-shrink: 0;
}

.fila-header__search-input {
  width: 148px;
  padding: 0;
  color: #111111;
  background: transparent;
  border: 0;
  outline: none;
}

.fila-header__search-input::placeholder {
  color: #666666;
}

.fila-header__search-input:focus-visible {
  outline: none;
}

.fila-header__search-input::-webkit-search-cancel-button {
  appearance: none;
}

.fila-header__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #111111;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.fila-header__icon:hover {
  color: #e21837;
  background: #f8f9fa;
}

/* Mega menu */

.megamenu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 20;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid rgba(0, 45, 98, 0.08);
  box-shadow: 0 28px 48px rgba(0, 45, 98, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0.28s;
}

/* Covers the header border so the pointer can move into the panel. */
.megamenu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 0;
  left: 0;
  height: 8px;
  pointer-events: none;
}

.fila-header__item--mega:hover > .megamenu,
.fila-header__item--mega:focus-within > .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.28s ease,
    visibility 0s linear 0s;
}

.fila-header__item--mega:hover > .megamenu::before,
.fila-header__item--mega:focus-within > .megamenu::before {
  pointer-events: auto;
}

.megamenu__inner {
  max-width: 1440px;
  max-height: calc(100vh - var(--fila-header-height));
  margin: 0 auto;
  padding: 40px 48px 48px;
  overflow: auto;
}

.megamenu__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 36px;
  align-items: stretch;
}

.megamenu__group .megamenu__group {
  margin-top: 28px;
}

.megamenu__column--wide {
  grid-column: span 2;
}

.megamenu__heading--continue {
  visibility: hidden;
}

.megamenu__list.megamenu__list--split {
  display: block;
  column-count: 2;
  column-gap: 36px;
}

.megamenu__list--split > li {
  break-inside: avoid;
}

.megamenu__subgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
  margin-top: 32px;
}

.megamenu__offer {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 180px;
  padding-top: 8px;
  color: #111111;
  text-decoration: none;
}

.megamenu__offer-kicker {
  color: #e21837;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.megamenu__offer-title {
  color: #002d62;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
}

.megamenu__offer-text {
  color: #333333;
  font-size: 14px;
}

.megamenu__offer + .megamenu__offer {
  min-height: 0;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid #e6e8eb;
}

.megamenu__offer:hover .megamenu__offer-title {
  color: #e21837;
}

.megamenu__column--story {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: #002d62;
  color: #ffffff;
}

.megamenu__grid--about {
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 360px);
}

.megamenu__story-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.megamenu__story-body {
  position: absolute;
  right: 32px;
  bottom: 28px;
  left: 32px;
}

.megamenu__heading {
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: #002d62;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-bottom: 1px solid #e6e8eb;
}

.megamenu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.megamenu__link {
  display: inline-block;
  padding: 8px 0;
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.megamenu__link:hover {
  color: #e21837;
  transform: translateX(4px);
}

.megamenu__card {
  position: relative;
  min-height: 340px;
  height: 100%;
  overflow: hidden;
  background: #002d62;
  color: #ffffff;
}

.megamenu__card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.6s ease;
}

.megamenu__card-image--branded {
  height: 128%;
  object-position: center top;
}

.megamenu__column--feature:hover .megamenu__card-image {
  transform: scale(1.05);
}

.megamenu__card--product {
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  background: #f3f4f6;
}

.megamenu__card--product .megamenu__card-image {
  position: static;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center center;
}

.megamenu__column--feature:hover .megamenu__card--product .megamenu__card-image {
  transform: none;
}

.megamenu__card--product .megamenu__card-body {
  position: static;
  padding: 16px 18px 18px;
  background: #002d62;
}

.megamenu__card-body {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 56px 24px 24px;
  background: linear-gradient(to top, rgba(0, 45, 98, 0.94) 0%, rgba(0, 45, 98, 0) 100%);
}

.megamenu__card-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.megamenu__card-kicker::before {
  content: "";
  width: 18px;
  height: 2px;
  background: #e21837;
}

.megamenu__card-title {
  margin: 0 0 12px;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.megamenu__card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.megamenu__card-link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.megamenu__card-link:hover {
  color: #ffffff;
}

.megamenu__card-link:hover::after {
  transform: translateX(4px);
}

/* Full-width campaign film under the header */

.promo-video {
  position: relative;
  width: 100%;
  height: max(520px, min(78vh, 860px));
  overflow: hidden;
  background: #3a3c40;
  color: #ffffff;
}

.promo-video__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.promo-video__mask {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(28, 30, 34, 0.62) 0%, rgba(72, 74, 78, 0.46) 46%, rgba(88, 90, 94, 0.4) 100%);
  pointer-events: none;
}

.promo-video__copy {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  justify-items: stretch;
  padding: 56px 7vw;
  text-align: center;
}

.promo-video__title,
.promo-video__lead {
  margin: 0;
  font-weight: 700;
  text-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.promo-video__title {
  font-size: clamp(40px, 5.4vw, 84px);
  letter-spacing: 0.08em;
  line-height: 1.12;
}

.promo-video__lead {
  margin-top: 22px;
  font-size: clamp(16px, 2.05vw, 32px);
  letter-spacing: 0.1em;
  line-height: 1.45;
  white-space: nowrap;
}

.promo-video__highlight {
  margin: 0 0.08em;
  color: #e21836;
  font-size: 1.28em;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Series row under the campaign film */

.fila-series {
  background: #ffffff;
  margin: 0 48px;
}

.fila-series__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 15px 0 48px;
}

.fila-series__grid img {
  width: 100%;
  height: auto;
}

/* Hero */

.fila-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fila-hero {
  display: flex;
  flex-direction: column;
  background: #8e151c;
}

.fila-hero__banner {
  display: block;
  line-height: 0;
}

.fila-hero__banner img {
  width: 100%;
  height: auto;
}

/* Responsive */

@media (max-width: 1100px) {
  .fila-header__bar,
  .megamenu__inner {
    padding-right: 24px;
    padding-left: 24px;
  }

  .fila-series {
    margin-right: 24px;
    margin-left: 24px;
  }

  .fila-header__link {
    padding: 0 10px;
  }

  .fila-header__link::after {
    right: 10px;
    left: 10px;
  }

  .fila-header__search-input {
    width: 96px;
  }

  .megamenu__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .megamenu__column--feature,
  .megamenu__column--wide,
  .megamenu__column--story {
    grid-column: 1 / -1;
  }

  .megamenu__grid--about {
    grid-template-columns: 1fr;
  }

  .megamenu__grid--about .megamenu__column--story {
    grid-column: auto;
    max-width: 420px;
    min-height: 460px;
  }

  .megamenu__card {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .fila-header {
    --fila-header-height: 128px;
  }

  .fila-header__bar {
    grid-template-columns: 1fr auto;
    height: auto;
    row-gap: 4px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .fila-header__nav {
    grid-column: 1 / -1;
    order: 3;
  }

  .fila-header__menu {
    flex-wrap: wrap;
    justify-content: flex-start;
    height: auto;
    overflow: visible;
  }

  .fila-header__item {
    flex: 0 0 auto;
  }

  .fila-header__link {
    height: 48px;
  }

  .fila-header__search {
    margin-right: 0;
  }

  .fila-header__search-input {
    width: 72px;
  }

  .megamenu__grid {
    grid-template-columns: 1fr;
  }

  .promo-video {
    height: max(460px, min(70vh, 640px));
  }

  .fila-series {
    margin-right: 20px;
    margin-left: 20px;
  }

  .promo-video__copy {
    padding: 36px 22px;
  }

  .promo-video__title {
    font-size: clamp(30px, 8.4vw, 48px);
    letter-spacing: 0.04em;
  }

  .promo-video__line {
    display: block;
  }

  .promo-video__lead {
    font-size: clamp(15px, 4vw, 20px);
    letter-spacing: 0.02em;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .megamenu,
  .fila-header__link,
  .fila-header__link::after,
  .megamenu__link,
  .megamenu__card-image,
  .megamenu__card-link::after,
  .fila-header__icon,
  .fila-header__search {
    transition: none;
  }
}
