/* ===========================================================
   CMA Website Template — Pederson Realty
   navy/gold/cream palette shown below is the default; swap the
   --navy/--gold/etc custom properties to match a property's vibe
   if asked (e.g. a lake property might want blue/sand tones).
   =========================================================== */

:root {
  --navy: #1f3864;
  --navy-dark: #142544;
  --gold: #a9822f;
  --cream: #f7f5ef;
  --tan: #ece5d3;
  --ink: #262420;
  --gray: #625d54;
  --line: #e1dccf;
  --white: #ffffff;
  --green: #2f6b3a;
  --red: #a6432f;
  --radius: 8px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0 0 0.5em;
  color: var(--navy-dark);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--gold);
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy-dark);
  color: var(--white);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
}
.brand span { color: var(--gold); }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-suffix {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border-left: 1px solid rgba(255,255,255,0.3);
  padding-left: 10px;
}
.footer-grid .brand-logo { height: 22px; }
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  overflow-x: auto;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  white-space: nowrap;
}
.nav-links a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  background: none; border: none;
  color: var(--white);
  font-size: 1.5rem;
}

/* ---------- Hero / report header ---------- */
.report-header {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
  padding: 64px 0 56px;
}
.report-header .eyebrow { color: var(--tan); }
.report-header h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 8px 0 6px;
}
.report-header .subtitle {
  color: var(--tan);
  font-size: 1rem;
  margin-bottom: 22px;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  border-top: 1px solid rgba(255,255,255,0.18);
  padding-top: 18px;
}
.report-meta strong { color: var(--white); }

