/* Serenity Hotel - concept site.
   Measurements follow the 1280px Figma frame; below that the layout
   scales down and stacks. */

:root {
  --ink: #051805;
  --green: #2d4d44;
  --paper: #ffffff;
  --off-white: #f8f8f8;
  --dot: #5f5c5c;
  --page: 1280px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
ul,
figure {
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--off-white);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--ink);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Language switch ---------- */

.lang {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 20;
  display: flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(5, 24, 5, 0.82);
}

.lang__btn {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: transparent;
  color: var(--off-white);
  font: 500 13px/1 'Inter', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.lang__btn[aria-pressed='true'] {
  background: var(--off-white);
  color: var(--ink);
}

/* ---------- Section dots ---------- */

.section-nav {
  position: fixed;
  top: 50%;
  right: 25px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 28px;
  transform: translateY(-50%);
}

.section-nav a {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  opacity: 0.55;
  transition: opacity 0.2s, transform 0.2s;
}

.section-nav a:hover,
.section-nav a.is-active {
  opacity: 1;
  transform: scale(1.35);
}

.section-nav img {
  width: 13px;
  height: 13px;
}

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

.hero {
  position: relative;
  height: 614px;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bar {
  position: absolute;
  left: 50%;
  bottom: 43px;
  width: min(1089px, calc(100% - 48px));
  min-height: 116px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr 0.836fr 1fr;
  align-items: center;
  border-radius: 22px;
  background: var(--ink);
  color: var(--off-white);
  text-align: center;
}

.hero__brand {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.hero__stat {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
}

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

.rooms {
  padding-top: 92px;
}

.rooms__scroller {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.rooms__scroller::-webkit-scrollbar {
  display: none;
}

.rooms__scroller.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.rooms__scroller:focus-visible {
  outline-color: var(--ink);
  box-shadow: none;
}

.rooms__track {
  display: flex;
  align-items: center;
  width: max-content;
  margin-inline: auto;
  padding-inline: 102px;
}

.rooms__dot {
  flex: none;
  width: 22px;
  height: 22px;
  margin-inline: 47px 46px;
}

.room {
  position: relative;
  flex: none;
  width: 363px;
  height: 456px;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  scroll-snap-align: center;
  user-select: none;
}

.room__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  pointer-events: none;
}

.room__crop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* The double room photo is framed off-centre in the design */
.room__image--double {
  inset: auto;
  top: -15.13%;
  left: -7.58%;
  width: 217.03%;
  height: 115.13%;
  object-fit: fill;
}

.room__shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 54.4%;
  background: linear-gradient(to bottom, rgba(210, 210, 210, 0), var(--ink));
}

.room__shade--tall {
  height: 56.6%;
}

.room__body {
  position: absolute;
  left: 27px;
  right: 27px;
  bottom: 27px;
}

.room__title {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.21;
}

.room__text {
  min-height: 73px;
  margin-top: 19px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.21;
}

/* ---------- Quote ---------- */

.about {
  padding: 204px 24px 0;
  text-align: center;
  scroll-margin-top: -120px;
}

.about__logo {
  width: 113px;
  height: 150px;
  margin-inline: auto;
}

.about__quote {
  max-width: 1043px;
  margin: 59px auto 0;
  font-size: 29px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
}

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

.reviews {
  padding: 189px 24px 0;
  scroll-margin-top: -100px;
}

.reviews__stage {
  position: relative;
  display: grid;
  max-width: 1127px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--green);
  box-shadow: 0 -3px 4px rgba(0, 0, 0, 0.25);
}

/* Every review shares one grid cell so the stage takes the tallest one's
   height and nothing jumps when they change. */
.review {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 481px) minmax(0, 530px);
  justify-content: space-between;
  gap: 36px;
  min-height: 573px;
  padding: 36px 37px 36px 36px;
  color: var(--off-white);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s 0.6s;
}

.review.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.review__copy {
  display: flex;
  flex-direction: column;
  padding-top: 5px;
}

.review__title {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
}

.review__text {
  margin-top: 42px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: 1.08px;
}

.review__stars {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: auto;
  padding-top: 28px;
}

.review__stars img {
  width: 24px;
  height: 24px;
}

.review__stars .review__star-tight {
  width: 20.92px;
  height: 19.9px;
  margin-left: 2px;
}

.review__figure {
  position: relative;
  min-height: 501px;
  overflow: hidden;
  border-radius: 8px;
}

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

.review__figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(210, 210, 210, 0) 50%, var(--ink));
}

.review__figure figcaption {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 1;
  color: #fff;
  font-size: 25px;
  font-weight: 300;
  line-height: 1.3;
}

.reviews__dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.reviews__dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--dot);
  opacity: 0.35;
  cursor: pointer;
  transition: opacity 0.2s;
}

.reviews__dot.is-active,
.reviews__dot:hover {
  opacity: 1;
}

.reviews__dot:focus-visible {
  outline-color: var(--ink);
  box-shadow: none;
}

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

.footer {
  margin-top: 398px;
  background: var(--ink);
  color: #fff;
}

.footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 585px 275px 1fr;
  max-width: var(--page);
  min-height: 244px;
  margin-inline: auto;
  padding: 29px 41px 27px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 5px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 21px;
  color: var(--off-white);
  font-size: 50px;
  font-weight: 200;
  line-height: 1.21;
  letter-spacing: 9px;
}

