/* ==========================================================
   Montara Landmarks — Dreamcloudz Sovereign (Coming Soon)
   ========================================================== */

:root {
  --green-900: #051c13;
  --green-800: #072619;
  --green-700: #0b2e21;
  --green-600: #0f3a2a;
  --green-500: #145038;
  --gold: #c9a45c;
  --gold-light: #e2c285;
  --gold-soft: rgba(201, 164, 92, 0.45);
  --ivory: #f3ede0;
  --muted: rgba(243, 237, 224, 0.78);

  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 3.5vw, 56px);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--green-800);
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* subtle film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.modal-open { overflow: hidden; }

a { color: inherit; }
button { font: inherit; }

/* ---------- Shared ---------- */

.eyebrow {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.65rem + 0.3vw, 0.92rem);
  letter-spacing: 0.55em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-left: 0.55em; /* optically centre letter-spaced text */
}

.dot { color: var(--gold); padding: 0 0.35em; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 2.6em;
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--gold-light);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.86rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease), border-color 0.4s var(--ease);
  isolation: isolate;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #b88f45, var(--gold-light), #b88f45);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
  z-index: -1;
}
.btn:hover,
.btn:focus-visible { color: var(--green-800); }
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); }
.btn:focus-visible { outline: 1px solid var(--gold-light); outline-offset: 4px; }

.btn--small { padding: 0.85em 1.9em; font-size: 0.74rem; }
.btn--ghost { border-color: var(--gold-soft); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
}
.divider::before,
.divider::after {
  content: "";
  width: clamp(60px, 9vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.divider::after { transform: scaleX(-1); }
.divider span { font-size: 1rem; line-height: 1; }

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

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(24, 84, 58, 0.55), transparent 70%),
    radial-gradient(ellipse 120% 90% at 50% 50%, var(--green-600) 0%, var(--green-700) 55%, var(--green-900) 100%);
  isolation: isolate;
}

.deco {
  position: absolute;
  top: 0;
  height: 100%;
  width: min(30vw, 440px);
  color: var(--gold);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}
.deco--left { left: 0; }
.deco--right { right: 0; }

/* soft, blurred foliage shadows in the lower corners */
.leaf {
  position: absolute;
  bottom: -8%;
  width: 34vw;
  height: 45vh;
  z-index: -1;
  filter: blur(28px);
  opacity: 0.55;
  background:
    radial-gradient(ellipse 30% 18% at 30% 40%, rgba(60, 110, 70, 0.45), transparent 70%),
    radial-gradient(ellipse 22% 30% at 55% 60%, rgba(40, 90, 60, 0.4), transparent 70%),
    radial-gradient(ellipse 40% 25% at 45% 80%, rgba(20, 60, 40, 0.6), transparent 70%);
  pointer-events: none;
}
.leaf--left { left: -6vw; }
.leaf--right { right: -6vw; transform: scaleX(-1); }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(20px, 4.5vh, 44px) 0 0;
  position: relative;
  z-index: 2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  color: var(--gold);
}
.brand__mono {
  display: none;
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  border: 1px solid var(--gold);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
}
.brand__text { display: flex; flex-direction: column; gap: 0.2rem; }
.brand__name {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 0.75rem + 0.4vw, 1.08rem);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  display: none;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

/* Centre content */
.hero__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 0;
  gap: 0;
}

.hero__title {
  margin: clamp(1.1rem, 3vh, 2rem) 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 1rem + 5.2vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--ivory);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero__tagline {
  margin: clamp(0.6rem, 2vh, 1.1rem) 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.45rem, 1rem + 1.8vw, 2.7rem);
  letter-spacing: 0.06em;
  color: var(--ivory);
}

.hero__details {
  margin: clamp(0.9rem, 2.4vh, 1.4rem) 0 0;
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.45rem);
  letter-spacing: 0.04em;
  line-height: 1.75;
  color: var(--muted);
}

