:root {
  --bg: #fbf3e8;
  --paper: #fffaf5;
  --ink: #28231d;
  --muted: #786d62;
  --line: rgba(40, 35, 29, 0.14);
  --warm: #b07c53;
  --shadow: 0 28px 70px rgba(40, 35, 29, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 66px;
  padding: 8px clamp(16px, 4vw, 48px);
  background: var(--bg);
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform 260ms ease, box-shadow 220ms ease;
  will-change: transform;
}
.site-header.is-hidden { transform: translateY(calc(-100% - 2px)); }
.site-header.is-scrolled { box-shadow: 0 10px 34px rgba(40, 35, 29, 0.08); }
.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.brand img {
  width: clamp(98px, 9vw, 128px);
  max-height: 46px;
  object-fit: contain;
}
.nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(10px, 1.8vw, 24px);
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar { display: none; }
.nav a:hover,
.nav a:focus-visible { color: var(--ink); }
.lang-toggle {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-media img { object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(14, 12, 10, 0.12) 0%, rgba(14, 12, 10, 0.38) 72%, rgba(14, 12, 10, 0.54) 100%),
    linear-gradient(90deg, rgba(14, 12, 10, 0.48) 0%, rgba(14, 12, 10, 0.22) 45%, rgba(14, 12, 10, 0.08) 100%);
}
.hero-overlay {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(92px, 12vw, 144px) 0 clamp(54px, 8vw, 92px);
  color: #fffaf2;
}
.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.eyebrow { color: rgba(255, 250, 242, 0.84); }
.section-kicker { color: var(--warm); }

h1, h2, p { margin-top: 0; }
h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.03em;
}
h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.95;
}
h2 {
  margin-bottom: 16px;
  font-size: clamp(29px, 3.3vw, 47px);
  line-height: 1.02;
}
.hero-text {
  max-width: 620px;
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(255, 250, 242, 0.88);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 1px solid currentColor;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.button:hover,
.button:focus-visible { transform: translateY(-1px); }
.button.primary {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.button.secondary {
  background: transparent;
  color: #fffaf2;
  border-color: rgba(255, 250, 242, 0.72);
}
.button.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: #fffaf2;
  border-color: transparent;
}

.section-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 98px) 0;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding-bottom: clamp(28px, 4vw, 48px);
}
.intro-copy .intro-lead {
  max-width: 620px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.wellness-list {
  max-width: 650px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wellness-list li {
  position: relative;
  padding: 12px 12px 12px 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: inherit;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: 0;
}
.wellness-list li:last-child { border-bottom: 1px solid var(--line); }
.wellness-list li::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 1.25em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b5237;
}
.intro-note {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.intro-media {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 14px;
  align-items: end;
}
.intro-media figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--paper);
  box-shadow: var(--shadow);
}
.media-large img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.media-small { transform: translateY(28px); }
.media-small img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.gallery-section {
  padding-top: clamp(14px, 2.2vw, 28px);
  padding-bottom: clamp(10px, 1.8vw, 24px);
}
.gallery-section > .section-kicker { margin-bottom: 18px; }
.gallery-group + .gallery-group { margin-top: clamp(52px, 7vw, 88px); }
.gallery-group > h2 { margin-bottom: 28px; }
.gallery-item {
  appearance: none;
  display: block;
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}
.gallery-item:hover img,
.gallery-item:focus-visible img { transform: scale(1.02); }
.gallery-item:focus-visible {
  outline: 3px solid rgba(176, 124, 83, 0.62);
  outline-offset: 3px;
}

/* Four deliberately fitted common-area tiles: no orphaned bottom-right tile. */
.common-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(2, clamp(245px, 27vw, 380px));
  gap: 14px;
}
.common-facade { grid-column: 1 / span 8; grid-row: 1; }
.common-entry { grid-column: 9 / span 4; grid-row: 1; }
.common-sign { grid-column: 1 / span 8; grid-row: 2; }
.common-courtyard { grid-column: 9 / span 4; grid-row: 2; }

