/**
 * Shared chrome for My Home Finder agent portal pages (Hosting /web).
 * Pair with Font Awesome 4.x + Raleway (linked from each HTML page).
 */
:root {
  --exp-header-bg: #000000;
  --exp-accent: #c5a059;
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --exp-hero-overlay: 0.5;
}

.page-wrapper.exp-shell {
  background: #ffffff;
}

.exp-site-header {
  background: var(--exp-header-bg) !important;
  color: #fff !important;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 500;
}

.exp-header-bar {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  padding: 14px 24px;
  gap: 16px;
}

.exp-header-bar-logo {
  justify-self: start;
  min-width: 0;
}

.exp-header-bar-logo .exp-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.exp-header-bar-logo img {
  max-height: 48px;
  width: auto;
  max-width: min(220px, 100%);
  object-fit: contain;
  display: block;
}

.exp-header-bar-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px clamp(18px, 3vw, 36px);
}

.exp-bar-nav-link {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.exp-bar-nav-link:hover,
.exp-bar-nav-link:focus-visible {
  color: #fff !important;
  opacity: 0.82;
}

.exp-header-bar-social {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.exp-header-bar-social .social {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
}

.exp-header-bar-social .social:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Legacy header blocks — hidden on pages using exp-header-bar */
.exp-header-top,
.exp-header-main,
.exp-header-mid,
.exp-nav-primary {
  display: none !important;
}

.exp-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 16px 44px;
}

.exp-hero--subpage {
  min-height: 220px;
  padding: 28px 16px 36px;
}

/* Open-house / login subpages: no headshot in hero (valuation uses --valuation row layout) */
.exp-hero--subpage:not(.exp-hero--valuation) .exp-headshot-wrap {
  display: none !important;
}

.exp-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.exp-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--exp-hero-overlay));
}

.exp-hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.exp-headshot-wrap {
  margin-bottom: 16px;
}

.exp-headshot {
  display: inline-block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 4px solid #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.exp-headshot--sm {
  width: 88px;
  height: 88px;
  border-width: 3px;
}

.exp-hero-title {
  color: #fff !important;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.exp-hero-tagline {
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1rem;
  font-weight: 400;
  margin: 0;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.exp-hero--on-light .exp-hero-title,
.exp-hero--on-light .exp-hero-tagline {
  color: #111827 !important;
  text-shadow: none;
}

.exp-hero--on-light .exp-headshot {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.exp-below-hero {
  position: relative;
  z-index: 1;
}

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

body.exp-portal-body {
  font-family: Raleway, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@media (max-width: 720px) {
  .exp-header-bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    padding: 12px 16px;
  }

  .exp-header-bar-logo {
    grid-column: 1;
    grid-row: 1;
  }

  .exp-header-bar-social {
    grid-column: 2;
    grid-row: 1;
  }

  .exp-header-bar-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-top: 4px;
    gap: 6px 16px;
  }

  .exp-bar-nav-link {
    font-size: 13px;
  }

  .exp-header-bar-logo img {
    max-height: 40px;
  }
}

/* Valuation: homepage hero video with form overlay */
.exp-valuation-shell {
  background: #070707;
}

.exp-valuation-stage {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
}

.exp-valuation-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #070707;
}

.exp-valuation-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-width: 100%;
  min-height: 100%;
}

/* Hide poster/placeholder until the first frame is playing (avoids stock image + headshot flash). */
.exp-hero-video-el {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.exp-hero-video-el.exp-hero-video-el--ready {
  opacity: 1;
}

.exp-hero-video-el::-webkit-media-controls {
  display: none !important;
}

.exp-hero-video-el::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.exp-valuation-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0.55) 100%
  );
}

.exp-valuation-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 1rem 3rem;
}

.exp-valuation-content .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0;
}
