/* =========================================================================
   Home (/) — styles used by this page only. Classes: .home-*
   Shared pieces (navbar, hero mechanic, buttons, tabs, room card, amenity,
   photo band, footer) live in components.css.
   ========================================================================= */

/* ---- Navbar on Home: no "Home" link, bold links (as designed) ----------- */
.eb-nav__link--home { display: none; }
.eb-nav__link { font-weight: var(--weight-bold); }
/* Sideways phones: the two-column menu (components.css, EB-100) shows six links here since "Blog" was added
   (17 Nov 2026, FX-99), so Blog and Contact share the last row and neither has a rule under it. */
@media (max-width: 760px) and (orientation: landscape) and (max-height: 500px) {
  .eb-nav[data-menu-open="1"] .eb-nav__link:nth-last-child(2) { border-bottom: 0; }
}

/* =========================================================================
   Hero
   ========================================================================= */
@keyframes home-fade-up { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }

.home-hero {
  display: flex;
  flex-direction: column;
  height: min(100vh, 60vw);
  min-height: min(88vh, 600px);
}
.home-hero picture { display: contents; }
.home-hero__photo { object-position: 50% 22%; }
.home-hero__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(36,28,23,.18) 0%, rgba(36,28,23,.04) 30%, rgba(36,28,23,.03) 60%, rgba(36,28,23,.13) 100%);
}
.home-hero__copy {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 132px 24px 96px;
  color: var(--text-on-dark);
  text-align: center;
}
.home-hero__fade {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  animation: home-fade-up 900ms var(--ease-out-soft) 260ms both;
}
/* Soft dark pool behind the headline so it reads over the photo. */
.home-hero__scrim {
  position: absolute;
  inset: -28% -16% -36%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side ellipse at center, rgba(36,28,23,.62) 0%, rgba(36,28,23,.50) 50%, rgba(36,28,23,.22) 80%, rgba(36,28,23,0) 100%);
}
.home-hero__title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.08;
  color: var(--text-on-dark);
  text-wrap: balance;
  text-shadow: 0 0 10px rgba(36,28,23,.95), 0 0 30px rgba(36,28,23,.8), 0 2px 4px rgba(36,28,23,.9);
}
.home-hero__gem {
  margin-right: .12em;
  font-size: 1.3em;
  line-height: 1.1;
  color: var(--text-on-dark);
}
/* Both buttons share the wider width. */
.home-hero__cta {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  justify-content: center;
  gap: 12px;
}
.home-hero__cta > * { min-width: 0; }
.home-hero__btn { width: 100%; justify-content: center; }
.home-hero__btn--book,
.home-hero__btn--book:hover { border-color: transparent; }
.home-hero__btn--rooms { -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.home-hero__label-short { display: none; }

@media (max-height: 520px) and (orientation: landscape) {
  .home-hero__copy { padding: 96px 24px 40px; }
}
@media (max-width: 760px) {
  .home-hero { height: 100vh; height: 100svh; min-height: 0; }
  .home-hero__photo { object-position: 0% 50%; }
  .home-hero__copy { justify-content: flex-end; padding: 96px 20px calc(44px + env(safe-area-inset-bottom)); }
  .home-hero__fade { gap: 16px; }
  .home-hero__cta { grid-auto-columns: max-content; gap: 10px; }
  .home-hero__btn {
    width: auto;
    min-width: 136px;
    padding-left: 18px;
    padding-right: 18px;
    font-size: 13px;
    white-space: nowrap;
  }
  .home-hero__label-long { display: none; }
  .home-hero__label-short { display: inline; }
}
@media (max-width: 760px) and (orientation: portrait) {
  .home-hero__photo { object-position: 57% 50%; }
}
@media (max-width: 560px) {
  .home-hero__title { font-size: clamp(34px, 9vw, 48px); }
}

/* =========================================================================
   Intro
   ========================================================================= */
.home-intro {
  overflow: hidden;
  padding: 96px 24px;
  background: var(--stucco-50);
  text-align: center;
}
.home-intro__inner { max-width: 640px; margin: 0 auto; }
.home-intro__title { margin-top: 14px; font-size: clamp(30px, 4vw, 44px); line-height: 1.14; }
.home-intro__text {
  max-width: 56ch;
  margin: 16px auto 0;
  color: var(--ink-700);
  font-size: var(--text-size-body);
  line-height: 1.7;
}
@media (max-width: 760px) { .home-intro { padding: 64px 20px; } }
@media (max-width: 560px) { .home-intro { padding: 52px 18px; } }

/* =========================================================================
   Two-up photo carousel (crossfade + slow Ken Burns drift)
   ========================================================================= */
@keyframes home-drift { from { transform: scale(1); } to { transform: scale(1.07); } }

/* position: relative anchors the arrows and dots to the photos; the wrapper around the carousel (FX-66) takes the
   sticky-hero stacking rule ([data-stick-hero] ~ *) that the section used to get. */
.home-carousel { position: relative; padding: 0; background: var(--stucco-300); }
.home-carousel__track {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  height: clamp(320px, 38vw, 520px);
}
.home-carousel__cell { position: relative; overflow: hidden; }
.home-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.10) saturate(1.04);
  opacity: 0;
  transition: opacity 900ms var(--ease-out-soft);
  animation: home-drift 16s cubic-bezier(.4,0,.6,1) infinite alternate;
}
.home-carousel__img[data-active] { opacity: 1; }
.home-carousel__track[data-paused="1"] .home-carousel__img { animation-play-state: paused; }
.home-carousel__img--vanity { object-position: 45% 50%; }
.home-carousel__img--firepit { object-position: 50% 100%; }

