/* serenashomes.com shared styles. Mobile first, dark theme, gold accent. */

:root {
  --bg: #16130f;
  --surface: #221d18;
  --surface-2: #2c261f;
  --border: #3a322a;
  --text: #f3ede3;
  --muted: #b8ab98;
  --gold: #c9a96a;
  --gold-dark: #a08030;
  --gold-text: #d9bc7d;
  --brand-gold: #907020;
  --danger: #e07856;
  --radius: 14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

h1, h2, h3, .serif {
  font-family: Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}

a { color: var(--gold); }
a:hover { color: var(--gold-text); }

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

.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px; }
.wrap-wide { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */

.site-header { text-align: center; padding: 28px 0 8px; }
.site-header .headshot {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 2px solid var(--gold-dark);
}
.site-header .wordmark-text {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--gold); font-size: 34px; letter-spacing: 4px;
  text-transform: uppercase; font-weight: 400; margin: 0 0 6px;
}
.site-header .name {
  font-size: 30px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text);
}
.site-header .role { color: var(--muted); font-size: 14px; margin-top: 4px; }
.site-header .contact { margin-top: 10px; font-size: 15px; }
.site-header .contact a { color: var(--text); text-decoration: none; margin: 0 8px; }
.site-header .contact a:hover { color: var(--gold); }
.logo-card { display: flex; justify-content: center; background: #fff; border-radius: 12px; margin-left: auto; margin-right: auto; width: fit-content; }
.logo-card img { display: block; width: auto; }
.site-header .logo-card { padding: 12px 20px; margin-top: 16px; }
.site-header .logo-card img { height: 76px; }
.tagline { text-align: center; color: var(--muted); font-size: 15px; margin: 14px 0 20px; }

/* ---------- hub grid ---------- */

.tile-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  padding-bottom: 8px;
}
@media (min-width: 720px) {
  .tile-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.tile {
  position: relative; display: block; border-radius: var(--radius);
  overflow: hidden; background: var(--surface); text-decoration: none;
  border: 1px solid var(--border);
}
.tile img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 20%;
}
.tile .tile-label {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 28px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff; font-size: 14px; font-weight: 600; line-height: 1.3;
}
.tile .tile-label small { display: block; font-weight: 400; color: #d8cfc0; font-size: 12px; }
.tile .unlock-pill {
  position: absolute; top: 8px; right: 8px;
  background: var(--gold); color: #1c1608;
  font-size: 11px; font-weight: 700; letter-spacing: 0.4px;
  padding: 4px 8px; border-radius: 999px;
}

/* ---------- about ---------- */

.about { margin: 28px 0; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.about img { border-radius: 10px; margin-bottom: 14px; }
.about p { color: var(--muted); margin: 0 0 10px; }
.about p:last-child { margin-bottom: 0; }

/* ---------- home page ---------- */

.back-link {
  display: inline-block; margin: 16px 0 12px; color: var(--text);
  text-decoration: none; font-size: 15px;
  border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px;
  background: var(--surface);
}
.back-link:hover { border-color: var(--gold-dark); color: var(--gold); }

.carousel { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img {
  flex: 0 0 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  scroll-snap-align: start;
}
.carousel-track img.tall { aspect-ratio: 3 / 4; object-position: center 20%; }
.carousel-count {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.65); color: #fff;
  font-size: 12px; padding: 4px 9px; border-radius: 999px;
}
.carousel-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 0; flex-wrap: wrap; }
.carousel-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: #4a4136; cursor: pointer;
}
.carousel-dots button.active { background: var(--gold); }
.reel-note { font-size: 13px; color: var(--muted); text-align: center; margin: 8px 0 0; }
.reel-note a { color: var(--muted); }

/* locked details */

