/* ==========================================================================
   Monteluce Estates — Brand Stylesheet
   Marine Navy #142D40 · Luce Gold #C9A227 · Limestone #F5F3EF
   Mist #8FA2B1 · Graphite #3C4A55
   Display: Cormorant Garamond (300/400) · UI/Body: Jost (300/500)
   ========================================================================== */

:root {
  --navy: #142D40;
  --navy-2: #0f2333;
  --gold: #C9A227;
  --gold-light: #e0c473;
  --limestone: #F5F3EF;
  --mist: #8FA2B1;
  --graphite: #3C4A55;
  --white: #FFFFFF;
  --line: rgba(20, 45, 64, 0.12);
  --line-light: rgba(255, 255, 255, 0.18);

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-ui: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 300;
  color: var(--graphite);
  background: var(--limestone);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: 0.002em;
}

h1 { font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 4.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
h4 { font-size: 1.15rem; font-family: var(--font-ui); font-weight: 500; text-transform: none; letter-spacing: 0.01em; }

p { margin: 0 0 1.1em; }
p.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); font-weight: 300; color: var(--graphite); }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: rgba(255,255,255,0.82); }
.on-dark .mist-text { color: var(--mist); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.9em;
}

.rule {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0.9em 0 1.3em;
}
.on-dark .rule { background: var(--gold); }

.rule-wide { width: 100%; height: 1px; background: var(--line); border: 0; }
.on-dark .rule-wide { background: var(--line-light); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; }
.section { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.bg-navy { background: var(--navy); }
.bg-limestone { background: var(--limestone); }
.bg-white { background: var(--white); }
.bg-graphite { background: var(--graphite); }

/* Watermark monogram device — navy grounds only */
.watermark {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.watermark svg {
  position: absolute;
  right: -10%;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  min-width: 300px;
  max-width: 560px;
  opacity: 0.05;
}
.watermark.left svg { right: auto; left: -12%; }

.section > .container { position: relative; z-index: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95em 1.9em;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover { border-color: var(--gold); color: var(--gold); }
.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-2); }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 45, 64, 0.97);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 0.7em; color: var(--white); }
.brand svg { height: 34px; width: auto; flex-shrink: 0; }
.brand-word { font-family: var(--font-ui); line-height: 1.1; }
.brand-word b { display: block; font-weight: 500; font-size: 0.98rem; letter-spacing: 0.24em; color: var(--white); }
.brand-word span { display: block; font-size: 0.6rem; letter-spacing: 0.32em; color: var(--mist); margin-top: 2px; }

.main-nav { display: flex; align-items: center; gap: 2.4rem; }
.main-nav ul { display: flex; gap: 2.2rem; }
.main-nav a {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  padding: 0.4em 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); border-color: var(--gold); }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.header-phone { display: none; }
.nav-call-mobile { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 1px; background: var(--white);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 84px 0 0 0;
    background: var(--navy);
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem var(--gutter);
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 1.4rem; width: 100%; }
  .main-nav a { font-size: 1rem; display: block; }
  .header-cta.desktop-only { display: none; }
  .nav-toggle { display: flex; }
  .nav-call-mobile { display: inline-flex; margin-top: 0.5rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,51,0.35) 0%, rgba(15,35,51,0.35) 40%, rgba(15,35,51,0.92) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.hero .eyebrow { color: var(--gold); }
