/* Sanctuary — Lunaya-inspired: full-bleed hero, centered type, overlapping form card,
   airy light body, image-topped residence cards. Navy/ivory/champagne identity. */

:root {
  --deep: #0B1B30;
  --navy: #13294A;
  --royal: #1A3A6B;
  --ivory: #F7F4EE;
  --ivory-dim: rgba(247, 244, 238, 0.72);
  --champagne: #C8A867;
  --champagne-deep: #A78948;
  --ink: #1C1E22;
  --grey: #6E6E6E;
  --white: #FFFFFF;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, Verdana, sans-serif;
  --pad: clamp(22px, 6vw, 56px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--royal);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--royal);
  border: 1px solid var(--royal);
  border-radius: 3px;
  padding: 18px 36px;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { background: #234a85; }

/* gold variant for dark backgrounds */
.btn--gold {
  background: var(--champagne);
  border-color: var(--champagne);
  color: #081221;
  font-weight: 700;
}

.btn--gold:hover { background: #D6BA7E; border-color: #D6BA7E; }
.btn:active { transform: scale(0.985); }
.btn--block { display: flex; width: 100%; }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--royal);
  outline-offset: 3px;
}

/* ---------- hero (full-bleed image, centered) ---------- */

.hero {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  color: var(--ivory);
  padding: clamp(32px, 6vh, 56px) var(--pad) 190px; /* bottom room for the overlapping card */
  /* deep navy dusk */
  background:
    radial-gradient(110% 55% at 50% -5%, rgba(200, 168, 103, 0.18), transparent 60%),
    linear-gradient(180deg, #0A1727 0%, #10233E 55%, #1A3A6B 130%);
}

/* subtle vignette so overlaid type always reads on a real photo */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 15, 26, 0.35), transparent 35%, transparent 60%, rgba(8, 15, 26, 0.45));
  pointer-events: none;
}

.hero > * { position: relative; z-index: 1; }

.hero .brandmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 7vw, 44px);
  letter-spacing: 0.38em;
  text-indent: 0.38em; /* visually center the letterspaced word */
  color: var(--ivory);
}

.hero .brandmark small {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  margin-top: 6px;
}


h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 8.6vw, 62px);
  line-height: 1.14;
  color: var(--ivory);
  max-width: 17em;
  margin-top: clamp(18px, 3.5vh, 30px);
}

.hero__sub {
  font-size: clamp(15px, 4vw, 18px);
  color: var(--ivory-dim);
  max-width: 38em;
  margin-top: 14px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 8vw, 72px);
  margin-top: clamp(24px, 4.5vh, 40px);
}

.hero__stat .n {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 7.4vw, 44px);
  line-height: 1.05;
}

.hero__stat .n small { font-size: 0.6em; color: var(--ivory-dim); }

.hero__stat .l {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

/* ---------- form card (overlaps hero) ---------- */

.form-zone {
  position: relative;
  z-index: 2;
  margin-top: -130px;
  padding-bottom: clamp(64px, 12vw, 100px);
}

.form-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 10px;
  padding: clamp(30px, 8vw, 48px);
  box-shadow: 0 30px 80px -30px rgba(11, 27, 48, 0.45);
  text-align: center;
}

.form-card__title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 5.6vw, 28px);
  line-height: 1.2;
  color: var(--ink);
}

.form-card__sub { margin-top: 8px; font-size: 14px; color: var(--grey); }

.form-card form { margin-top: 26px; display: grid; gap: 16px; text-align: left; }

.flabel {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  margin-bottom: 6px;
}

.flabel .opt { font-weight: 400; color: var(--grey); }

.phone-row {
  display: grid;
  grid-template-columns: minmax(120px, 150px) 1fr;
  gap: 10px;
}

.field input, .field select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: #FBFAF7;
  border: 1px solid rgba(28, 30, 34, 0.16);
  border-radius: 8px;
  padding: 15px 16px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease;
}

.field input::placeholder { color: #9C9C9C; }

.field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236E6E6E' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  color: var(--ink);
}

.field input:focus, .field select:focus {
  border-color: var(--royal);
  outline: none;
}

.form-error {
  display: none;
  padding: 12px 14px;
  border: 1px solid #B3452F;
  border-radius: 8px;
  font-size: 13px;
  color: #B3452F;
}

.show-error .form-error { display: block; }

.form-card .fine { margin-top: 4px; font-size: 12px; color: var(--grey); text-align: center; }

.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ---------- section scaffolding ---------- */

.section { padding: clamp(64px, 14vw, 120px) 0; }

.section__head {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin-bottom: clamp(40px, 9vw, 72px);
}

h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 7.6vw, 48px);
  line-height: 1.14;
  color: var(--ink);
  max-width: 16em;
}

.section__lede {
  font-size: clamp(15px, 4vw, 17px);
  color: var(--grey);
  max-width: 38em;
}

/* ---------- residences (Lunaya-style image cards) ---------- */

.res { display: grid; gap: clamp(28px, 7vw, 40px); }