/* Nine images form a clean 3×3 grid, removing the former internal blank spaces. */
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.room-grid .gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.closing-contact {
  width: min(680px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(10px, 1.6vw, 19px) 0 clamp(32px, 4vw, 52px);
  color: var(--ink);
  text-align: center;
}
.closing-brand img {
  width: min(360px, 72%);
  margin: 0 auto;
  object-fit: contain;
}
.contact-divider {
  width: min(528px, 88%);
  margin: 7px auto 18px;
  border-top: 2px solid rgba(40, 35, 29, 0.86);
}
.contact-list {
  display: grid;
  gap: 1px;
  width: min(570px, 100%);
  margin: 0 auto;
  padding: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.65vw, 19px);
  font-style: normal;
  line-height: 1.26;
  text-align: center;
}
.contact-row {
  display: grid;
  grid-template-columns: 28px minmax(0, auto);
  justify-content: center;
  gap: 11px;
  align-items: center;
  width: 100%;
  padding: 6px 4px;
  border-radius: 10px;
  transition: background 160ms ease, color 160ms ease;
}
.contact-row:hover,
.contact-row:focus-visible {
  background: rgba(40, 35, 29, 0.055);
  color: #4b5237;
  outline: none;
}
.contact-row strong { font-weight: 400; }
.contact-row > span:last-child { overflow-wrap: anywhere; text-align: left; }
.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
}
.contact-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-icon svg .filled {
  fill: currentColor;
  stroke: none;
}

.lightbox {
  width: min(1080px, calc(100% - 24px));
  border: none;
  border-radius: 24px;
  padding: 16px;
  background: rgba(251, 243, 232, 0.98);
  box-shadow: var(--shadow);
}
.lightbox::backdrop { background: rgba(13, 11, 9, 0.76); }
.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 82vh;
  margin: 0 auto;
  border-radius: 16px;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(40, 35, 29, 0.12);
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; }
  .common-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 320px 320px 320px;
  }
  .common-facade { grid-column: 1 / -1; grid-row: 1; }
  .common-entry { grid-column: 1; grid-row: 2; }
  .common-sign { grid-column: 2; grid-row: 2; }
  .common-courtyard { grid-column: 1 / -1; grid-row: 3; }
  .room-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .room-grid .gallery-item:last-child { grid-column: 1 / -1; }
  .room-grid .gallery-item:last-child img { aspect-ratio: 16 / 9; }
}

@media (max-width: 760px) {
  .site-header {
    min-height: 58px;
    gap: 12px;
    padding: 7px 12px;
  }
  .brand img {
    width: 88px;
    max-height: 38px;
  }
  .nav {
    gap: 12px;
    font-size: 13px;
  }
  .lang-toggle {
    min-width: 40px;
    min-height: 32px;
  }
  .hero { min-height: 90vh; }
  .hero::after {
    background: linear-gradient(180deg, rgba(14, 12, 10, 0.22) 0%, rgba(14, 12, 10, 0.56) 100%);
  }
  .hero-actions {
    flex-direction: row;
    gap: 8px;
  }
  .hero-actions .button {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    padding: 12px 10px;
  }
  .intro-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .media-small { transform: none; }
  .media-large img,
  .media-small img {
    height: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  .gallery-section {
    padding-top: 10px;
    padding-bottom: 8px;
  }
  .gallery-section > .section-kicker { margin-bottom: 14px; }
  .gallery-group > h2 { margin-bottom: 16px; }
  .gallery-group + .gallery-group { margin-top: 38px; }
  .common-grid,
  .room-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-flow: row dense;
    gap: 8px;
  }
  .common-facade,
  .common-entry,
  .common-sign,
  .common-courtyard,
  .room-grid .gallery-item:last-child {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }
  .common-grid .gallery-item,
  .room-grid .gallery-item {
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }
  .common-grid .gallery-item img,
  .room-grid .gallery-item img,
  .room-grid .gallery-item:last-child img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
  .closing-contact {
    width: min(100% - 24px, 560px);
    padding-top: 8px;
  }
  .closing-brand img { width: min(256px, 72%); }
  .contact-divider {
    width: 88%;
    margin-top: 3px;
    margin-bottom: 12px;
  }
  .contact-list {
    font-size: clamp(13px, 3.45vw, 15px);
    line-height: 1.3;
  }
  .contact-row {
    grid-template-columns: 22px minmax(0, auto);
    justify-content: center;
    gap: 8px;
    padding: 6px 1px;
  }
  .contact-icon {
    width: 22px;
    height: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header,
  .gallery-item img,
  .button { transition: none; }
}

/* Final responsive refinements */
.hero-actions .button {
  min-width: 148px;
}

@media (max-width: 760px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 10px;
  }
  .hero-actions .button {
    width: auto;
    min-width: 0;
    flex: 1 1 0;
    padding-left: 12px;
    padding-right: 12px;
  }
  .intro-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }
  .intro-media figure {
    aspect-ratio: 4 / 5;
    border-radius: 16px;
  }
  .intro-media figure img,
  .media-large img,
  .media-small img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