.hero__content .divider { margin: clamp(1.2rem, 3.5vh, 2rem) 0 clamp(1rem, 3vh, 1.7rem); }

.coming-soon {
  margin: 0 0 clamp(1.6rem, 4vh, 2.4rem);
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 0.64rem + 0.35vw, 0.98rem);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ivory);
  padding-left: 0.45em;
}
.coming-soon .dot { padding: 0 0.6em; }

.hero__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  padding: 0 0 clamp(20px, 4.5vh, 44px);
  font-size: clamp(0.9rem, 0.85rem + 0.2vw, 1.02rem);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.motto { margin: 0; }
.phone {
  text-decoration: none;
  letter-spacing: 0.2em;
  font-family: var(--font-display);
  font-size: 0.9em;
}
.phone:hover { color: var(--gold-light); }

/* ---------- Brand statement ---------- */

.statement {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 14vh, 160px) var(--gutter);
  background: linear-gradient(160deg, #11402d 0%, var(--green-800) 55%, var(--green-900) 100%);
  border-top: 1px solid rgba(201, 164, 92, 0.18);
  isolation: isolate;
}
.rings {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(70vw, 760px);
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.5;
  z-index: -1;
}
.statement__inner { max-width: 1080px; margin: 0 auto; }

.eyebrow--line {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: var(--font-sans);
  font-size: clamp(0.72rem, 0.66rem + 0.3vw, 0.9rem);
  letter-spacing: 0.4em;
  color: var(--gold);
  padding-left: 0;
}
.eyebrow--line::before {
  content: "";
  flex: none;
  width: clamp(40px, 6vw, 72px);
  height: 1px;
  background: var(--gold);
}

.statement__title {
  margin: clamp(1.4rem, 4vh, 2.4rem) 0 0;
  font-weight: 400;
  font-size: clamp(3rem, 1.4rem + 6vw, 7rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--ivory);
  max-width: 13ch;
}
.statement__title em { font-style: normal; color: var(--gold); }

.statement__text {
  margin: clamp(1.4rem, 4vh, 2.2rem) 0 0;
  max-width: 34ch;
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.75rem);
  line-height: 1.6;
  color: var(--muted);
}

.statement__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: clamp(2rem, 5vh, 3rem);
}

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

.site-footer {
  padding: 32px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  background: var(--green-900);
  border-top: 1px solid rgba(201, 164, 92, 0.15);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.site-footer .motto { color: var(--gold); }
.copyright { margin: 0; color: var(--muted); }

/* ---------- Modal ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 15, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.35s var(--ease);
}

.modal__panel {
  position: relative;
  width: min(100%, 520px);
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(24, 84, 58, 0.5), transparent 70%),
    var(--green-700);
  border: 1px solid var(--gold-soft);
  outline: 1px solid rgba(201, 164, 92, 0.18);
  outline-offset: -8px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: rise 0.45s var(--ease);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  color: var(--gold);
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.modal__close:hover { transform: rotate(90deg); }
.modal__close:focus-visible { outline: 1px solid var(--gold); }

.modal .eyebrow { font-size: 0.66rem; color: var(--gold); letter-spacing: 0.4em; padding-left: 0; }
.modal__title {
  margin: 0.6rem 0 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  color: var(--ivory);
}
.modal__intro { margin: 0.5rem 0 1.4rem; color: var(--muted); font-size: 1.05rem; }

.modal__success { text-align: center; padding: 1.5rem 0 0.5rem; }
.modal__success .divider { margin-bottom: 1rem; }
.modal__success .btn { margin-top: 0.8rem; }

/* Form fields */
.hp { position: absolute; left: -9999px; opacity: 0; }

.field {
  position: relative;
  margin: 0 0 1.25rem;
  border: 0;
  padding: 0;
  min-width: 0;
}
.field[hidden] { display: none; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 1.35rem 0 0.5rem;
  border: 0;
  border-bottom: 1px solid var(--gold-soft);
  border-radius: 0;
  background: transparent;
  color: var(--ivory);
  font-family: var(--font-serif);
  font-size: 1.12rem;
  transition: border-color 0.3s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 5rem; line-height: 1.45; }
.field select {
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 12px) 60%, calc(100% - 7px) 60%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.field select option { background: var(--green-700); color: var(--ivory); }

.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-bottom-color: var(--gold-light); }

