/* Landing page accordion (0010)
   Header + 3 sections + footer always fill the viewport.
   Sections share (100vh − header − footer); hover expands one and
   shrinks the other two inside that fixed band.
*/

.landing-page {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: linear-gradient(0deg, #1f2933 0%, #6b7280 100%);
  color: #fff;
  box-sizing: border-box;
}

body:has(.landing-page) {
  margin: 0;
  overflow: hidden;
  height: 100vh;
  height: 100dvh;
}

/* ---------- Header (fixed size — never changes with accordion) ---------- */
.landing-top {
  flex: 0 0 auto;
  padding: 0 16px;
  margin: 0;
  box-sizing: border-box;
}

.landing-top .logo {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  display: inline-block;
  line-height: 0;
}

.landing-top .logo img {
  display: block;
  width: var(--logo-width, 134px);
  height: var(--logo-height, 54px);
  max-width: var(--logo-width, 134px);
  max-height: var(--logo-height, 54px);
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: top left;
  filter: var(--logo-shadow, drop-shadow(2px 3px 9.5px rgba(0, 0, 0, 0.4)));
}

.landing-hero {
  padding: 8px 0 12px 8px;
}

.landing-hero h1 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 6px;
  color: #fff;
}

.landing-hero p {
  font-size: 10px;
  font-weight: 300;
  color: #fff;
  line-height: 1.25;
  max-width: 1005px;
}

/* ---------- Category accordion — fills remaining viewport ---------- */
.landing-categories {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 4px;
}

.cat-panel {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: flex 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Expanded ≈ Figma 400 : collapsed ≈ 173 each → grow 400 / 173 */
.landing-categories:has(.cat-panel.is-active) .cat-panel:not(.is-active) {
  flex: 173 1 0;
}

.cat-panel.is-active {
  flex: 400 1 0;
}

.cat-panel__text-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.45s;
}

.cat-panel__text-bg svg {
  width: auto;
  height: 140%;
  max-width: none;
  display: block;
}

.cat-panel.is-active .cat-panel__text-bg {
  opacity: 1;
}

.cat-panel__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  transition:
    opacity 0.4s,
    transform 0.5s;
  opacity: 0.2;
}

.cat-panel__bg.bg-motorsports {
  background-image: url(../images/lp-motorsport.jpg);
}

.cat-panel__bg.bg-yachting {
  background-image: url(../images/lp-yachting.jpg);
}

.cat-panel__bg.bg-corporate {
  background-image: url(../images/lp-corporate.jpg);
}

.cat-panel.is-active .cat-panel__bg {
  opacity: 1;
}

.cat-panel__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: transparent;
  transition: background 0.4s;
}

.cat-panel.is-active .cat-panel__overlay {
  background: linear-gradient(
    89deg,
    rgba(31, 41, 51, 0.8) 0%,
    rgba(31, 41, 51, 0.32) 55%,
    rgba(31, 41, 51, 0) 100%
  );
}

.cat-panel__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 16px;
  box-sizing: border-box;
  transition: padding 0.35s;
}

.cat-panel__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0;
  color: #fff;
  -webkit-text-stroke: 1px #fff;
  paint-order: stroke fill;
}

.cat-panel[data-world="motorsports"] .cat-panel__title {
  font-weight: 800;
  font-style: italic;
}

.cat-panel[data-world="yachting"] .cat-panel__title {
  font-weight: 300;
  font-style: normal;
  -webkit-text-stroke-width: 0.5px;
}

.cat-panel[data-world="corporate"] .cat-panel__title {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cat-panel__desc {
  font-size: 13px;
  font-weight: 300;
  color: #fff;
  margin: 0;
  max-width: 923px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s 0.08s,
    transform 0.35s 0.08s,
    max-height 0.35s,
    margin 0.35s;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.cat-panel.is-active .cat-panel__desc {
  opacity: 1;
  transform: translateY(0);
  height: auto;
  margin-top: 0px;
}

.cat-panel__cta {
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.35s 0.12s,
    transform 0.35s 0.12s,
    max-height 0.35s,
    margin 0.35s;
  pointer-events: none;
  align-self: flex-start;
  max-height: 0;
  overflow: hidden;
}

.cat-panel.is-active .cat-panel__cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 56px;
  margin-top: 5px;
}

.cat-panel .btn--brand {
  max-width: 100%;
  box-sizing: border-box;
}

/* Mobile CTAs — Figma 4109:45060 (186×26, 10px) */
@media (max-width: 719px) {
  .cat-panel.is-active .cat-panel__cta {
    max-height: 32px;
  }

  .cat-panel .btn--brand {
    --btn-arrow-size: 18px;
    width: 186px;
    min-width: 186px;
    max-width: 100%;
    height: 26px;
    min-height: 26px;
    padding: 0 calc(20px + var(--btn-arrow-size)) 0 0;
    gap: 0;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: 2px;
  }

  .cat-panel .btn--brand .btn__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: var(--btn-arrow-size);
    height: 12px;
    margin-left: 0;
  }
}

/* Tablet CTAs — 720–1279 */
@media (min-width: 720px) and (max-width: 1279px) {
  .cat-panel.is-active .cat-panel__cta {
    max-height: 48px;
  }

  .cat-panel .btn--brand {
    --btn-arrow-size: 18px;
    width: 280px;
    min-width: 280px;
    max-width: 100%;
    height: 42px;
    min-height: 42px;
    padding: 0 calc(20px + var(--btn-arrow-size)) 0 40px;
    gap: 0;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
    border-radius: 2px;
    box-sizing: border-box;
  }

  .cat-panel .btn--brand .btn__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: var(--btn-arrow-size);
    height: 12px;
    margin-left: 0;
  }
}

