/* ============================================================
   Jay Cee of New York Corp. — styles
   Deep navy + warm gold/amber, clean professional real estate.
   ============================================================ */

:root {
  --navy: #16283f;
  --navy-deep: #0e1c2f;
  --navy-soft: #22384f;
  --gold: #c9a227;
  --gold-dark: #a9861d;
  --gold-pale: #faf5e6;
  --ink: #1f2a37;
  --muted: #5b6b7d;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-soft: #f4f6f9;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(14, 28, 47, 0.10);
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.25rem; letter-spacing: 0.01em;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.wordmark .wm-accent { color: var(--gold-dark); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav-links a:hover { color: var(--navy); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 8px; text-decoration: none;
  background: var(--gold); color: var(--navy-deep);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:hover { background: var(--gold-dark); color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.55);
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 2px solid var(--line); padding: 11px 22px;
}
.btn-ghost:hover { border-color: var(--navy); background: transparent; color: var(--navy); transform: none; }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn:focus-visible, a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  color: #fff; padding: 96px 0 88px;
}
/* Generated Manhattan skyline — slow, subtle drift. Purely atmospheric. */
.hero-bg {
  position: absolute; inset: -4%;
  background: url("assets/skyline.jpg") center 35% / cover no-repeat;
  animation: heroDrift 36s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  from { transform: scale(1) translateX(0); }
  to { transform: scale(1.12) translateX(-2%); }
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(1100px 480px at 85% -10%, rgba(201, 162, 39, 0.20), transparent 60%),
    linear-gradient(160deg, rgba(14, 28, 47, 0.88) 0%, rgba(22, 40, 63, 0.82) 60%, rgba(34, 56, 79, 0.78) 100%);
}
.hero .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-bg { animation: none; }
}
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.12;
  margin: 0 0 20px; max-width: 16ch;
}
.hero p.lede { font-size: 1.15rem; color: #cfd8e3; max-width: 56ch; margin: 0 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats {
  display: flex; gap: 40px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 26px;
}
.stat .stat-num {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; color: #fff;
}
.stat .stat-label { font-size: 0.85rem; color: #aeb9c7; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); color: var(--navy);
  margin: 0 0 12px; line-height: 1.2;
}
.section-head .eyebrow { color: var(--gold-dark); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex-grow: 1; }
.card-kicker { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark); margin: 0 0 8px; }
.card h3 { font-family: var(--font-display); font-size: 1.45rem; color: var(--navy); margin: 0 0 6px; font-weight: 600; }
.card .card-address { color: var(--muted); font-size: 0.95rem; margin: 0 0 18px; }

.facts { list-style: none; margin: 0 0 22px; padding: 0; border-top: 1px solid var(--line); }
.facts li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.facts li .fact-label { color: var(--muted); }
.facts li .fact-value { font-weight: 600; color: var(--navy); text-align: right; }
.facts li .fact-value.placeholder { font-weight: 500; color: var(--muted); font-style: italic; }
.card .btn { margin-top: auto; align-self: flex-start; }

