/* Black Inn Dilijan — home page
 *
 * Transcribed from the Claude Design prototype (Black Inn Home.dc.html), which
 * expressed everything as inline styles on a React-ish runtime. The values here
 * are that prototype's values; the class names are the only invention.
 *
 * Two prototype conventions worth naming, because they look like typos:
 *
 *   - `min-height: clamp(0px, (100vw - 860px) * 1000, 771px)` is a deliberate
 *     switch, not a calculation: the middle term crosses 771px within a pixel
 *     of 860px viewport width, so the section is 0 below 860px and 771px above.
 *     It keeps the two-column hero from reserving desktop height on a phone.
 *
 *   - Underlines animate as a background-image, not a border, because
 *     `background-size` is cheap to transition and `text-decoration` is not.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  --bg: #000;
  --bg-raised: rgb(26, 26, 26);
  --bg-card: rgb(32, 32, 32);
  --fg: #fff;
  --fg-muted: rgb(181, 181, 181);
  --fg-dim: rgb(170, 170, 170);
  --fg-body: rgb(210, 210, 210);
  --fg-meta: rgb(160, 160, 160);
  --white-hover: rgb(217, 217, 217);

  --hairline: inset 0 0 0 1px rgba(255, 255, 255, 0.04),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.08);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --gutter: clamp(20px, 7.3vw, 100px);
  --section-y: clamp(48px, 8vw, 64px);

  --font: 'Montserrat arm', Montserrat, 'Noto Sans Armenian', sans-serif;
  --font-latin: Montserrat, sans-serif;
  --font-script: 'Brush Script MT', 'Brush Script Std', 'Segoe Script', cursive;
}

/* ------------------------------------------------------------- baseline */

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

a {
  color: var(--fg);
  text-decoration: none;
}

a:hover { color: var(--fg-muted); }

img { display: block; }

.page {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  overflow-x: hidden;
}

/* Sections that the header can scroll to need to clear it. */
#rooms,
#amenities,
#events,
#services,
#contact { scroll-margin-top: 110px; }

/* An underline that grows from the left. Shared by nav links, the email
 * address and the two social links. */
.link-underline {
  padding-bottom: 4px;
  background: linear-gradient(var(--fg), var(--fg)) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}

.link-underline:hover {
  background-size: 100% 1px;
  color: var(--fg);
}

/* The wrapper each word of a heading animates inside of. The negative margins
 * cancel the padding, so the overflow clip has room for ascenders and
 * descenders without changing the line's metrics. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.1em 0.04em 0.16em;
  margin: -0.1em -0.04em -0.16em;
}

.w > span {
  display: inline-block;
  transform-origin: 0 100%;
}

/* --------------------------------------------------------------- loader */

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader__box {
  position: relative;
  width: 111px;
  height: 51px;
  transform: scale(3);
  flex-shrink: 0;
}

.loader__box img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.loader__black {
  opacity: 0;
  transform: translateY(12px);
}

.loader__line { clip-path: inset(0 100% 0 0); }

/* Positioned to land on the baseline the logo's wordmark leaves behind. */
.loader__script {
  position: absolute;
  left: 60.688px;
  top: 27.979px;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 19.117px;
  line-height: 100%;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--fg);
}

.loader__script span {
  display: inline-block;
  opacity: 0;
}

.loader__caret {
  position: absolute;
  top: 8%;
  left: 0;
  width: 1px;
  height: 90%;
  background: var(--fg);
  opacity: 0;
}

/* --------------------------------------------------------------- header */

.header {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1206px, calc(100% - 40px));
  min-height: 80px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 7px clamp(12px, 3vw, 24px);
  justify-content: space-between;
  align-items: center;
  z-index: 20;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.header.is-scrolled {
  background: rgba(0, 0, 0, 0.78);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45),
              inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.header__logo {
  display: block;
  width: 111px;
  height: 51px;
  flex-shrink: 0;
}

.header__logo img {
  width: 111px;
  height: 51px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
}

.nav a {
  font-size: 16px;
  line-height: 100%;
  white-space: nowrap;
}

.header__actions {
  display: flex;
  gap: clamp(10px, 2vw, 24px);
  align-items: center;
}

.header__phone {
  font-weight: 700;
  font-size: 16px;
  line-height: 100%;
  white-space: nowrap;
}

/* --------------------------------------------------- language switcher */

.lang { position: relative; }

.lang__button {
  height: 36px;
  padding: 0 12px 0 14px;
  border: 0;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  color: var(--fg);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  gap: 9px;
  align-items: center;
  cursor: pointer;
  white-space: nowrap;
}

.lang__button:hover { background: rgba(255, 255, 255, 0.16); }

.lang__chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--fg);
  border-bottom: 1.5px solid var(--fg);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.25s ease;
}

