/* ==========================================================================
   Ocean Spray Inn — index.css
   Styles unique to the home page. Shared primitives live in global.css.
   ========================================================================== */

/* ------------------------------------------------------------------ Header */

.osi-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  padding-inline: var(--osi-gutter);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--osi-ease), border-color 0.5s var(--osi-ease);
}

/* Solid state once the hero is scrolled past */
.osi-header.is-solid {
  background: rgba(253, 248, 239, 0.94);
  border-bottom-color: rgba(31, 61, 58, 0.12);
  backdrop-filter: blur(18px) saturate(1.3);
}

/* Scrim holds a plateau across the header height, then fades below it,
   so the nav never sits in the gradient's weak falloff. */
.osi-header__scrim {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: -80px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--osi-veil), 0.74) 0%,
    rgba(var(--osi-veil), 0.68) 45%,
    rgba(var(--osi-veil), 0.34) 74%,
    rgba(var(--osi-veil), 0) 100%
  );
  transition: opacity 0.5s var(--osi-ease);
}

.osi-header.is-solid .osi-header__scrim {
  opacity: 0;
}

.osi-header__inner {
  position: relative;
  max-width: var(--osi-measure);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: clamp(70px, 8vw, 92px);
}

.osi-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.osi-header__logo img {
  width: clamp(150px, 15vw, 186px);
  height: auto;
  filter: brightness(0) invert(1);
  transition: filter 0.5s var(--osi-ease);
}

.osi-header.is-solid .osi-header__logo img {
  filter: none;
}

.osi-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.osi-nav__link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  color: var(--osi-cream);
  transition: border-color 0.25s var(--osi-ease), color 0.5s var(--osi-ease);
}

.osi-nav__link:hover {
  border-bottom-color: var(--osi-gold);
  color: var(--osi-cream);
}

.osi-header.is-solid .osi-nav__link {
  color: var(--osi-ink);
}

.osi-header.is-solid .osi-nav__link:hover {
  color: var(--osi-ink);
}

/* Squared gold CTA to match the header's typographic rhythm */
.osi-nav__cta {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 13px 22px;
  background: var(--osi-gold);
  color: var(--osi-ink-gold);
  transition: background 0.25s var(--osi-ease);
}

.osi-nav__cta:hover {
  background: var(--osi-gold-hover);
  color: var(--osi-ink-gold);
}

.osi-burger {
  display: none;
  align-items: center;
  gap: 10px;
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  cursor: pointer;
  color: var(--osi-cream);
  transition: color 0.5s var(--osi-ease);
}

.osi-header.is-solid .osi-burger {
  color: var(--osi-ink);
}

.osi-burger__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.osi-burger__glyph {
  display: block;
  width: 24px;
  height: 7px;
  border-top: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
}

/* ------------------------------------------------------------- Mobile menu */

.osi-menu {
  position: fixed;
  inset: 0;
  z-index: 59;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--osi-deep);
  padding: 108px clamp(20px, 6vw, 44px) 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 30px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s var(--osi-ease), visibility 0.5s;
}

.osi-menu[data-open="false"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.osi-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.osi-menu__link {
  font-family: var(--osi-serif);
  font-size: clamp(30px, 9vw, 42px);
  font-weight: 400;
  color: var(--osi-sand);
  padding: 12px 0;
  border-bottom: 1px solid rgba(253, 248, 239, 0.16);
  transition: opacity 0.55s var(--osi-ease-out),
    transform 0.55s var(--osi-ease-out);
}

.osi-menu__link:last-child {
  border-bottom: 0;
}

.osi-menu__link:hover {
  color: var(--osi-gold);
}

.osi-menu__cta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: opacity 0.55s var(--osi-ease-out),
    transform 0.55s var(--osi-ease-out);
}

.osi-menu__book {
  display: block;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  padding: 20px;
  border-radius: 999px;
  background: var(--osi-gold);
  color: var(--osi-ink-gold);
}

.osi-menu__tel {
  font-size: 15px;
  color: rgba(253, 248, 239, 0.72);
  text-align: center;
  padding: 14px 0;
  min-height: 44px;
}

/* Staggered entrance */
.osi-menu[data-open="false"] .osi-menu__link,
.osi-menu[data-open="false"] .osi-menu__cta {
  opacity: 0;
  transform: translateY(18px);
}

