/* The Caden — new blocks, styled in the Prescott visual language
   (monochrome, sharp corners, uppercase, thin borders, Avenir headings). */

:root {
  --caden-ink: #1e1e1e;
  --caden-muted: #777777;
  --caden-line: #e6e6e6;
  --caden-bg-soft: #f6f5f3;
  --caden-white: #ffffff;
}

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--caden-line);
}
.lang-switch button {
  background: none;
  border: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--caden-muted);
  cursor: pointer;
  transition: .25s ease;
}
.lang-switch button.is-active,
.lang-switch button:hover {
  background: var(--caden-ink);
  color: #fff;
}
.nav-lang-wrap { display: flex; justify-content: flex-end; }
@media (max-width: 991px) {
  .nav-lang-wrap { justify-content: flex-start; margin-top: 14px; }
}

/* ---------- HERO ---------- */
#hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
#hero .hero-bg,
#hero .hero-bg video,
#hero .hero-bg img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#hero .hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.15) 40%, rgba(0,0,0,.75) 100%);
}
#hero .hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 0 7vh;
  max-width: 880px;
}
#hero .hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 13px;
  opacity: .85;
  margin-bottom: 18px;
}
#hero .hero-loc {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  opacity: .85; margin-bottom: 18px;
}
#hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.04;
  color: #fff;
  margin: 0 0 18px;
}
#hero .hero-sub {
  font-size: clamp(15px, 1.4vw, 19px);
  line-height: 1.55;
  max-width: 660px;
  opacity: .92;
  margin-bottom: 26px;
}
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 30px;
}
.hero-chips li {
  list-style: none;
  border: 1px solid rgba(255,255,255,.45);
  padding: 8px 14px;
  font-size: 12.5px;
  letter-spacing: .03em;
  text-transform: uppercase;
  backdrop-filter: blur(2px);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
#hero .butn { color: #fff; border-color: #fff; }
#hero .butn::before { background-color: #fff; }
#hero .butn:hover { color: var(--caden-ink); border-color: #fff; }
#hero .butn.butn-solid { background:#fff; color: var(--caden-ink); }
#hero .butn.butn-solid:hover { color:#fff; }
#hero .butn.butn-solid::before { background-color: var(--caden-ink); }

/* ---------- Section heads ---------- */
.caden-head { margin-bottom: 38px; }
.caden-head .eyebrow {
  text-transform: uppercase; letter-spacing: .2em; font-size: 12px;
  color: var(--caden-muted); margin-bottom: 12px; display:block;
}
.caden-head h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; margin: 0 0 12px; }
.caden-head p { color: var(--caden-muted); max-width: 720px; margin: 0; }

/* ---------- Floor plans ---------- */
#plans { background: var(--caden-bg-soft); }
.plans-table {
  width: 100%; border-collapse: collapse; background:#fff;
  border: 1px solid var(--caden-line);
}
.plans-table th, .plans-table td {
  text-align: start; padding: 18px 20px; border-bottom: 1px solid var(--caden-line);
  font-size: 15px;
}
.plans-table th {
  text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--caden-muted);
  font-weight: 600;
}
.plans-table tr:last-child td { border-bottom: 0; }
.plans-table td:first-child { font-weight: 600; }
.plans-table td.price { white-space: nowrap; font-weight: 600; }
.plans-note {
  margin-top: 18px; font-size: 14px; color: var(--caden-ink);
  border-inline-start: 3px solid var(--caden-ink); padding-inline-start: 14px;
}
.plans-actions { margin-top: 26px; }

/* ---------- Investment grid ---------- */
.invest-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(4, 1fr);
  background: var(--caden-line);
  border: 1px solid var(--caden-line);
}
.invest-card {
  background:#fff; padding: 30px 26px;
  display: flex; flex-direction: column; gap: 10px;
  transition: .3s ease;
}
.invest-card:hover { background: var(--caden-bg-soft); }
.invest-card .ic-num {
  font-family: "Avenir LT Std", "Roboto", sans-serif;
  font-size: 13px; letter-spacing: .12em; color: var(--caden-muted);
}
.invest-card h3 { font-size: 19px; line-height: 1.25; margin: 0; }
.invest-card p { font-size: 14.5px; line-height: 1.6; color: var(--caden-muted); margin: 0; }
@media (max-width: 991px) { .invest-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .invest-grid { grid-template-columns: 1fr; } }

