/* ==========================================================================
   Salmon River Management — salmonrivermanagement.com
   Brand system: river blues/greens, warm North Country neutrals,
   muted salmon accent. Type: Fraunces (display) + Inter (body).
   ========================================================================== */

:root {
  /* Color */
  --river-deep:   #14383E;   /* deep river teal — primary dark */
  --river:        #2C606B;   /* mid river blue-green */
  --river-light:  #6E99A1;
  --pine:         #33584A;   /* pine green */
  --salmon:       #C96A50;   /* muted salmon — accent / CTA */
  --salmon-dark:  #AE5540;
  --sand:         #F4EFE6;   /* warm paper background */
  --sand-deep:    #E8E0D0;
  --cream:        #FBF8F2;
  --ink:          #1C2B2D;
  --ink-soft:     #4A5B5D;
  --line:         #D8CFBE;

  /* Type */
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 2px 24px rgba(20, 56, 62, 0.10);
  --shadow-lift: 0 12px 40px rgba(20, 56, 62, 0.16);
  --container: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--river); text-decoration: none; }
a:hover { color: var(--salmon-dark); }

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

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--river-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--salmon);
  margin-bottom: 14px;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand .mark { width: 44px; height: 44px; flex: none; }

.brand .wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.06rem;
  line-height: 1.14;
  color: var(--river-deep);
  letter-spacing: 0.01em;
}
.brand .wordmark span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--river-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.nav-links a:hover, .nav-links a.active { color: var(--river-deep); }

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--river-deep) !important;
  background: var(--sand);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.nav-phone:hover { background: var(--sand-deep); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--river-deep); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 1.05rem; }
  .nav-phone { margin-top: 8px; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--river-deep) 0%, #1D4A50 55%, var(--pine) 100%);
  color: #fff;
  overflow: hidden;
}

