.sleeping-page main { overflow: hidden; }

.sleeping-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--green-dark);
}

.sleeping-hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 54%;
}

.sleeping-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 28, 23, .93) 0%, rgba(9, 28, 23, .69) 48%, rgba(9, 28, 23, .18) 82%),
    linear-gradient(0deg, rgba(9, 28, 23, .76), transparent 48%);
}

.sleeping-hero-copy {
  position: relative;
  z-index: 1;
  padding-bottom: 92px;
}

.sleeping-hero-copy h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(4.2rem, 7.4vw, 7.6rem);
  line-height: .9;
}

.sleeping-hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, .84);
  font-family: var(--serif);
  font-size: clamp(1.12rem, 1.8vw, 1.48rem);
  line-height: 1.52;
}

.sleeping-hero-actions { display: flex; align-items: center; gap: 28px; }

.sleeping-statbar {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 0;
  min-height: 112px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, .28);
  transform: translateX(-50%);
}

.sleeping-statbar > div {
  min-height: 58px;
  padding: 0 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .2);
}

.sleeping-statbar > div:first-child { padding-left: 0; }
.sleeping-statbar > div:last-child { padding-right: 0; border-right: 0; }
.sleeping-statbar strong { font-family: var(--serif); font-size: 2.05rem; font-weight: 500; line-height: 1; }
.sleeping-statbar span { margin-top: 7px; color: rgba(255, 255, 255, .65); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }

.sleeping-intro {
  padding-block: 120px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 95px;
  align-items: start;
}

.sleeping-intro h2 { max-width: 760px; margin-bottom: 0; }
.sleeping-intro > div:last-child { padding-top: 32px; }
.sleeping-intro > div:last-child p { color: var(--ink-soft); font-family: var(--serif); font-size: 1.16rem; line-height: 1.72; }
.sleeping-intro > div:last-child p:last-child { margin-bottom: 0; }

.sleeping-zones { padding-block: 112px; color: #fff; background: linear-gradient(132deg, var(--green-dark), var(--river-deep)); }
.sleeping-zones-heading { margin-bottom: 50px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 80px; align-items: end; }
.sleeping-zones-heading h2 { max-width: 760px; margin-bottom: 0; }
.sleeping-zones-heading > p { max-width: 520px; margin: 0 0 5px; color: rgba(255, 255, 255, .68); font-family: var(--serif); font-size: 1.08rem; line-height: 1.58; }

.sleeping-zone-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sleeping-zone {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 20px;
  box-shadow: 0 18px 48px rgba(4, 20, 16, .25);
}
.sleeping-zone-wide { grid-column: 1 / -1; min-height: 590px; }
.sleeping-zone > img { width: 100%; height: 100%; object-fit: cover; transition: transform .65s ease; }
.sleeping-zone-wide > img { object-position: center 54%; }
.sleeping-zone-bath > img { object-position: center 61%; }
.sleeping-zone:hover > img { transform: scale(1.025); }
.sleeping-zone::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 25, 20, .91), rgba(7, 25, 20, .03) 68%); pointer-events: none; }
.sleeping-zone > div { position: absolute; z-index: 1; left: 32px; right: 32px; bottom: 30px; max-width: 690px; }
.sleeping-zone > div > span { display: block; margin-bottom: 10px; color: #e6c78e; font-size: .65rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sleeping-zone h3 { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(2rem, 3vw, 3.4rem); font-weight: 500; line-height: 1.04; }
.sleeping-zone p { max-width: 620px; margin: 0; color: rgba(255, 255, 255, .7); font-size: .76rem; line-height: 1.62; }

.sleeping-planner {
  padding-block: 120px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 100px;
  align-items: start;
}
.sleeping-planner-copy { position: sticky; top: 126px; }
.sleeping-planner-copy h2 { margin-bottom: 25px; }
.sleeping-planner-copy > p:not(.eyebrow) { max-width: 520px; margin-bottom: 32px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.1rem; line-height: 1.64; }
.sleeping-planner-list article { min-height: 150px; padding: 28px 0; display: grid; grid-template-columns: 70px 1fr; gap: 24px; border-top: 1px solid rgba(40, 77, 90, .2); }
.sleeping-planner-list article:last-child { border-bottom: 1px solid rgba(40, 77, 90, .2); }
.sleeping-planner-list article > span { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--green); border-radius: 50%; font-family: var(--serif); font-size: 1.02rem; }
.sleeping-planner-list h3 { margin: 0 0 9px; font-family: var(--serif); font-size: 1.62rem; font-weight: 500; }
.sleeping-planner-list p { max-width: 650px; margin: 0; color: var(--ink-soft); font-size: .76rem; line-height: 1.62; }

