/* 3094 Coeur d'Alene — shared styles */
:root {
  --ink: #1c1f23;
  --ink-soft: #4a4f57;
  --paper: #faf8f5;
  --card: #ffffff;
  --line: #e5e0d8;
  --brass: #a8894f;
  --brass-dark: #8a6f3c;
  --green: #2e5d43;
  --shadow: 0 10px 30px rgba(28, 31, 35, 0.10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Source Sans 3", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .serif { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; }
img { max-width: 100%; display: block; }
a { color: var(--brass-dark); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
}
.brand { color: #fff; text-decoration: none; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.brand .num { font-family: "Playfair Display", Georgia, serif; font-size: 1.35rem; letter-spacing: .02em; }
.brand .loc { font-size: .72rem; text-transform: uppercase; letter-spacing: .22em; opacity: .92; }
.header-cta { display: flex; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-brass { background: var(--brass); color: #fff; box-shadow: 0 4px 14px rgba(138,111,60,.35); }
.btn-brass:hover { background: var(--brass-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #33383f; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn svg { width: 17px; height: 17px; flex: none; }

/* Hero */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: #fff;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(15,17,20,.30) 0%, rgba(15,17,20,.05) 40%, rgba(15,17,20,.72) 100%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px 64px; }
.hero .kicker {
  display: inline-block; font-size: .78rem; text-transform: uppercase; letter-spacing: .28em;
  background: rgba(168,137,79,.92); padding: 7px 16px; border-radius: 4px; margin-bottom: 18px; font-weight: 600;
}
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); text-shadow: 0 2px 18px rgba(0,0,0,.35); max-width: 18ch; }
.hero .sub { margin-top: 12px; font-size: clamp(1rem, 2vw, 1.25rem); opacity: .95; text-shadow: 0 1px 10px rgba(0,0,0,.4); max-width: 60ch; }
.hero .price { font-family: "Playfair Display", Georgia, serif; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-top: 14px; text-shadow: 0 2px 14px rgba(0,0,0,.4); }
.hero .price small { font-family: "Source Sans 3", sans-serif; font-size: .55em; font-weight: 400; opacity: .9; }
.hero-actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats strip */
.stats {
  background: var(--ink); color: #fff;
  padding: 26px 0;
}
.stats .row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.stat { text-align: center; padding: 6px 34px; border-right: 1px solid rgba(255,255,255,.16); }
.stat:last-child { border-right: none; }
.stat b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; font-weight: 600; color: #e9d9b8; }
.stat span { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; opacity: .85; }

/* Sections */
section.block { padding: 72px 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .76rem; text-transform: uppercase; letter-spacing: .26em; color: var(--brass-dark); font-weight: 700; margin-bottom: 10px; }
.block h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin-bottom: 18px; }
.lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 68ch; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* Feature list */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 36px; margin-top: 26px; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.feature svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--brass); }
.feature b { display: block; font-size: 1rem; }
.feature span { font-size: .92rem; color: var(--ink-soft); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 30px; }
.gallery a { position: relative; display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 3/2; background: #ddd; }
.gallery a img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery a:hover img { transform: scale(1.045); }
.gallery a .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; font-size: .78rem; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.62), transparent); opacity: 0; transition: opacity .25s ease;
}
.gallery a:hover .cap { opacity: 1; }
.gallery a.wide { grid-column: span 2; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  background: rgba(12,13,15,.94); align-items: center; justify-content: center; flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.lightbox .lb-cap { color: #cfc9bd; margin-top: 14px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; width: 46px; height: 46px; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* Terms card (rent) */
.terms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.term { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px; box-shadow: var(--shadow); }
.term b { display: block; font-family: "Playfair Display", Georgia, serif; font-size: 1.18rem; margin-bottom: 4px; }
.term span { color: var(--ink-soft); font-size: .95rem; }

/* Schools */
.schools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.school { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px; text-align: center; }
.school .rating { font-family: "Playfair Display", Georgia, serif; font-size: 2rem; color: var(--green); }
.school .rating small { font-size: .9rem; color: var(--ink-soft); }
.school b { display: block; margin-top: 6px; }
.school span { font-size: .88rem; color: var(--ink-soft); }

/* Agent panel */
.agent-panel {
  background: var(--ink); color: #eceae6; border-radius: 14px; padding: 44px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center;
}
.agent-panel h2 { color: #fff; }
.agent-panel p { color: #c9c5bd; margin-top: 12px; }
.agent-panel .highlight { color: #e9d9b8; font-weight: 600; }

/* Form */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 36px; box-shadow: var(--shadow); max-width: 640px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; margin: 14px 0 6px; color: var(--ink-soft); }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; background: #fdfcfa; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--brass); border-color: var(--brass); }
.form-note { font-size: .85rem; color: var(--ink-soft); margin-top: 12px; }
.form-success { display: none; background: #eef5ef; border: 1px solid #cfe3d3; color: var(--green); border-radius: 8px; padding: 16px; margin-top: 16px; font-weight: 600; }
.hp { position: absolute; left: -9999px; }

/* Landing chooser */
.choose { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.choice {
  position: relative; border-radius: 14px; overflow: hidden; text-decoration: none; color: #fff;
  min-height: 340px; display: flex; align-items: flex-end; background-size: cover; background-position: center;
  box-shadow: var(--shadow); transition: transform .2s ease;
}
.choice:hover { transform: translateY(-4px); }
.choice::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,14,.78), rgba(10,12,14,.05) 55%); }
.choice > div { position: relative; z-index: 2; padding: 26px; }
.choice .tag { font-size: .74rem; text-transform: uppercase; letter-spacing: .24em; color: #e9d9b8; font-weight: 700; }
.choice h3 { font-size: 1.6rem; margin: 6px 0 4px; color: #fff; }
.choice p { font-size: .95rem; opacity: .92; }
.choice .go { display: inline-block; margin-top: 12px; font-weight: 700; color: #fff; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }

/* Sticky mobile CTA */
.cta-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  display: none; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line); backdrop-filter: blur(8px);
}
.cta-bar .btn { flex: 1; padding: 14px 10px; font-size: 1rem; }

/* Footer */
footer.site {
  background: var(--ink); color: #9aa0a8; padding: 44px 0 110px; font-size: .88rem;
}
footer.site .wrap { display: flex; flex-direction: column; gap: 8px; }
footer.site b { color: #d7d3cb; font-family: "Playfair Display", Georgia, serif; font-size: 1.05rem; font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .two-col, .agent-panel { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .schools, .terms { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .choose { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .cta-bar { display: flex; }
  .header-cta { display: none; }
  .hero { min-height: 0; padding-top: 110px; }
  .hero-inner { padding-bottom: 44px; }
  section.block { padding: 52px 0; }
  .stat { padding: 6px 18px; }
  .form-card { padding: 24px; }
}

/* ---- Agent gate & personalization ---- */
.gate {
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  background: rgba(16,18,21,.82); backdrop-filter: blur(14px); padding: 20px;
}
.gate[hidden] { display: none; }
.gate-card {
  width: 100%; max-width: 440px; background: #fdfcfa; border-radius: 16px; padding: 36px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); text-align: center;
}
.gate-card .eyebrow { margin-bottom: 6px; }
.gate-card h2 { font-size: 1.45rem; margin-bottom: 8px; }
.gate-card p { color: var(--ink-soft); font-size: .95rem; }
.gate-card input { text-align: center; font-size: 1.15rem; letter-spacing: .06em; margin-top: 16px; }
.gate-card .btn { width: 100%; margin-top: 14px; }
.gate-alt { margin-top: 16px; font-size: .85rem; }
.gate-alt a { cursor: pointer; }
.gate-error { display: none; color: #a33; font-size: .88rem; margin-top: 10px; }
.gate-confirm { display: none; }
.gate-confirm .ident {
  background: #f2efe9; border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-top: 16px;
}
.gate-confirm .ident b { font-family: "Playfair Display", Georgia, serif; font-size: 1.2rem; display: block; }
.gate-confirm .ident span { color: var(--ink-soft); font-size: .92rem; display: block; }
.gate-badge {
  display: inline-flex; align-items: center; gap: 6px; background: #eef5ef; color: var(--green);
  border: 1px solid #cfe3d3; border-radius: 999px; padding: 4px 12px; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px;
}
.gate-manual { display: none; text-align: left; }
.gate-manual label { margin-top: 10px; }

.verified-bar {
  display: none; position: sticky; top: 0; z-index: 60;
  background: var(--ink); color: #e9e6df; font-size: .88rem;
  padding: 9px 16px; text-align: center;
}
.verified-bar b { color: #e9d9b8; }
.verified-bar a { color: #b9b3a6; margin-left: 12px; font-size: .82rem; }

.counter-chip {
  display: none; margin: 22px 0 0; padding: 12px 18px; border-radius: 10px;
  background: #fdf6ea; border: 1px solid #ecd9b4; color: #7a5c1e; font-weight: 600; font-size: .98rem;
  width: fit-content;
}
.counter-chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c98a2b; margin-right: 9px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1 } 50% { opacity: .35 } }
