/* Vista Estate Buy Landing - Theme Matches VistaEstate Site */
:root {
  --brand-primary: #439CB0;
  --brand-dark: #153E42;
  --brand-light: #E2E2E2;
  --brand-darkgray: #262626;
  --primary-50: #E8F4F6;
  --primary-100: #D1E9ED;
  --primary-200: #A3D3DB;
  --primary-300: #75BDC9;
  --primary-400: #47A7B7;
  --primary-500: #439CB0;
  --primary-600: #367A8A;
  --primary-700: #285B68;
  --primary-800: #153E42;
  --primary-900: #0D1E23;
  --white: #ffffff;
  --bg-light: #F6F6F6;
  --text-body: #4B5563;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--brand-darkgray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Chillax', 'Inter', sans-serif; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ─── NAVBAR (matches site h-20) ─── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(246,246,246,0.95);
  backdrop-filter: blur(12px);
}
.nav-container {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 80px;
}
.nav-logo img { height: 64px; }
.nav-links { display: flex; align-items: center; gap: 0; margin-left: auto; margin-right: 24px; }
.nav-links a {
  font-size: 16px; font-weight: 500; color: #4B5563;
  padding: 12px 16px; border-radius: 12px; transition: all 0.2s;
}
.nav-links a:hover { color: #439CB0; background: rgba(0,0,0,0.03); }
.nav-cta {
  background: var(--brand-primary) !important; color: var(--white) !important;
  padding: 12px 32px; border-radius: 12px; font-weight: 500 !important;
  font-size: 16px !important; transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-600) !important; transform: translateY(-1px); }

.mobile-menu-btn {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 24px; position: relative;
}
.mobile-menu-btn span {
  display: block; width: 100%; height: 2px; background: var(--brand-darkgray);
  position: absolute; left: 0; transition: all 0.3s;
}
.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

.mobile-menu {
  display: none; position: fixed; top: 80px; left: 0; right: 0;
  background: var(--white); padding: 16px 24px 24px; z-index: 99;
  border-bottom: 1px solid rgba(0,0,0,0.06); flex-direction: column; gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 16px; font-weight: 500; padding: 8px 0; }
.mobile-menu .nav-cta { text-align: center; }