/* Footer: shared styles live in main.css (.site-footer.site-footer--dark) */

/* ---------- 720px+ typography / spacing (page stays 100vh) ---------- */
@media (min-width: 720px) {
  .landing-top {
    padding-inline: 32px;
  }

  .cat-panel__title {
    font-size: 56px;
  }

  .cat-panel__desc {
    font-size: 20px;
  }

  .landing-hero {
    padding: 8px 0 8px 0px;
  }

  .cat-panel__content {
    padding-inline: 32px;
  }

  .cat-panel.is-active .cat-panel__content {
    padding-inline: 40px;
  }
}

/* ---------- 1280px+ ---------- */
@media (min-width: 1280px) {
  .landing-top {
    padding: 0 40px;
  }


  .landing-hero {
    padding: 20px 0 24px 32px;
  }

  .landing-hero h1 {
    font-size: 28px;
  }

  .landing-hero p {
    font-size: 16px;
  }

  .cat-panel__content {
    padding-inline: 80px;
  }

  .cat-panel.is-active .cat-panel__content {
    padding-inline: 100px;
  }

  .cat-panel__title {
    font-size: 56px;
    -webkit-text-stroke-width: 2px;
  }

  .cat-panel[data-world="yachting"] .cat-panel__title {
    -webkit-text-stroke-width: 1px;
  }

  .cat-panel__desc {
    font-size: 24px;
    margin-top: 10px !important;
  }

  .cat-panel__cta {
    margin-top: 24px !important;
  }
}

/* ---------- 1920px — Figma proportions ---------- */
@media (min-width: 1920px) {
  .landing-top {
    padding: 0 80px;
  }


  .landing-hero {
    padding: 48px 0 32px 40px;
  }

  .landing-hero h1 {
    font-size: 32px;
    font-weight: 600;
    line-height: 40px;
    margin-bottom: 8px;
  }

  .landing-hero p {
    font-size: 20px;
    font-weight: 300;
    line-height: 25px;
  }

  .cat-panel__content {
    padding-inline: 120px;
  }

  .cat-panel.is-active .cat-panel__content {
    padding-inline: 160px;
  }

  .cat-panel__title {
    font-size: 80px;
    line-height: 101px;
    -webkit-text-stroke-width: 3px;
  }

  .cat-panel[data-world="yachting"] .cat-panel__title {
    -webkit-text-stroke-width: 1.5px;
  }

  .cat-panel__desc {
    font-size: 32px;
    font-weight: 300;
    line-height: 40px;
    margin-top: 8px;
  }

  .cat-panel__cta {
    margin-top: 40px;
  }
}

/*
  >1920px — Figma 4109:44487 (2560 artboard)
  Section photos stay in a centered 1920 band; left/right gutters
  fill with brand gradients that bleed ~120px into the image.
*/
@media (min-width: 1921px) {
  .landing-hero {
    /* Align copy with section titles (x=440 on 2560 = gutter + 120) */
    padding-left: max(40px, calc((100vw - 1920px) / 2 + 40px));
  }

  .cat-panel__bg,
  .cat-panel__overlay,
  .cat-panel__text-bg {
    inset: auto;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1920px;
    height: 100%;
    transform: translateX(-50%);
  }

  .cat-panel__content {
    width: 1920px;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 120px;
  }

  .cat-panel.is-active .cat-panel__content {
    padding-inline: 160px;
  }

  /* Side fills — Figma #4109:47231–47236
     Right: fade image → solid (to right).
     Left: solid → fade into image (mirrored). */
  .cat-panel::before,
  .cat-panel::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: calc((100% - 1920px) / 2 + 120px);
    pointer-events: none;
  }

  .cat-panel::before {
    left: 0;
  }

  .cat-panel::after {
    right: 0;
  }

  .cat-panel[data-world="motorsports"]::before {
    background: linear-gradient(
      to left,
      rgba(21, 55, 3, 0) 0%,
      rgba(21, 55, 3, 1) 29%
    );
  }

  .cat-panel[data-world="motorsports"]::after {
    background: linear-gradient(
      to right,
      rgba(21, 55, 3, 0) 0%,
      rgba(21, 55, 3, 1) 29%
    );
  }

  .cat-panel[data-world="yachting"]::before {
    background: linear-gradient(
      to left,
      rgba(0, 142, 173, 0) 0%,
      rgba(0, 142, 173, 1) 24%
    );
  }

  .cat-panel[data-world="yachting"]::after {
    background: linear-gradient(
      to right,
      rgba(0, 142, 173, 0) 0%,
      rgba(0, 142, 173, 1) 29%
    );
  }

  .cat-panel[data-world="corporate"]::before {
    background: linear-gradient(
      to left,
      rgba(56, 63, 153, 0) 0%,
      rgba(56, 63, 153, 1) 29%
    );
  }

  .cat-panel[data-world="corporate"]::after {
    background: linear-gradient(
      to right,
      rgba(56, 63, 153, 0) 0%,
      rgba(56, 63, 153, 1) 29%
    );
  }
}
