/* ===========================================================================
   THE RISE AT MONTERRAZAS DE CEBU — stylesheet
   ---------------------------------------------------------------------------
   Structure:
     1.  Design tokens (colours, type, spacing)   <- change the look here
     2.  Base and resets
     3.  Layout helpers
     4.  Typography
     5.  Buttons and links
     6.  Header, navigation, mobile drawer
     7.  Elevation rail (the signature scroll indicator)
     8.  Media blocks (images, video, placeholders)
     9.  Sections
     10. Forms
     11. Chat assistant
     12. Footer
     13. Motion and responsive
   =========================================================================== */

/* ===========================================================================
   1. DESIGN TOKENS
   =========================================================================== */
:root {
  /* Palette — drawn from the hillside: forest shadow, moss, stone, mist. */
  --ink:      #0C1613;
  --forest:   #172C24;
  --moss:     #2C4438;
  --sage:     #6F8878;
  --celadon:  #A9C4B4;
  --stone:    #DEDACF;
  --paper:    #F4F2EC;
  --white:    #FBFAF7;

  --line-dark:  rgba(244, 242, 236, 0.16);
  --line-light: rgba(12, 22, 19, 0.14);

  /* Typefaces */
  --display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --body:    "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  /* Type scale */
  --fs-display: clamp(2.9rem, 8.2vw, 6.6rem);
  --fs-h2:      clamp(1.9rem, 3.9vw, 3.3rem);
  --fs-h3:      clamp(1.25rem, 2.1vw, 1.7rem);
  --fs-lead:    clamp(1.05rem, 1.55vw, 1.32rem);
  --fs-body:    clamp(0.98rem, 1.05vw, 1.06rem);
  --fs-small:   0.86rem;
  --fs-micro:   0.71rem;

  /* Spacing */
  --wrap:    1280px;
  --narrow:  820px;
  --gutter:  clamp(20px, 5vw, 64px);
  --section: clamp(72px, 9vw, 132px);

  --radius:    2px;
  --radius-lg: 4px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* Button colours are re-declared per section so buttons always contrast. */
  --btn-solid-bg: var(--forest);
  --btn-solid-fg: var(--paper);
  --btn-ghost-fg: var(--forest);
  --btn-ghost-bd: rgba(23, 44, 36, 0.35);
}

/* ===========================================================================
   2. BASE
   =========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--forest);
  font-family: var(--body);
  font-size: var(--fs-body);
  line-height: 1.62;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, iframe { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--forest); color: var(--paper); }

:focus-visible {
  outline: 2px solid var(--celadon);
  outline-offset: 3px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--forest); color: var(--paper);
  padding: 10px 18px; text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

/* ===========================================================================
   3. LAYOUT
   =========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--narrow); }

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

.section--paper { background: var(--paper); color: var(--forest); }
.section--white { background: var(--white); color: var(--forest); }

.section--ink,
.section--moss {
  color: var(--stone);
  --btn-solid-bg: var(--paper);
  --btn-solid-fg: var(--ink);
  --btn-ghost-fg: var(--stone);
  --btn-ghost-bd: rgba(244, 242, 236, 0.32);
}
.section--ink  { background: var(--ink); }
.section--moss { background: var(--forest); }

/* Terraced edge — a stepped divider that echoes the building's setbacks.
   Used only where a dark section meets a light one. */
.section--ink::before,
.section--moss::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -1px;
  height: 26px;
  background: inherit;
  clip-path: polygon(0 100%, 0 66%, 25% 66%, 25% 33%, 60% 33%, 60% 0, 100% 0, 100% 100%);
  pointer-events: none;
}

.section__head { max-width: 62ch; margin-bottom: clamp(40px, 5vw, 68px); }
.section__head--centred { margin-inline: auto; text-align: center; }

