/* ═══════════════════════════════════════════════════════════
   Crestmont Property Ventures — Shared Stylesheet
   Cloudflare Pages | Multi-Page Static Site
   ═══════════════════════════════════════════════════════════ */

/* ── Variables ───────────────────────────────────────────── */
:root {
  --black:        #0f0f0f;
  --black-2:      #1a1a1a;
  --black-3:      #242424;
  --white:        #ffffff;
  --orange:       #e6621e;
  --orange-dark:  #c4511a;
  --gray-100:     #f7f7f7;
  --gray-200:     #efefef;
  --gray-300:     #e0e0e0;
  --gray-500:     #888888;
  --gray-700:     #555555;
  --nav-h:        68px;
  --max-w:        1100px;
  --radius:       6px;
  --shadow-sm:    0 2px 10px rgba(0,0,0,.07);
  --shadow-md:    0 4px 20px rgba(0,0,0,.12);
  --t:            .2s ease;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1a1a1a;
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ── Google Fonts ────────────────────────────────────────── */
/* Loaded per-page in <head> for performance */

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section--gray { background: var(--gray-100); }
.section--black { background: var(--black); }

/* ── Typography helpers ───────────────────────────────────── */
.section-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); font-weight: 800; line-height: 1.08; }
h2 { font-size: clamp(1.6rem, 4vw, 2.15rem); font-weight: 800; line-height: 1.2; margin-bottom: 14px; }
h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
p { color: var(--gray-700); margin-bottom: 16px; line-height: 1.75; }
.divider { width: 44px; height: 3px; background: var(--orange); margin: 0 0 28px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.btn-primary { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--orange); border-color: var(--orange); }
.btn-outline:hover { background: var(--orange); color: #fff; }
.btn-outline--dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline--dark:hover { background: var(--black); color: #fff; }
.btn-ghost-white { background: transparent; color: rgba(255,255,255,.85); border-color: rgba(255,255,255,.4); }
.btn-ghost-white:hover { border-color: rgba(255,255,255,.8); color: #fff; background: rgba(255,255,255,.08); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ── Navigation ──────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 300;
  background: var(--black);
  border-bottom: 1px solid #2a2a2a;
  height: var(--nav-h);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.nav-brand img { height: 34px; width: auto; }
.nav-brand-text { display: none; font-size: 14px; font-weight: 700; color: #fff; }
.nav-brand-text span { color: var(--orange); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-link {
  font-size: 11.5px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--t);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--orange); text-decoration: none; }
.nav-cta { padding: 8px 18px !important; font-size: 12px !important; font-weight: 700 !important; }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
}
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger:focus-visible { outline: 2px solid var(--orange); }

/* ── Mobile Nav ──────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--black-2);
  border-bottom: 2px solid var(--orange);
  z-index: 290;
  padding: 8px 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #ccc;
  border-bottom: 1px solid #2a2a2a;
  transition: color var(--t), background var(--t);
}
.mobile-nav a:hover,
.mobile-nav a[aria-current="page"] { color: var(--orange); background: rgba(255,255,255,.03); text-decoration: none; }
.mobile-nav a:last-child { border-bottom: none; }

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ── Page Hero Base ──────────────────────────────────────── */
.page-hero {
  background: var(--black);
  padding: 80px 0 68px;
  position: relative;
  overflow: hidden;
}
.page-hero--home { padding: 100px 0 88px; }
.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 80% 40%, rgba(230,98,30,.055) 0%, transparent 65%);
  pointer-events: none;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.hero-h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  letter-spacing: -.025em;
  margin-bottom: 22px;
}
.hero-h1 .line { display: block; }
.hero-page-h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: #bbb;
  max-width: 580px;
  margin-bottom: 18px;
  line-height: 1.75;
}
.hero-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .04em;
  margin-bottom: 0;
}
.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid #2a2a2a;
}
.hero-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 3px;
}
.hero-stat-value { font-size: 13.5px; font-weight: 600; color: #aaa; }

/* ── Cards ───────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}
.card {
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 28px 24px;
  border-top: 3px solid var(--orange);
  transition: box-shadow var(--t), transform var(--t);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.card--white { background: #fff; border: 1px solid var(--gray-300); border-top: 3px solid var(--orange); }
.card--dark { background: var(--black-3); border-top: 3px solid var(--orange); }
.card-icon {
  width: 40px;
  height: 40px;
  background: var(--black);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 20px; height: 20px; stroke: var(--orange); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: .95rem; font-weight: 700; color: var(--black); margin-bottom: 10px; }
.card--dark h3 { color: #fff; }
.card p { font-size: .875rem; color: var(--gray-700); margin-bottom: 0; line-height: 1.65; }
.card--dark p { color: #aaa; }

/* ── 3-column feature page layout ───────────────────────── */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-300);
}
.feature-row:last-child { border-bottom: none; }
.feature-row--reverse { direction: rtl; }
.feature-row--reverse > * { direction: ltr; }
@media (max-width: 760px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .feature-row--reverse { direction: ltr; }
}