.osi-menu[data-open="true"] .osi-menu__link:nth-child(1) { transition-delay: 0.10s; }
.osi-menu[data-open="true"] .osi-menu__link:nth-child(2) { transition-delay: 0.16s; }
.osi-menu[data-open="true"] .osi-menu__link:nth-child(3) { transition-delay: 0.22s; }
.osi-menu[data-open="true"] .osi-menu__link:nth-child(4) { transition-delay: 0.28s; }
.osi-menu[data-open="true"] .osi-menu__link:nth-child(5) { transition-delay: 0.34s; }
.osi-menu[data-open="true"] .osi-menu__link:nth-child(6) { transition-delay: 0.40s; }
.osi-menu[data-open="true"] .osi-menu__cta { transition-delay: 0.44s; }

/* -------------------------------------------------------------------- Hero */

.osi-hero {
  position: relative;
  background: var(--osi-sand);
}

.osi-hero__stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--osi-deep);
}

.osi-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Clear window at 12–21% keeps the sky and water unfiltered; the ramp
   below it covers the copy band. */
.osi-hero__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(var(--osi-veil), 0.1) 0%,
    rgba(var(--osi-veil), 0.02) 12%,
    rgba(var(--osi-veil), 0) 21%,
    rgba(var(--osi-veil), 0.34) 30%,
    rgba(var(--osi-veil), 0.52) 35%,
    rgba(var(--osi-veil), 0.58) 47%,
    rgba(var(--osi-veil), 0.66) 55%,
    rgba(var(--osi-veil), 0.7) 70%,
    rgba(var(--osi-veil), 0.74) 100%
  );
}

.osi-hero__body {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(80px, 10vw, 100px) var(--osi-gutter) 40px;
  pointer-events: none;
}

.osi-hero__copy {
  max-width: var(--osi-measure);
  margin: auto auto 0;
  width: 100%;
}

.osi-hero__badge {
  margin-bottom: 22px;
}

.osi-hero__title {
  font-family: var(--osi-serif);
  font-weight: 400;
  font-size: clamp(38px, 5.6vw, 74px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--osi-cream);
  /* optical alignment — pulls the serif cap onto the shared left edge */
  margin-left: -0.05em;
  max-width: 15em;
}

.osi-hero__stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(22px, 3.4vw, 40px);
}

.osi-hero__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 252, 246, 0.9);
  max-width: 32em;
}

.osi-hero__stack .osi-btn-row {
  pointer-events: auto;
}

/* ------------------------------------------------------------- Facts strip */

.osi-strip {
  padding: clamp(34px, 4.6vw, 64px) var(--osi-gutter);
}

.osi-strip__grid {
  max-width: var(--osi-measure);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}

.osi-strip__card {
  background: var(--osi-seafoam);
  border-radius: clamp(18px, 2vw, 26px);
  padding: clamp(20px, 2.4vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osi-strip__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--osi-accent);
}

.osi-strip__value {
  font-family: var(--osi-serif);
  font-size: clamp(21px, 2.3vw, 26px);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.osi-strip__note {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 300;
  color: #55706b;
}

/* ------------------------------------------------------------------- Story */

.osi-story__media {
  position: relative;
}

.osi-story__main {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
}

.osi-story__inset {
  width: 45%;
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-top: -17%;
  position: relative;
  border-radius: clamp(18px, 2.2vw, 28px);
  overflow: hidden;
  border: 8px solid var(--osi-sand);
  box-shadow: 0 24px 46px -30px rgba(31, 61, 58, 0.5);
}

.osi-story__text {
  padding-top: clamp(0px, 2.6vw, 34px);
}

.osi-story__paras {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: clamp(22px, 3vw, 34px);
  max-width: 35em;
}

.osi-story__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(10px, 1.2vw, 14px);
  margin-top: clamp(28px, 3.4vw, 44px);
}

/* ------------------------------------------------------------------- Rooms */

.osi-rooms__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: clamp(26px, 3.4vw, 46px);
}

.osi-rooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(18px, 2.2vw, 28px);
}

.osi-room {
  display: flex;
  flex-direction: column;
  background: var(--osi-cream);
  border-radius: var(--osi-radius-md);
  padding: clamp(14px, 1.6vw, 18px);
  box-shadow: 0 20px 40px -34px rgba(31, 61, 58, 0.55);
  transition: transform 0.3s var(--osi-ease), box-shadow 0.3s var(--osi-ease);
}

