/* Opening composition: Figma Prototype 20:398 -> 20:466.
   Layout owns both endpoints. The animation reads these boxes; no page coordinates
   are derived from the 1440px artboard. This stylesheet owns hero/nav/offer. */
:root {
  --opening-height: 100vh;
  --navigation-height: clamp(64px, 5.5556vw, 88px);
  --opening-gutter: clamp(16px, 1.6667vw, 32px);
  --offer-photo-height: min(55.5556vw, calc(var(--opening-height) - var(--navigation-height) - var(--opening-gutter) * 2));
}
@supports (height: 100dvh) { :root { --opening-height: 100dvh; } }
.hero {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vh, 40px);
  min-height: calc(var(--opening-height) - var(--navigation-height));
  position: relative;
  background: var(--teal);
  color: var(--cream);
}
.hero h1 {
  position: relative;
  z-index: 2;
  flex: none;
  width: 100%;
  padding: var(--opening-gutter) var(--opening-gutter) 0;
  font-size: clamp(2rem, min(5vw, calc(var(--opening-height) * .075)), 6rem);
  line-height: 1.111111;
}
.hero-image-anchor {
  position: relative;
  flex: none;
  margin-top: auto;
  margin-left: 34.444444%;
  width: 47.5%;
  height: clamp(100px, min(26.25vw, calc(var(--opening-height) * .39375)), 560px);
  overflow: hidden;
}
.hero-image-anchor img, .offer-image-anchor img { position: absolute; display: block; max-width: none; object-fit: cover; }
.hero-image-anchor img { width: 134.502924%; height: auto; min-height: 100%; right: 0; top: 0; object-position: right top; }
.opening-image {
  display: none;
  position: absolute;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  contain: layout paint;
}
.opening-image img { position: absolute; max-width: none; object-fit: cover; }
.motion-ready .opening-image { display: block; }
.motion-ready .hero-image-anchor img, .motion-ready .offer-image-anchor img { visibility: hidden; }
.navigation {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.2222vw, 40px);
  min-height: var(--navigation-height);
  padding: 12px var(--opening-gutter);
  background: var(--cream);
  font-size: clamp(.875rem, .97222vw, 1rem);
  font-weight: 500;
}
.brand { margin-right: auto; flex: none; }
.brand img { width: clamp(112px, 9.3056vw, 168px); height: auto; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.2222vw, 40px); }
.nav-links a { white-space: nowrap; }
.nav-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-actions { display: flex; flex: none; align-items: center; gap: clamp(20px,1.6667vw,28px); }
.nav-divider { flex: none; width: 1px; height: 24px; background: #183f4273; }
.sign-in { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 2px; white-space: nowrap; }
.sign-in:hover { text-decoration: underline; text-underline-offset: 5px; }
.mobile-sign-in { display: none; }
.book-button { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 14px; background: var(--coral); font-weight: 700; white-space: nowrap; }
.book-button:hover { background: var(--teal); color: var(--cream); }
.menu-toggle { display: none; }
.offer { position: relative; padding-top: var(--opening-gutter); }
.offer-image-anchor { position: relative; width: calc(100% - var(--opening-gutter) * 2); height: var(--offer-photo-height); margin: 0 var(--opening-gutter); overflow: hidden; }
.offer-image-anchor img { width: 104.166667%; height: auto; min-height: 100%; left: 0; top: 0; }
.offer-copy {
  position: relative;
  z-index: 2;
  width: max(360px, 32.77778vw);
  max-width: calc(100% - var(--opening-gutter));
  min-height: calc(560 * var(--u));
  margin-top: calc(var(--offer-photo-height) * -.425);
  padding: clamp(40px, 5.5556vw, 100px) var(--opening-gutter);
  border-radius: 0 24px 24px 0;
  background: var(--teal);
  color: var(--cream);
}
.offer-copy > p { width: min(100%, calc(330 * var(--u))); min-width: min(100%, 280px); font-size: clamp(1.25rem, 1.66667vw, 1.875rem); line-height: 1.333333; }
.offer-copy .scope { font-size: clamp(1rem, 1.25vw, 1.375rem); line-height: 1.333333; font-weight: 700; margin-top: clamp(28px, 2.77778vw, 48px); }
.offer-copy .button { margin-top: clamp(32px, 4.16667vw, 72px); font-size: clamp(1rem, 1.38889vw, 1.5rem); max-width: 100%; white-space: normal; text-align: left; }
@media(max-width: 900px) {
  :root { --navigation-height: 72px; --opening-gutter: 20px; }
  .hero h1 { font-size: clamp(2rem, min(8.8vw, calc(var(--opening-height) * .095)), 4.5rem); line-height: 1.09; }
  .hero-image-anchor { margin-left: 18%; width: 82%; height: clamp(100px, min(72vw, calc(var(--opening-height) * .4)), 440px); }
  .navigation { gap: 16px; padding-inline: 16px; font-size: .875rem; }
  .brand img { width: 106px; }
  .nav-actions { gap: 16px; }
  .menu-toggle { display: block; background: transparent; padding: 12px 0; min-height: 44px; font-weight: 500; }
  .book-button { padding: 12px 10px; font-size: .8125rem; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 16px 24px 24px; border-bottom: 1px solid #183f4233; background: var(--cream); box-shadow: 0 12px 14px #1d202012; }
  .nav-links a { padding: 12px 0; font-size: 1.125rem; }
  .navigation.menu-open .nav-links { display: flex; max-height: var(--menu-space, 70vh); overflow-y: auto; overscroll-behavior: contain; }
  .navigation.menu-above .nav-links { top: auto; bottom: 100%; border-bottom: 0; border-top: 1px solid #183f4233; box-shadow: 0 -12px 14px #1d202012; }
}
@media(max-width: 760px) {
  :root { --offer-photo-height: clamp(280px, calc(var(--opening-height) * .5), 440px); }
  .offer { padding-top: 0; }
  .offer-image-anchor { width: 100%; margin: 0; }
  .offer-copy { width: calc(100% - 32px); max-width: none; min-height: 0; margin-top: -80px; padding: 36px 24px 40px; border-radius: 0 20px 20px 0; }
  .offer-copy > p { width: 100%; min-width: 0; font-size: 1.375rem; line-height: 1.4; }
  .offer-copy .scope { width: 100%; font-size: 1rem; margin-top: 28px; }
  .offer-copy .button { margin-top: 32px; padding: 16px; gap: 12px; min-height: 56px; font-size: 1rem; }
}
@media(max-width: 360px) { .navigation { gap: 12px; padding-inline: 12px; } .brand img { width: 92px; } .book-button { font-size: .75rem; padding-inline: 8px; } }
@media(prefers-reduced-motion: reduce) { .opening-image { display: none !important; } .hero-image-anchor img, .offer-image-anchor img { visibility: visible !important; } }
@media(max-height: 500px) {
  .hero { gap: 16px; }
  .hero h1 { padding-top: 16px; font-size: clamp(1.5rem, min(5vw, calc(var(--opening-height) * .085)), 3rem); }
  .hero-image-anchor { height: clamp(64px, min(26.25vw, calc(var(--opening-height) * .36)), 180px); }
}

section[id] { scroll-margin-top: calc(var(--navigation-height) + var(--opening-gutter)); }

/* Keep the selected utility grouping readable on small phones. */
@media(max-width: 600px) {
  .nav-actions { gap: 0; }
  .nav-actions .nav-divider,.nav-actions .sign-in { display: none; }
  .nav-links .mobile-sign-in { display: block; margin-top: 12px; padding-top: 20px; border-top: 1px solid #183f4240; }
}
