/* Vreeland Real Estate shared chrome: header, nav, footer.
   Tokens come from Squarespace/index.html (the homepage). Page bodies keep
   their own scoped vr-* styles; this file only styles what every page shares. */

:root {
  --vr-navy: #0a1929;
  --vr-text: #1a2e44;
  --vr-mid: #1a3a5c;
  --vr-blue: #1a6eb5;
  --vr-light: #7fafd4;
  --vr-pale: #e8f1f9;
  --vr-off: #f5f7f9;
  --vr-line: #e5e9ed;
  --vr-head: 'Host Grotesk', sans-serif;
  --vr-body: 'Schibsted Grotesk', sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--vr-text);
  font-family: var(--vr-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }

.vr-skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--vr-navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.vr-skip:focus { left: 16px; top: 16px; }

/* ── HEADER ── */
.vr-site-header {
  position: sticky; top: 0; z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--vr-line);
  font-family: var(--vr-body);
}
.vr-site-header-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; min-height: 48px;
}
.vr-site-logo { display: flex; align-items: center; flex-shrink: 0; }
.vr-site-logo img { display: block; height: 38px; width: auto; }

.vr-site-nav { display: flex; align-items: center; gap: 4px; }
.vr-site-nav ul { list-style: none; margin: 0; padding: 0; }
.vr-site-menu { display: flex; align-items: center; gap: 2px; }
.vr-site-menu > li { position: relative; }
.vr-site-menu-btn,
.vr-site-menu > li > a {
  font-family: var(--vr-body); font-size: 14px; font-weight: 500;
  color: var(--vr-text); background: none; border: 0; cursor: pointer;
  padding: 10px 12px; border-radius: 8px; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.vr-site-menu-btn::after {
  content: ""; width: 6px; height: 6px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.vr-site-menu-btn:hover,
.vr-site-menu > li > a:hover,
.vr-site-menu > li.open > .vr-site-menu-btn { background: var(--vr-off); color: var(--vr-navy); }

.vr-site-sub {
  display: none;
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px; background: #fff;
  border: 1px solid var(--vr-line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(10, 25, 41, 0.12);
  padding: 8px;
}
.vr-site-menu > li.open > .vr-site-sub { display: block; }
.vr-site-sub a {
  display: block; padding: 9px 12px; border-radius: 7px;
  font-size: 14px; color: var(--vr-text); text-decoration: none;
}
.vr-site-sub a:hover { background: var(--vr-pale); color: var(--vr-navy); }

.vr-site-cta {
  font-family: var(--vr-body); font-size: 14px; font-weight: 700;
  background: var(--vr-navy); color: #fff; text-decoration: none;
  padding: 12px 20px; border-radius: 0; margin-left: 10px; white-space: nowrap;
}
.vr-site-cta:hover { background: var(--vr-mid); }

.vr-site-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 44px; height: 44px; padding: 10px; margin-right: -10px;
}
.vr-site-toggle span {
  display: block; height: 2px; background: var(--vr-navy); margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.vr-site-header.nav-open .vr-site-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vr-site-header.nav-open .vr-site-toggle span:nth-child(2) { opacity: 0; }
.vr-site-header.nav-open .vr-site-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .vr-site-toggle { display: block; }
  .vr-site-logo img { height: 32px; }
  .vr-site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--vr-line);
    flex-direction: column; align-items: stretch;
    padding: 8px 16px 20px; max-height: calc(100vh - 64px); overflow-y: auto;
  }
  .vr-site-header.nav-open .vr-site-nav { display: flex; }
  .vr-site-menu { flex-direction: column; align-items: stretch; }
  .vr-site-menu-btn, .vr-site-menu > li > a {
    width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 16px;
    border-bottom: 1px solid var(--vr-line); border-radius: 0;
  }
  .vr-site-sub {
    position: static; box-shadow: none; border: 0; border-radius: 0;
    padding: 4px 0 8px 8px; min-width: 0;
  }
  .vr-site-sub a { font-size: 15px; padding: 10px 8px; }
  .vr-site-cta { margin: 16px 0 0; text-align: center; padding: 15px 20px; }
}