.split {
  display: grid;
  gap: clamp(20px, 4vw, 60px);
  align-items: start;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.split__aside { max-width: 22ch; }
.split__main  { max-width: 64ch; }

@media (min-width: 900px) {
  .split { grid-template-columns: minmax(220px, 1fr) 1.5fr; }
}

.cols {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
}
@media (min-width: 760px)  { .cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .cols { grid-template-columns: repeat(3, 1fr); } }

/* ===========================================================================
   4. TYPOGRAPHY
   =========================================================================== */
.eyebrow {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 14px;
}
.eyebrow--light { color: var(--celadon); }

.h2 {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.06;
  letter-spacing: -0.018em;
  margin: 0 0 18px;
  color: var(--forest);
  text-wrap: balance;
}
.h2--light { color: var(--white); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--moss);
  margin: 0 0 20px;
  text-wrap: pretty;
}
.lead--light { color: var(--stone); }

.prose { margin: 0 0 18px; max-width: 62ch; }
.prose:last-child { margin-bottom: 0; }

.note {
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--sage);
  margin: 28px 0 0;
  max-width: 66ch;
}
.note--light { color: var(--celadon); opacity: 0.85; }

.address {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.02em;
  color: var(--sage);
  margin: 0;
}

/* ===========================================================================
   5. BUTTONS AND LINKS
   =========================================================================== */
.btn {
  --btn-py: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--btn-py) 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--btn-solid-bg);
  color: var(--btn-solid-fg);
}
.btn--solid:hover { background: var(--sage); color: var(--ink); }

.btn--ghost {
  background: transparent;
  color: var(--btn-ghost-fg);
  border-color: var(--btn-ghost-bd);
}
.btn--ghost:hover { border-color: currentColor; }

.btn--sm    { --btn-py: 10px; padding-inline: 20px; font-size: 0.85rem; }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  transition: gap .25s var(--ease), opacity .25s var(--ease);
}
.link-arrow:hover { gap: 14px; opacity: 0.7; }

/* ===========================================================================
   6. HEADER
   =========================================================================== */
.masthead {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 120;
  color: var(--paper);
  transition: background-color .35s var(--ease), color .35s var(--ease),
              box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.masthead.is-stuck {
  background: rgba(12, 22, 19, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--line-dark);
}

.masthead__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  margin-right: auto;
}
.brand__mark { width: 34px; color: var(--celadon); flex: none; }
.brand__mark--lg { width: 46px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
.brand__sub {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.7;
}

.nav { display: none; }
.nav__list {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  opacity: 0.85;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.nav__link:hover { opacity: 1; border-bottom-color: currentColor; }

.masthead__actions { display: flex; align-items: center; gap: 14px; }
.masthead__tel {
  display: none;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
}
.masthead__tel:hover { opacity: 1; }
.masthead .btn--solid { background: var(--paper); color: var(--ink); }
.masthead .btn--solid:hover { background: var(--celadon); }

.burger {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  background: transparent;
  border: 1px solid rgba(244, 242, 236, 0.3);
  border-radius: var(--radius);
  cursor: pointer;
}
.burger__bars, .burger__bars::before, .burger__bars::after {
  content: "";
  display: block;
  width: 18px; height: 1.5px;
  background: currentColor;
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger__bars::before { transform: translateY(-6px); }
.burger__bars::after  { transform: translateY(4.5px); }
.burger[aria-expanded="true"] .burger__bars { background: transparent; }
.burger[aria-expanded="true"] .burger__bars::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after  { transform: rotate(-45deg); }

.drawer {
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  padding: 22px var(--gutter) 30px;
  color: var(--stone);
}
.drawer[hidden] { display: none; }
.drawer__list { list-style: none; margin: 0 0 22px; padding: 0; }
.drawer__list li + li { border-top: 1px solid var(--line-dark); }
.drawer__list a {
  display: block;
  padding: 14px 0;
  color: inherit;
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 300;
}
.drawer__foot { display: grid; gap: 14px; }
.drawer__tel {
  font-family: var(--mono);
  font-size: 0.82rem;
  text-align: center;
  color: var(--celadon);
  text-decoration: none;
}

@media (min-width: 1000px) {
  .nav { display: block; }
  .masthead__tel { display: inline-block; }
  .burger { display: none; }
}

/* ===========================================================================
   7. ELEVATION RAIL — signature element
   =========================================================================== */
.rail {
  display: none;
  position: fixed;
  left: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  pointer-events: none;
}
.rail__line, .rail__fill {
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
}
.rail__line { background: currentColor; opacity: 0.22; }
.rail__fill {
  background: var(--celadon);
  bottom: auto;
  height: 0;
  transition: height .18s linear;
}
.rail__stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.rail__stop a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  pointer-events: auto;
}
.rail__tick {
  width: 11px; height: 1px;
  background: currentColor;
  opacity: 0.35;
  transition: width .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
  flex: none;
}
.rail__label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.rail__stop.is-active .rail__tick { width: 22px; opacity: 1; background: var(--celadon); }
.rail__stop.is-active .rail__label { opacity: 0.95; transform: none; }
.rail:hover .rail__label { opacity: 0.6; transform: none; }

/* The rail sits over both light and dark sections, so it inherits a colour. */
.rail { color: var(--forest); }
.rail.on-dark { color: var(--stone); }

.rail-mobile {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 130;
  background: transparent;
}
.rail-mobile span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--celadon);
  transition: width .12s linear;
}