.footer__logo img {
  width: 75px;
  height: 100px;
}

.footer__social {
  display: flex;
  gap: 38px;
}

.footer__social img {
  width: 34px;
  height: 34px;
}

.footer__col h2 {
  font-size: 25px;
  font-weight: 500;
  line-height: 1.21;
}

.footer__col ul {
  margin-top: 11px;
  font-size: 25px;
  font-weight: 200;
  line-height: 1.21;
}

.footer__col li + li {
  margin-top: 8px;
}

.footer__col--contacts {
  padding-top: 5px;
}

.footer__col--contacts li + li {
  margin-top: 11px;
}

.footer__col a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- Concept badge ---------- */

.concept {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 30;
  padding: 8px 14px;
  border: 1px solid rgba(248, 248, 248, 0.35);
  border-radius: 999px;
  background: rgba(5, 24, 5, 0.9);
  color: var(--off-white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.concept:hover {
  background: var(--green);
}

/* ---------- Narrower desktops and tablets ---------- */

@media (max-width: 1279px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 24px;
  }

  .footer__logo {
    font-size: clamp(30px, 3.9vw, 50px);
    letter-spacing: 0.18em;
  }

  .footer__col h2,
  .footer__col ul {
    font-size: clamp(17px, 1.95vw, 25px);
  }
}

/* Below this the content reaches the right edge, where the dots sit */
@media (max-width: 1200px) {
  .section-nav {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero {
    height: clamp(480px, 48vw, 614px);
  }

  .hero__bar {
    padding-inline: 24px;
    column-gap: 16px;
  }

  .hero__brand {
    font-size: clamp(24px, 2.8vw, 30px);
  }

  .hero__stat {
    font-size: clamp(15px, 1.8vw, 20px);
  }

  .rooms__track {
    padding-inline: clamp(24px, 8vw, 102px);
  }

  .rooms__dot {
    margin-inline: clamp(20px, 3.6vw, 46px);
  }

  .review {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .review__text {
    margin-top: 28px;
    font-size: 16px;
    letter-spacing: 0.04em;
  }

  .about {
    padding-top: 140px;
  }

  .about__quote {
    font-size: clamp(20px, 2.7vw, 29px);
  }

  .reviews {
    padding-top: 130px;
  }

  .footer {
    margin-top: 200px;
  }
}

/* Tablets: the wordmark gets its own row above the two link columns */
@media (max-width: 960px) {
  .footer__inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 32px 24px;
    padding-block: 36px;
  }

  .footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    padding-top: 0;
  }

  .footer__logo {
    font-size: 38px;
  }

  .footer__logo img {
    width: 60px;
    height: auto;
  }

  .footer__col h2,
  .footer__col ul {
    font-size: 20px;
  }

  .footer__col--contacts {
    padding-top: 0;
  }
}

/* ---------- Phones ---------- */

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

  .lang {
    top: 14px;
    right: 14px;
  }

  .hero {
    height: 78vh;
    min-height: 460px;
    max-height: 640px;
  }

  /* One column: the name, then the two stats stacked */
  .hero__bar {
    bottom: 24px;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 22px 20px;
    border-radius: 18px;
  }

  .hero__brand {
    grid-row: 1;
    margin-bottom: 4px;
    font-size: 26px;
    letter-spacing: 0.04em;
  }

  .hero__stat {
    font-size: 15px;
  }

  .rooms {
    padding-top: 56px;
  }

  .rooms__scroller {
    scroll-snap-type: x mandatory;
  }

  .rooms__track {
    padding-inline: 24px;
  }

  .rooms__dot {
    width: 12px;
    height: 12px;
    margin-inline: 12px;
  }

  .room {
    width: min(363px, 78vw);
    height: auto;
    aspect-ratio: 363 / 456;
  }

  .room__body {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .room__title {
    font-size: 22px;
  }

  .room__text {
    min-height: 0;
    margin-top: 12px;
  }

  .about {
    padding-top: 88px;
  }

  .about__logo {
    width: 84px;
    height: auto;
  }

  .about__quote {
    margin-top: 36px;
    font-size: 19px;
  }

  .reviews {
    padding: 88px 16px 0;
  }

  .review {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    min-height: 0;
    padding: 24px 20px;
  }

  .review__figure {
    order: -1;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .review__figure figcaption {
    left: 16px;
    bottom: 10px;
    font-size: 20px;
  }

  .review__title {
    font-size: 21px;
  }

  .review__text {
    margin-top: 16px;
    font-size: 15px;
    letter-spacing: 0.02em;
  }

  .review__text p + p {
    margin-top: 0.8em;
  }

  .footer {
    margin-top: 96px;
  }

  .footer__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: 36px 24px 76px;
  }

  .footer__brand {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__logo {
    gap: 16px;
    font-size: 34px;
  }

  .footer__logo img {
    width: 54px;
    height: auto;
  }

  .footer__social {
    gap: 28px;
  }

  .footer__col h2,
  .footer__col ul {
    font-size: 19px;
  }

  .footer__col--contacts {
    padding-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .review,
  .review.is-active {
    transform: none;
    transition: none;
  }
}
