/* ==========================================================================
   Off-Market.io — Marketplace product page
   Light theme · navy + green + blue · Varela Round (headings) / Montserrat (body)
   Mobile-first. Investor-only audience (cap rate / ARV / DSCR voice).
   ========================================================================== */

:root {
  --navy: #001934;
  --green: #39b54a;
  --green-dark: #2f9c3e;
  --blue: #0097dc;
  --blue-dark: #007bb5;
  --bg: #ffffff;
  --surface: #f4f7fa;
  --ink: #32373c;
  --muted: #69727d;
  --border: #c2cbd2;
  --badge-purple: #5b3fd6;

  --font-head: 'Varela Round', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(0, 25, 52, 0.08);
  --shadow: 0 6px 20px rgba(0, 25, 52, 0.10);
  --shadow-lg: 0 14px 40px rgba(0, 25, 52, 0.16);

  --maxw: 1200px;
  --gap: 24px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

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

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

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

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

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

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  flex-shrink: 0;
}
.nav-logo:hover {
  text-decoration: none;
}
.nav-logo svg {
  width: 26px;
  height: 26px;
  fill: var(--navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-inline: auto;
}

.nav-menu a {
  color: var(--navy);
  font-weight: 600;
  font-size: 15px;
}
.nav-menu a:hover {
  color: var(--blue);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 10px 18px;
  font-size: 14px;
}

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

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  padding-block: 12px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li:not(:last-child)::after {
  content: '›';
  margin-left: 6px;
  color: var(--border);
}
.breadcrumb a {
  color: var(--blue);
}
.breadcrumb li[aria-current] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 36px 48px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(30px, 5vw, 52px);
  letter-spacing: -0.5px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 38ch;
  margin-bottom: 28px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-media {
  position: relative;
}
.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Floating market snapshot card */
.snapshot-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-lg);
  margin-top: -56px;
  margin-left: auto;
  width: min(320px, 90%);
  position: relative;
  z-index: 2;
}
.snapshot-card .snapshot-title {
  color: #fff;
  font-family: var(--font-heading, 'Varela Round'), sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.h2-icon {
  width: 22px;
  height: 22px;
  color: var(--green);
  flex: 0 0 auto;
}
.snapshot-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}
.snapshot-row:last-of-type {
  border-bottom: 0;
}
.snapshot-row .label {
  color: rgba(255, 255, 255, 0.7);
}
.snapshot-row .value {
  font-weight: 700;
}
.snapshot-link {
  display: inline-block;
  margin-top: 12px;
  color: #7fd0ff;
  font-size: 13px;
  font-weight: 600;
}
.snapshot-link:hover {
  color: #fff;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.trust-strip ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding-block: 22px;
}
.trust-strip li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 600;
  font-size: 14px;
}
.trust-strip svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
}

/* ---------- Generic section ---------- */
.section {
  padding-block: 52px;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  margin: 0;
}
.section-link {
  font-weight: 700;
  font-size: 15px;
  color: var(--blue);
}

/* ---------- Deal grid + cards ---------- */
.deal-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}

.deal-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.deal-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.deal-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none;
  color: inherit;
}
.deal-link:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}

.deal-photo {
  position: relative;
  width: 100%;
  height: 190px;
  background: var(--surface);
  overflow: hidden;
}
.deal-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.deal-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--badge-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.deal-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.deal-heart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.8;
}

.deal-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.deal-title {
  font-size: 17px;
  margin: 0;
}
.deal-address {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.deal-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  color: var(--navy);
  margin: 6px 0 4px;
}
.deal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.deal-metric .m-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.deal-metric .m-value {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.deal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.dscr-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(57, 181, 74, 0.12);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}
.dscr-tag svg {
  width: 14px;
  height: 14px;
  fill: var(--green);
}
.deal-cta {
  margin-left: auto;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.deal-card:hover .deal-cta {
  text-decoration: underline;
}
.deal-heart {
  z-index: 2;
}

/* ---------- Two side-by-side info cards ---------- */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.info-card h2 {
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.info-card p {
  color: var(--ink);
  font-size: 15px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
}
.check-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: var(--green);
}
.info-card .btn {
  margin-top: 18px;
}

/* Financing icon tiles */
.fin-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0;
}
.fin-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.fin-tile svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}
.fin-tile span {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
}
.fin-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 4px;
}
.fin-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.fin-trust svg {
  width: 15px;
  height: 15px;
  fill: var(--green);
}
.fin-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