@media (min-width: 1240px) {
  .rail { display: block; }
  .rail-mobile { display: none; }
}

/* ===========================================================================
   8. MEDIA BLOCKS
   =========================================================================== */
.media { width: 100%; }
.media__frame {
  position: relative;
  aspect-ratio: var(--media-ratio, 16 / 9);
  overflow: hidden;
  background: var(--forest);
  border-radius: var(--radius-lg);
}
.media__img,
.media__poster,
.media__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Fills its parent instead of using a ratio — used by the hero. */
.media--cover,
.media--cover .media__frame {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
}

/* The placeholder pattern: stepped terraces, so empty slots still look
   deliberate rather than broken. */
.media__terrain {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      177deg,
      rgba(169, 196, 180, 0.07) 0px,
      rgba(169, 196, 180, 0.07) 1px,
      transparent 1px,
      transparent 26px
    ),
    linear-gradient(163deg, #1d352b 0%, #16281f 45%, #101d18 100%);
}
.media__terrain::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 78% 12%, rgba(169, 196, 180, 0.16), transparent 62%);
}

.media__frame--empty { background: var(--ink); }

.media__slot {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 22px;
  text-align: center;
  color: var(--celadon);
}
.media__slot-badge {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid rgba(169, 196, 180, 0.4);
  border-radius: 999px;
  opacity: 0.9;
}
.media__slot-label {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 22ch;
}
.media__slot-spec {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  opacity: 0.72;
  max-width: 34ch;
}
.media__slot-path {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: var(--sage);
  background: rgba(0, 0, 0, 0.28);
  padding: 4px 9px;
  border-radius: var(--radius);
  word-break: break-all;
}

/* Click-to-play cover for YouTube / Vimeo */
.media__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(12, 22, 19, 0.34);
  border: 0;
  color: var(--white);
  cursor: pointer;
  transition: background-color .3s var(--ease);
}
.media__play:hover { background: rgba(12, 22, 19, 0.48); }
.media__play-icon {
  width: 66px; height: 66px;
  border: 1px solid rgba(251, 250, 247, 0.7);
  border-radius: 50%;
  position: relative;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.media__play-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-left: 15px solid currentColor;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
}
.media__play:hover .media__play-icon { transform: scale(1.06); background: rgba(251, 250, 247, 0.12); }
.media__play-text {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.media__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.figure { margin: clamp(36px, 5vw, 64px) 0 0; }
.figure--wide { margin-bottom: clamp(36px, 5vw, 64px); }
.figure__caption {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--sage);
  margin: 12px 0 0;
}
.figure__caption--light { color: var(--celadon); opacity: 0.75; }