/* ---------- Section shared ---------- */
section { padding: 64px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.section-head { margin-bottom: 30px; max-width: 760px; }
.section-head h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { color: var(--gray); margin: 0; }

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.stat-card span {
  font-size: 0.78rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-card.highlight {
  background: var(--navy);
  border-color: var(--navy);
}
.stat-card.highlight strong { color: var(--gold); }
.stat-card.highlight span { color: rgba(255,255,255,0.75); }

/* ---------- Subject block ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.subject-photo {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31,56,100,0.16);
}
.photo-note {
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  margin-top: 10px;
}
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 20px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  width: 40%;
  color: var(--navy);
  font-weight: 600;
  background: var(--tan);
}
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.pill {
  display: inline-block;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--tan);
  color: var(--navy-dark);
}
.pill.gold { background: rgba(169,130,47,0.15); color: var(--gold); border: 1px solid rgba(169,130,47,0.4); }

.upgrade-cols {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}
.upgrade-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.upgrade-box.gold-box { background: rgba(169,130,47,0.08); border-color: rgba(169,130,47,0.3); }
.upgrade-box h4 { font-size: 0.88rem; margin-bottom: 8px; }
.upgrade-box .tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.upgrade-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--tan);
  color: var(--navy-dark);
  white-space: nowrap;
}
.upgrade-tag.gold { background: rgba(169,130,47,0.15); color: var(--gold); border: 1px solid rgba(169,130,47,0.4); }

/* ---------- Comps table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.comps {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  font-size: 0.88rem;
  min-width: 760px;
}
table.comps thead th {
  background: var(--navy);
  color: var(--white);
  text-align: left;
  padding: 12px 14px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
table.comps tbody td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
table.comps tbody tr:last-child td { border-bottom: none; }
table.comps tbody tr:hover { background: var(--tan); cursor: pointer; }
table.comps tbody tr.row-active { background: #fbeedd; }
table.comps tbody tr.row-active:hover { background: #f6e2c6; }
table.comps tbody tr.row-pending { background: #fbeedd; }
table.comps tbody tr.row-pending:hover { background: #f6e2c6; }
table.comps tbody tr.row-subject { background: rgba(31,56,100,0.06); }
.comp-link {
  color: var(--navy);
  font-weight: 600;
  border-bottom: 1px dotted var(--navy);
}
.comp-link:hover { color: var(--gold); border-color: var(--gold); }
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}
.badge.closed { background: #e4eee6; color: var(--green); }
.badge.active { background: #fbeedd; color: #9a5b1f; }
.badge.pending { background: #fbeedd; color: #9a5b1f; }
.star { color: var(--gold); font-weight: 700; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.gallery-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(31,56,100,0.14); }
.gallery-card img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.gallery-card .info { padding: 12px 14px; }
.gallery-card .info h4 { font-size: 0.9rem; margin: 0 0 3px; color: var(--navy-dark); }
.gallery-card .info p { font-size: 0.82rem; color: var(--gray); margin: 0; }
.gallery-card .view-link { font-size: 0.78rem; color: var(--navy); font-weight: 600; margin-top: 6px; display: inline-block; }

/* ---------- Prose / insights ---------- */
.prose p { margin: 0 0 16px; color: var(--ink); font-size: 0.98rem; }
.prose p:last-child { margin-bottom: 0; }
ul.insight-list { margin: 0; padding-left: 20px; }
ul.insight-list li { margin-bottom: 12px; font-size: 0.96rem; }
ul.insight-list li::marker { color: var(--gold); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* ---------- Recommended price ---------- */
.price-banner {
  background: var(--navy-dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 34px 30px;
  text-align: center;
  margin-bottom: 30px;
}
.price-banner .eyebrow { color: var(--tan); }
.price-banner .big-price {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--gold);
  margin: 8px 0;
}
.price-banner .range { color: rgba(255,255,255,0.78); font-size: 0.95rem; }

/* ---------- Dark band (About Us) ---------- */
.band-dark {
  background: var(--navy-dark);
  color: rgba(247,245,239,0.85);
}
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark .section-head p { color: rgba(247,245,239,0.7); }
.band-dark .about-prose p { color: rgba(247,245,239,0.85); }
.band-dark .eyebrow { color: var(--gold); }

/* ---------- Marketing services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.service-card .icon { font-size: 1.5rem; display: inline-block; margin-bottom: 10px; }
.service-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.service-card p { font-size: 0.86rem; color: var(--gray); margin: 0; }

/* ---------- Example site cards ---------- */
.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.example-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.example-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.example-card > p { font-size: 0.86rem; color: var(--gray); margin: 0 0 16px; }
.example-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.example-links a {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
}
.example-links a:hover { color: var(--gold); }
.example-links a.example-full {
  color: var(--gold);
  width: 100%;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

/* ---------- Agent / Contact ---------- */
.agent-block {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 30px;
  max-width: 560px;
}
.agent-block-dark {
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
  max-width: none;
}
.agent-block-dark h3 { color: var(--white); }
.agent-photo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--tan);
}
.agent-block h3 { margin-bottom: 2px; font-size: 1.2rem; }
.agent-title {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.agent-contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}
.agent-contact-row a { color: var(--navy); font-weight: 600; }
.agent-contact-row a:hover { color: var(--gold); }
/* Contact section: phone/email in the tan/gold accent color instead of navy. */
#contact .agent-contact-row a { color: var(--gold); }
#contact .agent-contact-row a:hover { color: var(--navy); }
/* About Us agent card sits on a dark navy background — navy text there is nearly
   invisible, so it needs the gold/tan accent too (not just a light-background fix). */
.agent-block-dark .agent-contact-row a { color: var(--gold); }
.agent-block-dark .agent-contact-row a:hover { color: var(--tan); }

@media (max-width: 480px) {
  .agent-block { flex-direction: column; text-align: center; }
}

/* ---------- Footer ---------- */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.6);
  padding: 30px 0;
  font-size: 0.8rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.footer-grid .brand { font-size: 0.95rem; }
.disclaimer {
  max-width: 1180px;
  margin: 16px auto 0;
  padding: 0 24px;
  font-size: 0.73rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .subject-grid, .two-col { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  section { padding: 44px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .report-meta { flex-direction: column; gap: 6px; }
}