.lang.is-open .lang__chevron { transform: translateY(2px) rotate(-135deg); }

.lang__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 132px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(15, 15, 15, 0.96);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
              0 16px 32px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 30;
}

.lang.is-open .lang__menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang__option {
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--fg);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.lang__option:hover { background: rgba(255, 255, 255, 0.12); }

.lang__option[aria-selected='true'] {
  background: rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.lang__option span {
  font-size: 11px;
  color: var(--fg-meta);
}

/* -------------------------------------------------------------- buttons */

.btn {
  height: 52px;
  padding: 16px 24px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.btn--solid {
  background: var(--fg);
  color: #000;
}

.btn--solid:hover {
  background: var(--white-hover);
  color: #000;
}

.btn--ghost {
  padding: 14px 24px 14px 16px;
  background: rgba(255, 255, 255, 0.1);
  gap: 10px;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--fg);
}

.btn--ghost img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ---------------------------------------------------------- mobile menu */

.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed;
  left: 50%;
  top: 112px;
  transform: translateX(-50%) translateY(-12px);
  width: calc(100% - 24px);
  z-index: 19;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.35s var(--ease);
}

.drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.drawer a:not(.btn) {
  padding: 14px 0;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.drawer__cta .btn {
  flex: 1 1 140px;
  padding: 0;
  justify-content: center;
}

.drawer__cta .btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  gap: 8px;
}

.drawer__cta .btn--ghost img {
  width: 20px;
  height: 20px;
}

/* ----------------------------------------------------------------- hero */

.hero {
  display: flex;
  flex-wrap: wrap;
  min-height: clamp(0px, (100vw - 860px) * 1000, 771px);
  background: var(--bg);
}

.hero__copy {
  flex: 1 1 480px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: center;
  padding: clamp(128px, 11vw, 160px) var(--gutter) 48px;
}

.hero h1 {
  margin: 0;
  font-weight: 900;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 100%;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero__sub {
  white-space: pre-line;
  margin: 0;
  font-size: 20px;
  line-height: 36px;
  max-width: 520px;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.hero__image {
  flex: 1 1 480px;
  min-height: clamp(340px, 90vw, 771px);
  position: relative;
  background: url('assets/img/banner.webp') center / cover no-repeat;
}

/* --------------------------------------------------------- section type */

.section {
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
}

/* Background.webp is a near-black texture; the solid colour behind it is what
 * shows while it loads and wherever it does not tile. */
.section--textured { background: var(--bg) url('assets/img/background.webp') center / cover no-repeat; }
.section--raised { background: var(--bg-raised); }

.section__head {
  display: flex;
  flex-direction: column;
}

.section__head h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(24px, 5.4vw, 32px);
  line-height: 100%;
  text-transform: uppercase;
  text-wrap: balance;
}

.section__head p {
  margin: 0;
  text-wrap: pretty;
  white-space: pre-line;
}

/* ---------------------------------------------------------------- about */

.about {
  padding: clamp(88px, 12vw, 171px) var(--gutter);
  align-items: center;
  gap: 24px;
  text-align: center;
}

.about__head { gap: 16px; }

.about__eyebrow {
  font-weight: 200;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: 0.02em;
}

.about__body {
  white-space: pre-line;
  margin: 0;
  font-size: 16px;
  line-height: 31px;
  max-width: 900px;
  text-wrap: pretty;
}

/* ----------------------------------------------------------------- pool */

.pool {
  gap: 48px;
  align-items: center;
}

.pool__head {
  gap: 8px;
  text-align: center;
  max-width: 1166px;
}

.pool__head h2 { font-weight: 800; }

.pool__head p {
  font-size: 14px;
  line-height: 150%;
}

.pool__grid {
  width: 100%;
  max-width: 1272px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3.5vw, 48px);
}

.pool__card {
  height: clamp(420px, 120vw, 606px);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: var(--bg-card);
  transition: transform 0.6s var(--ease);
}

.pool__card:hover { transform: translateY(-8px); }

.pool__card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------------------------------------------------------- rooms */

.rooms { gap: 24px; }

.rooms__head {
  gap: 16px;
  max-width: 1166px;
}

.rooms__head p {
  font-size: 16px;
  line-height: 31px;
}

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr));
  gap: 24px;
}

.room {
  transition: transform 0.45s var(--ease), background 0.45s ease, box-shadow 0.45s ease;
  border-radius: 32px;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px) clamp(18px, 3vw, 24px) clamp(20px, 3.5vw, 32px);
  align-items: center;
}

.room:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14),
              0 24px 48px rgba(0, 0, 0, 0.5);
}