.map { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-lg); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ===========================================================================
   9. SECTIONS
   =========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 128px var(--gutter) 30px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  --btn-solid-bg: var(--paper);
  --btn-solid-fg: var(--ink);
  --btn-ghost-fg: var(--paper);
  --btn-ghost-bd: rgba(244, 242, 236, 0.4);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,22,19,.72) 0%, rgba(12,22,19,.28) 34%, rgba(12,22,19,.86) 100%),
    linear-gradient(90deg, rgba(12,22,19,.6) 0%, transparent 62%);
}
.hero__body {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-block: clamp(30px, 6vh, 70px);
}
.hero__title {
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 300;
  font-size: var(--fs-display);
  line-height: 0.93;
  letter-spacing: -0.03em;
  margin: 0 0 26px;
  max-width: 15ch;
}
.hero__line { display: block; }
.hero__line--alt { font-style: italic; font-weight: 400; padding-left: 0.06em; }
.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  max-width: 52ch;
  color: rgba(244, 242, 236, 0.86);
  margin: 0 0 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero__facts {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(244, 242, 236, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 4vw, 56px);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.68);
}
.hero__facts span {
  display: block;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--white);
  margin-bottom: 2px;
}
.hero__foot {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 242, 236, 0.6);
}
.hero__scroll { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.hero__scroll-line { width: 54px; height: 1px; background: currentColor; opacity: 0.5; }

/* --- Stats --------------------------------------------------------------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0;
  background: var(--line-light);
  border-block: 1px solid var(--line-light);
}
.stats__item { background: var(--paper); padding: 26px 20px 24px; }
.stats__label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 8px;
}
.stats__value {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--forest);
}
@media (min-width: 820px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* --- Villas -------------------------------------------------------------- */
.villas { display: grid; gap: clamp(48px, 6vw, 96px); }
.villa { display: grid; gap: clamp(22px, 3vw, 44px); align-items: center; }

@media (min-width: 900px) {
  .villa { grid-template-columns: 1.05fr 1fr; }
  .villa:nth-child(even) .villa__media { order: 2; }
}

.villa__kicker {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--celadon);
  margin: 0 0 12px;
}
.villa__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--white);
}
.villa__blurb { margin: 0 0 26px; max-width: 52ch; color: var(--stone); }

.specs { margin: 0 0 26px; display: grid; gap: 1px; background: var(--line-dark); }
.specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  background: var(--ink);
  padding: 11px 0;
}
.specs__row dt {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.specs__row dd { margin: 0; font-size: 0.94rem; color: var(--white); text-align: right; }

.section--moss .specs__row { background: var(--forest); }

.ticks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 9px; }
.ticks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.93rem;
  color: var(--stone);
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.72em;
  width: 12px; height: 1px;
  background: var(--celadon);
}

.villa__video { margin: 0 0 28px; }

/* --- Elevation bands ------------------------------------------------------ */
.bands { display: grid; gap: clamp(22px, 3vw, 40px); }
@media (min-width: 940px) { .bands { grid-template-columns: 260px 1fr; align-items: start; } }

.bands__picker { display: grid; gap: 8px; }
.band-tab {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.band-tab:hover { border-color: var(--sage); }
.band-tab.is-active { background: var(--forest); border-color: var(--forest); }
.band-tab__range {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 5px;
}
.band-tab__label {
  display: block;
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.22rem;
  letter-spacing: -0.01em;
  color: var(--forest);
}
.band-tab.is-active .band-tab__range { color: var(--celadon); }
.band-tab.is-active .band-tab__label { color: var(--white); }

.band-panel { display: none; }
.band-panel.is-active { display: block; }
.band-panel__text { margin-top: 20px; max-width: 60ch; }
.band-panel__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: var(--fs-h3);
  margin: 0 0 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  color: var(--forest);
}
.band-panel__range {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
}
.band-panel__text p { margin: 0; color: var(--moss); }