#common-areas {
  scroll-margin-top: 86px;
}

/* v8 final typography, Atmosfer media, and contact-scale refinements */
h2 {
  font-size: clamp(29px, 3.3vw, 47px);
  line-height: 1.06;
}

.intro-copy .intro-lead,
.wellness-list li {
  font-family: inherit;
  font-size: clamp(16px, 1.45vw, 18px);
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: 0;
}

.intro-copy .intro-lead {
  margin-bottom: 18px;
}

.wellness-list li {
  padding-top: 11px;
  padding-bottom: 11px;
}

.wellness-list li::before {
  top: 1.28em;
  width: 6px;
  height: 6px;
}

.intro-note {
  font-size: 14px;
}

.media-small img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
}

.closing-contact {
  width: min(680px, calc(100% - 40px));
  padding-top: clamp(8px, 1.3vw, 16px);
}

.closing-brand img {
  width: min(360px, 70%);
}

.contact-divider {
  width: min(528px, 74%);
  margin: 6px auto 18px;
}

.contact-list {
  width: min(568px, 100%);
  font-size: clamp(15px, 1.65vw, 19px);
  line-height: 1.24;
  text-align: center;
}

.contact-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 6px 4px;
  text-align: left;
}

.contact-icon {
  flex: 0 0 auto;
  width: 27px;
  height: 27px;
}

@media (max-width: 760px) {
  h2 {
    font-size: clamp(27px, 7.6vw, 36px);
  }

  .intro-copy .intro-lead,
  .wellness-list li {
    font-size: clamp(15px, 3.8vw, 16.5px);
  }

  .closing-contact {
    width: min(100% - 24px, 560px);
    padding-top: 7px;
  }

  .closing-brand img {
    width: min(256px, 69%);
  }

  .contact-divider {
    width: 75%;
    margin-top: 3px;
    margin-bottom: 12px;
  }

  .contact-list {
    width: 100%;
    font-size: clamp(13px, 3.45vw, 15px);
    line-height: 1.25;
  }

  .contact-row {
    gap: 8px;
    padding: 5px 0;
  }

  .contact-icon {
    width: 22px;
    height: 22px;
  }
}

/* Final heading scale requested in v8 */
h1 {
  font-size: clamp(40px, 5.7vw, 72px);
  line-height: 0.98;
}

@media (max-width: 760px) {
  h1 {
    font-size: clamp(36px, 9.5vw, 46px);
  }
}

/* Performance build: images below the first screen are hydrated near the viewport. */
.lazy-image {
  background: #eee4d8;
  opacity: 0.02;
  transition: opacity 220ms ease;
}
.lazy-image.is-loaded {
  background: transparent;
  opacity: 1;
}