/* ─── HERO (matches site exact sizing) ─── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  background: var(--bg-light); overflow: hidden; padding-top: 80px;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(229,231,235,0.6) 2px, transparent 2px),
    linear-gradient(to bottom, rgba(229,231,235,0.6) 2px, transparent 2px);
  background-size: 100px 100px;
}
.hero-container {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; padding: 64px 24px 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.hero-content { max-width: 560px; padding-top: 32px; }
.hero-subtitle {
  font-size: 20px; font-weight: 500; color: var(--brand-darkgray);
  margin-bottom: 16px; margin-top: 32px;
}
.hero-title {
  font-size: 48px; font-weight: 700; line-height: 1.1; margin-bottom: 24px;
  color: var(--brand-darkgray);
}
@media (min-width: 640px) { .hero-title { font-size: 60px; } }
@media (min-width: 1024px) { .hero-title { font-size: 72px; } }
.hero-title .highlight { color: var(--brand-primary); }
.hero-desc {
  font-size: 18px; color: var(--text-body); margin-bottom: 36px;
  max-width: 480px; line-height: 1.6;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-image { position: relative; }
.hero-image img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--white); padding: 10px 20px; border-radius: 50px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1); font-size: 13px; font-weight: 600;
  color: var(--brand-darkgray); white-space: nowrap;
}
.badge-1 { bottom: -16px; left: -20px; }
.badge-2 { top: 24px; right: -20px; }
.hero-badge svg { color: var(--brand-primary); flex-shrink: 0; }
.hero-badge .badge-sub { font-size: 10px; font-weight: 500; color: var(--text-muted); }

/* ─── BUTTONS (matches site) ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 12px; font-size: 18px; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.25s; font-family: inherit;
}
.btn-primary {
  background: var(--brand-primary); color: var(--white);
  box-shadow: 0 4px 20px rgba(67,156,176,0.25);
}
.btn-primary:hover {
  background: var(--primary-600); transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(67,156,176,0.35);
}
.btn-outline {
  background: transparent; color: var(--brand-darkgray);
  border: 2px solid var(--brand-light);
}
.btn-outline:hover { border-color: var(--brand-primary); color: var(--brand-primary); }

/* ─── TRUSTED MARQUEE ─── */
.trusted-section { padding: 40px 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.trusted-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; text-align: center; }
.trusted-label { font-size: 14px; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.marquee-wrapper { overflow: hidden; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: marquee 20s linear infinite;
}
.marquee-track span { font-size: 20px; font-weight: 700; color: var(--brand-light); font-family: 'Chillax', sans-serif; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ─── FEATURES ─── */
.features { padding: 96px 0; background: var(--white); }
.features-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag {
  display: inline-block; font-size: 16px; font-weight: 500; color: var(--brand-primary);
  margin-bottom: 16px; padding: 8px 16px;
}
.section-title { font-size: 36px; font-weight: 700; color: var(--brand-darkgray); margin-bottom: 16px; }
.section-desc { font-size: 18px; color: var(--text-body); max-width: 560px; margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.feature-card {
  background: var(--bg-light); border: 1px solid transparent;
  border-radius: 20px; padding: 32px 24px; transition: all 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  border-color: var(--primary-200);
}
.span-2 { grid-column: span 2; }
.feature-icon {
  width: 48px; height: 48px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon.teal { background: var(--primary-50); color: var(--brand-primary); }
.feature-icon.dark { background: var(--primary-800); color: var(--white); }
.feature-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--brand-darkgray); }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ─── FORM / WIZARD ─── */
.form-section { padding: 96px 0; background: var(--bg-light); }
.form-container { max-width: 800px; margin: 0 auto; padding: 0 24px; }

.wizard-wrapper {
  background: var(--white); border-radius: 24px; padding: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.06);
}
.wizard-progress {
  display: flex; align-items: center; justify-content: center; gap: 0;
  margin-bottom: 40px;
}
.wizard-step { display: flex; align-items: center; gap: 10px; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; border: 2px solid var(--brand-light); color: var(--text-light);
  background: var(--white); transition: all 0.3s; flex-shrink: 0;
}
.wizard-step.active .step-circle {
  background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary);
}
.wizard-step.completed .step-circle {
  background: var(--brand-primary); color: var(--white); border-color: var(--brand-primary);
}
.step-label { font-size: 14px; font-weight: 500; color: var(--text-light); white-space: nowrap; }
.wizard-step.active .step-label { color: var(--brand-darkgray); font-weight: 600; }
.wizard-step.completed .step-label { color: var(--brand-primary); }
.step-line { width: 48px; height: 2px; background: var(--brand-light); margin: 0 12px; flex-shrink: 0; }

.wizard-panel { display: none; }
.wizard-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.form-panel-title { font-size: 24px; font-weight: 700; margin-bottom: 28px; color: var(--brand-darkgray); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--brand-darkgray); }
.req { color: #EF4444; }
.form-group input, .form-group select {
  padding: 12px 16px; border: 1.5px solid var(--brand-light); border-radius: 12px;
  font-size: 16px; font-family: inherit; transition: border-color 0.2s;
  background: var(--white); color: var(--brand-darkgray);
}
.form-group input:focus, .form-group select:focus {
  outline: none; border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(67,156,176,0.12);
}
.form-group input::placeholder { color: var(--text-light); }

.form-checkbox {
  display: flex; align-items: flex-start; gap: 12px; margin-top: 24px;
  padding: 16px; background: var(--bg-light); border-radius: 12px;
}
.form-checkbox input[type="checkbox"] {
  width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-primary);
  flex-shrink: 0; cursor: pointer;
}
.form-checkbox label {
  font-size: 14px; color: var(--text-body); line-height: 1.6; cursor: pointer;
}
.form-checkbox label a {
  color: var(--brand-primary); font-weight: 600; text-decoration: underline;
}
.form-checkbox label a:hover { color: var(--primary-600); }

.wizard-nav { display: flex; justify-content: space-between; margin-top: 32px; }

.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.review-item {
  background: var(--bg-light); padding: 16px; border-radius: 12px;
}
.review-item .label { font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }
.review-item .value { font-size: 15px; font-weight: 600; color: var(--brand-darkgray); margin-top: 4px; }

.form-success { text-align: center; padding: 60px 0; }
.form-success .success-icon { margin-bottom: 20px; }
.form-success h3 { font-size: 32px; font-weight: 700; color: var(--brand-darkgray); margin-bottom: 12px; }
.form-success p { font-size: 18px; color: var(--text-body); }