/* ── IDX LINK-OUT (Ylopo fallback under search widgets) ── */
.vr-idx-linkout { text-align: center; margin: 4px 0 0; position: relative; z-index: 1; }
.vr-idx-linkout a {
  display: inline-block; font-family: var(--vr-body);
  font-size: 14px; font-weight: 700; letter-spacing: .3px;
  color: #fff; background: var(--vr-blue); text-decoration: none;
  border: 1.5px solid var(--vr-blue); padding: 11px 20px; border-radius: 0;
  box-shadow: 0 6px 18px rgba(10, 25, 41, 0.25);
}
.vr-idx-linkout a:hover, .vr-idx-linkout a:focus-visible { background: var(--vr-navy); border-color: #fff; color: #fff; }
.vr-idx-linkout.on-light a { background: var(--vr-navy); border-color: var(--vr-navy); color: #fff; box-shadow: none; }
.vr-idx-linkout.on-light a:hover, .vr-idx-linkout.on-light a:focus-visible { background: var(--vr-mid); border-color: var(--vr-mid); }

/* Link-out sitting inside a search row (homepage + the 3 region search pages): same height as the search box,
   no offset, no shadow; on phones it drops to its own full-width line under the box. */
[class*="-search-wrap"] { align-items: stretch; }
[class*="-search-wrap"] > .vr-idx-linkout { display: flex; flex: 0 0 auto; margin: 0; }
[class*="-search-wrap"] > .vr-idx-linkout a {
  display: flex; align-items: center; justify-content: center; text-align: center;
  box-shadow: none; padding-top: 0; padding-bottom: 0; line-height: 1.25;
}
@media (max-width: 768px) {
  [class*="-search-wrap"] { flex-wrap: wrap; }
  [class*="-search-wrap"] > .vr-idx-linkout { flex: 1 1 100%; margin-top: 10px; }
  [class*="-search-wrap"] > .vr-idx-linkout a { width: 100%; padding: 14px 20px; }
}

/* Visible breadcrumbs are hidden sitewide (Cass, Oct 5 2026). The BreadcrumbList JSON-LD on each page stays,
   so search results still show the path. */
.vr-post-crumbs, .vr-pg-crumbs, .vr-blog-crumbs, .vr-ch-crumbs { display: none !important; }

/* ── FOOTER ── */
.vr-site-footer {
  background: var(--vr-navy); color: #c9d8e6;
  font-family: var(--vr-body); font-size: 14px;
  padding: 56px 24px 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.vr-site-footer a { color: #c9d8e6; text-decoration: none; }
.vr-site-footer a:hover { color: #fff; }
.vr-site-footer-inner { max-width: 1100px; margin: 0 auto; }
.vr-site-footer-grid {
  display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
}
.vr-site-footer-brand img { display: block; height: 34px; width: auto; margin-bottom: 16px; }
.vr-site-footer-tag {
  font-family: var(--vr-head); font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 14px;
}
.vr-site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 14px; }
.vr-site-footer h2 {
  font-family: var(--vr-body); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--vr-light);
  margin: 0 0 14px;
}
.vr-site-footer ul { list-style: none; margin: 0; padding: 0; }
.vr-site-footer li { margin-bottom: 9px; }
.vr-site-social { display: flex; gap: 10px; flex-wrap: wrap; }
.vr-site-social a {
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.2); border-radius: 10px;
}
.vr-site-social svg { width: 16px; height: 16px; fill: currentColor; }
.vr-site-footer-cta {
  display: inline-block; margin-top: 4px; background: #fff; color: var(--vr-navy) !important;
  font-weight: 700; padding: 12px 20px; border-radius: 0;
}
.vr-site-footer-legal {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 13px; color: #8ea6bd;
}
.vr-site-footer-legal a { color: #8ea6bd; margin-left: 16px; }
.vr-site-footer-legal a:first-child { margin-left: 0; }

@media (max-width: 900px) {
  .vr-site-footer-grid { grid-template-columns: 1fr 1fr; }
  .vr-site-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .vr-site-footer { padding: 44px 16px 24px; }
  .vr-site-footer-grid { gap: 24px 16px; }
}

/* Elfsight chat bubble ships with an inline margin:100px on its container; on phones that pushes
   the bubble toward the middle of the screen. Pull it flush on mobile only. The wildcard survives
   the hashed class suffix Elfsight rebuilds on each release. */
@media (max-width: 768px) {
  div[class*="FloatingButton__FloatingButtonContainer"] { margin: 16px !important; }
}

/* Utility pages: second CTA button (city homes-for-sale link), Oct 2026 */
.vr-u-cta a+a{margin-left:12px}
@media(max-width:480px){.vr-u-cta a+a{margin-left:0;margin-top:10px}}

/* ── Shared lead form (Phase 3c, _template/lead-form.html) ─────────────────
   Buyer form on the region hubs, seller form on /home-valuation and
   /tampa-listing-agent, general form on /contact-us. Nowhere else. */
.vr-lead { background: var(--vr-pale); padding: 72px 24px; }
.vr-lead-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start;
}
.vr-lead-copy h2 {
  font-family: var(--vr-head); font-size: 2rem; line-height: 1.15; font-weight: 700;
  color: var(--vr-navy); margin: 0 0 16px; letter-spacing: -0.01em;
}
.vr-lead-copy p { font-size: 1.05rem; line-height: 1.65; color: var(--vr-text); margin: 0 0 14px; }
.vr-lead-alt { font-size: 0.95rem; }
.vr-lead-alt a { color: var(--vr-blue); font-weight: 500; }
.vr-lead-form {
  background: #fff; border: 1px solid var(--vr-line); border-radius: 10px; padding: 28px;
  box-shadow: 0 10px 30px rgba(10,25,41,0.06);
}
.vr-lead-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; margin: 0; }
.vr-lead-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vr-lead-wide { grid-column: 1 / -1; }
.vr-lead-form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--vr-navy); margin-bottom: 6px; }
.vr-lead-form label span { font-weight: 400; color: #5d7187; }
.vr-lead-form input:not([type="hidden"]), .vr-lead-form textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--vr-text);
  padding: 12px 14px; border: 1px solid #c9d4de; border-radius: 6px; background: #fff;
}
.vr-lead-form textarea { resize: vertical; min-height: 84px; }
.vr-lead-form input:focus, .vr-lead-form textarea:focus { outline: 2px solid var(--vr-blue); outline-offset: 1px; border-color: var(--vr-blue); }
.vr-lead-form .is-invalid { border-color: #b3261e; }
.vr-lead-err { margin: 6px 0 0; font-size: 0.82rem; color: #b3261e; min-height: 0; }
.vr-lead-err:empty { display: none; }
.vr-lead-consent { font-size: 0.8rem; line-height: 1.5; color: #5d7187; margin: 18px 0 14px; }
.vr-lead-consent a { color: var(--vr-blue); }
.vr-lead-submit {
  display: block; width: 100%; font-family: var(--vr-head); font-size: 1.05rem; font-weight: 700;
  color: #fff; background: var(--vr-navy); border: 0; border-radius: 0; padding: 16px 20px; cursor: pointer;
}
.vr-lead-submit:hover { background: var(--vr-mid); }
.vr-lead-submit[disabled] { opacity: 0.6; cursor: default; }
.vr-lead-formerr { margin: 14px 0 0; padding: 12px 14px; border-radius: 6px; background: #fdecea; color: #8a1c15; font-size: 0.92rem; }
.vr-lead-done { margin-top: 18px; padding: 18px; border-radius: 6px; background: var(--vr-pale); color: var(--vr-navy); line-height: 1.55; }
.vr-lead-done strong { display: block; font-family: var(--vr-head); font-size: 1.15rem; margin-bottom: 6px; }
.vr-lead-done a { color: var(--vr-blue); font-weight: 500; }
.vr-lead-form.is-done .vr-lead-fields, .vr-lead-form.is-done .vr-lead-consent, .vr-lead-form.is-done .vr-lead-submit { display: none; }
@media (max-width: 900px) {
  .vr-lead { padding: 56px 16px; }
  .vr-lead-inner { grid-template-columns: 1fr; gap: 28px; }
  .vr-lead-copy h2 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .vr-lead-fields { grid-template-columns: 1fr; }
  .vr-lead-form { padding: 20px; }
}

/* Thank-you page (no-JS fallback for the lead forms) */
.vr-thanks { max-width: 820px; margin: 0 auto; padding: 96px 24px 120px; text-align: center; }
.vr-thanks h1 { font-family: var(--vr-head); font-size: 2.4rem; color: var(--vr-navy); margin: 0 0 16px; }
.vr-thanks p { font-size: 1.1rem; line-height: 1.65; margin: 0 0 14px; }
.vr-thanks-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.vr-thanks-btns a { display: inline-block; padding: 14px 24px; font-family: var(--vr-head); font-weight: 700; text-decoration: none; border-radius: 0; }
.vr-thanks-btn-d { background: var(--vr-navy); color: #fff; }
.vr-thanks-btn-d:hover { background: var(--vr-mid); }
.vr-thanks-btn-o { color: var(--vr-navy); border: 1px solid var(--vr-navy); }
.vr-thanks-btn-o:hover { background: var(--vr-pale); }