.hero .river-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  padding: 96px 24px 110px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero h1 { color: #fff; max-width: 17ch; }
.hero .eyebrow { color: #F1A88F; }
.hero .lede { color: rgba(251, 248, 242, 0.85); margin-top: 20px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* Page hero (interior pages) */
.page-hero {
  background: linear-gradient(160deg, var(--river-deep), #1D4A50);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-inner { padding: 64px 24px 68px; }
.page-hero h1 { color: #fff; }
.page-hero .lede { color: rgba(251, 248, 242, 0.85); margin-top: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--salmon); color: #fff; }
.btn-primary:hover { background: var(--salmon-dark); color: #fff; }

.btn-ghost { border-color: rgba(251,248,242,0.5); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

.btn-outline { border-color: var(--river-deep); color: var(--river-deep); background: transparent; }
.btn-outline:hover { background: var(--river-deep); color: #fff; }

/* ---------- Sections ---------- */

.section { padding: 84px 0; }
.section.tint { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Property cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.prop-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.prop-card .media { position: relative; aspect-ratio: 16/10; background: var(--sand-deep); }
.prop-card .media img, .prop-card .media svg { width: 100%; height: 100%; object-fit: cover; }

.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--salmon);
  color: #fff;
}
.badge.green { background: var(--pine); }
.badge.blue { background: var(--river); }

.prop-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prop-card h3 { font-size: 1.3rem; }
.prop-card .addr { font-size: 0.9rem; color: var(--ink-soft); }

.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--river);
}
.spec-row span { display: inline-flex; align-items: center; gap: 6px; }

.prop-card .cta { margin-top: auto; padding-top: 16px; }
.prop-card .cta a { font-weight: 700; font-size: 0.95rem; }

/* ---------- Feature / services ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.feature .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--sand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .icon svg { width: 26px; height: 26px; stroke: var(--river); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 0.95rem; color: var(--ink-soft); }

/* ---------- Listing detail ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.gallery { display: grid; gap: 14px; }
.gallery .main {
  aspect-ratio: 16/10;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sand-deep);
}
.gallery .thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery .thumbs > div {
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  background: var(--sand-deep);
}
.gallery img, .gallery svg { width: 100%; height: 100%; object-fit: cover; }

.photo-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--river-light);
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(44,96,107,0.05) 14px 28px),
    var(--sand);
  border: 1px dashed var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}
.photo-placeholder svg { width: 34px; height: 34px; stroke: var(--river-light); }

.fact-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  position: sticky;
  top: 92px;
}
.fact-panel h3 { margin-bottom: 4px; }
.fact-list { list-style: none; margin: 18px 0 22px; }
.fact-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--sand-deep);
  font-size: 0.95rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .k { color: var(--ink-soft); }
.fact-list .v { font-weight: 700; color: var(--river-deep); text-align: right; }

.fact-panel .btn { width: 100%; justify-content: center; }
.fact-panel .or-call { text-align: center; font-size: 0.9rem; margin-top: 14px; color: var(--ink-soft); }
.fact-panel .or-call a { font-weight: 700; }

.prose { max-width: 68ch; }
.prose p { margin-bottom: 18px; color: var(--ink-soft); }
.prose h2 { margin: 34px 0 14px; }
.prose ul { margin: 0 0 18px 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }

/* ---------- Bridge unit cards ---------- */

.unit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.unit-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.unit-card .media { aspect-ratio: 16/10; background: var(--sand-deep); position: relative; }
.unit-card .media svg, .unit-card .media img { width: 100%; height: 100%; object-fit: cover; }
.unit-card .body { padding: 20px 22px 24px; }
.unit-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.unit-card .meta { font-size: 0.88rem; color: var(--ink-soft); }

.render-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 10px;
}

/* Timeline */
.timeline { list-style: none; margin-top: 10px; }
.timeline li {
  position: relative;
  padding: 0 0 26px 34px;
  border-left: 2px solid var(--line);
  margin-left: 10px;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 2px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--salmon);
  border: 3px solid var(--cream);
}
.timeline .t-title { font-weight: 700; color: var(--river-deep); }
.timeline .t-sub { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Contact form ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}

input, select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--river);
  box-shadow: 0 0 0 3px rgba(44,96,107,0.15);
}
textarea { min-height: 130px; resize: vertical; }

/* ---------- Stats band ---------- */

.stats-band { background: var(--river-deep); color: #fff; }
.stats-band .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; color: #F1A88F; }
.stat .lbl { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(251,248,242,0.75); }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(135deg, var(--pine), var(--river-deep));
  color: #fff;
  border-radius: var(--radius);
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(251,248,242,0.85); margin-top: 8px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--river-deep);
  color: rgba(251, 248, 242, 0.8);
  margin-top: 84px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

.site-footer h4 {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #F1A88F;
  margin-bottom: 16px;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(251,248,242,0.8); font-size: 0.95rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand .wordmark { color: #fff; }
.site-footer .brand .wordmark span { color: rgba(251,248,242,0.6); }
.site-footer .tagline { margin-top: 16px; font-size: 0.95rem; max-width: 34ch; }

.footer-bottom {
  border-top: 1px solid rgba(251,248,242,0.15);
  margin-top: 24px;
}
.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  padding-bottom: 26px;
  font-size: 0.82rem;
  color: rgba(251,248,242,0.55);
}

/* ---------- Utilities ---------- */

.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 36px; } .mt-5 { margin-top: 56px; }
.center { text-align: center; }

.notice {
  background: var(--sand);
  border: 1px solid var(--line);
  border-left: 4px solid var(--salmon);
  border-radius: 8px;
  padding: 16px 20px;
  font-size: 0.93rem;
  color: var(--ink-soft);
}

/* ---------- Floor plans ---------- */
.plan-card .media {
  aspect-ratio: 16/12;
  background: #fff;
  border-bottom: 1px solid var(--sand-deep);
}
.plan-card .media img { object-fit: contain !important; padding: 10px; }

/* leased listings: muted, so active listings keep the eye */
.badge.leased { background: #7E8C8E; color: #fff; }
