:root {
  --ivory: #f7f3ee;
  --cream: #efe9e0;
  --sand:  #e2d9c9;
  --ink:   #1a1a1a;
  --ink-2: #2a2a2a;
  --muted: #6b6257;
  --gold:  #a8884b;
  --gold-2:#8c6f3a;
  --line:  rgba(26, 26, 26, 0.12);
  --serif: 'Cormorant Garamond', 'Didot', Georgia, serif;
  --sans:  'Inter', system-ui, -apple-system, Segoe UI, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.6em;
}
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 1.04; font-weight: 300; letter-spacing: 0.005em; }
h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); line-height: 1.12; font-weight: 400; }
h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 500; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 1.2rem;
  font-weight: 500;
}

.lead { font-size: 1.15rem; line-height: 1.75; color: var(--ink-2); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary {
  background: var(--ink);
  color: var(--ivory);
}
.btn--primary:hover { background: var(--gold-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.btn--ghost-light:hover { background: rgba(255,255,255,0.12); }
.btn--white {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
.btn--white:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--full { width: 100%; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 1.1rem 0;
  background: rgba(247, 243, 238, 0);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(247, 243, 238, 0.96);
  box-shadow: 0 1px 0 var(--line);
  padding: 0.8rem 0;
  backdrop-filter: blur(8px);
}
.nav__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav__brand-group {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.nav__parent {
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  padding: 0.35rem 0.9rem 0.35rem 0;
  border-right: 1px solid rgba(255,255,255,0.28);
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.nav__parent:hover { color: #fff; border-right-color: var(--gold); }
.nav.is-scrolled .nav__parent { color: var(--muted); border-right-color: var(--line); }
.nav.is-scrolled .nav__parent:hover { color: var(--ink); border-right-color: var(--gold); }
@media (max-width: 480px) { .nav__parent { display: none; } }

.nav__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #fff;
  transition: color 0.3s ease;
}
.nav.is-scrolled .nav__logo { color: var(--ink); }
.nav__links {
  display: flex;
  gap: 2.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  transition: color 0.3s ease;
}
.nav.is-scrolled .nav__links { color: var(--ink); }
.nav__links a { position: relative; padding: 0.25rem 0; }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__cta {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  padding: 0.65rem 1.2rem;
  font-size: 0.72rem;
}
.nav.is-scrolled .nav__cta { color: var(--ink); border-color: var(--ink); }
.nav__cta:hover { background: #fff; color: var(--ink); }
.nav.is-scrolled .nav__cta:hover { background: var(--ink); color: var(--ivory); }

@media (max-width: 820px) {
  .nav__links { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  color: #fff;
}
.hero__image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: slowZoom 14s ease-out forwards;
}
@keyframes slowZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1.00); }
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.65) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  height: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.hero .eyebrow { color: rgba(255,255,255,0.85); }
.hero__title {
  color: #fff;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.hero__sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.5rem);
  font-weight: 300;
  font-style: italic;
  max-width: 38ch;
  margin: 0 0 2.2rem;
  color: rgba(255,255,255,0.92);
}
.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero__address {
  position: absolute;
  z-index: 2;
  left: 0; right: 0; bottom: 2rem;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

/* ---------- STATS ---------- */
.stats {
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.stats__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 3.5rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  font-weight: 400;
  color: var(--ink);
}
.stat__label {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 720px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); gap: 2.4rem; }
  .stat { border-right: 0; }
}

/* ---------- SECTION BASE ---------- */
section { padding: 7rem 0; }
@media (max-width: 720px) { section { padding: 4.5rem 0; } }

/* ---------- RESIDENCE ---------- */
.residence__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 5rem;
  align-items: center;
}
.residence__text p { color: var(--ink-2); margin: 0 0 1.1rem; }
.residence__image img {
  width: 100%;
  height: 620px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .residence__inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .residence__image img { height: 440px; }
}

/* ---------- FEATURE (alternating) ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 0;
  align-items: stretch;
  padding: 0;
}
.feature--reverse { grid-template-columns: 1fr 1.3fr; }
.feature--reverse .feature__image { order: 2; }
.feature--reverse .feature__text  { order: 1; }

.feature__image img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}
.feature__text {
  background: var(--cream);
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.feature__text p { color: var(--ink-2); max-width: 42ch; }

@media (max-width: 900px) {
  .feature, .feature--reverse { grid-template-columns: 1fr; }
  .feature--reverse .feature__image { order: 1; }
  .feature--reverse .feature__text  { order: 2; }
  .feature__image img { min-height: 320px; }
  .feature__text { padding: 3rem 2rem; }
}

/* ---------- GALLERY ---------- */
.gallery { background: var(--ivory); }
.gallery__head {
  max-width: 1360px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
  text-align: center;
}
.gallery__grid {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 0.75rem;
}
.gallery__item { margin: 0; overflow: hidden; position: relative; background: var(--sand); }
.gallery__item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  transition: transform 0.9s ease, filter 0.5s ease;
  cursor: zoom-in;
}
.gallery__item:hover img { transform: scale(1.04); filter: brightness(1.03); }
.gallery__item--wide { grid-column: span 2; }

@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item img { height: 240px; }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10, 10, 10, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.lightbox__close { top: 1.5rem; right: 1.5rem; }
.lightbox__nav--prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

/* ---------- FEATURES LIST ---------- */
.features { background: var(--cream); }
.features__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}
.features__head { text-align: center; margin-bottom: 4rem; }
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.feature-card {
  background: var(--ivory);
  padding: 2.4rem 2rem;
  border: 1px solid var(--line);
}
.feature-card h4 {
  margin-bottom: 1.4rem;
  color: var(--gold-2);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.9rem;
}
.feature-card ul { list-style: none; padding: 0; margin: 0; }
.feature-card li {
  font-size: 0.96rem;
  color: var(--ink-2);
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(26,26,26,0.05);
}
.feature-card li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .features__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .features__grid { grid-template-columns: 1fr; }
}

