/* Motorsports Landing (0090) — hero matches Figma 4109:39029 / 39231 / 39433 / 39655 */

.ms-hero-wrap {
  /* ≤1279 header is position:fixed — no negative pull.
     ≥1280 header is in-flow (relative) — margin applied in responsive.css */
  margin-top: 0;
}

.ms-hero {
  position: relative;
  height: 772px;
  min-height: 772px;
  color: #fff;
  overflow: hidden;
}

.ms-hero__bg {
  position: absolute;
  inset: 0;
  /* Figma crop shifts right as viewport narrows (default = 360) */
  background: url("../images/lp-motorsport.png") no-repeat 70% center / cover;
}

.ms-hero--yachting .ms-hero__bg {
  background-image: url("../images/lp-yachting.png");
}

.ms-hero--corporate .ms-hero__bg {
  background-image: url("../images/lp-corporate.png");
}

.ms-hero__bg .ph {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.25);
  font-size: 14px;
}

/* Default = 360 overlay */
.ms-hero__overlay {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 396px;
  max-width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.8;
  filter: blur(55px);
  background: linear-gradient(
    90deg,
    rgba(31, 41, 51, 1) 0%,
    rgba(31, 41, 51, 0.4) 100%
  );
}

.ms-hero--yachting .ms-hero__overlay {
  opacity: 0.85;
  background: linear-gradient(
    89deg,
    rgba(31, 41, 51, 0.6) 0%,
    rgba(31, 41, 51, 0.24) 100%
  );
}

.ms-hero--corporate .ms-hero__overlay {
  opacity: 0.8;
  background: linear-gradient(
    90deg,
    rgba(31, 41, 51, 0.88) 0%,
    rgba(31, 41, 51, 0.35) 100%
  );
}

/* Hero content sits on the full-bleed stage (not the page wrapper gutters) */
.ms-hero > .wrapper {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  height: 100%;
  margin: 0;
  padding-inline: 0;
}

/* Default = 360 content */
.ms-hero__content {
  box-sizing: border-box;
  width: 328px;
  max-width: calc(100% - 32px);
  margin: 0 0 0 16px;
  padding: 208px 0 0;
}

.ms-hero__content h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 700;
  line-height: 43px;
  letter-spacing: 0;
  color: #fff;
}

.ms-hero__content p {
  margin: 0 0 32px;
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  color: #fff;
}

/* Figma hero CTA — #F3F4F6 fill, 56px, tablet prefix */
.ms-hero__content .btn--studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  padding: 10px 16px;
  background: #f3f4f6;
  color: #1f2933;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.ms-hero__content .btn--studio:hover {
  background: #ededed;
}

.ms-hero__content .btn--studio:active {
  background: #d1d5db;
}

.ms-hero__content .btn--studio:focus,
.ms-hero__content .btn--studio:focus-visible {
  outline: none;
  background: #f3f4f6;
  border: 1px solid #1f2933;
}

.ms-hero__content .btn--studio:disabled {
  background: #f3f4f6;
  opacity: 0.5;
}

.ms-hero__content .btn--studio .btn__icon {
  width: 28px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}