/* --- Amenities ----------------------------------------------------------- */
.amenity-grid { display: grid; gap: clamp(26px, 4vw, 56px); }
@media (min-width: 900px) { .amenity-grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.amenity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
@media (min-width: 620px) { .amenity-list { grid-template-columns: repeat(2, 1fr); } }

.amenity { background: var(--forest); padding: 20px 18px; }
.amenity__name {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.06rem;
  margin: 0 0 6px;
  color: var(--white);
}
.amenity__body { margin: 0; font-size: 0.88rem; color: var(--celadon); opacity: 0.85; }

/* --- Awards and team ----------------------------------------------------- */
.awards {
  display: grid;
  gap: 1px;
  background: var(--line-light);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(40px, 5vw, 64px);
}
@media (min-width: 760px) { .awards { grid-template-columns: repeat(2, 1fr); } }

.award { background: var(--paper); padding: clamp(26px, 3vw, 40px); }
.award__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  color: var(--forest);
}
.award__body { margin: 0 0 16px; color: var(--moss); max-width: 42ch; }
.award__meta {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0;
}

.team__title {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin: 0 0 18px;
  font-weight: 400;
}
.team__list { margin: 0; display: grid; gap: 0; }
.team__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line-light);
}
.team__row dt {
  font-family: var(--mono);
  font-size: var(--fs-small);
  letter-spacing: 0.06em;
  color: var(--sage);
}
.team__row dd { margin: 0; font-size: 1rem; color: var(--forest); }

/* --- Building columns ---------------------------------------------------- */
.cols__heading {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sage);
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
}
.cols__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cols__list li { font-size: 0.94rem; color: var(--stone); }

/* --- Location ------------------------------------------------------------ */
.location-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 900px) { .location-grid { grid-template-columns: 1.25fr 0.75fr; align-items: start; } }

.location-grid .cols__heading { color: var(--sage); }

.near { list-style: none; margin: 0; padding: 0; }
.near__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
}
.near__name { font-size: 0.98rem; color: var(--forest); }
.near__note {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

/* --- Reservation steps --------------------------------------------------- */
.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
@media (min-width: 700px)  { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--forest); padding: 26px 22px 30px; }
.step__n {
  display: block;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--celadon);
  margin-bottom: 16px;
}
.step__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.24rem;
  line-height: 1.15;
  margin: 0 0 10px;
  color: var(--white);
}
.step__body { margin: 0; font-size: 0.92rem; color: var(--stone); opacity: 0.9; }

/* --- FAQ ----------------------------------------------------------------- */
.faq { border-top: 1px solid var(--line-light); }
.faq__item { border-bottom: 1px solid var(--line-light); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--forest);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 14px; height: 14px;
  flex: none;
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 14px; height: 1px;
  background: var(--sage);
  transition: transform .3s var(--ease);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 0 22px; max-width: 62ch; }
.faq__a p { margin: 0; color: var(--moss); }

/* ===========================================================================
   10. FORMS
   =========================================================================== */
.inquire { display: grid; gap: clamp(34px, 4vw, 64px); }
@media (min-width: 940px) { .inquire { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.inquire__contacts { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 18px; }
.inquire__contacts li { display: grid; gap: 3px; }
.inquire__contacts a { color: var(--white); text-decoration: none; border-bottom: 1px solid var(--sage); }
.inquire__contacts a:hover { border-bottom-color: var(--celadon); }
.inquire__contact-label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sage);
}

.inquire__form {
  background: var(--forest);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3.4vw, 42px);
}

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, 1fr); } }

.field__label {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--celadon);
}
.req { color: var(--sage); }