/* ---------- INQUIRE ---------- */
.inquire {
  background: var(--ivory);
  border-top: 1px solid var(--line);
}
.inquire__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.inquire__text p { color: var(--ink-2); max-width: 44ch; }
.inquire__meta {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.inquire__meta > div {
  font-size: 0.95rem;
  color: var(--ink-2);
}
.inquire__meta span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 0.5rem;
}
.inquire__meta a { border-bottom: 1px solid var(--line); }

.inquire__form {
  background: #fff;
  padding: 2.8rem;
  border: 1px solid var(--line);
}
.field { margin-bottom: 1.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.55rem;
  font-weight: 500;
}
.field .optional { color: var(--sand); letter-spacing: 0.08em; text-transform: none; }
.field .required-mark {
  color: var(--gold-2);
  margin-left: 0.25em;
  font-weight: 600;
}
.stay-hint {
  margin: -0.5rem 0 1.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  transition: color 0.25s ease;
}
.stay-hint.is-error {
  color: #b23a3a;
  font-weight: 500;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field textarea {
  padding: 0.85rem 0;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 0;
  border-bottom-color: var(--gold);
}
.field input:user-invalid,
.field textarea:user-invalid {
  border-bottom-color: #b23a3a;
}
.form-status {
  margin: 1rem 0 0;
  font-size: 0.92rem;
  min-height: 1.2em;
  text-align: center;
}
.form-status.is-success { color: #2a6b3a; }
.form-status.is-error   { color: #b23a3a; }

@media (max-width: 900px) {
  .inquire__inner { grid-template-columns: 1fr; gap: 3rem; }
  .inquire__form { padding: 2rem 1.5rem; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 0 1.8rem;
}
.footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer__logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #fff;
  margin: 0 0 0.4rem;
}
.footer__addr { font-size: 0.9rem; margin: 0; }
.footer__right {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: right;
  font-size: 0.9rem;
}
.footer__right a { border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 2px; }
.footer__right a:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.footer__base {
  max-width: 1360px;
  margin: 2.5rem auto 0;
  padding: 1.6rem 2rem 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 1rem;
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