/* ── Visual Placeholder (legacy fallback) ────────────────── */
.visual-placeholder {
  border-radius: var(--radius);
  background: linear-gradient(145deg, #181818 0%, #282828 100%);
  border-left: 4px solid var(--orange);
  padding: 44px 36px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.visual-placeholder--warm {
  background: linear-gradient(145deg, #1c1410 0%, #2a1e14 100%);
}
.visual-placeholder p {
  font-size: 1rem;
  color: #aaa;
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 0;
}
.visual-placeholder .vp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 12px;
}
.visual-placeholder .vp-market {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: .06em;
}
.vp-icon {
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* ── Section Photo ───────────────────────────────────────── */
.section-photo {
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(10,10,10,.72) 0%,
    rgba(10,10,10,.45) 60%,
    rgba(10,10,10,.62) 100%
  );
  border-radius: inherit;
}
.section-photo .sp-content {
  position: relative;
  z-index: 1;
  padding: 36px;
}
.section-photo .sp-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.section-photo .sp-text {
  font-size: 1rem;
  color: rgba(255,255,255,.88);
  font-style: italic;
  line-height: 1.65;
  margin-bottom: 0;
}
.section-photo .sp-market {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .05em;
  margin-top: 14px;
  opacity: .82;
}

/* ── Page Hero Photo ─────────────────────────────────────── */
.page-hero--photo {
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}
.page-hero--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(8,8,8,.82) 0%,
    rgba(8,8,8,.60) 55%,
    rgba(8,8,8,.70) 100%
  );
  z-index: 0;
}
.page-hero--photo > .container {
  position: relative;
  z-index: 1;
}
.vp-icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Form sections ───────────────────────────────────────── */
.form-section-grid {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: start;
}
.bullet-list { padding: 0; margin: 18px 0 24px; }
.bullet-list li {
  padding: 8px 0 8px 20px;
  position: relative;
  font-size: .9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
  line-height: 1.55;
}
.bullet-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 7px;
  height: 7px;
  background: var(--orange);
  border-radius: 50%;
}
.bullet-list li:last-child { border-bottom: none; }
.form-panel {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--orange);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-panel-title { font-size: .95rem; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.form-panel-sub {
  font-size: 12.5px;
  color: var(--gray-500);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gray-300);
}
.form-fallback { margin-top: 12px; font-size: 12px; color: var(--gray-500); }
.form-fallback a { color: var(--orange); }
/* HubSpot overrides */
.hs-form-field label { font-size: 13px !important; font-weight: 600 !important; color: var(--black) !important; }
.hs-input { border-radius: 4px !important; border: 1px solid var(--gray-300) !important; font-size: 14px !important; }
.hs-button { background: var(--orange) !important; border-color: var(--orange) !important; font-family: inherit !important; font-weight: 600 !important; border-radius: 4px !important; }
.hs-button:hover { background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; }
@media (max-width: 860px) {
  .form-section-grid { grid-template-columns: 1fr; }
}