.field__input {
  width: 100%;
  padding: 13px 14px;
  background: rgba(12, 22, 19, 0.55);
  border: 1px solid rgba(244, 242, 236, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.97rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.field__input::placeholder { color: rgba(222, 218, 207, 0.42); }
.field__input:hover { border-color: rgba(244, 242, 236, 0.32); }
.field__input:focus {
  outline: none;
  border-color: var(--celadon);
  background: rgba(12, 22, 19, 0.78);
}
.field__input.has-error { border-color: #d98b6a; }
.field__textarea { resize: vertical; min-height: 108px; }

.field__select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--celadon) 50%),
                    linear-gradient(135deg, var(--celadon) 50%, transparent 50%);
  background-position: right 20px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.field__select option { background: var(--forest); color: var(--white); }

.field__error { margin: 0; font-size: var(--fs-small); color: #eaa98c; }

.field--check { margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input {
  margin-top: 4px;
  width: 17px; height: 17px;
  accent-color: var(--celadon);
  flex: none;
}
.check span { font-size: 0.86rem; line-height: 1.5; color: var(--stone); }

.form__foot {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  color: var(--sage);
  text-align: center;
}

/* Honeypot — hidden from people, visible to robots. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  padding: 15px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.93rem;
}
.alert p { margin: 0; }
.alert--ok   { background: rgba(169, 196, 180, 0.16); border: 1px solid var(--celadon); color: var(--white); }
.alert--warn { background: rgba(217, 139, 106, 0.14); border: 1px solid #d98b6a; color: #f2ddd2; }

.is-sending { opacity: 0.6; pointer-events: none; }

/* Mobile sticky call-to-action */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 110;
  display: none;
  gap: 1px;
  background: var(--line-dark);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta a {
  padding: 15px 12px;
  text-align: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}
.sticky-cta__tel  { background: var(--forest); color: var(--paper); flex: 0 0 34%; }
.sticky-cta__main { background: var(--paper); color: var(--ink); flex: 1; }

@media (max-width: 780px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 0; }
}

/* ===========================================================================
   11. CHAT ASSISTANT
   =========================================================================== */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 140; }
@media (max-width: 780px) { .chat { bottom: 74px; right: 14px; } }

.chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(12, 22, 19, 0.3);
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.chat__launcher:hover { background: var(--moss); transform: translateY(-2px); }
.chat__launcher-icon { width: 20px; flex: none; }
.chat__launcher-text { font-size: 0.86rem; font-weight: 500; }
@media (max-width: 480px) { .chat__launcher-text { display: none; } .chat__launcher { padding: 14px; } }

.chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(370px, calc(100vw - 28px));
  max-height: min(560px, calc(100svh - 140px));
  display: flex;
  flex-direction: column;
  background: var(--ink);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(12, 22, 19, 0.42);
  overflow: hidden;
  color: var(--stone);
}
.chat__panel[hidden] { display: none; }

.chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-dark);
  background: var(--forest);
}
.chat__title { margin: 0; font-family: var(--display); font-size: 1.04rem; color: var(--white); font-weight: 400; }
.chat__status {
  margin: 3px 0 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  color: var(--celadon);
}
.chat__dot { width: 6px; height: 6px; border-radius: 50%; background: #7fc79c; flex: none; }
.chat__close {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: transparent; border: 0; color: var(--stone);
  cursor: pointer; border-radius: var(--radius);
}
.chat__close:hover { background: rgba(244, 242, 236, 0.1); }
.chat__close svg { width: 17px; }

.chat__log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scrollbar-width: thin;
}
.msg {
  max-width: 86%;
  padding: 11px 14px;
  border-radius: 12px;
  font-size: 0.89rem;
  line-height: 1.5;
  white-space: pre-wrap;
}
.msg--bot  { background: var(--forest); color: var(--stone); border-bottom-left-radius: 3px; align-self: flex-start; }
.msg--user { background: var(--paper); color: var(--ink); border-bottom-right-radius: 3px; align-self: flex-end; }
.msg a { color: inherit; }
.msg--typing { display: flex; gap: 5px; align-items: center; }
.msg--typing i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--celadon); display: block;
  animation: chat-blink 1.2s infinite ease-in-out;
}
.msg--typing i:nth-child(2) { animation-delay: .18s; }
.msg--typing i:nth-child(3) { animation-delay: .36s; }
@keyframes chat-blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }

.chat__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 12px;
}
.chat__chip {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--celadon);
  font-size: 0.76rem;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chat__chip:hover { border-color: var(--celadon); color: var(--white); }

.chat__composer {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-dark);
}
.chat__input {
  flex: 1;
  padding: 11px 13px;
  background: rgba(244, 242, 236, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.88rem;
}
.chat__input::placeholder { color: rgba(222, 218, 207, 0.4); }
.chat__input:focus { outline: none; border-color: var(--celadon); }
.chat__send {
  width: 42px;
  display: grid; place-items: center;
  background: var(--paper); color: var(--ink);
  border: 0; border-radius: var(--radius);
  cursor: pointer;
}
.chat__send:hover { background: var(--celadon); }
.chat__send svg { width: 19px; }

.chat__foot {
  margin: 0;
  padding: 0 18px 14px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: var(--sage);
}
.chat__foot a { color: var(--celadon); }

/* ===========================================================================
   12. FOOTER
   =========================================================================== */
.footer {
  background: var(--ink);
  color: var(--stone);
  padding-block: clamp(56px, 7vw, 92px) 34px;
}
.footer__top { display: grid; gap: clamp(34px, 4vw, 60px); margin-bottom: clamp(40px, 5vw, 64px); }
@media (min-width: 860px) { .footer__top { grid-template-columns: 1fr 1.4fr; } }

.footer__brand .brand__mark { color: var(--celadon); margin-bottom: 16px; }
.footer__name {
  font-family: var(--display);
  font-weight: 300;
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: var(--white);
}
.footer__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
}

.footer__cols { display: grid; gap: 30px; }
@media (min-width: 560px) { .footer__cols { grid-template-columns: repeat(3, 1fr); } }

.footer__col h3 {
  font-family: var(--mono);
  font-size: var(--fs-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--sage);
  margin: 0 0 14px;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer__col a { color: var(--stone); text-decoration: none; font-size: 0.92rem; }
.footer__col a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer__col li { font-size: 0.92rem; }

.footer__legal { border-top: 1px solid var(--line-dark); padding-top: 26px; display: grid; gap: 12px; }
.footer__lts {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--celadon);
}
.footer__muted { color: var(--sage); }
.footer__disclaimer { margin: 0; font-size: 0.76rem; line-height: 1.6; color: var(--sage); max-width: 100ch; }
.footer__copy { margin: 0; font-size: 0.76rem; color: var(--sage); }

/* ===========================================================================
   13. MOTION AND ACCESSIBILITY
   =========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* Simple pages (thank you, 404) */
.simple {
  min-height: 78svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 160px var(--gutter) 100px;
  background: var(--ink);
  color: var(--stone);
  --btn-solid-bg: var(--paper);
  --btn-solid-fg: var(--ink);
  --btn-ghost-fg: var(--stone);
  --btn-ghost-bd: rgba(244, 242, 236, 0.32);
}
.simple__inner { max-width: 58ch; }
.simple__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  color: var(--white);
}
.simple__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }

/* Page-specific banner used at the top of inner pages */
.page-banner {
  padding: clamp(130px, 16vh, 190px) var(--gutter) clamp(50px, 7vw, 84px);
  background: var(--ink);
  color: var(--stone);
}
.page-banner__inner { max-width: var(--wrap); margin-inline: auto; }
.page-banner__title {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  line-height: 1;
  letter-spacing: -0.028em;
  margin: 0 0 18px;
  color: var(--white);
  max-width: 18ch;
}
.page-banner__lead { max-width: 58ch; color: var(--stone); font-size: var(--fs-lead); margin: 0; }