.field > label {
  position: absolute;
  left: 0;
  top: 1.3rem;
  color: var(--muted);
  font-size: 1.05rem;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label,
.field .label--fixed {
  transform: translateY(-1.25rem) scale(0.78);
  color: var(--gold);
  font-family: var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.field .label--fixed { transform: none; top: 0; font-size: 0.62rem; }

.field--choice legend {
  padding: 0;
  margin-bottom: 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.choices { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--gold-soft);
  font-size: 1.02rem;
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.choice input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--green-800); }
.choice input:focus-visible + span { outline: 1px solid var(--gold-light); outline-offset: 3px; }

.field__error {
  display: block;
  min-height: 0;
  margin-top: 0.3rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #f0a58f;
}
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: #e0876d; }

.form-status { margin: 0 0 1rem; font-size: 1rem; color: #f0a58f; min-height: 0; }
.form-status:empty { display: none; }

.consent {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  line-height: 1.4;
  color: rgba(243, 237, 224, 0.55);
  text-align: center;
}

.btn .spinner {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* ---------- Motion ---------- */

.reveal { opacity: 0; transform: translateY(18px); animation: rise 1.1s var(--ease) forwards; }
.hero__content .reveal:nth-child(1) { animation-delay: 0.15s; }
.hero__content .reveal:nth-child(2) { animation-delay: 0.3s; }
.hero__content .reveal:nth-child(3) { animation-delay: 0.5s; }
.hero__content .reveal:nth-child(4) { animation-delay: 0.65s; }
.hero__content .reveal:nth-child(5) { animation-delay: 0.8s; }
.hero__content .reveal:nth-child(6) { animation-delay: 0.9s; }
.hero__content .reveal:nth-child(7) { animation-delay: 1.05s; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .deco { width: 38vw; opacity: 0.35; }
  .deco--left { display: none; }
  .leaf { width: 60vw; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }

  /* Mobile header mirrors the monogram lock-up */
  .hero { padding-top: 0; }
  .site-header {
    align-items: center;
    padding-top: 22px;
    border-top: 0;
  }
  .site-header::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--gold), rgba(201, 164, 92, 0.2));
  }
  .brand { gap: 0.75rem; padding-top: 14px; }
  .brand__mono { display: inline-flex; width: 2.9rem; height: 2.9rem; font-size: 1.45rem; }
  .brand__pvt { display: none; }
  .brand__sub { display: block; font-size: 0.56rem; }
  .brand { min-width: 0; }
  .brand__name { font-family: var(--font-serif); font-size: 0.95rem; letter-spacing: 0.1em; color: var(--ivory); }
  .brand__sub { letter-spacing: 0.28em; }
  .site-header .btn--small { flex: none; margin-top: 14px; padding: 0.7em 0.9em; letter-spacing: 0.14em; font-size: 0.62rem; }

  .deco--right { width: 70vw; opacity: 0.22; }

  .eyebrow { letter-spacing: 0.4em; }
  .hero__details br { display: none; }
  .hero__details { max-width: 22rem; }
  .coming-soon { letter-spacing: 0.3em; line-height: 2; }
  .hero__content .btn { width: 100%; max-width: 340px; padding-inline: 1em; letter-spacing: 0.22em; }

  .hero__bottom { flex-direction: column; align-items: flex-start; gap: 0.4rem; }

  .rings { right: -45vw; width: 130vw; }
  .statement__actions .btn { flex: 1 1 100%; }

  .site-footer { flex-direction: column; font-size: 0.64rem; }
}

@media (max-width: 380px) {
  .brand__name { font-size: 0.9rem; letter-spacing: 0.1em; }
  .brand__mono { display: none; }
}
