/* ============================================
   COMING SOON — reusable video-hero template
   Used by search.html & valuation.html until IDX/MLS is live.
   Full-bleed ocean video backdrop, left-aligned copy + CTAs,
   and a glassmorphism contact form on the right that invites
   people to connect even before the listings portal exists.
   Pair with <body class="has-page-hero"> for the transparent nav.
   ============================================ */

/* ----- HERO SHELL ----- */
.cs-hero {
  position: relative;
  /* Track content height (with a sensible floor) instead of forcing a full
     viewport — 100vh left a big empty dark band below a short form. */
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
}

/* Outline CTA over bright water needs more than a faint hairline to read. */
.cs-hero .btn-outline {
  background: rgba(8, 16, 32, 0.28);
  border-color: rgba(255, 255, 255, 0.7);
}
.cs-hero .btn-outline:hover {
  background: rgba(8, 16, 32, 0.42);
  border-color: var(--white);
}

.cs-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

/* Scrim — darker on the left so the headline stays legible over bright water */
.cs-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8,16,32,0.78) 0%, rgba(8,16,32,0.45) 45%, rgba(8,16,32,0.30) 100%),
    linear-gradient(180deg, rgba(8,16,32,0.30) 0%, rgba(8,16,32,0.10) 40%, rgba(8,16,32,0.55) 100%);
}

.cs-grid {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 132px 32px 96px;
  display: grid;
  grid-template-columns: 1.05fr minmax(0, 440px);
  gap: 56px;
  align-items: center;
}

/* ----- LEFT: COPY + CTAS ----- */
.cs-copy { color: var(--white); max-width: 560px; }

.cs-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
  margin: 0 0 22px;
}

.cs-title {
  font-family: var(--font-heading);
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--white);
  text-shadow: 0 2px 30px rgba(0,0,0,0.35);
}

.cs-title strong { font-weight: 700; }

.cs-lead {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  margin: 0 0 32px;
  max-width: 500px;
}

.cs-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ----- RIGHT: GLASSMORPHISM CONTACT FORM ----- */
.cs-form-card {
  position: relative;
  background: rgba(18, 30, 54, 0.34);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: var(--r-lg);
  padding: 34px 32px 32px;
  box-shadow: 0 24px 70px rgba(0,0,0,0.40);
  color: var(--white);
}

.cs-form-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--white);
}

.cs-form-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.74);
  margin: 0 0 22px;
}

.cs-form .cs-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.cs-form .cs-field { margin-bottom: 14px; }

.cs-form label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 6px;
}

.cs-form .req { color: rgba(255,255,255,0.55); }

.cs-form input,
.cs-form textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: var(--r-sm);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--t-base) var(--ease-soft),
              background var(--t-base) var(--ease-soft),
              box-shadow var(--t-base) var(--ease-soft);
}

.cs-form textarea { resize: vertical; min-height: 92px; }

.cs-form input::placeholder,
.cs-form textarea::placeholder { color: rgba(255,255,255,0.5); }

.cs-form input:focus,
.cs-form textarea:focus {
  border-color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.18);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.14);
}

.cs-form .btn { width: 100%; margin-top: 6px; }

/* Honeypot — visually hidden, off-screen */
.cs-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cs-form .form-error {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: #ffd2d2;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease-soft);
}

.cs-form .form-error.show { opacity: 1; }

/* Success state (replaces the form on submit) */
.cs-success { text-align: center; padding: 24px 8px; }
.cs-success h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 10px;
}
.cs-success p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 900px) {
  .cs-hero { min-height: auto; }
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 120px 22px 72px;
  }
  .cs-copy { max-width: none; }
  .cs-form-card { max-width: 520px; }
}

/* Reduced motion: the inline script pauses the video; fall back to the poster.
   Soften the glass blur slightly for performance on low-power devices. */
@media (prefers-reduced-motion: reduce) {
  .cs-form-card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