/*
  Header util icons (cart / help / profile) — category landings (dark / overlay headers)
  default #fff · hover 0.48 · active 0.80 · focus #fff + 1px · disabled charcoal 0.50
*/
.site-header:not(.site-header--light) .header-utils .icon-btn {
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 2px;
  box-sizing: border-box;
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.site-header:not(.site-header--light) .header-utils .icon-btn img {
  display: block;
  transition:
    opacity 0.15s ease,
    filter 0.15s ease;
  opacity: 1;
}

.site-header:not(.site-header--light)
  .header-utils
  .icon-btn:hover:not(:disabled):not(.is-disabled):not([aria-disabled="true"])
  img {
  opacity: 0.48;
}

.site-header:not(.site-header--light)
  .header-utils
  .icon-btn:active:not(:disabled):not(.is-disabled):not([aria-disabled="true"])
  img,
.site-header:not(.site-header--light)
  .header-utils
  .icon-btn.is-active:not(:disabled):not(.is-disabled):not(
    [aria-disabled="true"]
  )
  img {
  opacity: 0.8;
}

.site-header:not(.site-header--light) .header-utils .icon-btn:focus {
  outline: none;
}

.site-header:not(.site-header--light) .header-utils .icon-btn:focus-visible,
.site-header:not(.site-header--light) .header-utils .icon-btn.is-focus {
  border-color: #ffffff;
}

.site-header:not(.site-header--light) .header-utils .icon-btn:focus-visible img,
.site-header:not(.site-header--light) .header-utils .icon-btn.is-focus img {
  opacity: 1;
}

.site-header:not(.site-header--light) .header-utils .icon-btn:disabled,
.site-header:not(.site-header--light) .header-utils .icon-btn.is-disabled,
.site-header:not(.site-header--light)
  .header-utils
  .icon-btn[aria-disabled="true"] {
  cursor: not-allowed;
  pointer-events: none;
}

.site-header:not(.site-header--light) .header-utils .icon-btn:disabled img,
.site-header:not(.site-header--light) .header-utils .icon-btn.is-disabled img,
.site-header:not(.site-header--light)
  .header-utils
  .icon-btn[aria-disabled="true"]
  img {
  /* #1F2933 at 50% opacity */
  opacity: 0.5;
  filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(906%)
    hue-rotate(176deg) brightness(95%) contrast(91%);
}

/* Category landing header — Figma 104 / 75 / 54 */
body:has(.ms-hero) .site-header {
  height: var(--logo-height, 54px);
  min-height: var(--logo-height, 54px);
  padding-block: 0;
  padding-inline: var(--header-pad-x);
}

body:has(.ms-hero) .site-header-content {
  min-height: var(--logo-height, 54px);
  height: var(--logo-height, 54px);
  align-items: flex-start;
  padding-block: 0;
}

body:has(.ms-hero) .site-header .logo {
  background: transparent;
  margin: 0;
  padding: 0;
  align-self: flex-start;
}

body:has(.ms-hero) .site-header .logo,
body:has(.ms-hero) .site-header .logo img {
  width: var(--logo-width, 134px);
  height: var(--logo-height, 54px);
  max-width: var(--logo-width, 134px);
  max-height: var(--logo-height, 54px);
}

.ms-section {
  padding: 48px 0;
}

.ms-section:has(.roles-grid) {
  padding-top: 60px;
  padding-bottom: 48px;
}

.ms-section__title {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-800);
  margin-bottom: 22px;
  line-height: 30px;
}

.ms-section:has(.roles-grid) .ms-section__title {
  margin-bottom: 24px;
}

.core-products {
  display: grid;
  grid-template-columns: repeat(4, var(--product-card-width));
  gap: 24px var(--product-card-gap);
  justify-content: center;
  max-width: var(--content-width);
  width: 100%;
  margin-inline: auto;
}

/* Design Studio section */
.design-studio__bg {
  position: relative;
  min-height: 315px;
  background: url(../images/landing/studio-bg-motosport.png) center / cover
    no-repeat;
  padding: 0;
  overflow: hidden;
}

.design-studio__bg--yachting {
  background: url(../images/landing/studio-bg-yachting.png) center / cover
    no-repeat;
}

.design-studio__bg--corporate {
  background: url(../images/landing/studio-bg-corporate.png) center / cover
    no-repeat;
}

.design-studio__bg > .wrapper {
  position: relative;
  z-index: 1;
  min-height: 315px;
  display: flex;
  align-items: center;
}

/* Figma Launch Design Studio — dark #1F2933, tablet icon, 56px */
.design-studio__content .btn--studio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  height: 56px;
  min-height: 56px;
  padding: 10px 16px;
  background: #1f2933;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.design-studio__content .btn--studio:hover {
  background: rgba(31, 41, 51, 0.7);
}

.design-studio__content .btn--studio:active {
  background: rgba(31, 41, 51, 0.9);
}

.design-studio__content .btn--studio:focus,
.design-studio__content .btn--studio:focus-visible {
  outline: none;
  background: #1f2933;
  border-color: #8f9499;
}

.design-studio__content .btn--studio .btn__icon {
  width: 28px;
  height: 20px;
  display: block;
  flex-shrink: 0;
  /* Dark charcoal icon → white on dark button */
  filter: brightness(0) invert(1);
}

.logo--landing {
  background: transparent;
}

.logo--landing img {
  width: var(--logo-width, 258px);
  height: var(--logo-height, 104px);
  max-width: var(--logo-width, 258px);
  max-height: var(--logo-height, 104px);
  display: block;
  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)));
}