.osi-room:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 52px -34px rgba(31, 61, 58, 0.5);
}

.osi-room__media {
  position: relative;
  aspect-ratio: 4 / 3;
  width: 100%;
  border-radius: clamp(14px, 1.7vw, 20px);
  overflow: hidden;
}

.osi-room__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osi-room__view {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(253, 248, 239, 0.94);
  color: var(--osi-ink);
}

.osi-room__body {
  padding: clamp(16px, 1.8vw, 22px) clamp(6px, 0.8vw, 10px) clamp(6px, 0.8vw, 10px);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.osi-room__copy {
  font-size: 15px;
  line-height: 1.62;
  font-weight: 300;
  color: var(--osi-body-soft);
  margin-top: 10px;
}

.osi-room__tags {
  margin-top: 18px;
}

.osi-room__link {
  margin-top: auto;
  padding: 24px 0 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--osi-accent);
}

/* --------------------------------------------------------------- Amenities */

.osi-amenities__groups {
  display: flex;
  flex-direction: column;
  gap: clamp(26px, 3.4vw, 40px);
}

.osi-amenities__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.osi-amenities__title {
  font-size: 16px;
  font-weight: 600;
}

.osi-amenities__aside {
  font-family: var(--osi-serif);
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  color: var(--osi-body-soft);
}

/* ----------------------------------------------------------------- Gallery */

.osi-gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: clamp(24px, 3.2vw, 44px);
}

.osi-gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 15.5vw;
  gap: clamp(10px, 1.2vw, 16px);
}

.osi-gallery__cell {
  border-radius: var(--osi-radius-sm);
  overflow: hidden;
}

.osi-gallery__cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osi-gallery__cell--hero {
  grid-column: span 2;
  grid-row: span 2;
  border-radius: var(--osi-radius-md);
}

.osi-gallery__cell--tall {
  grid-row: span 2;
}

.osi-gallery__cell--wide {
  grid-column: span 2;
  border-radius: var(--osi-radius-md);
}

/* --------------------------------------------------------------- Reviews */

.osi-reviews__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.osi-review {
  background: var(--osi-tint-warm);
  border-radius: clamp(20px, 2.4vw, 28px);
  padding: clamp(22px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 230px;
  gap: 26px;
}

.osi-review__quote {
  font-family: var(--osi-serif);
  font-size: clamp(18px, 1.8vw, 21px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: #4a3625;
}

.osi-review__by {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.osi-review__name {
  font-size: 15px;
  font-weight: 500;
  color: #3d2e20;
}

.osi-review__meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--osi-brown);
}

/* ---------------------------------------------------------------- Location */

.osi-location__address {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(253, 248, 239, 0.86);
  margin-top: clamp(22px, 2.6vw, 32px);
}

.osi-location__list {
  display: flex;
  flex-direction: column;
  margin-top: clamp(24px, 3vw, 36px);
}

.osi-location__cta {
  margin-top: clamp(24px, 3vw, 36px);
  padding: 17px 30px;
}

.osi-location__map {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.osi-location__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
}

.osi-location__caption {
  font-size: 14px;
  font-weight: 300;
  color: rgba(253, 248, 239, 0.6);
}

/* ----------------------------------------------------------------- Closing */

.osi-closing {
  padding: var(--osi-section-y) var(--osi-gutter) 0;
}

.osi-closing__card {
  position: relative;
  max-width: var(--osi-measure);
  margin-inline: auto;
  border-radius: var(--osi-radius-lg);
  overflow: hidden;
  background: var(--osi-deepest);
  display: flex;
  align-items: center;
  min-height: clamp(420px, 60svh, 620px);
}

.osi-closing__media {
  position: absolute;
  inset: 0;
}

.osi-closing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.osi-closing__veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 51, 48, 0.5),
    rgba(22, 51, 48, 0.72)
  );
}

.osi-closing__body {
  position: relative;
  width: 100%;
  padding: clamp(50px, 7vw, 96px) clamp(22px, 4vw, 60px);
  text-align: center;
  pointer-events: none;
}

.osi-closing__title {
  font-family: var(--osi-serif);
  font-weight: 400;
  font-size: clamp(30px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--osi-cream);
  max-width: 20em;
  margin-inline: auto;
  text-wrap: balance;
}