.room__copy {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.room__copy h3 {
  margin: 0;
  font-weight: 900;
  font-size: 26px;
  line-height: 42px;
  text-transform: uppercase;
}

.room__copy p {
  margin: 0;
  font-size: 12px;
  line-height: 21px;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.room__link {
  height: 33px;
  padding: 8px 14px;
  border-radius: 50px;
  background: var(--fg);
  color: #000;
  font-weight: 500;
  font-size: 14px;
  line-height: 100%;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.room__link:hover {
  background: var(--white-hover);
  color: #000;
}

.room__image {
  width: 261px;
  max-width: 100%;
  height: 255px;
  border-radius: 10px;
  flex-shrink: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ------------------------------------------------------------- pavilion */

/* The gradient sits above the photo so the heading stays readable over it. */
.pavilion {
  position: relative;
  min-height: clamp(0px, (100vw - 860px) * 1000, 1164px);
  padding: var(--section-y) var(--gutter) 24px;
  justify-content: space-between;
  gap: 48px;
  background: linear-gradient(178.713deg, rgba(0, 0, 0, 0.7) 6.22%, rgba(0, 0, 0, 0) 40.44%),
              #111 url('assets/img/pavilion.webp') center / cover no-repeat;
}

.pavilion__head {
  gap: 8px;
  max-width: 1166px;
}

.pavilion__head p {
  font-size: 18px;
  line-height: 130%;
}

.pavilion__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.pavilion__card {
  transition: transform 0.45s var(--ease), background 0.45s ease;
  min-height: 391px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.pavilion__card:hover {
  transform: translateY(-8px);
  background: rgba(0, 0, 0, 0.78);
}

.pavilion__card > div {
  height: 223px;
  border-radius: 10px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.pavilion__card h3 {
  margin: 8px 0 0;
  font-weight: 700;
  font-size: 20px;
  line-height: 110%;
}

.pavilion__card p {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
}

/* ------------------------------------------------------------ amenities */

.amenities { gap: 32px; }

.amenities__head {
  gap: 8px;
  text-align: center;
}

.amenities__head p {
  font-size: 16px;
  line-height: 31px;
}

.amenities__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
}

.panel {
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.52);
  box-shadow: var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px;
}

.panel--kitchen {
  flex: 0 1 427px;
  min-width: min(100%, 300px);
}

.panel--comfort { flex: 1 1 480px; }

.panel__title {
  font-weight: 700;
  font-size: 14px;
  line-height: 21.76px;
  letter-spacing: 0.384px;
}

.panel__columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.panel__column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.amenity {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 24px;
}

.amenity img,
.amenity--stacked img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  object-fit: contain;
}

.amenity span {
  font-size: 14px;
  line-height: 120%;
}

.amenity--stacked {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.amenity--stacked > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 5px;
}

.amenity--stacked span {
  font-size: 14px;
  line-height: 100%;
}

.amenity--stacked small {
  font-size: 12px;
  line-height: 130%;
  color: var(--fg-dim);
}

/* --------------------------------------------------------------- events */

.events {
  padding: 96px 0;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}

.events__head {
  gap: 16px;
  text-align: center;
  max-width: 1000px;
  padding: 0 var(--gutter);
}

.events__head p {
  font-size: 16px;
  line-height: 31px;
  color: var(--fg-body);
}

.events__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 var(--gutter);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tag {
  height: 40px;
  padding: 0 8px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 40px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--fg);
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: inherit;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0.384px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.tag:hover { transform: translateY(-2px); }
.tag:active { transform: scale(0.96); }

.tag[aria-selected='true'] {
  background: var(--fg);
  color: #000;
  border-color: var(--fg);
}

.tag__count {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 11px;
}

.tag[aria-selected='true'] .tag__count { background: rgba(0, 0, 0, 0.1); }

/* The mask fades both ends of the strip so cards enter and leave instead of
 * being clipped mid-frame. */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 24px;
  width: max-content;
  transition: opacity 0.3s ease;
  will-change: transform;
}

.photo {
  position: relative;
  flex: 0 0 clamp(230px, 68vw, 294px);
  aspect-ratio: 294 / 381;
  border-radius: 10px;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.45s var(--ease), box-shadow 0.45s ease,
              filter 0.5s ease, opacity 0.5s ease;
}

.photo:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.25);
}

/* Cards that do not match the selected tag stay in the strip, dimmed. */
.photo.is-dimmed {
  filter: grayscale(1) brightness(0.45);
  opacity: 0.35;
}

.photo__tags {
  position: absolute;
  inset: auto 0 0 0;
  padding: 48px 14px 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.7));
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  height: 24px;
  padding: 0 10px;
  border-radius: 24px;
  background: rgba(0, 0, 0, 0.45);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  font-size: 11px;
  line-height: 100%;
  white-space: nowrap;
  transition: background 0.3s ease, color 0.3s ease;
}

.chip.is-active {
  background: var(--fg);
  color: #000;
}

/* ------------------------------------------------------------- services */

.services {
  gap: 48px;
  align-items: center;
}