/* ---------- Strategies ---------- */
.strategy-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.strategy-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.strategy-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(0, 151, 220, 0.10);
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}
.strategy-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}
.strategy-icon.airbnb svg {
  stroke: #ff5a5f;
}
.strategy-card h3 {
  font-size: 17px;
  margin: 0;
}
.strategy-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 6px;
  flex: 1;
}
.strategy-card a {
  font-weight: 700;
  font-size: 14px;
}

/* ---------- FAQ ---------- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.faq-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
details.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0;
  overflow: hidden;
}
details.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
details.faq-item > summary::-webkit-details-marker {
  display: none;
}
details.faq-item > summary::after {
  content: '▾';
  color: var(--blue);
  transition: transform 0.18s ease;
  flex-shrink: 0;
}
details.faq-item[open] > summary::after {
  transform: rotate(180deg);
}
details.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--ink);
  font-size: 14px;
}
.faq-foot {
  text-align: center;
  margin-top: 28px;
}

/* ---------- Explore + Join ---------- */
.explore-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
.explore-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.explore-card h2 {
  font-size: 22px;
  margin-bottom: 16px;
}
.explore-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
}
.explore-links a {
  font-weight: 600;
  font-size: 14px;
}

.join-card {
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
}
.join-card h2 {
  color: #fff;
  font-size: 24px;
}
.join-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
}
.join-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.join-login {
  margin-top: 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.join-login a {
  color: #7fd0ff;
}

/* Phone mockup */
.phone-mock {
  justify-self: center;
  width: 190px;
  background: #0d2747;
  border: 6px solid #0d2747;
  border-radius: 26px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
}
.phone-screen {
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mini-deal {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.mini-deal .mini-img {
  height: 52px;
  background: linear-gradient(135deg, #cfe3f2, #9fc6e6);
}
.mini-deal .mini-body {
  padding: 8px 10px;
}
.mini-deal .mini-price {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  font-size: 14px;
}
.mini-deal .mini-meta {
  font-size: 10px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.value-props {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.value-props ul {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding-block: 36px;
}
.value-props li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.value-props svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--green);
  stroke-width: 1.6;
}

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-block: 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  margin-bottom: 28px;
}
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  color: var(--navy);
  margin-bottom: 12px;
}
.footer-logo svg {
  width: 24px;
  height: 24px;
  fill: var(--navy);
}
.footer-col h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.footer-col li {
  padding: 4px 0;
}
.footer-col a {
  color: var(--ink);
  font-size: 14px;
}
.footer-col a:hover {
  color: var(--blue);
}
.footer-contact {
  font-size: 14px;
  color: var(--ink);
}
.footer-contact a {
  color: var(--blue);
}
.social-row {
  display: flex;
  gap: 14px;
  margin-top: 12px;
}
.social-row a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
}
.social-row svg {
  width: 18px;
  height: 18px;
  fill: var(--navy);
}
.social-row a:hover {
  background: var(--navy);
}
.social-row a:hover svg {
  fill: #fff;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 768px) {
  .container {
    padding-inline: 32px;
  }
  .trust-strip ul {
    grid-template-columns: repeat(4, 1fr);
  }
  .deal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .duo-grid {
    grid-template-columns: 1fr 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
  .explore-grid {
    grid-template-columns: 1fr 1fr;
  }
  .join-card {
    grid-template-columns: 1.4fr 0.6fr;
    padding: 40px;
  }
  .footer-top {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
  .value-props ul {
    grid-template-columns: repeat(5, 1fr);
  }
  .value-props li {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .hero-media {
    padding-bottom: 40px;
  }
  .snapshot-card {
    position: absolute;
    right: -8px;
    bottom: 0;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero {
    padding-block: 56px 64px;
  }
  .deal-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .fin-tiles {
    grid-template-columns: repeat(4, 1fr);
  }
  .strategy-scroll {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Mobile nav + horizontal-scroll strategies */
@media (max-width: 1023px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 0;
  }
  .nav-menu.open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
    padding: 12px 20px;
  }
  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-actions {
    display: none;
  }
}

@media (max-width: 767px) {
  .strategy-scroll {
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .strategy-card {
    scroll-snap-align: start;
  }
  .explore-links {
    grid-template-columns: 1fr;
  }
  .hero-ctas .btn,
  .fin-ctas .btn,
  .join-ctas .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