.osi-closing__lead {
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.6;
  font-weight: 300;
  color: rgba(255, 252, 246, 0.88);
  max-width: 30em;
  margin: clamp(18px, 2.4vw, 28px) auto 0;
}

.osi-closing__body .osi-btn-row {
  justify-content: center;
  margin-top: clamp(26px, 3.4vw, 42px);
  pointer-events: auto;
}

/* ------------------------------------------------------------------ Footer */

.osi-footer {
  padding: clamp(44px, 6vw, 80px) var(--osi-gutter) clamp(90px, 8vw, 52px);
}

.osi-footer__top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(30px, 4.4vw, 64px);
  padding-bottom: clamp(30px, 3.6vw, 48px);
  border-bottom: 1px solid rgba(31, 61, 58, 0.14);
}

.osi-footer__logo {
  width: clamp(230px, 30vw, 300px);
  height: auto;
}

.osi-footer__blurb {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 300;
  color: var(--osi-body-soft);
  margin-top: 14px;
  max-width: 28em;
}

.osi-footer__cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 24px;
}

.osi-footer__col {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.osi-footer__heading {
  font-size: 13px;
  font-weight: 600;
  color: var(--osi-accent);
}

.osi-footer__col a,
.osi-footer__col span:not(.osi-footer__heading) {
  font-size: 16px;
  font-weight: 300;
}

.osi-footer__col a {
  word-break: break-word;
}

.osi-footer__address {
  color: var(--osi-body-soft);
}

.osi-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 22px;
}

.osi-footer__legal {
  display: flex;
  gap: 22px;
}

.osi-footer__bottom span,
.osi-footer__legal a {
  font-size: 14px;
  font-weight: 300;
  color: var(--osi-muted);
}

/* ------------------------------------------------------- Sticky book bar */

.osi-bookbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 58;
  gap: 10px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  background: rgba(31, 68, 65, 0.95);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--osi-ease), opacity 0.35s var(--osi-ease);
}

.osi-bookbar[data-show="false"] {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

.osi-bookbar__call {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid rgba(253, 248, 239, 0.5);
  color: var(--osi-sand);
}

.osi-bookbar__book {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 500;
  min-height: 48px;
  border-radius: 999px;
  background: var(--osi-gold);
  color: var(--osi-ink-gold);
}

/* ================================================================ Responsive
   Touch navigation begins at 940px, so every hit-area rule lives here. */

@media (max-width: 940px) {
  .osi-nav {
    display: none;
  }

  .osi-burger,
  .osi-bookbar {
    display: flex;
  }

  .osi-footer__col a,
  .osi-footer__legal a {
    padding: 14px 0;
  }

  .osi-room__link {
    padding-top: 24px;
    padding-bottom: 6px;
  }
}

@media (max-height: 700px) {
  .osi-menu {
    padding-top: 80px;
    gap: 20px;
  }

  .osi-menu__link {
    font-size: 26px;
    padding: 9px 0;
  }
}

@media (max-height: 620px) {
  .osi-hero__badge {
    margin-bottom: 12px;
  }

  .osi-hero__title {
    font-size: clamp(32px, 5.4vw, 46px);
  }

  .osi-hero__stack {
    gap: 16px;
    margin-top: 16px;
  }

  .osi-hero__body {
    padding-top: 78px;
  }
}

@media (max-width: 880px) {
  .osi-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .osi-gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 32vw;
  }

  .osi-story__text {
    padding-top: 0;
  }

  .osi-footer__top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .osi-hero__title {
    font-size: clamp(31px, 8.8vw, 38px);
  }

  .osi-section,
  .osi-strip,
  .osi-closing,
  .osi-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .osi-hero__body,
  .osi-closing__body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .osi-hero__stack {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  .osi-strip__grid {
    grid-template-columns: 1fr;
  }

  .osi-gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 56vw;
  }

  .osi-gallery__cell--hero,
  .osi-gallery__cell--tall,
  .osi-gallery__cell--wide {
    grid-column: auto;
    grid-row: auto;
  }

  .osi-story__inset {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .osi-menu,
  .osi-menu__link,
  .osi-menu__cta,
  .osi-bookbar {
    transition: none !important;
    transform: none !important;
  }
}