.services__head {
  gap: 24px;
  text-align: center;
  max-width: 1000px;
}

.services__head p {
  font-size: 16px;
  line-height: 31px;
}

.services__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(16px, 3.5vw, 48px);
}

.service {
  transition: transform 0.6s var(--ease), box-shadow 0.6s ease;
  cursor: default;
  height: clamp(440px, 125vw, 583px);
  border-radius: 220px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 31px;
  text-align: center;
}

.service:hover {
  transform: scale(1.03);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 30px 60px rgba(0, 0, 0, 0.6);
}

.service span {
  font-weight: 800;
  font-size: clamp(26px, 6.5vw, 36px);
  line-height: 1.15;
  white-space: pre-line;
  color: var(--fg);
  text-wrap: balance;
}

/* -------------------------------------------------------------- contact */

.contact {
  padding: var(--section-y) var(--gutter) 54px;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 48px;
  align-items: center;
}

.contact__copy {
  flex: 1 1 360px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__head { gap: 8px; }

.contact__head p {
  font-size: 14px;
  line-height: 140%;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.contact__detail {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__label {
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
}

.contact__detail a {
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.2;
}

.contact__social {
  display: flex;
  gap: 16px;
  align-items: center;
}

.contact__social a {
  font-family: var(--font-latin);
  font-weight: 700;
  font-size: 14px;
}

.contact__social a,
.contact__detail a.link-underline { padding-bottom: 3px; }

/* Inverting a light map is the only way to get a dark one out of the embed. */
.contact__map {
  flex: 1 1 360px;
  height: clamp(320px, 80vw, 520px);
  border: 0;
  border-radius: 10px;
  filter: grayscale(1) invert(0.92) contrast(0.9);
}

/* -------------------------------------------------------------- reveals */

/* Direct children of every section but the hero start displaced and are
 * released by the IntersectionObserver in app.js. The class is added by that
 * script, so a visitor without JS never gets an invisible page. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease);
}

.reveal.is-revealed {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .nav,
  .header__phone,
  .header__book { display: none; }

  .burger { display: flex; }

  .events__tags {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
}

@media (min-width: 901px) {
  .drawer { display: none; }
}

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

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .pool__card,
  .room,
  .pavilion__card,
  .service,
  .photo,
  .tag { transition: none; }
}

/* =======================================================================
 * Room detail page (room.html)
 *
 * Shares this file's tokens and chrome — the header, language switcher and
 * contact block are the home page's, so they are reused rather than restyled.
 * Only the hero and the photo grid are new.
 * ===================================================================== */

/* Taller than the home hero's top padding because there is no image beside the
 * text to hold the eye; the clamp shrinks it as the viewport narrows. */
.room-hero {
  padding: clamp(170px, calc(320px - 11vw), 220px) var(--gutter) 100px;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.room-hero h1 {
  margin: 0;
  font-family: var(--font-latin);
  font-weight: 900;
  font-size: 26px;
  line-height: 42px;
  text-transform: uppercase;
}

.room-hero p {
  margin: 0;
  max-width: 640px;
  font-size: 12px;
  line-height: 21px;
  letter-spacing: -0.02em;
  color: var(--fg-muted);
  text-wrap: pretty;
}

.room-gallery {
  background: var(--bg);
  padding: 64px var(--gutter);
}

.room-gallery__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 24px;
}

/* Fixed height with cover crop: the photos are a mix of portrait and landscape,
 * and a ragged grid would read as broken rather than editorial. */
.room-gallery__grid img {
  display: block;
  width: 100%;
  height: 317px;
  object-fit: cover;
  border-radius: 10px;
  background: rgb(22, 22, 22);
}

/* Full-size view. Built only when a photo is opened. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox.is-open { opacity: 1; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--fg);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { background: rgba(255, 255, 255, 0.24); }

.lightbox__close { top: clamp(12px, 3vw, 28px); right: clamp(12px, 3vw, 28px); }
.lightbox__prev { left: clamp(8px, 2vw, 24px); }
.lightbox__next { right: clamp(8px, 2vw, 24px); }

.lightbox__count {
  position: absolute;
  bottom: clamp(12px, 3vw, 28px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* Sibling rooms, so a visitor can move between them without going back. */
.room-others {
  background: var(--bg-raised);
  padding: var(--section-y) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.room-others h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(20px, 3vw, 26px);
  line-height: 100%;
  text-transform: uppercase;
}

.room-others__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}

.room-others__card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: var(--hairline);
  padding-bottom: 14px;
  transition: transform 0.45s var(--ease), background 0.45s ease;
}

.room-others__card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.05);
  color: var(--fg);
}

.room-others__card > div {
  height: 132px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.room-others__card span {
  padding: 0 14px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  .lightbox,
  .room-others__card { transition: none; }
}