/* The controls come first in the HTML (keyboard order) and show after the photos (FX-66). */
.home-carousel-wrap { display: flex; flex-direction: column; }
/* Above the next section: the heading link "where you'll sleep" has a tall inline box that reaches about 8px above
   its line, over the bottom of Pause/Play on phones, and the later section painted on top, so a tap on the button's
   lower edge opened Rooms (EB-101, 13 Nov 2026). Nothing visible overlaps, so nothing on screen changes. */
.home-carousel-wrap { z-index: 2; }
.home-carousel-wrap > .home-carousel-controls { order: 1; }
.home-carousel-controls {
  display: flex;
  justify-content: flex-end;
  padding: 8px 16px 0;
  background: var(--stucco-50);
}

@media (max-width: 760px) {
  .home-carousel__track { gap: 1px; height: clamp(200px, 44vw, 340px); touch-action: pan-y; }
  .home-carousel__img--firepit { object-position: 50% 81%; }
}
/* Small phones: the two photos stack as two half-height rows. */
@media (max-width: 560px) {
  .home-carousel__track { grid-template-columns: minmax(0, 1fr); height: clamp(300px, 78vw, 420px); }
}

/* =========================================================================
   Rooms preview
   ========================================================================= */
.home-rooms { padding: 56px 24px 72px; background: var(--stucco-50); }
.home-rooms__inner { max-width: var(--container-content); margin: 0 auto; }
.home-rooms__tabs { margin: 32px 0 24px; }
/* "newly renovated" under the Poolside tab while it is selected */
.home-rooms__tabs[data-tabs-value="Poolside"] .eb-tabs__tab:first-child::after {
  content: "newly renovated";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 5px;
  color: var(--text-brand);
  font: 600 9.5px var(--font-sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}
.home-rooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.home-rooms__grid[hidden] { display: none; }
.home-rooms__grid + .home-rooms__grid { margin-top: 24px; } /* only when all panels show (no JS) */

/* Two columns on upright tablets and on short landscape windows from 568px wide (the smallest phone on its side).
   A card's content needs up to 246px, so in a narrower short window (a desktop window at 400% zoom is 320 × 256)
   two columns cut half of each card off; those keep the one-column grid above (WCAG 1.4.10; EB-090, FX-75). */
@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait),
       (min-width: 568px) and (orientation: landscape) and (max-height: 500px) {
  .home-rooms__grid { display: flex; flex-wrap: wrap; justify-content: center; }
  .home-rooms__grid > * { flex: 0 0 calc(50% - 12px); max-width: calc(50% - 12px); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-rooms__tabs { overflow: visible; }
  .home-rooms__tabs .eb-tabs__list { justify-content: space-between; gap: 0; width: 100%; min-width: 0; }
  .home-rooms__tabs .eb-tabs__tab { min-height: 44px; padding: 6px 6px 14px; font-size: var(--text-micro); letter-spacing: .03em; }
}
@media (max-width: 760px) {
  .home-rooms { padding-top: 4px; }
}

/* =========================================================================
   Amenities strip
   ========================================================================= */
.home-amenities {
  padding: 32px 24px;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
  background: var(--stucco-100);
}
.home-amenities__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(45%, 148px), 1fr));
  gap: 20px 12px;
  max-width: var(--container-content);
  margin: 0 auto;
}
.home-amenities__link { display: block; border-radius: var(--radius-md); color: inherit; text-decoration: none; }
.home-amenities__link:hover { color: inherit; }
.home-amenities__item { transition: transform var(--duration-base) var(--ease-out-soft); }
.home-amenities__item:hover { transform: translateY(-2px); }
.home-amenities__item--short { display: none; }