/* ─── AGENT MATCH ─── */
.agent-section { padding: 96px 0; background: var(--white); }
.agent-container { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.agent-content { text-align: center; }
.agent-features {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 48px 0;
}
.agent-feature {
  text-align: left; display: flex; gap: 16px; align-items: flex-start;
  background: var(--bg-light); padding: 24px; border-radius: 16px;
  transition: transform 0.3s;
}
.agent-feature:hover { transform: translateY(-3px); }
.agent-feature-icon {
  width: 48px; height: 48px; background: var(--primary-50); color: var(--brand-primary);
  border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.agent-feature h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.agent-feature p { font-size: 14px; color: var(--text-muted); }

.agent-steps {
  display: flex; justify-content: center; gap: 12px; margin: 40px 0; flex-wrap: wrap;
}
.agent-step { display: flex; align-items: center; gap: 10px; }
.agent-step-num {
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-primary);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.agent-step span { font-size: 14px; font-weight: 600; color: var(--brand-darkgray); }

.agent-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; padding: 10px 20px;
  border-radius: 30px; font-size: 14px; font-weight: 600;
  background: var(--primary-50); color: var(--brand-primary); border: 1px solid var(--primary-100);
}

/* ─── FOOTER (matches site exactly) ─── */
.footer { background: var(--brand-dark); color: var(--white); padding: 32px 0 0; }
.footer-container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px;
  padding-bottom: 32px;
}

.footer-logo-link { display: inline-block; margin-bottom: 24px; }
.footer-logo { height: 56px; width: auto; object-contain; filter: brightness(10); }
.footer-desc { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 24px; }

.footer-trust { display: flex; flex-direction: column; gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 12px; font-size: 14px; color: rgba(255,255,255,0.5); }
.trust-icon {
  width: 32px; height: 32px; border-radius: 8px; background: rgba(67,156,176,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.trust-icon svg { color: #439CB0; }

.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 24px; }
.footer-link {
  display: flex; align-items: center; gap: 8px; font-size: 14px;
  color: rgba(255,255,255,0.5); padding: 6px 0; transition: color 0.2s;
}
.footer-link:hover { color: #439CB0; }
.footer-link svg { flex-shrink: 0; }

.footer-legal {
  display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-legal a { font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-legal a:hover { color: #439CB0; }

.footer-contact-link {
  display: flex; align-items: center; gap: 12px; font-size: 14px;
  color: rgba(255,255,255,0.5); padding: 8px 0; transition: color 0.2s;
}
.footer-contact-link:hover { color: #439CB0; }
.footer-contact-link svg { flex-shrink: 0; }
.footer-contact-link.address { align-items: flex-start; }
.footer-contact-link.address svg { margin-top: 2px; }
.support-badge {
  font-size: 11px; background: rgba(67,156,176,0.2); color: #439CB0;
  padding: 2px 8px; border-radius: 4px; font-weight: 500;
}

.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.social-link {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(67,156,176,0.2);
  display: flex; align-items: center; justify-content: center;
  color: #439CB0; transition: all 0.2s;
}
.social-link:hover { background: #439CB0; color: var(--white); }

.footer-newsletter {
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  padding: 24px 0; border-top: 1px solid rgba(255,255,255,0.1);
}
.newsletter-text h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.newsletter-text p { font-size: 14px; color: rgba(255,255,255,0.5); }
.newsletter-form { display: flex; gap: 12px; }
.newsletter-form input {
  padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(67,156,176,0.3);
  background: rgba(255,255,255,0.1); color: var(--white); font-size: 14px;
  width: 256px; outline: none; font-family: inherit;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus { border-color: #439CB0; }
.btn-sm { padding: 10px 24px; font-size: 14px; }

.footer-bottom {
  padding: 16px 0; text-align: center; border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 16px;
}
.footer-bottom p { font-size: 14px; color: rgba(255,255,255,0.4); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { max-width: 480px; margin: 0 auto; }
  .badge-1 { left: 8px; bottom: -12px; }
  .badge-2 { right: 8px; top: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .wizard-wrapper { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .wizard-progress { gap: 0; }
  .step-label { display: none; }
  .step-line { width: 32px; margin: 0 6px; }
  .agent-features { grid-template-columns: 1fr; }
  .agent-steps { gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-newsletter { flex-direction: column; text-align: center; }
  .newsletter-form { width: 100%; }
  .newsletter-form input { width: 100%; flex: 1; }
}