.sleeping-photo-pair { padding-bottom: 120px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.sleeping-photo-pair figure { position: relative; height: 540px; margin: 0; overflow: hidden; border-radius: 20px; box-shadow: var(--shadow-soft); }
.sleeping-photo-pair img { width: 100%; height: 100%; object-fit: cover; }
.sleeping-photo-pair figcaption { position: absolute; left: 18px; right: 18px; bottom: 16px; padding: 13px 15px; color: #fff; background: rgba(9, 31, 25, .76); border: 1px solid rgba(255, 255, 255, .16); border-radius: 9px; font-size: .68rem; line-height: 1.45; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

.sleeping-faq { padding-block: 115px; background: linear-gradient(120deg, var(--sand-pale), var(--sage)); }
.sleeping-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.sleeping-faq-grid h2 { max-width: 560px; }
.sleeping-faq details { border-top: 1px solid rgba(40, 77, 90, .2); }
.sleeping-faq details:last-child { border-bottom: 1px solid rgba(40, 77, 90, .2); }
.sleeping-faq summary { min-height: 76px; padding: 20px 42px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-family: var(--serif); font-size: 1.25rem; cursor: pointer; list-style: none; }
.sleeping-faq summary::-webkit-details-marker { display: none; }
.sleeping-faq summary::after { content: "+"; color: var(--green); font-family: var(--sans); font-size: 1.4rem; font-weight: 400; }
.sleeping-faq details[open] summary::after { content: "−"; }
.sleeping-faq details p { max-width: 720px; margin: -5px 0 18px; color: var(--ink-soft); font-size: .76rem; line-height: 1.65; }
.sleeping-faq details .text-link { margin-bottom: 24px; }

.sleeping-cta { position: relative; height: 580px; margin-block: 100px; overflow: hidden; border-radius: 22px; box-shadow: var(--shadow); }
.sleeping-cta > img { width: 100%; height: 100%; object-fit: cover; }
.sleeping-cta-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 29, 23, .9), rgba(8, 29, 23, .15)); }
.sleeping-cta > div:last-child { position: absolute; left: 72px; top: 50%; max-width: 760px; color: #fff; transform: translateY(-50%); }
.sleeping-cta h2 { margin-bottom: 34px; font-size: clamp(3rem, 5.2vw, 5.6rem); }

@media (max-width: 1080px) {
  .sleeping-zones-heading,
  .sleeping-intro { gap: 55px; }
  .sleeping-planner,
  .sleeping-faq-grid { gap: 55px; }
  .sleeping-photo-pair figure { height: 460px; }
}

@media (max-width: 760px) {
  .sleeping-hero {
    min-height: 0;
    padding-top: 320px;
    display: flex;
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }
  .sleeping-hero > img { object-position: 60% center; }
  .sleeping-hero-shade { background: linear-gradient(0deg, rgba(8, 27, 22, .96) 0%, rgba(8, 27, 22, .62) 68%, rgba(8, 27, 22, .17)); }
  .sleeping-hero-copy { padding-bottom: 42px; }
  .sleeping-hero-copy h1 {
    max-width: 10ch;
    margin-bottom: 22px;
    font-size: clamp(3rem, 13vw, 4.15rem);
    line-height: .94;
    text-wrap: balance;
  }
  .sleeping-hero-copy > p:not(.eyebrow) { max-width: 35rem; margin-bottom: 28px; font-size: 1.04rem; line-height: 1.55; }
  .sleeping-hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .sleeping-statbar {
    position: relative;
    left: auto;
    bottom: auto;
    width: var(--shell);
    min-height: 154px;
    margin-inline: auto;
    padding-block: 14px;
    grid-template-columns: repeat(2, 1fr);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    transform: none;
  }
  .sleeping-statbar > div { min-height: 62px; padding: 8px 14px; border-right: 0; }
  .sleeping-statbar > div:first-child { padding-left: 14px; }
  .sleeping-statbar > div:nth-child(odd) { border-right: 1px solid rgba(255, 255, 255, .2); }
  .sleeping-statbar > div:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .sleeping-statbar strong { font-size: 1.55rem; }
  .sleeping-statbar span { line-height: 1.35; }
  .sleeping-intro { padding-block: 72px; grid-template-columns: 1fr; gap: 28px; }
  .sleeping-intro h2 { font-size: clamp(2.65rem, 11.5vw, 3.55rem); line-height: 1; text-wrap: balance; }
  .sleeping-intro > div:last-child { padding-top: 0; }
  .sleeping-intro > div:last-child p { font-size: 1.04rem; line-height: 1.65; }
  .sleeping-zones { padding-block: 72px; }
  .sleeping-zones-heading { grid-template-columns: 1fr; gap: 22px; }
  .sleeping-zones-heading h2 { font-size: clamp(2.65rem, 11.5vw, 3.55rem); text-wrap: balance; }
  .sleeping-zones-heading > p { font-size: 1rem; line-height: 1.6; }
  .sleeping-zone-grid { grid-template-columns: 1fr; gap: 18px; }
  .sleeping-zone,
  .sleeping-zone-wide {
    min-height: 0;
    display: flex;
    grid-column: auto;
    flex-direction: column;
    background: rgba(255, 255, 255, .07);
    border-radius: 16px;
  }
  .sleeping-zone > img,
  .sleeping-zone-wide > img {
    height: auto;
    aspect-ratio: 4 / 3;
    flex: 0 0 auto;
    object-fit: cover;
    object-position: center;
  }
  .sleeping-zone-bath > img { object-position: center 61%; }
  .sleeping-zone::after { display: none; }
  .sleeping-zone > div {
    position: static;
    max-width: none;
    padding: 25px 22px 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .025));
  }
  .sleeping-zone > div > span { margin-bottom: 9px; font-size: .68rem; }
  .sleeping-zone h3 { margin-bottom: 11px; font-size: clamp(2rem, 9.6vw, 2.55rem); line-height: 1.04; text-wrap: balance; }
  .sleeping-zone p { font-size: .93rem; line-height: 1.6; }
  .sleeping-planner { padding-block: 72px; grid-template-columns: 1fr; gap: 44px; }
  .sleeping-planner-copy { position: static; }
  .sleeping-planner-copy h2 { font-size: clamp(2.7rem, 12vw, 3.7rem); text-wrap: balance; }
  .sleeping-planner-copy > p:not(.eyebrow) { font-size: 1.02rem; line-height: 1.62; }
  .sleeping-planner-copy .button { width: 100%; }
  .sleeping-planner-list article { min-height: 0; padding-block: 24px; grid-template-columns: 48px 1fr; gap: 16px; }
  .sleeping-planner-list article > span { width: 42px; height: 42px; font-size: .95rem; }
  .sleeping-planner-list h3 { font-size: 1.48rem; line-height: 1.15; }
  .sleeping-planner-list p { font-size: .91rem; line-height: 1.58; }
  .sleeping-photo-pair { padding-bottom: 72px; grid-template-columns: 1fr; gap: 16px; }
  .sleeping-photo-pair figure { height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
  .sleeping-photo-pair figcaption { left: 12px; right: 12px; bottom: 11px; padding: 11px 12px; font-size: .76rem; }
  .sleeping-faq { padding-block: 72px; }
  .sleeping-faq-grid { grid-template-columns: 1fr; gap: 34px; }
  .sleeping-faq-grid h2 { font-size: clamp(2.7rem, 12vw, 3.65rem); text-wrap: balance; }
  .sleeping-faq summary { min-height: 74px; padding-block: 20px; font-size: 1.12rem; line-height: 1.25; }
  .sleeping-faq details p { font-size: .92rem; line-height: 1.62; }
  .sleeping-faq details .text-link { font-size: .9rem; }
  .sleeping-cta { width: 100%; height: 520px; margin-block: 0; border-radius: 0; }
  .sleeping-cta > img { object-position: 58% center; }
  .sleeping-cta-shade { background: linear-gradient(0deg, rgba(8, 29, 23, .92), rgba(8, 29, 23, .12)); }
  .sleeping-cta > div:last-child { left: 20px; right: 20px; top: auto; bottom: 56px; transform: none; }
  .sleeping-cta h2 { max-width: 9ch; font-size: clamp(2.8rem, 12.5vw, 3.45rem); line-height: .98; text-wrap: balance; }
}

@media (max-width: 390px) {
  .sleeping-hero { padding-top: 285px; }
  .sleeping-hero-copy h1 { font-size: 2.9rem; }
  .sleeping-hero-actions .button { width: 100%; }
  .sleeping-statbar > div { padding-inline: 10px; }
  .sleeping-statbar > div:first-child { padding-left: 10px; }
  .sleeping-statbar span { font-size: .57rem; letter-spacing: .06em; }
  .sleeping-zone > div { padding-inline: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  .sleeping-zone > img { transition: none; }
  .sleeping-zone:hover > img { transform: none; }
}