@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait),
       (orientation: landscape) and (max-height: 500px) {
  .home-amenities__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; justify-items: center; }
  .home-amenities__item--full { display: none; }
  .home-amenities__item--short { display: grid; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-amenities { padding: 28px 20px; }
  .home-amenities__grid { gap: 12px; }
}
@media (max-width: 760px) {
  .home-amenities { padding: 28px 20px; }
  .home-amenities__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
    align-items: center;
    justify-items: center;
    max-width: 360px;
  }
  .home-amenities__grid > li { display: flex; align-items: center; justify-content: center; width: 100%; }
}

/* =========================================================================
   Map — "leave the car parked"
   ========================================================================= */
.home-map { padding: 56px 16px 72px; background: var(--stucco-50); }
.home-map__wrap {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  container-type: inline-size;
}
.home-map__link {
  display: block;
  text-decoration: none;
  transform-origin: 34% 50%;
  transition: transform var(--duration-slow) var(--ease-out-soft), filter var(--duration-slow) var(--ease-out-soft);
}
.home-map__link:hover { transform: scale(1.022); filter: drop-shadow(0 10px 24px rgba(36,28,23,.16)); }
.home-map__link:active { transform: scale(1.008); }
.home-map__link:focus-visible { outline: 3px solid var(--pool-500); outline-offset: 6px; border-radius: var(--radius-md); }
.home-map__art { display: block; width: 68%; height: auto; }
.home-map__text { position: absolute; top: 1%; left: 54.5%; right: 2%; }
.home-map__title { margin-top: 8px; font-size: clamp(28px, 2.9cqw, 40px); line-height: 1.1; }
.home-map__lede {
  max-width: 42ch;
  margin-top: 12px;
  color: var(--ink-700);
  font-size: clamp(14px, 1.3cqw, 16px);
  line-height: 1.7;
}
.home-map__cta { margin-top: 22px; }

@media (min-width: 961px) {
  .home-map__wrap { transform: translateX(14px); }
  .home-map__art { margin-left: 7%; }
  .home-map__text { top: 0; left: 61.5%; right: 0; }
}
@media (min-width: 1080px) {
  .home-map__text { top: 48px; }
  .home-map__link { transform-origin: 41% 50%; }
}
@media (max-width: 960px) {
  .home-map__text { position: static; width: auto; max-width: 56ch; margin: 8px auto 0; text-align: center; }
  .home-map__art { width: 100%; }
  .home-map__lede { max-width: none; margin-left: auto; margin-right: auto; }
}

/* =========================================================================
   Night sign band
   ========================================================================= */
.home-night {
  display: flex;
  align-items: flex-end;
  width: 100%;
  min-height: min(80vh, 560px);
  aspect-ratio: 16 / 9.6;
  overflow: hidden;
}
.home-night__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.10) saturate(1.04);
}
.home-night__shade {
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 100% at 0% 100%, rgba(36,28,23,.62) 0%, rgba(36,28,23,.40) 38%, rgba(36,28,23,.14) 68%, rgba(36,28,23,0) 90%);
}
.home-night__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container-content);
  margin: 0 auto;
  padding: 64px 24px 72px;
}
.home-night__stack { position: relative; max-width: 34ch; }
/* Blurred dark pool behind the copy (sits under the text, over the photo). */
.home-night__glow {
  position: absolute;
  inset: -38px -56px -42px -52px;
  z-index: -1;
  border-radius: 24px;
  background: rgba(24,17,13,.78); /* one-off: deeper than ink-900 so the glow reads at night */
  filter: blur(26px);
}
.home-night__title {
  margin-top: 14px;
  color: var(--text-on-dark);
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.14;
}
.home-night__text {
  margin-top: 16px;
  color: var(--text-on-dark-soft);
  font-size: var(--text-size-body);
  line-height: 1.7;
}
.home-night__cta { margin-top: 28px; }

