/*
 * Landing Page 7 — services overview over a live 3D landscape + full-screen service pages.
 * Loaded after landing-6.css (all tokens, type and buttons come from there).
 */

/* ---------- Services: six cards in one view (3 x 2 on wide screens, 2 x 3 on phones) ---------- */
.lp7-services { padding-block: clamp(26px, 3vw, 44px) clamp(40px, 5vw, 64px); color: var(--cream);
  background: radial-gradient(90% 70% at 70% 0%, #24443A 0%, rgba(36, 68, 58, 0) 60%), linear-gradient(180deg, #16302A, #13261F); }
.lp7-services.has-live { background: transparent; } /* the 3D landscape (fixed layer behind) shows through */
.lp7-services::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 120px; pointer-events: none; background: linear-gradient(180deg, rgba(10, 18, 14, .5), rgba(10, 18, 14, 0)); }
.lp7-services > .lp6-wrap { position: relative; }
.lp7-svc__head { max-width: none; transition: opacity .35s var(--ease), transform .5s var(--ease); }
.lp7-svc__head .lp6-eyebrow { color: var(--gold-l); }
.lp7-svc__head .lp6-h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-top: 10px; }
.lp7-svc__head .lp6-sub { color: rgba(251, 248, 243, .78); margin-top: 8px; font-size: .98rem; max-width: 460px; }

.lp7-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: clamp(18px, 2.4vw, 30px); perspective: 1400px; }
.lp7-cards > li { transition: opacity .5s var(--ease), transform .7s var(--ease); }
.lp7-card { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; overflow: hidden; color: var(--cream);
  background: rgba(13, 25, 20, .78); border: 1px solid rgba(251, 248, 243, .15); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .8);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d;
  transition: transform .6s var(--ease), border-color .4s var(--ease), box-shadow .6s var(--ease), background-color .4s var(--ease); }
/* light that follows the pointer */
.lp7-card::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(233, 179, 106, .26), rgba(233, 179, 106, 0) 62%); }
/* HUD corner ticks */
.lp7-card::after { content: ""; position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 12px; height: 12px; pointer-events: none;
  border-right: 1px solid rgba(227, 200, 138, .7); border-bottom: 1px solid rgba(227, 200, 138, .7); opacity: .55; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.lp7-card__media { position: relative; flex: none; height: clamp(56px, 9vh, 80px); overflow: hidden; background: var(--forest-900); }
.lp7-card__media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; transition: transform 1.3s var(--ease); }
.lp7-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13, 25, 20, .96) 2%, rgba(13, 25, 20, .15) 60%, rgba(13, 25, 20, .25)); }
.lp7-card__body { position: relative; z-index: 2; flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 10px 13px 12px; }
.lp7-card__num, .lp7-card p { display: none; }
.lp7-card__tag { display: block; font: 500 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l); white-space: nowrap; overflow: hidden; }
.lp7-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.12rem; line-height: 1.15; color: #fff; margin-top: 7px; }
.lp7-card__open { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 9px; font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 248, 243, .82); }
.lp7-card__open::after { content: ""; position: absolute; inset: 0; z-index: 3; border-radius: inherit; } /* the whole card is the target */
.lp7-card__open .lp6-icon { transition: transform .45s var(--ease); color: var(--gold-l); }
.lp7-card__open:focus-visible { outline: none; }
.lp7-card:has(.lp7-card__open:focus-visible) { outline: 2px solid var(--gold-l); outline-offset: 3px; }