/* Image placeholder */
.img-placeholder {
  aspect-ratio: 16 / 10; background: linear-gradient(150deg, #e9edf2, #dfe5ec);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: #8b98a9; border-bottom: 1px solid var(--line);
}
.img-placeholder svg { width: 54px; height: 54px; stroke: #9aa7b8; }
.img-placeholder span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }

/* Photo gallery (space cards) */
.gallery { border-bottom: 1px solid var(--line); background: #0f1c30; }
.gallery-main { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-thumbs {
  display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto;
  background: #fff;
}
.gallery-thumb {
  width: 64px; height: 44px; object-fit: cover; border-radius: 6px; cursor: pointer;
  border: 2px solid transparent; opacity: 0.65; flex: 0 0 auto;
  transition: opacity 0.15s ease, border-color 0.15s ease;
}
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--gold-dark, #b8860b); opacity: 1; }

/* Live map embed (property cards) */
.map-embed {
  position: relative; aspect-ratio: 16 / 10; background: #e9edf2;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-badge {
  position: absolute; left: 12px; bottom: 12px; pointer-events: none;
  background: rgba(26, 43, 74, 0.88); color: #fff;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}

.card-coming {
  border-style: dashed; box-shadow: none; background: var(--bg-soft);
}
.card-coming .img-placeholder { background: transparent; border-bottom-style: dashed; }
.badge-soon {
  display: inline-block; align-self: flex-start;
  background: var(--gold-pale); color: var(--gold-dark);
  border: 1px solid #e8d9a8; border-radius: 999px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; margin-bottom: 14px;
}

/* ---------- Composer ---------- */
.composer {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); overflow: hidden; max-width: 860px; margin: 0 auto;
}
.composer-head { background: var(--navy); color: #fff; padding: 30px 34px; }
.composer-head h3 { font-family: var(--font-display); margin: 0 0 6px; font-size: 1.5rem; font-weight: 600; }
.composer-head p { margin: 0; color: #b9c4d2; font-size: 0.98rem; }
.steps { display: flex; gap: 6px; padding: 22px 34px 0; }
.step-dot {
  flex: 1; height: 6px; border-radius: 999px; background: var(--line);
}
.step-dot.active { background: var(--gold); }
.step-labels { display: flex; padding: 10px 34px 0; }
.step-labels span { flex: 1; font-size: 0.78rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.step-labels span.active { color: var(--navy); }
.composer-body { padding: 28px 34px 36px; }
.composer-step h4 { font-size: 1.15rem; color: var(--navy); margin: 0 0 6px; }
.composer-step .step-sub { color: var(--muted); margin: 0 0 20px; font-size: 0.96rem; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: block; border: 2px solid var(--line); border-radius: 10px;
  padding: 16px 18px; cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.choice label strong { display: block; color: var(--navy); font-size: 1.02rem; margin-bottom: 2px; }
.choice label small { color: var(--muted); font-size: 0.88rem; }
.choice input:checked + label { border-color: var(--gold); background: var(--gold-pale); }
.choice input:focus-visible + label { outline: 3px solid var(--gold); outline-offset: 2px; }

.selection-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--gold-pale); border: 1px solid #e8d9a8; border-radius: 10px;
  padding: 12px 18px; margin-bottom: 22px; font-size: 0.95rem; color: var(--navy);
}
.selection-chip button {
  background: none; border: 0; color: var(--gold-dark); font-weight: 700;
  cursor: pointer; font-size: 0.9rem; text-decoration: underline; padding: 4px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--navy); margin-bottom: 6px; }
.field label .optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  border: 2px solid var(--line); border-radius: 8px; padding: 11px 14px; background: #fff;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--gold); outline: none;
}
.field-error { color: #a33b2e; font-size: 0.85rem; margin-top: 6px; display: none; }
.field.invalid input { border-color: #c0574a; }
.field.invalid .field-error { display: block; }

.composer-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }

/* Email preview */
.email-preview {
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 24px;
}
.email-preview-head { background: var(--bg-soft); padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.email-preview-head div { margin: 2px 0; }
.email-preview-head .ep-label { color: var(--muted); display: inline-block; width: 64px; font-weight: 600; }
.email-preview-body { padding: 20px 22px; white-space: pre-wrap; font-size: 0.97rem; }
.preview-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 20px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #b9c4d2; padding: 56px 0 34px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 36px; }
.footer-brand { font-family: var(--font-display); font-size: 1.3rem; color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-brand .wm-accent { color: var(--gold); }
.site-footer p { margin: 0 0 8px; font-size: 0.95rem; }
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-sub { font-size: 0.85rem; color: #8b98a9; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 0.85rem; color: #8b98a9;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
  .section { padding: 60px 0; }
  .hero { padding: 72px 0 64px; }
  .form-grid { grid-template-columns: 1fr; }
  .composer-head, .composer-body { padding-left: 22px; padding-right: 22px; }
  .steps, .step-labels { padding-left: 22px; padding-right: 22px; }
  .hero-stats { gap: 24px; }
}
