/* ==========================================================================
   NASHORN – Layout (containers, header, sections, footer)
   Developed by webndo
   ========================================================================== */

.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

.container--wide {
  width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
}

.section {
  position: relative;
  padding-block: var(--space-section);
}

.section--dark {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-900);
}

.section--dark .h2,
.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.br-desktop {
  display: none;
}

@media (min-width: 1200px) {
  .br-desktop {
    display: inline;
  }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(243, 246, 249, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(12, 26, 41, 0.06);
  transition:
    height var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled {
  height: var(--header-h-compact);
  background: rgba(250, 251, 253, 0.94);
  border-color: rgba(12, 26, 41, 0.08);
  box-shadow: var(--shadow-header);
}

.site-header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 32px;
}

.site-header__logo {
  display: block;
  flex: none;
  margin-right: auto;
}

.site-header__logo img {
  width: auto;
  height: 52px;
  transition: height var(--dur-base) var(--ease-out);
}

.site-header.is-scrolled .site-header__logo img {
  height: 44px;
}

.primary-nav {
  display: flex;
  align-items: stretch;
  height: 100%;
  margin-right: 16px;
}

.primary-nav__list {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: clamp(14px, 1.35vw, 28px);
}

.primary-nav__item {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-header__cta {
  flex: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  --hero-body: clamp(560px, 64.6vw, 1000px);
  position: relative;
  min-height: calc(var(--header-h) + var(--hero-body));
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--surface-tint);
}

.hero__media {
  position: absolute;
  inset: var(--header-h) 0 0 0;
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 0% 50%;
}

.hero__panel {
  position: relative;
  min-height: var(--hero-body);
}

.hero__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 46%;
  background: linear-gradient(180deg, rgba(244, 246, 249, 0.9) 0%, rgba(240, 243, 247, 0.84) 60%, rgba(236, 240, 244, 0.8) 100%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  backdrop-filter: blur(12px) saturate(120%);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.5);
}

.hero__content {
  position: relative;
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
  padding-top: clamp(56px, 6.2vw, 92px);
  padding-bottom: 72px;
}

.hero__content > * {
  max-width: 560px;
}

@media (min-width: 1200px) {
  .hero .eyebrow {
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Section heads
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: clamp(32px, 3vw, 44px);
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px 56px;
  align-items: end;
}

@media (min-width: 1200px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr) 290px 200px;
    column-gap: 44px;
  }

  .section-head__text {
    align-self: end;
    padding-bottom: 6px;
  }

  .section-head__link {
    justify-self: end;
    align-self: center;
    margin-top: 44px;
  }
}

.section-head__text {
  max-width: 420px;
  font-size: var(--fs-body);
  line-height: 1.62;
  color: var(--muted-text);
}

.section--dark .section-head__text {
  color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   02 Product lines
   -------------------------------------------------------------------------- */
.product-lines {
  padding-top: clamp(56px, 4vw + 16px, 76px);
  padding-bottom: clamp(48px, 3.4vw, 60px);
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(231, 237, 241, 0.7), transparent 70%),
    #F9FAFC;
}

.product-lines__head {
  padding-inline: clamp(0px, 2vw, 28px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* --------------------------------------------------------------------------
   03 Rokmob feature
   -------------------------------------------------------------------------- */
.feature {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(520px, 41vw, 620px);
  overflow: hidden;
  background: #F4F2EE;
}

.feature__media {
  position: absolute;
  inset: 0 0 0 30%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 26%);
}

.feature__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 60%;
}

.feature__inner {
  position: relative;
  padding-block: clamp(56px, 4vw + 8px, 72px);
}

