/* ==========================================================================
   TownScan Marketing Site — Design Mockup
   Brand: navy #012549/#1B4F72, green #3ca04e/#48b349, gray #adb4bb, bg #F2F4F6
   Headings: Poppins  ·  Body: Source Serif 4
   ========================================================================== */

:root {
  --navy-deep: #012549;
  --navy: #1B4F72;
  --navy-soft: #2c6690;
  --green: #3ca04e;
  --green-2: #48b349;
  --gray: #adb4bb;
  --gray-light: #e4e7ea;
  --bg: #F2F4F6;
  --white: #ffffff;
  --ink: #16232f;
  --ink-soft: #4a5a68;

  --font-head: "Poppins", -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --container: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 2px 16px rgba(1, 37, 73, 0.08);
  --shadow-lg: 0 12px 40px rgba(1, 37, 73, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-head {
  font-family: var(--font-head);
  color: var(--navy-deep);
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-weight: 700; }
h2, h3 { font-weight: 600; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); }

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

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

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}

.section {
  padding: 96px 0;
}
.section--tight { padding: 72px 0; }
.section--bg { background: var(--bg); }
.section--navy {
  background: var(--navy-deep);
  color: #dfe7ee;
}
.section--navy h2, .section--navy h3 { color: #ffffff; }
.section--navy .eyebrow { color: var(--green-2); }

.section-head {
  max-width: 680px;
  margin: 0 0 48px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 { font-size: clamp(28px, 3.4vw, 38px); }
.section-head .lede { font-size: 19px; color: var(--ink-soft); }
.section--navy .section-head .lede { color: #b9c9d8; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary { background: var(--green); color: #ffffff; }
.btn-primary:hover { background: var(--green-2); box-shadow: 0 6px 18px rgba(60, 160, 78, 0.35); }

.btn-navy { background: var(--navy-deep); color: #ffffff; }
.btn-navy:hover { background: var(--navy); box-shadow: 0 6px 18px rgba(1, 37, 73, 0.3); }

.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #ffffff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }

.btn-outline-navy { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline-navy:hover { background: rgba(27, 79, 114, 0.06); }

.btn-ghost { background: transparent; color: var(--navy); border-color: var(--gray-light); }
.btn-ghost:hover { border-color: var(--navy); }

.btn-disabled-look {
  background: #e7eaed;
  color: #93a0aa;
  cursor: not-allowed;
}
.btn-disabled-look:hover { transform: none; box-shadow: none; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-light);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { height: 85px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-deep);
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--green); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 16px; font-size: 14px; white-space: nowrap; }

.nav .container { max-width: 1340px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy-deep);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 640px;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  z-index: 0;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(1,20,40,0.92) 0%, rgba(1,37,73,0.82) 42%, rgba(1,37,73,0.42) 78%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; padding: 100px 0; }
.hero-content h1 { color: #ffffff; font-size: clamp(34px, 4.6vw, 54px); }
.hero-content .lede {
  font-size: 20px;
  color: #d9e4ee;
  max-width: 560px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 13px; color: #9fb3c4; font-family: var(--font-head); }

/* ---------- Problem triad ---------- */
.triad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 48px 0;
}
.triad-item {
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.triad-item .num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--gray);
  letter-spacing: 0.08em;
}
.triad-item h3 { font-size: 18px; margin: 10px 0 8px; }
.triad-item p { font-size: 15px; color: var(--ink-soft); margin: 0; }
.triad-item.is-townscan {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}
.triad-item.is-townscan h3, .triad-item.is-townscan .num { color: #ffffff; }
.triad-item.is-townscan p { color: #c3d3e0; }

/* ---------- Feature split (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split.reverse .split-copy { order: 1; }
.split-media img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.split-copy h2 { font-size: clamp(26px, 3vw, 32px); }
.split-copy .lede { font-size: 18px; color: var(--ink-soft); }
.split-copy ul { margin: 20px 0; padding: 0; list-style: none; }
.split-copy ul li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.split-copy ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg);
  border: 1px solid var(--gray-light);
  padding: 6px 12px;
  border-radius: 20px;
}

/* ---------- Report sections grid ---------- */
.report-frame {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 40px;
}
.report-frame-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--bg);
}
.scorecard-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 20px 0 4px;
}
.score-chip {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: 20px;
  background: var(--bg);
  color: var(--navy);
}
.score-chip.good { background: #e4f5e8; color: #1f7a37; }
.score-chip.warn { background: #fdf1de; color: #a05a12; }

.report-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 32px;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  counter-reset: sec;
}
.report-list li {
  counter-increment: sec;
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--gray-light);
}
.report-list li::before {
  content: counter(sec);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--green);
  background: #eaf6ec;
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.report-list h4 { font-family: var(--font-head); font-size: 15.5px; margin: 0 0 4px; color: var(--navy-deep); }
.report-list p { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ---------- Audience anchors ---------- */
.audience-nav {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0 0;
}
.audience-pill {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 30px;
  border: 2px solid var(--gray-light);
  color: var(--navy-deep);
  text-decoration: none;
}
.audience-pill:hover { border-color: var(--green); color: var(--green); }

.audience-block { padding: 96px 0; scroll-margin-top: 80px; }
.audience-block:nth-of-type(odd) { background: var(--bg); }
.audience-tag {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 16px;
}
.audience-tag.buyers { background: #eaf6ec; color: #1f7a37; }
.audience-tag.brokers { background: #e6edf3; color: var(--navy); }

/* ---------- Pricing ---------- */
.pricing-note {
  font-size: 13px;
  color: var(--ink-soft);
  background: #fdf1de;
  border: 1px solid #f2ddb3;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--font-head);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.price-card {
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--green); position: relative; }
.price-card.featured::before {
  content: "MOST POPULAR";
  position: absolute;
  top: -12px; left: 28px;
  background: var(--green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 20px;
}
.price-card h3 { font-size: 17px; }
.price-card .price { font-family: var(--font-head); font-size: 40px; font-weight: 700; color: var(--navy-deep); margin: 12px 0 2px; }
.price-card .price span { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.price-card .price-desc { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }
.price-card ul { list-style: none; margin: 20px 0 26px; padding: 0; }
.price-card ul li {
  font-size: 14px; color: var(--ink-soft);
  padding: 8px 0 8px 24px; position: relative;
  border-bottom: 1px solid var(--gray-light);
}
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- Broker cards ---------- */
.broker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 40px 0 44px;
}
.broker-card {
  background: #ffffff;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius);
  padding: 26px;
}
.broker-card h3 { font-size: 16.5px; }
.broker-card p { font-size: 14px; color: var(--ink-soft); }

.contact-form {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 36px;
  max-width: 560px;
}
.contact-form .row { margin-bottom: 16px; }
.contact-form label {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--gray-light);
  border-radius: 7px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--bg);
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.form-success {
  display: none;
  background: #eaf6ec;
  border: 1px solid #bfe3c8;
  color: #1f7a37;
  border-radius: 8px;
  padding: 16px 18px;
  font-family: var(--font-head);
  font-size: 14px;
}

/* ---------- Trust ---------- */
.trust-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.source-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.source-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: #c3d3e0;
}
.source-item .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green-2); margin-top: 7px; flex-shrink: 0;
}
.source-item strong { color: #ffffff; display: block; font-family: var(--font-head); font-size: 14.5px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #9fb3c4;
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-grid h4 {
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #9fb3c4; text-decoration: none; font-size: 14px; }
.footer-grid a:hover { color: #ffffff; }
.footer-logo svg { height: 30px; margin-bottom: 14px; }
.footer-logo p { font-size: 13.5px; color: #7d93a5; max-width: 280px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: #7d93a5;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 14px; }
.footer-social a { color: #9fb3c4; text-decoration: none; font-size: 12.5px; }

/* ---------- Modal ---------- */
.modal-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(1,20,40,0.55);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.is-open { display: flex; }
.modal-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 36px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 20px; cursor: pointer;
  color: var(--gray);
  line-height: 1;
}
.modal-close:hover { color: var(--navy-deep); }
.modal-box h3 { font-size: 20px; }
.modal-box p { font-size: 14.5px; color: var(--ink-soft); }
.modal-tag {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  background: #eaf6ec;
  padding: 5px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small-print { font-size: 12.5px; color: var(--ink-soft); }

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Nav collapses to hamburger earlier than the content grids do -- the
   enlarged logo needs more horizontal room than the 900px content
   breakpoint leaves it, so this is a separate, higher breakpoint. */
@media (max-width: 1180px) {
  .nav-links, .nav-actions .btn { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 900px) {
  .triad, .split, .trust-split, .pricing-grid, .broker-grid, .report-list, .footer-grid, .source-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse .split-media, .split.reverse .split-copy { order: initial; }
  .split-media img { height: 260px; }
  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero-content { padding: 72px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .audience-nav { flex-direction: column; align-items: stretch; }
  .report-frame { padding: 24px; }
}

/* Mobile nav drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 20px;
  border-top: 1px solid var(--gray-light);
  background: #ffffff;
}
.nav-mobile.is-open { display: flex; }
.nav-mobile a {
  font-family: var(--font-head);
  font-size: 15px;
  color: var(--navy-deep);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-light);
}
.nav-mobile .btn { margin-top: 10px; }