@media (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .home-night { aspect-ratio: auto; }
}
@media (max-width: 760px) {
  .home-night { aspect-ratio: auto; }
  /* Crop to the sign at the right edge of the photo. */
  .home-night__img {
    top: calc(50% - 92.65vw);
    bottom: auto;
    left: 0;
    right: auto;
    width: 100%;
    height: 185.3vw;
    object-position: 100% 50%;
  }
  .home-night__inner { margin-top: auto; padding: 24px 20px 28px; }
  .home-night__title { color: var(--stucco-50); }
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-night__img { inset: 0; width: 100%; height: 100%; object-position: 65% 12%; }
}

/* =========================================================================
   Group stays band + enquiry form
   ========================================================================= */
@keyframes home-unfold { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.home-groups { padding: 72px 24px 88px; background: var(--stucco-50); }
.home-groups__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: var(--container-content);
  margin: 0 auto;
}
.home-groups__copy { display: grid; gap: 10px; }
.home-groups__kicker { line-height: 1; }
.home-groups__title { font-size: clamp(28px, 3vw, 36px); line-height: 1.12; }
.home-groups__text {
  max-width: 60ch;
  color: var(--ink-700);
  font: 400 16px/1.6 var(--font-sans);
  text-wrap: pretty;
}
.home-groups__buttons { display: flex; flex: none; flex-wrap: wrap; gap: 12px; }
.home-groups__chevron { display: inline-flex; transition: transform var(--duration-base) var(--ease-out-soft); }
.home-groups__toggle[aria-expanded="true"] .home-groups__chevron { transform: rotate(180deg); }

.home-groups__panel {
  max-width: var(--container-content);
  margin: 32px auto 0;
  padding: 40px 40px 44px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  background: var(--surface-card);
  box-shadow: var(--shadow-card);
}
.home-groups__panel[data-open] { animation: home-unfold var(--duration-slow) var(--ease-out-soft) both; }
.home-groups__form-wrap { display: grid; gap: 24px; }
.home-groups__form-wrap[hidden] { display: none; }
.home-groups__form-title { font-size: 26px; line-height: 1.2; }

.home-gform {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.home-gform__type { grid-column: span 2; }
.home-gform__wide,
.home-gform__footer { grid-column: 1 / -1; }
.home-gform__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.home-gform__note { color: var(--text-muted); font: 400 13px/1.4 var(--font-sans); }
/* The design's submit has no border (border:0), unlike the other .eb-buttons. */
.home-gform__submit { padding: 0 28px; border: 0; }

@media (max-width: 980px) {
  .home-gform { grid-template-columns: 1fr 1fr; }
  .home-gform__type { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .home-groups__band { flex-direction: column; align-items: flex-start; }
  .home-groups__panel { padding: 28px 20px 32px; }
}
@media (max-width: 560px) {
  .home-gform { grid-template-columns: 1fr; }
  .home-groups__buttons,
  .home-groups__buttons > * { width: 100%; justify-content: center; }
}
/* Phones upright: only Check-in and Check-out share a row. */
@media (max-width: 760px) and (orientation: portrait) {
  .home-gform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-gform > :not(.home-gform__date) { grid-column: 1 / -1; }
}
/* The form sits in a panel, so below 390px two date fields side by side cut the date off ("12/09/202"), and up to
   about 405px the empty field's hint ("mm/dd/yyy" at 390, 393 and 402, the common iPhone widths); each takes the full
   width instead (FX-67; below 410px since 12 Nov 2026, EB-081). Contact's wider form does the same below 360px. */
@media (max-width: 409px) {
  .home-gform__date { grid-column: 1 / -1; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .home-gform { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* =========================================================================
   Without JavaScript (EB-088)
   Controls that only scripts can work are hidden, so nothing on the page does
   nothing: the building tabs (all three buildings' rooms already show, each
   card naming its building), "Message us" (the form is already open) and the
   slideshow dots (only the first photos show). The room cards keep the tabs'
   32px gap under the section heading. Never matches with JavaScript on.
   ========================================================================= */
@media (scripting: none) {
  .home-rooms__tabs,
  .home-groups__toggle,
  .home-carousel .eb-dots { display: none; }
  .home-rooms__panels { margin-top: 32px; }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  .home-hero__fade,
  .home-carousel__img,
  .home-groups__panel[data-open] { animation: none; }
  .home-map__link:hover,
  .home-map__link:active { transform: none; filter: none; }
  .home-amenities__item:hover { transform: none; }
}