/* ---------- Lead magnet ---------- */
#lead-magnet { background: var(--caden-ink); color:#fff; }
#lead-magnet .caden-head h2 { color:#fff; }
#lead-magnet .caden-head p { color: rgba(255,255,255,.7); }
.lead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lead-card {
  border: 1px solid rgba(255,255,255,.22);
  padding: 34px 28px; display:flex; flex-direction:column;
  background: rgba(255,255,255,.02);
}
.lead-card .lc-ico {
  width: 46px; height: 46px; margin-bottom: 18px;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid rgba(255,255,255,.35);
}
.lead-card .lc-ico svg { width: 22px; height: 22px; stroke:#fff; }
.lead-card h3 { color:#fff; font-size: 21px; margin: 0 0 10px; }
.lead-card p { color: rgba(255,255,255,.7); font-size: 14.5px; line-height: 1.6; flex: 1 1 auto; margin: 0 0 22px; }
.lead-card .butn { color:#fff; border-color:#fff; align-self: flex-start; }
.lead-card .butn::before { background:#fff; }
.lead-card .butn:hover { color: var(--caden-ink); }
@media (max-width: 991px) { .lead-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline:auto; } }

/* ---------- Contact band ---------- */
#contact { background: var(--caden-bg-soft); text-align:center; }
.contact-actions { display:flex; flex-wrap:wrap; gap:14px; justify-content:center; margin-top: 26px; }

/* ---------- Floating CTA ---------- */
#caden-fab {
  position: fixed;
  z-index: 1200;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, transform .35s ease;
  transform: translateY(10px);
}
#caden-fab.is-visible { opacity: 1; visibility: visible; transform: none; }

/* desktop: vertical panel, right edge */
@media (min-width: 768px) {
  #caden-fab {
    right: 0; top: 50%; transform: translateY(-50%) translateX(10px);
    display: flex; flex-direction: column;
  }
  #caden-fab.is-visible { transform: translateY(-50%); }
  #caden-fab a, #caden-fab button {
    display: flex; align-items: center; gap: 10px;
    background: var(--caden-ink); color:#fff; border: 0;
    padding: 14px 16px; font-size: 12px; text-transform: uppercase;
    letter-spacing: .06em; cursor: pointer; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.15); min-width: 56px;
    transition: background .25s ease;
  }
  #caden-fab a:last-child, #caden-fab button:last-child { border-bottom: 0; }
  #caden-fab a:hover, #caden-fab button:hover { background:#000; }
  #caden-fab .fab-label { white-space: nowrap; }
  #caden-fab svg { width: 18px; height: 18px; flex: none; }
}

/* mobile: bottom sticky bar */
@media (max-width: 767px) {
  #caden-fab {
    left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--caden-ink);
  }
  #caden-fab a, #caden-fab button {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    background: var(--caden-ink); color:#fff; border: 0;
    border-inline-end: 1px solid rgba(255,255,255,.15);
    padding: 11px 6px; font-size: 11px; text-transform: uppercase;
    cursor: pointer; text-decoration: none;
  }
  #caden-fab a:last-child, #caden-fab button:last-child { border-inline-end: 0; }
  #caden-fab svg { width: 20px; height: 20px; }
}

/* ---------- Modal ---------- */
#lead-modal {
  position: fixed; inset: 0; z-index: 2000;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
#lead-modal.is-open { display: flex; }
#lead-modal .lm-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,.6);
}
#lead-modal .lm-dialog {
  position: relative; background:#fff; width: 100%; max-width: 460px;
  padding: 40px 34px 34px; border: 1px solid var(--caden-line);
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
#lead-modal .lm-close {
  position: absolute; top: 12px; inset-inline-end: 14px;
  background: none; border: 0; font-size: 26px; line-height: 1;
  cursor: pointer; color: var(--caden-ink);
}
#lead-modal h3 { font-size: 24px; margin: 0 0 8px; }
#lead-modal .lm-intro { color: var(--caden-muted); font-size: 14px; margin: 0 0 22px; }
#lead-modal .lm-field { margin-bottom: 14px; }
#lead-modal input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--caden-line);
  font-size: 15px; background:#fff; color: var(--caden-ink); border-radius: 0;
}
#lead-modal input:focus { outline: none; border-color: var(--caden-ink); }
#lead-modal input.is-invalid { border-color: #dc3545; }
#lead-modal .butn { width: 100%; margin-top: 6px; }
.lead-status { margin-top: 14px; font-size: 14px; min-height: 1em; }
.lead-status--error { color: #dc3545; }
.lead-status--success { color: #198754; }
body.modal-open { overflow: hidden; }

/* hidden i18n string mirror (used by caden.js to read translated messages) */
#i18n-strings { display: none !important; }

/* spacing helper consistent with site rhythm */
.caden-section { padding: 80px 0; }
@media (max-width: 767px) { .caden-section { padding: 54px 0; } }