.hero h1 { color: var(--white); max-width: 16ch; }
.hero p.lead { color: rgba(255,255,255,0.85); max-width: 46ch; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,35,51,0.45) 0%, rgba(15,35,51,0.86) 100%);
}
.page-hero .hero-inner { padding-bottom: clamp(2rem, 5vw, 3.5rem); }
.page-hero h1 { color: var(--white); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.value-card { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.on-dark .value-card { border-top: 1px solid var(--line-light); }
.value-card h3 { margin-bottom: 0.5em; }
.value-card p { color: var(--graphite); font-size: 0.98rem; margin: 0; }
.on-dark .value-card p { color: rgba(255,255,255,0.75); }

.residence-card {
  background: var(--white);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
}
.residence-card .thumb { aspect-ratio: 4/3; overflow: hidden; }
.residence-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.residence-card:hover .thumb img { transform: scale(1.04); }
.residence-card .body { padding: 1.8rem 1.9rem 2rem; flex: 1; display: flex; flex-direction: column; }
.residence-card .status { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6em; }
.role-tag { display: inline-block; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.22em 0.65em; border: 1px solid var(--navy); color: var(--navy); margin-left: 0.6em; vertical-align: middle; }
.on-dark .role-tag { border-color: rgba(255,255,255,0.5); color: var(--white); }
.residence-card h3 { margin-bottom: 0.15em; }
.residence-card .loc { font-size: 0.86rem; color: var(--mist); margin-bottom: 1em; }
.residence-card .specs { display: flex; gap: 1.4em; font-size: 0.86rem; color: var(--graphite); margin: 0 0 1.4em; padding-top: 1em; border-top: 1px solid var(--line); }
.residence-card .specs strong { color: var(--navy); font-weight: 500; }
.residence-card .cta { margin-top: auto; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); display: inline-flex; align-items: center; gap: 0.5em; }
.residence-card .cta::after { content: "→"; transition: transform 0.2s ease; }
.residence-card:hover .cta::after { transform: translateX(4px); }

.photo-card { overflow: hidden; }
.photo-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-caption { font-size: 0.82rem; color: var(--mist); margin-top: 0.8em; letter-spacing: 0.03em; }

/* Two-column media/text block */
.media-row { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.media-row.reverse { direction: rtl; }
.media-row.reverse > * { direction: ltr; }
@media (max-width: 900px) { .media-row { grid-template-columns: 1fr; } }
.media-row img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* Stat row */
.stat-row { display: flex; flex-wrap: wrap; gap: clamp(2rem, 6vw, 5rem); }
.stat { min-width: 120px; }
.stat .num { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--gold); line-height: 1; }
.stat .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); margin-top: 0.6em; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field { margin-bottom: 1.4rem; }
.form-field label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--graphite); margin-bottom: 0.55em; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  font-family: var(--font-ui);
  font-weight: 300;
  font-size: 1rem;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--line);
  padding: 0.85em 1em;
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.82rem; color: var(--mist); margin-top: 0.5rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { display: none; padding: 1em 1.2em; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 1.4rem; }
.form-status.ok { display: block; background: rgba(201,162,39,0.12); border: 1px solid var(--gold); color: var(--navy); }
.form-status.err { display: block; background: rgba(180,50,50,0.08); border: 1px solid #b43232; color: #7a2323; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: clamp(3rem, 6vw, 5rem) 0 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.1em; }
.footer-grid ul li { margin-bottom: 0.7em; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand svg { height: 30px; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 32ch; font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 1.6rem; font-size: 0.78rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 0.8rem; }
.footer-bottom a { color: rgba(255,255,255,0.45); }
.footer-bottom a:hover { color: var(--gold); }

/* ==========================================================================
   Misc
   ========================================================================== */
.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem 0.9rem; margin: 1.4rem 0; }
.tag { font-size: 0.82rem; color: var(--graphite); padding: 0.5em 0; position: relative; padding-left: 1.3em; }
.tag::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; background: var(--gold); }

.breadcrumb { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mist); margin-bottom: 1rem; }
.breadcrumb a:hover { color: var(--gold); }

.quote-block { font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); color: var(--navy); line-height: 1.4; max-width: 24ch; }
.on-dark .quote-block { color: var(--white); }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table td { padding: 0.9em 0; font-size: 0.95rem; }
.spec-table td:first-child { color: var(--mist); width: 45%; }
.spec-table td:last-child { color: var(--navy); font-weight: 500; text-align: right; }

.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
@media (max-width: 700px) { .gallery-strip { grid-template-columns: 1fr 1fr; } }
.gallery-strip img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 0.9rem var(--gutter);
  display: none;
  align-items: center; justify-content: space-between;
  gap: 1rem;
  z-index: 90;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 70px; }
}
.sticky-cta span { color: var(--white); font-size: 0.9rem; }
.sticky-cta a { flex: 1; text-align: center; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