.details-card {
  margin-top: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 16px;
}
.detail-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--border);
}
.detail-row:last-child { border-bottom: 0; }
.detail-row .key { font-size: 15px; color: var(--muted); }
.detail-row .val { font-size: 15px; font-weight: 600; text-align: right; }
.detail-row .val .sub { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.locked-bar {
  display: inline-block; width: 110px; height: 14px; border-radius: 7px;
  background: #4a4136;
  filter: blur(1px);
  vertical-align: middle;
}
.lock-icon { display: inline-block; vertical-align: middle; margin-left: 6px; color: var(--gold); }
.lock-icon svg { width: 15px; height: 15px; display: block; }

.status-badge {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; padding: 3px 9px; border-radius: 999px;
  background: #2e4a2e; color: #b9e2b9;
}
.status-badge.sold { background: #4a2e2e; color: #e8b9b9; }

.unlock-cta { margin: 18px 0 6px; }
.unlock-cta p { text-align: center; color: var(--muted); font-size: 15px; margin: 0 0 12px; }

.btn-gold {
  display: block; width: 100%;
  background: var(--gold); color: #1c1608;
  border: 0; border-radius: 12px; padding: 16px;
  font-size: 18px; font-weight: 700; cursor: pointer; text-align: center;
  text-decoration: none;
}
.btn-gold:hover { background: var(--gold-text); color: #1c1608; }
.btn-gold:disabled { opacity: 0.55; cursor: default; }

.attribution { font-size: 13px; color: var(--muted); margin: 14px 0; }
.attribution p { margin: 4px 0; }
.note-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--text);
  margin: 14px 0;
}

/* ---------- form modal ---------- */

.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.7);
  display: none; align-items: flex-end; justify-content: center; z-index: 50;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #1b1712; width: 100%; max-width: 560px;
  max-height: 92vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 18px 20px 28px;
  border-top: 1px solid var(--border);
}
@media (min-width: 640px) {
  .modal-overlay { align-items: center; padding: 20px; }
  .modal { border-radius: 18px; border: 1px solid var(--border); }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head .back-btn {
  background: none; border: 1px solid var(--border); color: var(--text);
  border-radius: 999px; padding: 6px 12px; font-size: 14px; cursor: pointer;
}
.modal-head .back-btn.hidden { visibility: hidden; }
.modal-head .close-btn {
  background: none; border: 0; color: var(--muted); font-size: 26px;
  line-height: 1; cursor: pointer; padding: 4px 8px;
}
.progress { height: 5px; background: #3a322a; border-radius: 3px; overflow: hidden; margin: 8px 0 16px; }
.progress span { display: block; height: 100%; background: var(--gold); width: 25%; transition: width 0.25s ease; }
.step-label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.modal h2 { font-size: 24px; margin: 0 0 4px; }
.modal .step-sub { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.modal .step-sub .check { color: var(--gold); }

.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-btn {
  display: block; width: 100%; text-align: left;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  border-radius: 12px; padding: 15px 16px; font-size: 16px; cursor: pointer;
}
.opt-btn:hover { border-color: var(--gold-dark); }
.opt-btn.selected { border-color: var(--gold); background: #33291a; }
.opt-btn .letter {
  display: inline-block; width: 28px; height: 28px; line-height: 28px; text-align: center;
  border: 1px solid var(--border); border-radius: 50%; margin-right: 10px;
  font-size: 14px; color: var(--muted);
}
.opt-btn.selected .letter { border-color: var(--gold); color: var(--gold); }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 10px; padding: 13px 14px; font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--gold); }
.field .error { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }
.field.invalid input { border-color: var(--danger); }
.field.invalid .error { display: block; }
.consent { font-size: 13px; color: var(--muted); margin: 14px 0; }
.form-error {
  display: none; background: #4a2e2e; color: #f3c1b5; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; margin-bottom: 14px;
}
.form-error.show { display: block; }
.modal .fineprint { text-align: center; margin-top: 14px; }
.modal .fineprint a { color: var(--muted); font-size: 13px; }

/* ---------- preview banner ---------- */

.preview-banner {
  display: none; background: var(--gold-dark); color: #fff;
  text-align: center; font-size: 13px; padding: 8px 12px;
}
.preview-banner.show { display: block; }

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

.site-footer {
  margin-top: 36px; padding: 24px 0 32px; border-top: 1px solid var(--border);
  color: var(--muted); font-size: 13px; text-align: center;
}
.site-footer .footer-name { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.site-footer .logo-card { padding: 10px 18px; margin-top: 12px; margin-bottom: 12px; }
.site-footer .logo-card img { height: 64px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 5px 0; }
.eho { display: inline-flex; align-items: center; gap: 6px; }
.eho svg { width: 18px; height: 18px; }

/* ---------- static pages ---------- */

.static-page { padding: 24px 0; }
.static-page h1 { font-size: 28px; margin-bottom: 16px; }
.static-page h2 { font-size: 20px; margin: 22px 0 8px; }
.static-page p, .static-page li { color: var(--muted); }
.static-page p strong, .static-page li strong { color: var(--text); }
.static-page ul { padding-left: 20px; }
