/*
 * Copyright (c) 2026 MCTrailer.dk - All rights reserved.
 * Proprietary and confidential. Unauthorized copying or distribution is prohibited.
 */

:root {
  color-scheme: dark;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --accent: #ff5a1f;
  --accent-soft: #ffb14a;
  --control-radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { width: 100%; min-height: 100%; margin: 0; background: #050505; }
body { overflow: hidden; color: #fff; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  isolation: isolate;
  overflow: hidden;
  background: #050505;
}

.scene,
.background,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scene { z-index: 0; }

.background {
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.background--preview {
  background-image: url('assets/background-preview.jpg');
  image-rendering: pixelated;
  filter: saturate(.86) contrast(1.05) blur(.25px);
  opacity: 1;
  transition: opacity 650ms ease;
}

.background--full {
  background-image: none;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 850ms ease, transform 1400ms cubic-bezier(.2,.8,.2,1);
  will-change: opacity, transform;
}

.hero.is-background-ready .background--preview { opacity: 0; }
.hero.is-background-ready.is-preview-only .background--preview { opacity: 1; }
.hero.is-background-ready .background--full { opacity: 1; transform: scale(1); }
.hero.is-background-ready.is-preview-only .background--full { opacity: 0; }

.grain {
  z-index: 2;
  pointer-events: none;
  opacity: .45;
  mix-blend-mode: soft-light;
  transition: opacity 850ms ease;
}
.hero.is-background-ready .grain { opacity: .07; }

.page-shell { position: relative; z-index: 4; width: 100%; height: 100%; }

.topbar {
  position: absolute;
  top: max(22px, calc(var(--safe-top) + 16px));
  left: max(28px, calc(var(--safe-left) + 22px));
  right: max(28px, calc(var(--safe-right) + 22px));
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.topbar__actions { display: flex; gap: .65rem; }
.panel-toggle,
.submit-button {
  border: 1px solid rgba(255,255,255,.32);
  border-radius: var(--control-radius);
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(12px);
  cursor: pointer;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel-toggle { padding: .78rem 1.1rem; }
.panel-toggle:hover { background: rgba(255,255,255,.12); }
.panel-toggle:focus-visible,
.location-trigger:focus-visible,
.side-panel__close:focus-visible,
.submit-button:focus-visible,
.directions-button:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 3px; }

.content {
  position: absolute;
  left: max(6vw, calc(var(--safe-left) + 24px));
  top: 10%;
  max-width: min(720px, 58vw);
  text-shadow: 0 4px 24px rgba(0,0,0,.75);
}

.content > *,
.price-card {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  will-change: opacity, transform;
}

.price-card--featured {
  --card-rest-y: -14px;
}

.hero.is-content-ready .content > * {
  animation: content-reveal 780ms cubic-bezier(.2,.75,.2,1) forwards;
}

.hero.is-content-ready .content > :nth-child(1) { animation-delay: 180ms; }
.hero.is-content-ready .content > :nth-child(2) { animation-delay: 300ms; }
.hero.is-content-ready .content > :nth-child(3) { animation-delay: 450ms; }

.hero.is-content-ready .price-card {
  animation: card-reveal 720ms cubic-bezier(.2,.75,.2,1) forwards;
}

.hero.is-content-ready .price-card:nth-child(1) { animation-delay: 620ms; }
.hero.is-content-ready .price-card:nth-child(2) { animation-delay: 730ms; }
.hero.is-content-ready .price-card:nth-child(3) { animation-delay: 840ms; }

@keyframes content-reveal {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes card-reveal {
  to { opacity: 1; transform: translate3d(0, var(--card-rest-y, 0px), 0); }
}

.eyebrow { display: block; margin-bottom: .7rem; color: rgba(255,255,255,.84); font-size: clamp(.7rem, 1vw, .92rem); font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3rem, 6.7vw, 7.5rem); line-height: .87; letter-spacing: -.06em; text-transform: uppercase; }
.intro {
  max-width: 35rem;
  margin: 1.2rem 0 0;
  color: #fff;
  font-size: clamp(.95rem, 1.25vw, 1.15rem);
  font-weight: 650;
  line-height: 1.5;
  -webkit-text-stroke: .35px rgba(0,0,0,.95);
  text-shadow:
    -1px -1px 0 rgba(0,0,0,.95),
     1px -1px 0 rgba(0,0,0,.95),
    -1px  1px 0 rgba(0,0,0,.95),
     1px  1px 0 rgba(0,0,0,.95),
     0 3px 12px rgba(0,0,0,.95),
     0 8px 28px rgba(0,0,0,.8);
}

.panel-toggle.location-trigger {
  position: relative; display: inline-flex; gap: .42em; align-items: baseline; vertical-align: baseline;
  padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  color: var(--accent-soft); font: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; text-transform: none; text-shadow: inherit; -webkit-text-stroke: inherit; cursor: pointer; backdrop-filter: none;
  -webkit-appearance: none; appearance: none;
  transition: color 180ms ease;
}
.location-trigger:hover { background: transparent; color: var(--accent-soft); }
.location-trigger__pin { align-self: center; flex: 0 0 auto; width: .8em; height: .8em; border: .12em solid var(--accent-soft); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 .06em rgba(0,0,0,.8), 0 0 .12em rgba(0,0,0,.8); }
.location-trigger__label { position: relative; isolation: isolate; line-height: inherit; }
.panel-toggle.accessory-trigger {
  position: relative;
  isolation: isolate;
  padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none;
  color: var(--accent-soft); font: inherit; font-size: inherit; line-height: inherit; letter-spacing: inherit; text-transform: none; text-shadow: inherit; -webkit-text-stroke: inherit; cursor: pointer; backdrop-filter: none;
  -webkit-appearance: none; appearance: none;
  transition: color 180ms ease;
}
.accessory-trigger:hover { background: transparent; color: var(--accent-soft); }

.location-trigger__label::after,
.accessory-trigger::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: .02em;
  bottom: -.12em;
  background:
    linear-gradient(90deg, transparent, var(--accent-soft) 18%, var(--accent-soft) 82%, transparent) top / 100% 2px no-repeat,
    linear-gradient(90deg, transparent, var(--accent-soft) 18%, var(--accent-soft) 82%, transparent) bottom / 100% 2px no-repeat;
  box-shadow: 0 0 7px rgba(255,133,61,.45);
  z-index: -1;
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.accessory-trigger::after { box-shadow: none; }

.location-trigger:hover .location-trigger__label::after,
.accessory-trigger:hover::after {
  opacity: .9;
}

.location-trigger:focus-visible .location-trigger__label::after,
.accessory-trigger:focus-visible::after {
  opacity: .9;
}

.prices {
  position: absolute;
  right: max(4vw, calc(var(--safe-right) + 24px));
  bottom: max(90px, calc(var(--safe-bottom) + 74px));
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 190px));
  gap: .75rem;
  transition: transform 480ms cubic-bezier(.65,0,.35,1);
}

.hero.is-panel-open .prices {
  transform: translate3d(110vw, 0, 0);
  pointer-events: none;
}

.price-card {
  position: relative;
  min-height: 156px;
  padding: 1.15rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(8,8,8,.55), rgba(2,2,2,.27));
  -webkit-backdrop-filter: blur(14px) saturate(1.12) brightness(1);
  backdrop-filter: blur(14px) saturate(1.12) brightness(1);
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.price-card--featured { border-color: rgba(255,133,61,.72); transform: translateY(-14px); box-shadow: 0 18px 50px rgba(255,76,22,.18); }
.price-card__badge { position: absolute; top: -.65rem; right: .9rem; padding: .35rem .62rem; border-radius: 999px; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #170701; font-size: .62rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.price-card__period { display: block; margin-bottom: .65rem; color: rgba(255,255,255,.67); font-size: .72rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.price-card__price { display: block; font-size: clamp(1.65rem, 2.5vw, 2.55rem); line-height: 1; letter-spacing: -.055em; white-space: nowrap; }
.price-card__price span { font-size: .86rem; letter-spacing: 0; }
.price-card small { display: block; margin-top: .75rem; color: rgba(255,255,255,.58); line-height: 1.3; }

.side-panel {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: min(430px, 100%);
  height: 100%;
  padding: max(72px, calc(var(--safe-top) + 58px)) max(28px, calc(var(--safe-right) + 24px)) max(28px, calc(var(--safe-bottom) + 24px)) 28px;
  background: rgba(7,7,7,.9);
  backdrop-filter: blur(26px) saturate(1.25);
  border-left: 1px solid rgba(255,255,255,.14);
  box-shadow: -30px 0 80px rgba(0,0,0,.42);
  transform: translateX(105%);
  transition: transform 430ms cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
}
.side-panel.is-open { transform: translateX(0); }
.side-panel__close { position: absolute; top: max(18px, calc(var(--safe-top) + 12px)); right: max(18px, calc(var(--safe-right) + 12px)); width: 2.6rem; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.2); border-radius: var(--control-radius); background: rgba(255,255,255,.06); cursor: pointer; font-size: 1.65rem; line-height: 1; }
.side-panel h2 { margin: 0 0 1.25rem; font-size: clamp(2rem, 4vw, 2.8rem); line-height: .95; letter-spacing: -.05em; text-transform: uppercase; }
.specifications-list { display: grid; margin: 0; }
.specifications-list div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.25rem; align-items: baseline; padding: .76rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.specifications-list dt { color: rgba(255,255,255,.62); font-size: .73rem; font-weight: 800; letter-spacing: .075em; text-transform: uppercase; }
.specifications-list dd { margin: 0; font-size: .95rem; font-weight: 750; text-align: right; }
.straps-visual { position: relative; margin: 1.15rem 0 0; overflow: hidden; border: 1px solid rgba(255,177,74,.4); border-radius: 18px; background: radial-gradient(circle at 62% 38%, rgba(255,90,31,.18), transparent 48%), #050505; box-shadow: 0 25px 60px rgba(0,0,0,.45); }
.straps-visual::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; box-shadow: inset 0 -30px 45px rgba(0,0,0,.2); pointer-events: none; }
.straps-visual img { display: block; width: 100%; height: auto; filter: saturate(.92) contrast(1.06); }
.gallery-stage {
  position: relative;
  aspect-ratio: 533 / 400;
  overflow: hidden;
  border: 1px solid rgba(255,177,74,.4);
  border-radius: 18px;
  background: #050505 url('assets/Gallery/Background.jpg') center / cover no-repeat;
  box-shadow: 0 20px 45px rgba(0,0,0,.35);
}
.gallery-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 500ms ease;
}
.gallery-image.is-active { z-index: 1; opacity: 1; }
.gallery-thumbnails {
  display: flex;
  gap: .65rem;
  margin-top: .8rem;
  padding: 2px 2px .4rem;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-soft) rgba(255,255,255,.1);
}
.gallery-thumbnail {
  flex: 0 0 88px;
  width: 88px;
  height: 66px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #050505;
  opacity: .58;
  cursor: pointer;
  transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.gallery-thumbnail:hover { opacity: .82; }
.gallery-thumbnail.is-active { border-color: var(--accent-soft); opacity: 1; transform: translateY(-2px); }
.gallery-thumbnail:focus-visible { outline: 3px solid var(--accent-soft); outline-offset: 2px; }
.gallery-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.contact-panel form { display: grid; gap: .9rem; }
.map-panel h2 { margin-bottom: 1rem; }
.map-frame { position: relative; height: min(48vh, 410px); min-height: 270px; overflow: hidden; border: 1px solid rgba(255,177,74,.4); border-radius: 18px; background: #151515; box-shadow: 0 25px 60px rgba(0,0,0,.45); }
.map-frame::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(255,255,255,.08); border-radius: inherit; pointer-events: none; }
.map-frame iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.91) contrast(.92) hue-rotate(165deg); }
.map-frame__label { position: absolute; right: .65rem; bottom: .65rem; display: flex; gap: .55rem; padding: .44rem .62rem; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(5,5,5,.84); color: rgba(255,255,255,.7); font-size: .58rem; font-weight: 850; letter-spacing: .12em; }
.map-panel__note { margin: 1rem 0 1.3rem; color: rgba(255,255,255,.6); font-size: .78rem; line-height: 1.5; }
.directions-button { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding: 1rem 1.1rem; border-radius: var(--control-radius); background: linear-gradient(135deg, var(--accent-soft), var(--accent)); box-shadow: 0 12px 32px rgba(255,76,22,.22); color: #190802; font-size: .76rem; font-weight: 900; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; transition: transform 180ms ease, box-shadow 180ms ease; }
.directions-button:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255,76,22,.32); }
.contact-panel label { display: grid; gap: .35rem; color: rgba(255,255,255,.74); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-panel input,
.contact-panel textarea { width: 100%; border: 1px solid rgba(255,255,255,.16); border-radius: var(--control-radius); outline: none; background: rgba(255,255,255,.055); color: #fff; padding: .8rem .9rem; font-size: 1rem; letter-spacing: 0; text-transform: none; resize: vertical; }
.contact-panel input:focus,
.contact-panel textarea:focus { border-color: rgba(255,135,73,.82); box-shadow: 0 0 0 3px rgba(255,102,31,.12); }
.submit-button { width: 100%; margin-top: .25rem; padding: .95rem 1rem; border-color: transparent; background: linear-gradient(135deg, var(--accent-soft), var(--accent)); color: #190802; }
.submit-button:disabled { cursor: wait; opacity: .65; }
.form-note { margin: 0; color: rgba(255,255,255,.45); font-size: .72rem; line-height: 1.4; }
.form-status { min-height: 1.4em; margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }
.form-status.is-success { color: #8ee6a8; }
.form-status.is-error { color: #d83612; }
.form-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.copyright {
  position: absolute;
  z-index: 6;
  right: max(18px, calc(var(--safe-right) + 14px));
  bottom: max(52px, calc(var(--safe-bottom) + 48px));
  margin: 0;
  color: rgba(72,72,72,.82);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.bottom-line {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(3,3,3,.56);
  backdrop-filter: blur(12px);
}
.bottom-line__track { display: flex; width: max-content; padding: .85rem 0 calc(.85rem + var(--safe-bottom)); animation: ticker var(--ticker-duration, 28s) linear infinite; will-change: transform; }
.bottom-line__track span { flex: none; font-size: .7rem; font-weight: 850; letter-spacing: .22em; white-space: nowrap; color: rgba(255,255,255,.68); }
@keyframes ticker { to { transform: translateX(calc(-1 * var(--ticker-distance, 50%))); } }

@media (max-width: 1050px) {
  .content { top: 15%; max-width: 72vw; }
  .prices { grid-template-columns: repeat(3, minmax(138px, 1fr)); left: max(22px, calc(var(--safe-left) + 18px)); right: max(22px, calc(var(--safe-right) + 18px)); bottom: max(84px, calc(var(--safe-bottom) + 68px)); }
}

@media (max-width: 700px) {
  body { overflow: auto; }
  .hero { min-height: 760px; height: 100svh; }
  .background { background-position: 58% center; }
  .topbar { left: max(18px, calc(var(--safe-left) + 14px)); right: max(18px, calc(var(--safe-right) + 14px)); }
  .topbar__actions { width: 100%; gap: .45rem; }
  .topbar__actions .panel-toggle { flex: 1 1 0; min-width: 0; padding: .7rem .45rem; font-size: clamp(.62rem, 2.8vw, .7rem); letter-spacing: .065em; }
  .topbar__actions .specifications-toggle { font-size: 0; }
  .topbar__actions .specifications-toggle::after {
    content: 'Specs';
    font-size: clamp(.62rem, 2.8vw, .7rem);
    letter-spacing: .065em;
  }
  .content .panel-toggle { padding: 0; font-size: inherit; }
  .content { top: 11%; left: max(20px, calc(var(--safe-left) + 16px)); max-width: 92vw; }
  h1 { font-size: clamp(3rem, 15vw, 5.2rem); }
  .intro { max-width: 88vw; font-size: clamp(.8rem, calc(.65rem + .62vw), .92rem); }
  .prices { left: max(16px, calc(var(--safe-left) + 12px)); right: max(16px, calc(var(--safe-right) + 12px)); bottom: max(76px, calc(var(--safe-bottom) + 64px)); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
  .price-card { min-height: 124px; padding: .78rem .58rem; border-radius: 14px; }
  .price-card--featured { --card-rest-y: -7px; transform: translateY(11px); }
  .price-card__badge { right: .4rem; padding: .28rem .4rem; font-size: .5rem; }
  .price-card__period { font-size: .59rem; letter-spacing: .09em; }
  .price-card__price { font-size: clamp(1.12rem, 5.1vw, 1.55rem); }
  .price-card__price span { font-size: .62rem; }
  .price-card small { margin-top: .55rem; font-size: .6rem; }
  .bottom-line__track span { font-size: .62rem; }
}

@media (max-width: 390px) {
  .hero { min-height: 700px; }
  .content { top: 10%; }
  .intro {
    display: block;
    max-width: calc(100vw - 40px);
    margin-top: .8rem;
    line-height: 1.35;
  }
  .prices { bottom: max(70px, calc(var(--safe-bottom) + 58px)); }
  .price-card { min-height: 112px; }
  .price-card small { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .bottom-line__track { transform: none !important; }
  .grain { opacity: .04; }
}