@media (hover: hover) {
  .lp7-card:hover { border-color: rgba(227, 200, 138, .6); background: rgba(13, 25, 20, .9); box-shadow: 0 46px 80px -36px rgba(0, 0, 0, .95), 0 0 0 1px rgba(227, 200, 138, .14); transition-duration: .18s, .4s, .6s, .4s; }
  .lp7-card:hover::before { opacity: 1; }
  .lp7-card:hover::after { opacity: 1; transform: translate(3px, 3px); }
  .lp7-card:hover .lp7-card__media img { transform: scale(1.09) translate(calc((var(--mx, 50%) - 50%) * -.06), calc((var(--my, 50%) - 50%) * -.06)); }
  .lp7-card:hover .lp7-card__open { color: #fff; }
  .lp7-card:hover .lp7-card__open .lp6-icon { transform: translateX(7px); }
  /* the others step back */
  .lp7-cards:has(.lp7-card:hover) > li:not(:hover) { opacity: .5; transform: scale(.985); }
}

@media (min-width: 600px) {
  .lp7-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: rgba(251, 248, 243, .68); }
  .lp7-card h3 { font-size: 1.35rem; }
  .lp7-card__body { padding: 12px 16px 14px; }
}
@media (min-width: 900px) {
  .lp7-svc__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 40px; align-items: end; }
  .lp7-svc__head .lp6-eyebrow { grid-column: 1 / -1; justify-self: start; }
  .lp7-svc__head .lp6-sub { margin: 0 0 8px; text-align: right; }
  .lp7-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .lp7-card { border-radius: 24px; }
  .lp7-card::after { right: 16px; bottom: 16px; }
  .lp7-card__media { height: clamp(84px, 14.5vh, 150px); }
  .lp7-card__body { padding: clamp(12px, 1.3vw, 18px) clamp(16px, 1.7vw, 24px) clamp(14px, 1.5vw, 18px); }
  .lp7-card__num { display: block; position: absolute; right: clamp(14px, 1.6vw, 22px); top: clamp(6px, 1vw, 12px); font-family: var(--serif); font-size: 2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(227, 200, 138, .45); }
  .lp7-card__tag { font-size: 10px; }
  .lp7-card h3 { font-size: clamp(1.4rem, 1.9vw, 1.75rem); margin-top: 10px; }
  .lp7-card p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }
  .lp7-card__open { padding-top: 12px; font-size: 10.5px; }
}