/* Logged-out header actions (Figma Button/LogIn Sign Up) */
.header-auth {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-auth__login {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.header-auth__login:hover {
  color: rgba(255, 255, 255, 0.85);
}

.header-auth__signup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 24px;
  background: #fff;
  color: #1f2933;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  border-radius: 2px;
  white-space: nowrap;
}

.header-auth__signup:hover {
  background: #f3f4f6;
}

.design-studio {
  display: flex;
  gap: 55px;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
  /* Visual @ viewport 592/272 → 182px inside centered 1100 wrapper */
  padding-left: 182px;
  box-sizing: border-box;
  min-height: 315px;
}

.design-studio__visual {
  position: relative;
  flex-shrink: 0;
  width: 307px;
}

.design-studio__visual img,
.design-studio__hotspots img.design-studio__product,
.design-studio__hotspots img {
  height: 285px;
  max-width: 100%;
  width: auto;
  object-fit: cover;
  display: block;
  filter: drop-shadow(0 4px 32px rgba(255, 255, 255, 0.12));
}

.design-studio__hotspots {
  position: relative;
  padding-top: 30px;
}

/* .design-studio__hotspots img {
  width: 100%;
  max-width: 380px;
} */

.design-studio__zone {
  position: absolute;
  border: 1.25px dashed #000;
  border-radius: 2px;
  background: rgba(129, 144, 158, 0.16);
  box-shadow: 0 4px 4px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.design-studio__bg--yachting .design-studio__zone {
  left: 22%;
  top: 34%;
  width: 55%;
  height: 29%;
}

.design-studio__bg--corporate .design-studio__zone {
  left: 30%;
  top: 32%;
  width: 42%;
  height: 36%;
  box-shadow: 0 4px 4px rgba(255, 255, 255, 0.28);
}

.design-studio__cursor {
  position: absolute;
  width: 36px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 4px 4px rgba(255, 255, 255, 0.16));
  z-index: 2;
}

.design-studio__bg--yachting .design-studio__cursor {
  left: 68%;
  top: 58%;
}

.design-studio__bg--corporate .design-studio__cursor {
  left: 66%;
  top: 62%;
  filter: drop-shadow(0 4px 4px rgba(255, 255, 255, 0.46));
}

.design-studio__visual .ph {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #e5e7eb, #d1d5db);
}

.design-studio__content .section-label {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.design-studio__content h2 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  color: #fff;
}

.design-studio__content p {
  font-size: 16px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 28px;
  max-width: 406px;
  line-height: 1.25;
}

/* Roles section — Figma 348×236 cards, 24px gap */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 348px);
  gap: 24px;
  justify-content: center;
  max-width: none;
  margin-inline: auto;
  margin-bottom: 24px;
}

.role-card {
  width: 348px;
}

.role-card__media {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  height: 236px;
}

.role-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.role-card__media .ph {
  width: 100%;
}

.role-card__label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%);
  color: #fff;
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.02em;
  min-height: 94px;
  display: flex;
  align-items: flex-end;
}

.role-card p {
  font-size: 16px;
  color: var(--primary-800);
  line-height: 24px;
}

.roles-cta {
  text-align: center;
}

/* Figma 4109:39054 — Button / Why Teams Choose Us (+ Learn How We Do It)
   Arrow layout: Figma 4109:8769 — 20px from right; label centered in remaining width */
.btn--roles {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 240px;
  min-width: 240px;
  height: auto;
  min-height: 0;
  padding: 10px 38px 10px 0; /* 20px + 18px arrow */
  gap: 0;
  background: #1f2933;
  color: #ffffff;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: 3px;
  text-decoration: none;
  white-space: nowrap;
}

.btn--roles:hover {
  background: rgba(31, 41, 51, 0.7);
}

.btn--roles:active {
  background: rgba(31, 41, 51, 0.9);
}

.btn--roles:focus,
.btn--roles:focus-visible {
  background: #1f2933;
  border-color: #8f9499;
  outline: none;
}

.btn--roles:disabled {
  background: #1f2933;
  opacity: 0.5;
}

.btn--roles .btn__icon {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 12px;
  display: block;
  flex-shrink: 0;
}

/* Complex project banner */
.complex-banner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--primary-800);
  color: #fff;
  padding: 64px 48px;
}

.pre-footer-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}

.pre-footer-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 50%;
  background: #fff;
  filter: blur(100px);
  opacity: 0.7;
}

.complex-banner__text {
  max-width: 450px;
}
.complex-banner__text h2 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  color: #fff;
}

.complex-banner__text p {
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 28px;
  line-height: 1.6;
}

.complex-banner__visual {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.complex-banner__visual img {
  filter: drop-shadow(0 20px 10px rgba(0, 0, 0, 0.25));
  margin-top: 20px;
}

.complex-banner__visual .ph {
  width: 160px;
  height: 190px;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #e5e7eb, #9ca3af);
}

.complex-banner__visual .ph:nth-child(3),
.complex-banner__visual .ph:nth-child(4) {
  background: linear-gradient(160deg, #1e3d2f, #2d6a4f);
  color: rgba(255, 255, 255, 0.4);
}

/* Segment landing responsive rules live in css/responsive.css */

@media (min-width: 1280px) {
  .pre-footer-content {
    flex-direction: row-reverse;
    align-items: center;
  }
  .complex-banner__visual img {
    margin-top: -30px;
  }
}
