:root {
  --cream: #f7f2eb;
  --warm: #eee4d6;
  --linen: #ded0bf;
  --white: #fffdf9;
  --ink: #171514;
  --soft-ink: #5f5751;
  --rule: rgba(23, 21, 20, 0.14);
  --shadow: 0 18px 50px rgba(33, 25, 18, 0.08);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(247, 242, 235, 0.78);
  border-bottom: 1px solid transparent;
  display: flex;
  height: 76px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(22px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 300ms ease, border-color 300ms ease;
  z-index: 20;
}

.site-header.scrolled {
  background: rgba(255, 253, 249, 0.92);
  border-color: var(--rule);
}

.brand {
  display: grid;
  gap: 0;
  letter-spacing: 0.08em;
  line-height: 1;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
}

.brand small {
  color: var(--soft-ink);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  margin-top: 6px;
  text-transform: uppercase;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: clamp(18px, 2.6vw, 38px);
}

.site-nav a {
  color: var(--soft-ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  position: relative;
  text-transform: uppercase;
  transition: color 220ms ease;
}

.site-nav a::after {
  background: var(--ink);
  bottom: -8px;
  content: "";
  height: 1px;
  left: 0;
  position: absolute;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 260ms ease;
  width: 100%;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 36px;
  padding: 0;
  width: 36px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 1px;
  margin: 8px 4px;
}

.hero {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100vh;
  overflow: hidden;
  padding: 120px clamp(22px, 6vw, 86px) 70px;
  position: relative;
}

.hero-bg {
  background:
    radial-gradient(135% 88% at 50% 42%, rgba(23, 21, 20, 0.08), rgba(23, 21, 20, 0.56)),
    linear-gradient(rgba(23, 21, 20, 0.42), rgba(23, 21, 20, 0.62)),
    url("hero-studio.webp") center / cover;
  inset: 0;
  position: absolute;
  transform: scale(1.02);
}

.hero-content .eyebrow {
  color: rgba(255, 253, 249, 0.86);
  text-shadow: 0 2px 14px rgba(18, 15, 12, 0.4);
}

.hero-content {
  margin: 0 auto;
  max-width: 1040px;
  position: relative;
  text-align: center;
  width: 100%;
}

.eyebrow {
  color: var(--soft-ink);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 0.98;
  margin: 0;
}

h1 {
  color: var(--white);
  font-size: clamp(3.6rem, 10vw, 9.5rem);
  text-shadow: 0 14px 42px rgba(18, 15, 12, 0.22);
}

.hero-content p:not(.eyebrow) {
  color: rgba(255, 253, 249, 0.9);
  font-size: 1.22rem;
  margin: 24px auto 34px;
  max-width: 46ch;
  text-wrap: balance;
}

.button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--white);
  display: inline-flex;
  font-size: 0.75rem;
  justify-content: center;
  letter-spacing: 0.18em;
  min-height: 50px;
  padding: 0 28px;
  text-transform: uppercase;
  transition: background 240ms ease, color 240ms ease, transform 240ms ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.hero .button {
  background: rgba(23, 21, 20, 0.76);
  border-color: rgba(255, 253, 249, 0.3);
  border-radius: 999px;
}

.hero .button:hover {
  background: rgba(23, 21, 20, 0.56);
  color: var(--white);
}

.section {
  padding: clamp(84px, 11vw, 150px) clamp(22px, 5vw, 76px);
}

.section-heading {
  max-width: 760px;
}

.section-heading.centered {
  margin: 0 auto 54px;
  text-align: center;
}

h2 {
  font-size: clamp(2.7rem, 5.8vw, 5.6rem);
}

.intro-grid,
.booking-layout {
  display: grid;
  gap: clamp(40px, 7vw, 110px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  margin-top: 54px;
}

.intro-copy {
  border-top: 1px solid var(--rule);
  color: var(--soft-ink);
  font-size: 1.05rem;
  padding-top: 28px;
}

.intro-copy p {
  margin: 0 0 24px;
}

.editorial-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.15fr 0.85fr;
}

.image-tile,
.gallery-item {
  background:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("hero-studio.webp") center / cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
  margin: 0;
  min-height: 220px;
  overflow: hidden;
}

.tile-large {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("space-styling.webp");
  background-position: center 52%;
  grid-row: span 2;
  min-height: 560px;
}

.tile-soft {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("space-table.webp");
  background-position: center 72%;
}

.tile-detail {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("space-seating.webp");
  background-position: center 45%;
}

.muted {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.amenity-grid,
.addon-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
}

.mini-card,
.addon-card {
  background: rgba(247, 242, 235, 0.58);
  border: 1px solid var(--rule);
  border-radius: 4px;
  min-height: 138px;
  padding: 24px;
  transition: background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.mini-card:hover,
.addon-card:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.mini-card span {
  color: var(--soft-ink);
  display: block;
  font-family: var(--serif);
  font-size: 1.55rem;
  margin-bottom: 26px;
}

.mini-card p {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.split-heading {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  margin: 0 auto 54px;
  max-width: 1180px;
}

.split-heading p:last-child {
  color: var(--soft-ink);
  margin: 0;
}

.addon-card {
  align-items: end;
  display: flex;
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.3rem);
  min-height: 180px;
}

.uses-section {
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
}

.uses-list {
  counter-reset: use;
  display: grid;
  gap: 0 clamp(26px, 4vw, 60px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0;
}

.uses-list li {
  align-items: baseline;
  border-top: 1px solid var(--rule);
  counter-increment: use;
  display: flex;
  font-family: var(--serif);
  font-size: clamp(1.24rem, 1.85vw, 1.7rem);
  gap: 14px;
  line-height: 1.25;
  padding: 20px 2px;
}

.uses-list li::before {
  color: var(--soft-ink);
  content: counter(use, decimal-leading-zero);
  flex: none;
  font-family: var(--sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  position: relative;
  top: -0.35em;
}

.gallery-section {
  background: #ece1d4;
}

.gallery-grid {
  display: grid;
  gap: 16px;
  grid-auto-flow: dense;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1220px;
}

.gallery-item {
  align-items: end;
  display: flex;
  min-height: 280px;
  padding: 18px;
  position: relative;
}

.gallery-item:nth-child(2) {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("gallery-wellness.webp");
  background-position: center 58%;
}

.gallery-item:nth-child(3) {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("gallery-dining.webp");
  background-position: center 56%;
}

.gallery-item.tall {
  background-image:
    linear-gradient(135deg, rgba(255, 253, 249, 0.1), rgba(23, 21, 20, 0.1)),
    url("gallery-soft-play.webp");
  background-position: center 55%;
  grid-row: span 2;
  min-height: 576px;
}

.gallery-item.wide {
  grid-column: span 2;
}

.gallery-item figcaption {
  background: rgba(255, 253, 249, 0.82);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  padding: 9px 12px;
  text-transform: uppercase;
}

.booking-section {
  background: var(--ink);
  color: var(--white);
}

.booking-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  margin: 0 auto;
  max-width: 1180px;
}

.booking-copy p:not(.eyebrow) {
  color: rgba(255, 253, 249, 0.7);
  max-width: 410px;
}

.booking-copy a {
  border-bottom: 1px solid rgba(255, 253, 249, 0.4);
  color: var(--white);
  display: inline-block;
  margin-top: 18px;
  padding-bottom: 4px;
  transition: border-color 220ms ease;
}

.booking-copy a:hover {
  border-color: var(--white);
}

.booking-copy a + a {
  margin-left: 26px;
}

.booking-form {
  background: rgba(255, 253, 249, 0.04);
  border: 1px solid rgba(255, 253, 249, 0.15);
  border-radius: 4px;
  padding: clamp(22px, 4vw, 42px);
}

.form-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

label {
  color: rgba(255, 253, 249, 0.68);
  display: grid;
  font-size: 0.7rem;
  gap: 8px;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

input,
textarea {
  background: rgba(255, 253, 249, 0.08);
  border: 1px solid rgba(255, 253, 249, 0.18);
  border-radius: 2px;
  color: var(--white);
  font: 300 1rem/1.4 var(--sans);
  min-height: 48px;
  outline: 0;
  padding: 12px 14px;
  transition: border-color 220ms ease, background 220ms ease;
  width: 100%;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  background: rgba(255, 253, 249, 0.12);
  border-color: rgba(255, 253, 249, 0.52);
}

.hp-field {
  height: 0;
  left: -9999px;
  min-height: 0;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: absolute;
  width: 1px;
}

.form-button {
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  width: 100%;
}

.form-button:hover {
  color: var(--white);
}

.form-button:disabled {
  cursor: wait;
  opacity: 0.65;
  transform: none;
}

.form-status {
  color: rgba(255, 253, 249, 0.78);
  font-size: 0.9rem;
  margin: 16px 0 0;
  min-height: 1.5em;
}

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--rule);
  color: var(--soft-ink);
  display: grid;
  gap: 14px;
  padding: 36px 22px 32px;
}

.site-footer p,
.site-footer a {
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  margin: 0;
  text-transform: uppercase;
}

.footer-brand,
.footer-copy {
  text-align: center;
}

.footer-brand {
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.footer-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px clamp(20px, 3vw, 36px);
  justify-content: center;
  margin: 0 auto;
  max-width: 620px;
  width: 100%;
}

.footer-phone {
  font-size: 0.78rem;
}

.footer-bottom {
  align-items: center;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr auto 1fr;
  margin: 4px auto 0;
  max-width: 1180px;
  width: 100%;
}

.site-footer .footer-copy {
  font-size: 0.55rem;
  grid-column: 2;
  letter-spacing: 0.1em;
}

.social-links {
  display: flex;
  gap: 14px;
  grid-column: 3;
  justify-self: end;
}

.social-links a {
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  transition: background 220ms ease, transform 220ms ease;
  width: 38px;
}

.social-links a:hover {
  background: var(--white);
  transform: translateY(-2px);
}

.social-links svg {
  fill: none;
  height: 18px;
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  width: 18px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-nav {
    background: rgba(255, 253, 249, 0.97);
    border-bottom: 1px solid var(--rule);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 16px 28px 26px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 76px;
    transform: translateY(-10px);
    transition: opacity 240ms ease, transform 240ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    border-top: 1px solid var(--rule);
    padding: 18px 0;
  }

  .menu-toggle {
    display: block;
  }

  .intro-grid,
  .booking-layout,
  .split-heading {
    grid-template-columns: 1fr;
  }

  .amenity-grid,
  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item.wide {
    grid-column: auto;
  }

  .uses-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 68px;
    padding: 0 18px;
  }

  .brand span {
    font-size: 1.32rem;
  }

  .brand small {
    font-size: 0.5rem;
  }

  .site-nav {
    top: 68px;
  }

  .hero {
    min-height: 100svh;
    padding: 110px 20px 52px;
  }

  h1 {
    font-size: clamp(2.5rem, 13.4vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero-content p:not(.eyebrow) {
    font-size: 0.98rem;
    max-width: 28ch;
  }

  .editorial-grid,
  .amenity-grid,
  .addon-grid,
  .gallery-grid,
  .uses-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .uses-list li {
    padding: 16px 2px;
  }

  .tile-large,
  .gallery-item.tall,
  .gallery-item.wide {
    grid-column: auto;
    grid-row: auto;
    min-height: 310px;
  }

  .mini-card,
  .addon-card {
    min-height: 124px;
  }

  .footer-row {
    justify-items: center;
  }

  /* Stack the footer base: social icons above, copyright last, all centred.
     column-reverse flips the DOM order (copy, then social) without moving the
     markup. Selectors are scoped to .site-footer so they outrank
     `.site-footer .footer-copy { grid-column: 2 }` from the desktop rules. */
  .site-footer .footer-bottom {
    align-items: center;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
    margin-top: 8px;
  }

  .site-footer .footer-copy,
  .site-footer .social-links {
    grid-column: auto;
    justify-self: center;
    text-align: center;
  }
}