/* phones: six tiles must fit between the header and the booking bar */
@media (max-width: 599px) {
  .lp7-services { padding-block: 22px 26px; }
  .lp7-svc__head .lp6-sub { display: none; }
  .lp7-svc__head .lp6-h2 { font-size: 1.7rem; margin-top: 8px; }
  .lp7-cards { gap: 10px; margin-top: 16px; }
  .lp7-card { border-radius: 18px; }
  .lp7-card::after { display: none; }
  .lp7-card__media { height: clamp(50px, 8vh, 72px); }
  .lp7-card__body { padding: 9px 12px 11px; min-height: 76px; }
  .lp7-card h3 { font-size: 1.05rem; margin-top: 6px; padding-right: 18px; }
  .lp7-card__open { position: absolute; right: 10px; bottom: 9px; margin: 0; padding: 0; }
  .lp7-card__open > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* entrance: the cards swing up out of the mist (only once the script has armed it) */
.lp7-services.is-armed .lp7-cards > li { opacity: 0; transform: translateY(70px) translateZ(-160px) rotateX(-22deg); transform-origin: 50% 100%; }
.lp7-services.is-armed .lp7-cards.is-in > li { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.2s cubic-bezier(.16, .84, .24, 1); }
.lp7-services.is-armed .lp7-cards.is-in > li:nth-child(2) { transition-delay: .09s; }
.lp7-services.is-armed .lp7-cards.is-in > li:nth-child(3) { transition-delay: .18s; }
.lp7-services.is-armed .lp7-cards.is-in > li:nth-child(4) { transition-delay: .2s; }
.lp7-services.is-armed .lp7-cards.is-in > li:nth-child(5) { transition-delay: .29s; }
.lp7-services.is-armed .lp7-cards.is-in > li:nth-child(6) { transition-delay: .38s; }
@media (hover: hover) { .lp7-services.is-armed .lp7-cards.is-in:has(.lp7-card:hover) > li { transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: 0s; } }

/* dive: the cards rush past the viewer, the picked one last */
.lp7-services.is-diving .lp7-svc__head { opacity: 0; transform: translateY(-30px); }
.lp7-services.is-diving .lp7-cards > li, .lp7-services.is-armed.is-diving .lp7-cards.is-in > li { opacity: 0; transform: translateZ(380px) scale(1.25); transition: opacity .3s ease-in, transform .42s cubic-bezier(.5, 0, .9, .4); transition-delay: 0s; pointer-events: none; }
.lp7-services.is-diving .lp7-cards > li.is-picked, .lp7-services.is-armed.is-diving .lp7-cards.is-in > li.is-picked { transform: translateZ(620px) scale(1.5); transition-duration: .34s, .5s; }

/* ---------- Service details without JavaScript: plain blocks after the cards ---------- */
.lp7-details { display: grid; gap: 18px; max-width: 1240px; margin: clamp(28px, 4vw, 48px) auto 0; padding-inline: var(--gutter); }
.lp7-details .lp7-detail { padding: clamp(26px, 4vw, 48px); border-radius: 28px; background: rgba(13, 25, 20, .8); border: 1px solid rgba(251, 248, 243, .14); color: var(--cream); }
.lp7-services.has-stage .lp7-details { display: none; }
.lp7-detail .lp6-h2 { margin-top: 18px; }
.lp7-detail .lp6-eyebrow { color: var(--gold-l); }
.lp7-detail .lp6-sub { margin-top: 18px; max-width: 520px; }
.lp7-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- The 3D world: a fixed layer behind the page, raised over it for a dive ---------- */
.lp7-gl { position: fixed; inset: 0; z-index: 1; visibility: hidden; pointer-events: none; background: #13261F; }
.lp7-gl.is-on { visibility: visible; }
.lp7-gl.is-front { visibility: visible; z-index: 119; transition: clip-path .7s cubic-bezier(.6, 0, .2, 1); }
.lp7-gl.is-lost { display: none; }
.lp7-gl canvas { display: block; width: 100%; height: 100%; }

/* ---------- The service page (dialog) ---------- */
html.lp7-open { overflow: hidden; }
.lp7-stage { position: fixed; inset: 0; z-index: 120; overflow: hidden; color: var(--cream); background: var(--stage-bg, #1B332A);
  clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .75s cubic-bezier(.7, 0, .3, 1), background-color .6s var(--ease);
  overscroll-behavior: contain; }
.lp7-stage[hidden] { display: none; }
.lp7-stage.is-open { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); transition: clip-path 1.15s cubic-bezier(.6, 0, .2, 1), background-color .6s var(--ease); }
/* with the 3D world the dialog is only the copy and controls over it */
.lp7-stage.has-gl, .lp7-stage.has-gl.is-open { background: transparent; clip-path: none; }
.lp7-stage__bg, .lp7-stage__scrim { position: absolute; inset: 0; }
.lp7-stage__bg img { width: 100%; height: 100%; object-fit: cover; }
.lp7-stage.has-gl .lp7-stage__bg { display: none; }
.lp7-stage__scrim { pointer-events: none; background: linear-gradient(100deg, rgba(10, 18, 14, .9) 0%, rgba(10, 18, 14, .66) 38%, rgba(10, 18, 14, .12) 70%); }
.lp7-stage.has-gl .lp7-stage__scrim { opacity: 0; transition: opacity .9s var(--ease); background: linear-gradient(100deg, rgba(10, 18, 14, .55) 0%, rgba(10, 18, 14, .22) 40%, rgba(10, 18, 14, 0) 62%); }
.lp7-stage.has-gl.is-open .lp7-stage__scrim { opacity: 1; transition-delay: .5s; }

.lp7-stage__panel { position: absolute; inset: 0; display: flex; align-items: center; max-width: 1240px; margin-inline: auto; padding: 96px var(--gutter) 110px; overflow-y: auto; pointer-events: none; }
.lp7-stage__panel .lp7-detail { width: 100%; max-width: 540px; pointer-events: auto; }
.lp7-stage__panel .lp7-detail[hidden] { display: none; }
.lp7-stage__panel .lp7-detail > * { opacity: 0; transform: translateY(26px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.lp7-stage.is-open .lp7-detail.is-active > * { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.lp7-stage.is-open .lp7-detail.is-active > *:nth-child(1) { transition-delay: .55s; }
.lp7-stage.is-open .lp7-detail.is-active > *:nth-child(2) { transition-delay: .66s; }
.lp7-stage.is-open .lp7-detail.is-active > *:nth-child(3) { transition-delay: .77s; }
.lp7-stage.is-open .lp7-detail.is-active > *:nth-child(4) { transition-delay: .88s; }
.lp7-stage.is-open .lp7-detail.is-active > *:nth-child(5) { transition-delay: .99s; }
.lp7-stage.has-gl.is-open .lp7-detail.is-active > *:nth-child(1) { transition-delay: 1.05s; }
.lp7-stage.has-gl.is-open .lp7-detail.is-active > *:nth-child(2) { transition-delay: 1.17s; }
.lp7-stage.has-gl.is-open .lp7-detail.is-active > *:nth-child(3) { transition-delay: 1.29s; }
.lp7-stage.has-gl.is-open .lp7-detail.is-active > *:nth-child(4) { transition-delay: 1.41s; }
.lp7-stage.has-gl.is-open .lp7-detail.is-active > *:nth-child(5) { transition-delay: 1.53s; }

.lp7-stage button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.lp7-stage__close { position: absolute; z-index: 3; top: 20px; right: var(--gutter); display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 18px 0 20px !important;
  border: 1px solid rgba(251, 248, 243, .34) !important; border-radius: 999px; background: rgba(10, 18, 14, .5) !important;
  font: 500 11px/1 var(--mono) !important; letter-spacing: .16em; text-transform: uppercase; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.lp7-stage__close:hover { background: rgba(251, 248, 243, .14) !important; border-color: rgba(251, 248, 243, .7) !important; }
.lp7-stage__nav { position: absolute; z-index: 3; left: 0; right: 0; bottom: 26px; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 16px;
  font: 500 11px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(251, 248, 243, .78); }
.lp7-stage__nav button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px !important; border: 1px solid rgba(251, 248, 243, .28) !important; border-radius: 999px; background: rgba(10, 18, 14, .45) !important;
  font: inherit !important; letter-spacing: inherit; text-transform: inherit; transition: background-color .3s var(--ease), border-color .3s var(--ease); }
.lp7-stage__nav button:hover { background: rgba(251, 248, 243, .14) !important; border-color: rgba(251, 248, 243, .7) !important; }
.lp7-stage__nav [data-stage-prev] { width: 44px; padding: 0 !important; justify-content: center; }
.lp7-stage__nav [data-stage-next] { margin-left: auto; }
.lp7-stage__close, .lp7-stage__nav { opacity: 0; transition: opacity .4s var(--ease); }
.lp7-stage.is-open .lp7-stage__close, .lp7-stage.is-open .lp7-stage__nav { opacity: 1; transition-delay: .5s; }
.lp7-stage :focus-visible { outline: 2px solid var(--gold-l); outline-offset: 3px; }

@media (max-width: 899px) {
  .lp7-stage__scrim, .lp7-stage.has-gl .lp7-stage__scrim { background: linear-gradient(0deg, rgba(10, 18, 14, .96) 0%, rgba(10, 18, 14, .86) 44%, rgba(10, 18, 14, .2) 70%, rgba(10, 18, 14, .35) 100%); }
  .lp7-stage__panel { align-items: flex-end; padding: 84px var(--gutter) 96px; }
  .lp7-stage__panel .lp7-detail .lp6-h2 { font-size: 2.3rem; margin-top: 12px; }
  .lp7-stage__panel .lp7-detail .lp6-sub { font-size: .95rem; margin-top: 12px; }
  .lp7-stage__panel .lp6-chips { margin-top: 16px; }
  .lp7-detail__actions { margin-top: 20px; }
  .lp7-stage__panel .lp6-btn { min-height: 48px; padding-inline: 20px; font-size: 14px; }
  .lp7-stage__close { top: 14px; }
  .lp7-stage__nav { bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .lp7-stage, .lp7-stage.is-open { clip-path: none; }
  .lp7-stage__panel .lp7-detail > * { opacity: 1; transform: none; }
  .lp7-card { transform: none; }
}