.feature__content {
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   04 Rokmob categories
   -------------------------------------------------------------------------- */
.categories {
  padding-top: clamp(48px, 3vw + 12px, 56px);
  padding-bottom: clamp(48px, 3vw + 16px, 60px);
  background: var(--surface-tint);
}

.categories .section-head {
  margin-bottom: 30px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

/* --------------------------------------------------------------------------
   05 Featured product
   -------------------------------------------------------------------------- */
.featured {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 43vw, 660px);
  overflow: hidden;
  background: linear-gradient(90deg, #F2F5F9 0%, #EEF2F6 100%);
}

.featured__media {
  position: absolute;
  inset: 0 0 0 40%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.featured__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
  opacity: 0;
}

.featured__media video.is-playing {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .featured__media video {
    display: none;
  }
}

.featured__inner {
  position: relative;
  padding-block: clamp(64px, 5vw, 80px);
}

.featured__content {
  max-width: 500px;
}

/* --------------------------------------------------------------------------
   06 Application areas
   -------------------------------------------------------------------------- */
.applications {
  padding-top: clamp(104px, 6vw + 32px, 128px);
  padding-bottom: clamp(104px, 6vw + 32px, 128px);
  overflow: visible;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(900px 420px at 85% 0%, rgba(0, 159, 227, 0.1), transparent 70%),
    linear-gradient(180deg, #13263A 0%, var(--navy-900) 100%);
}

.applications__head {
  padding-inline: 0;
  margin-bottom: 40px;
}

@media (min-width: 1200px) {
  .applications__head {
    grid-template-columns: minmax(0, 1fr) 420px;
    margin-bottom: 64px;
  }
}

@media (min-width: 1200px) {
  .application-grid {
    --app-gap: 14px;
    container-type: size;
    position: relative;
    width: 100%;
    height: clamp(364px, 43.4vh, 462px);
  }

  .application-grid {
    width: min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px));
    margin-inline: auto;
  }

  .application-grid > li {
    --skew: 8.66cqh;
    --w: calc((100% - 2 * var(--app-gap)) / 3);
    position: absolute;
    bottom: 0;
    z-index: 1;
    height: 100%;
    margin: 0;
    pointer-events: none;
    container-type: size;
    transition: height 640ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .application-grid > li:nth-child(1) {
    left: 0;
    width: calc(var(--w) + var(--skew) / 2);
  }

  .application-grid > li:nth-child(2) {
    left: calc(var(--w) - var(--skew) / 2 + var(--app-gap));
    width: calc(var(--w) + var(--skew));
  }

  .application-grid > li:nth-child(3) {
    right: 0;
    width: calc(var(--w) + var(--skew) / 2);
  }
}

/* --------------------------------------------------------------------------
   07 Product engineering
   -------------------------------------------------------------------------- */
.engineering {
  padding-top: clamp(88px, 5.2vw + 24px, 112px);
  padding-bottom: clamp(80px, 4.6vw + 20px, 100px);
  overflow: hidden;
  background:
    radial-gradient(700px 520px at 72% 55%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    linear-gradient(100deg, #EDF2F8 0%, #F4F7FA 45%, #EEF2F6 100%);
}

@media (min-width: 1200px) {
  .engineering__inner {
    display: grid;
    grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }
}

.engineering__content {
  align-self: center;
}

/* --------------------------------------------------------------------------
   08 + 09 Showroom / About
   -------------------------------------------------------------------------- */
.duo {
  display: block;
  min-height: 0;
}

.about {
  display: flex;
  align-items: center;
  background: #F1F4F8;
}

@media (min-width: 1200px) {
  .about__inner {
    width: min(920px, 100% - 2 * min(var(--gutter), 40px));
    max-width: none;
    margin-left: max(min(var(--gutter), 40px), calc((100% - min(var(--container-wide), 100% - 2 * min(var(--gutter), 40px))) / 2));
    margin-right: auto;
    padding: clamp(72px, 6vw, 96px) 0;
  }
}

/* --------------------------------------------------------------------------
   10 News
   -------------------------------------------------------------------------- */
.news {
  padding-block: clamp(52px, 3vw + 16px, 64px);
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(231, 237, 241, 0.9), transparent 70%),
    #F1F5F9;
}

.news__inner {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 72px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

/* --------------------------------------------------------------------------
   11 Final CTA
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(340px, 25vw, 390px);
  overflow: hidden;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-900);
}

.cta__media {
  position: absolute;
  inset: 0 0 0 28%;
  overflow: hidden;
}

.cta__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--navy-900) 0%, rgba(13, 28, 39, 0.82) 28%, rgba(13, 28, 39, 0.35) 62%, rgba(13, 28, 39, 0.2) 100%),
    linear-gradient(0deg, rgba(13, 28, 39, 0.55) 0%, rgba(13, 28, 39, 0) 45%);
}

.cta__inner {
  position: relative;
  padding-block: 56px;
}

.cta__content {
  max-width: 560px;
}

.cta .h2 {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.66);
  background: #0F1E29;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-small);
}

.site-footer > .container {
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(4, minmax(0, 0.8fr)) minmax(0, 1.05fr);
  gap: 32px;
  padding-block: 44px 34px;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}

@media (min-width: 1200px) {
  .site-footer__grid {
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(0, 0.78fr)) minmax(190px, 1.08fr);
    column-gap: 40px;
    row-gap: 0;
    padding-block: 92px 48px;
  }

  .site-footer__bottom {
    padding-block: 22px 36px;
  }
}
