:root {
  --red: #D71920;
  --white: #FFFFFF;
  --black: #000000;
  --oak: #EFE5D8;
  --pool: #1C8FA0;
  --grey: #5A5A5A;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wide: 125;

  /* Type scale, ratio ~1.333 */
  --t-sm: 0.875rem;
  --t-base: 1.0625rem;
  --t-md: 1.375rem;
  --t-lg: clamp(1.75rem, 1.2rem + 2.4vw, 2.625rem);
  --t-xl: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
  --t-hero: clamp(3rem, 1.2rem + 9vw, 8.5rem);

  --gap: clamp(1rem, 0.6rem + 1.6vw, 1.75rem);
  --section: clamp(4rem, 2.5rem + 6vw, 8rem);
  --radius: 4px;
}

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

/* Keep the hidden attribute working even on elements that set their own display (e.g. the extra photos grid). */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-base);
  line-height: 1.55;
  color: var(--black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, p, ul, dl, dd, figure, address { margin: 0; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }
.hero :focus-visible, .band :focus-visible, .contact :focus-visible { outline-color: var(--white); }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
}

/* ---------- Buttons ---------- */

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.75rem 1.75rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 650;
  font-stretch: 110%;
  font-size: var(--t-base);
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.btn--light { background: var(--white); color: var(--red); }
.btn--light:hover { background: var(--oak); }
.btn--outline-light { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover { background: var(--white); color: var(--red); }
.btn--red { background: var(--red); color: var(--white); }
.btn--outline-dark { border-color: var(--black); color: var(--black); background: var(--white); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background: var(--black);
  isolation: isolate;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::after {
  /* Darkens the bottom of the photo so the white text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.38) 0%, rgba(0,0,0,0) 16%),
    linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 38%, rgba(0,0,0,0) 62%);
}
@media (min-width: 760px) {
  .hero::after {
    background:
      linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 14%),
      linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.3) 45%, rgba(0,0,0,0) 70%),
      linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 55%);
  }
}
.hero__content {
  padding-block: 3rem calc(2.5rem + env(safe-area-inset-bottom));
}
.hero__place {
  font-size: var(--t-base);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.hero__title {
  font-size: var(--t-hero);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero__lede {
  font-size: var(--t-md);
  line-height: 1.35;
  max-width: 30ch;
  margin-bottom: 2rem;
}

/* ---------- Red band ---------- */

.band {
  background: var(--red);
  color: var(--white);
  padding-block: var(--section);
}
.band__inner { display: grid; gap: 2.5rem; }
.band__title {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 16ch;
}
.included {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.25rem 2rem;
  font-size: var(--t-md);
  line-height: 1.3;
}
.included li { padding-block: 0.6rem; }

@media (min-width: 900px) {
  .band__inner { grid-template-columns: 1.3fr 1fr; align-items: end; gap: 4rem; }
  .included { grid-template-columns: 1fr; }
}

/* ---------- Shared section heads ---------- */

.section { padding-block: var(--section); }

.section__head {
  display: grid;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem);
}
.section__title {
  font-size: var(--t-lg);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.section__intro {
  color: var(--grey);
  max-width: 46ch;
}
@media (min-width: 900px) {
  .section__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; }
}

/* ---------- Residence gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}
.gallery__item { grid-column: span 1; }
.gallery__item--wide, .gallery__item--tall { grid-column: 1 / -1; }

.zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--oak);
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
}
.zoom img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.gallery__item--tall .zoom img { aspect-ratio: 4 / 5; }
.gallery figcaption {
  font-size: var(--t-sm);
  color: var(--grey);
  padding-top: 0.5rem;
}

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item--tall { grid-column: span 1; }
  .gallery__item--wide .zoom, .gallery__item--tall .zoom { height: calc(100% - 1.9rem); }
  .gallery__item--wide .zoom img, .gallery__item--tall .zoom img { height: 100%; aspect-ratio: auto; }
}

.gallery--more { margin-top: var(--gap); }
.gallery__toggle { margin-top: clamp(1.5rem, 1rem + 2vw, 2.5rem); }

/* ---------- Terms ---------- */

.terms { background: var(--oak); }
.terms__inner { display: grid; gap: 2rem; }
.terms__list { display: grid; }
.terms__list div {
  display: grid;
  gap: 0.15rem;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(0,0,0,0.18);
}
.terms__list div:last-child { border-bottom: 1px solid rgba(0,0,0,0.18); }
.terms__list dt { font-size: var(--t-sm); color: var(--grey); font-variant-numeric: tabular-nums; }
.terms__list dd { font-size: var(--t-md); font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; }
.terms__head { display: grid; gap: 0.75rem; align-content: start; }
.rates dd span { font-size: var(--t-base); font-weight: 400; color: var(--grey); white-space: nowrap; }

@media (min-width: 760px) {
  .terms__list div { grid-template-columns: 12rem 1fr; align-items: baseline; gap: 2rem; }
}
@media (min-width: 900px) {
  .terms__inner { grid-template-columns: 1fr 1.6fr; gap: 4rem; }
}

/* ---------- Amenities strip ---------- */

.strip {
  list-style: none;
  margin: 0;
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: clamp(1.25rem, 0.5rem + 3vw, 3rem);
  padding: 0 clamp(1.25rem, 0.5rem + 3vw, 3rem) 1rem;
  scrollbar-width: thin;
}
@media (min-width: 1240px) {
  .strip {
    padding-inline: calc((100vw - 1240px) / 2 + 3rem);
    scroll-padding-inline: calc((100vw - 1240px) / 2 + 3rem);
  }
}
.strip li {
  flex: 0 0 min(78vw, 26rem);
  scroll-snap-align: start;
}
.strip img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--oak);
}
.strip span {
  display: block;
  padding-top: 0.6rem;
  font-weight: 600;
}
.amenities__more { margin-top: 1.5rem; }
.amenities__more a, .text-link {
  color: var(--red);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

/* ---------- Location ---------- */

.location { padding-top: 0; }
.location__inner { display: grid; gap: 2rem; }
.location__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.location__text { display: grid; gap: 1rem; align-content: center; max-width: 40ch; }
.location address { font-style: normal; color: var(--grey); }

@media (min-width: 760px) {
  .location__inner { grid-template-columns: 1.3fr 1fr; gap: 4rem; align-items: center; }
}

/* ---------- Contact ---------- */

.contact {
  background: var(--red);
  color: var(--white);
  padding-block: var(--section);
}
.contact__inner { display: grid; gap: 1.25rem; justify-items: start; }
.contact__title {
  font-size: var(--t-xl);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1;
  letter-spacing: -0.015em;
}
.contact__lede { font-size: var(--t-md); line-height: 1.35; max-width: 32ch; }
.contact__number {
  font-size: clamp(2rem, 1rem + 5vw, 4.5rem);
  font-weight: 700;
  font-stretch: 100%;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-block: 0.5rem 1rem;
  font-variant-numeric: tabular-nums;
}

.contact__email {
  font-size: var(--t-md);
  font-weight: 600;
  text-underline-offset: 0.2em;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

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

.footer {
  padding-block: 2.5rem calc(6rem + env(safe-area-inset-bottom));
  font-size: var(--t-sm);
  color: var(--grey);
}
.footer__inner { display: grid; gap: 0.5rem; max-width: 1240px; }
.footer p { max-width: 70ch; }

@media (min-width: 760px) {
  .footer { padding-bottom: 2.5rem; }
}

/* ---------- Sticky contact dock (phones) ---------- */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 -1px 0 rgba(0,0,0,0.12);
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.dock .btn { min-height: 3rem; padding-inline: 1rem; }
.dock.is-away { transform: translateY(110%); }

@media (min-width: 760px) {
  .dock { display: none; }
}

/* ---------- Photo viewer ---------- */

.viewer {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0,0,0,0.94);
  color: var(--white);
}
.viewer[open] { display: grid; place-items: center; }
.viewer::backdrop { background: rgba(0,0,0,0.6); }
.viewer img {
  max-width: 100vw;
  max-height: 100dvh;
  object-fit: contain;
}
.viewer__btn, .viewer__close {
  position: absolute;
  border: 0;
  background: rgba(0,0,0,0.45);
  color: var(--white);
  font-family: var(--font);
  cursor: pointer;
}
.viewer__btn {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
}
.viewer__prev { left: 0.75rem; }
.viewer__next { right: 0.75rem; }
.viewer__close {
  top: calc(0.75rem + env(safe-area-inset-top));
  right: 0.75rem;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 600;
}
.viewer :focus-visible { outline-color: var(--white); }

/* ---------- Top bar and menu ---------- */

section[id] { scroll-margin-top: 4rem; }

.topbar, .menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: calc(0.6rem + env(safe-area-inset-top)) clamp(1.25rem, 0.5rem + 3vw, 3rem) 0.6rem;
}
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: var(--white);
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.topbar.is-solid {
  color: var(--black);
  background: rgba(255,255,255,0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.topbar__name {
  font-size: var(--t-base);
  font-weight: 800;
  font-stretch: 125%;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.topbar__menu {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 2.75rem;
  padding: 0.4rem 0 0.4rem 0.75rem;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.topbar :focus-visible, .menu :focus-visible { outline-color: currentColor; }

.burger, .burger::before, .burger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -7px; }
.burger::after { top: 7px; }
.burger.is-x { background: transparent; }
.burger.is-x::before { top: 0; transform: rotate(45deg); }
.burger.is-x::after { top: 0; transform: rotate(-45deg); }

.menu {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--red);
  color: var(--white);
}
.menu[open] { display: flex; flex-direction: column; }
.menu::backdrop { background: transparent; }
.menu__nav { flex: 1; display: flex; align-items: center; }
.menu__links {
  list-style: none;
  padding: 0 clamp(1.25rem, 0.5rem + 3vw, 3rem);
  display: grid;
  gap: 0.7rem;
}
.menu__links a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.4em;
  font-size: clamp(1.85rem, 1.2rem + 4vw, 4rem);
  font-weight: 800;
  font-stretch: 125%;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-decoration: none;
  transition: opacity 0.15s;
}
/* Dash marker before each item; it grows longer on the section you're currently in. */
.menu__links a::before {
  content: "";
  flex: none;
  width: 0.45em;
  height: max(3px, 0.09em);
  margin-top: 0.54em;
  background: currentColor;
  transition: width 0.2s;
}
.menu__links a[aria-current="true"]::before { width: 1.1em; }
.menu__links.has-current a:not([aria-current="true"]) { opacity: 0.72; }
.menu__links a:hover, .menu__links a:focus-visible { opacity: 1; }
.menu__links a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.menu__actions {
  padding: 0 clamp(1.25rem, 0.5rem + 3vw, 3rem) calc(2rem + env(safe-area-inset-bottom));
}

/* ---------- Opening moment (hero only) ---------- */

@media (prefers-reduced-motion: no-preference) {
  .hero__place, .hero__title, .hero__lede, .hero__content .actions {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero__title { animation-delay: 0.08s; }
  .hero__lede { animation-delay: 0.2s; }
  .hero__content .actions { animation-delay: 0.32s; }
  .hero__media img { animation: settle 1.8s ease-out both; }
  .menu[open] { animation: fade-in 0.2s ease-out; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 404 ---------- */

.notfound__main { min-height: 100svh; display: flex; align-items: center; }

/* ---------- Looping clips (behave like GIFs) ---------- */

.loop {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--oak);
}
.location__img--video { aspect-ratio: 4 / 5; }
@media (min-width: 760px) {
  .location__img--video { aspect-ratio: 1 / 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dock, .btn { transition: none; }
}