/* ── Markets Accordion ───────────────────────────────────── */
.markets-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.market-card {
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--t);
}
.market-card:hover, .market-card.is-open { border-color: var(--orange); }
.market-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 18px;
  background: #1a1a1a;
  border: none;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: background var(--t), color var(--t);
}
.market-btn:hover,
.market-card.is-open .market-btn { background: #242424; color: var(--orange); }
.market-btn:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.market-btn-icon {
  font-size: 18px;
  font-weight: 300;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  transition: transform .25s ease;
}
.market-card.is-open .market-btn-icon { transform: rotate(45deg); }
.market-body {
  background: #131313;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.market-card.is-open .market-body { max-height: 500px; }
.market-body ul { padding: 12px 18px 20px; }
.market-body ul li {
  padding: 6px 0;
  font-size: .85rem;
  color: #999;
  border-bottom: 1px solid #222;
  display: flex;
  align-items: center;
  gap: 10px;
}
.market-body ul li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
}
.market-body ul li:last-child { border-bottom: none; }
@media (max-width: 860px) {
  .markets-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .markets-grid { grid-template-columns: 1fr; }
}

/* ── Contact section ─────────────────────────────────────── */
.contact-block {
  background: #fff;
  border-radius: var(--radius);
  border-left: 4px solid var(--orange);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  max-width: 480px;
}
.contact-company { font-size: 1.2rem; font-weight: 800; color: var(--black); margin-bottom: 8px; }
.contact-desc { font-size: .9rem; color: var(--gray-700); margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-300); }
.contact-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.contact-lbl { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #aaa; width: 48px; flex-shrink: 0; }
.contact-val { font-size: .9rem; color: var(--black); }
.contact-val a { color: var(--orange); }

/* ── Client Experience Cards ─────────────────────────────── */
.exp-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  border-top: 3px solid var(--orange);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t), transform var(--t);
}
.exp-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.exp-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.exp-card h3 { font-size: 1rem; font-weight: 700; color: var(--black); margin-bottom: 12px; }
.exp-card p { font-size: .875rem; color: var(--gray-700); margin-bottom: 0; line-height: 1.65; }
.exp-disclaimer {
  margin-top: 40px;
  padding: 20px 24px;
  background: var(--gray-100);
  border-radius: var(--radius);
  border-left: 3px solid var(--orange);
  font-size: 13px;
  color: var(--gray-500);
  font-style: italic;
}
.exp-disclaimer strong { color: var(--black); font-style: normal; }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  background: var(--black);
  padding: 64px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: #aaa; max-width: 520px; margin: 0 auto 0; }
.cta-band .btn-group { justify-content: center; }

/* ── Page-specific teasers ───────────────────────────────── */
.teaser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.teaser-card {
  background: var(--black);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 3px solid var(--orange);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--t), box-shadow var(--t);
}
.teaser-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(0,0,0,.22); }
.teaser-card .tc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}
.teaser-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }
.teaser-card p { font-size: .875rem; color: #888; line-height: 1.65; margin-bottom: 0; }
.teaser-card .tc-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  margin-top: auto;
  padding-top: 12px;
}
.teaser-card .tc-link:hover { text-decoration: underline; }

/* ── Compliance note ─────────────────────────────────────── */
.compliance-note {
  margin-top: 20px;
  padding: 14px 18px;
  background: var(--gray-100);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--black);
}

/* ── Disclosure & Footer ─────────────────────────────────── */
.site-disclosure {
  background: #111;
  padding: 36px 0;
  border-top: 1px solid #1e1e1e;
}
.disc-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #4a4a4a;
  margin-bottom: 10px;
}
.disc-text {
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.9;
  max-width: 920px;
  margin: 0;
}

#footer {
  background: var(--black);
  padding: 52px 0 28px;
  border-top: 3px solid var(--orange);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e1e1e;
  margin-bottom: 24px;
}
.footer-logo { margin-bottom: 12px; }
.footer-logo img { height: 34px; width: auto; }
.footer-logo-text { display: none; font-size: 14px; font-weight: 700; color: #fff; }
.footer-logo-text span { color: var(--orange); }
.footer-brand { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 3px; }
.footer-tagline { font-size: 11.5px; color: #555; margin-bottom: 10px; }
.footer-market-line { font-size: 11px; font-weight: 600; color: var(--orange); 