.res-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 26px 60px -34px rgba(11, 27, 48, 0.35);
}

.res-card__img {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #E8E3D8;
}

.res-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* crops developer disclaimer strips at the bottom */
}


.res-card__body { padding: clamp(24px, 6vw, 36px); }

.res-card__name {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(22px, 5.6vw, 26px);
  line-height: 1.2;
  color: var(--ink);
}

.res-card__type {
  margin-top: 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #55585E;
}

.res-card__price {
  margin-top: 14px;
  font-size: clamp(17px, 4.6vw, 20px);
  font-weight: 600;
  color: var(--royal);
}

.res-card__desc { margin-top: 10px; font-size: 15px; color: #3D4046; }

.res__source {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--grey);
}

@media (min-width: 900px) {
  .res { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- numbers ---------- */

.numbers { display: grid; gap: 14px; }

.num-card {
  background: var(--white);
  border-radius: 12px;
  padding: clamp(26px, 6.6vw, 40px);
  box-shadow: 0 22px 54px -34px rgba(11, 27, 48, 0.3);
}

.num-card .value {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 48px);
  line-height: 1;
  color: var(--royal);
}

.num-card .value small { font-size: 0.52em; color: var(--royal); }

.num-card .label {
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #55585E;
}

.num-card .body { margin-top: 12px; font-size: 15px; color: #3D4046; }

@media (min-width: 760px) {
  .numbers { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* desktop: 2×2 horizontal cards — number beside the text, not four tall towers */
@media (min-width: 1024px) {
  .num-card {
    display: grid;
    grid-template-columns: 168px 1fr;
    column-gap: 32px;
    align-items: center;
  }
  .num-card .value { font-size: clamp(36px, 3vw, 46px); text-align: left; }
  .num-card .label { grid-column: 2; margin-top: 0; }
  .num-card .body { grid-column: 2; margin-top: 8px; }
  .num-card .value { grid-row: 1 / 3; }
}

/* ---------- render band ---------- */

.render {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #E8E3D8;
}

.render img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 760px) { .render { aspect-ratio: 21 / 9; } }


/* ---------- trust (dark band) ---------- */

.section--dark {
  background: linear-gradient(180deg, var(--deep), #0F2138);
  color: var(--ivory);
}

.trust {
  display: grid;
  gap: 30px;
  justify-items: start;
  text-align: left;
}

.trust__quote {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(27px, 7vw, 42px);
  line-height: 1.22;
  max-width: 17em;
}

.trust__person {
  display: flex;
  align-items: center;
  gap: 16px;
}

.trust__person img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 103, 0.5);
  object-fit: cover;
}

.trust__person .who b {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
}

.trust__person .who span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: var(--ivory-dim);
  max-width: 26em;
}

.trust__compliance {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(247, 244, 238, 0.14);
  padding-top: 26px;
}

.trust__lic {
  list-style: none;
  display: grid;
  gap: 12px;
}

.trust__lic span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}

.trust__lic b {
  font-size: 17px;
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
}

.trust__qr {
  width: 92px;
  height: 92px;
  background: #FFFFFF;
  padding: 6px;
  border-radius: 8px;
}

@media (min-width: 860px) {
  .trust {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
  }
  .trust__quote { grid-column: 1; }
  .trust__person { grid-column: 1; }
  .trust__compliance {
    grid-column: 2;
    grid-row: 1 / 3;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-top: 0;
    border-left: 1px solid rgba(247, 244, 238, 0.14);
    padding-top: 0;
    padding-left: 48px;
    width: auto;
    height: 100%;
  }
  .trust__qr { width: 116px; height: 116px; }
}

/* ---------- footer ---------- */

.footer {
  background: #081221;
  color: rgba(247, 244, 238, 0.45);
  font-size: 12px;
  text-align: center;
  padding: 48px 0 130px;
}

.footer .brand {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  color: var(--ivory);
  margin-bottom: 12px;
}

.footer p + p { margin-top: 4px; }

.footer .disclaimer {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(247, 244, 238, 0.4);
}

.footer a { color: rgba(247, 244, 238, 0.7); }

.form-card .fine a { color: var(--royal); }

@media (min-width: 1024px) { .footer { padding-bottom: 48px; } }

/* ---------- sticky bar ---------- */

.sticky-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid rgba(28, 30, 34, 0.1);
  padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sticky-bar.visible { transform: translateY(0); }

.sticky-bar .from { flex: 1; line-height: 1.3; color: var(--ink); }

.sticky-bar .from small {
  display: block;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--grey);
}

.sticky-bar .from b { font-family: var(--sans); font-size: 17px; font-weight: 700; }

.sticky-bar .btn { padding: 14px 24px; font-size: 11px; }

@media (min-width: 1024px) { .sticky-bar { display: none; } }

/* ---------- desktop refinements ---------- */

@media (min-width: 1024px) {
  .hero { padding-bottom: 190px; }
  .form-zone { margin-top: -150px; }
  /* roomier form card on desktop */
  .form-card { max-width: 620px; }
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .sticky-bar { transition: none; }
}
