/* ==================== RESET & BASE ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:        #1B3A5C;
  --green-light:  #2A5480;
  --green-dark:   #0F2537;
  --amber:        #E03C31;
  --amber-light:  #E8504A;
  --cream:        #FEFAE0;
  --cream-dark:   #F5EDD3;
  --stone:        #6B7280;
  --white:        #FFFFFF;
  --offwhite:     #F9FAF9;
  --black:        #0F1113;
  --border:       rgba(27,67,50,0.12);
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.05);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);
  --transition:   all 0.25s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--navy-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-light); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

.hidden { display: none !important; }

/* ==================== NAV ==================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 112px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 100px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-remax-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.footer-remax-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.8;
}

.brand-remax-text {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: #1B3A5C;
  background: rgba(27,58,92,0.08);
  border: 1.5px solid rgba(27,58,92,0.2);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.nav-phone a {
  font-size: 14px;
  font-weight: 600;
  color: #E03C31;
  transition: color 0.2s;
}

.nav-phone a:hover { color: #E8504A; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: #1B3A5C;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover {
  color: #1B3A5C;
  background: rgba(27,58,92,0.07);
}

/* ==================== HERO ==================== */
.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #1a3a5c 0%,
    #2d5a7b 18%,
    #5d7a8a 35%,
    #8a9e7a 50%,
    #b8a870 65%,
    #d4924a 80%,
    #e8a84a 100%
  );
}

/* Silhouette buildings row */
.hero-buildings {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 0 10%;
}

.build-row {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.building {
  background: #121c16;
  border-radius: 2px;
  position: relative;
}

.building::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 8px;
  right: 8px;
  bottom: 12px;
  background: repeating-linear-gradient(
    180deg,
    rgba(240,192,96,0.5) 0px,
    rgba(240,192,96,0.5) 10px,
    transparent 10px,
    transparent 18px
  );
  border-radius: 1px;
}

/* Trees */
.hero-trees {
  position: absolute;
  bottom: 90px;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  padding: 0 5%;
}

.tree-line {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.tree-col {
  width: 14px;
  height: 45px;
  background: #0d2b0d;
  border-radius: 50% 50% 0 0;
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.tree-col.tall { height: 60px; width: 16px; }

/* Street */
.hero-street {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: #1a1a1a;
}

.hero-street::before {
  content: '';
  position: absolute;
  top: 42px;
  left: 0;
  right: 0;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    #f0c060 0px,
    #f0c060 35px,
    #1a1a1a 35px,
    #1a1a1a 70px
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(15,43,28,0.9) 0%,
    rgba(15,43,28,0.72) 50%,
    rgba(15,43,28,0.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 48px 100px;
  max-width: 680px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red-light);
  background: rgba(217,119,6,0.15);
  border: 1px solid rgba(217,119,6,0.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.trust-item {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}

.trust-sep { color: rgba(255,255,255,0.3); }

/* ==================== FORM SECTION ==================== */
.form-section {
  padding: 100px 0;
  background: var(--offwhite);
}

.form-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

/* Left copy */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}

.form-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  color: var(--navy-dark);
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.form-desc {
  font-size: 16px;
  color: var(--stone);
  line-height: 1.7;
  margin-bottom: 36px;
}

.benefits { display: flex; flex-direction: column; gap: 24px; }

.benefit {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(27,67,50,0.08);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.benefit strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.benefit p {
  font-size: 14px;
  color: var(--stone);
  line-height: 1.55;
}

/* Form card */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.form-header {
  padding: 36px 36px 0;
}

.form-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 14px;
  color: var(--stone);
}

#lead-form {
  padding: 24px 36px 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-dark);
}

.optional {
  font-weight: 400;
  color: var(--stone);
}

input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--black);
  background: var(--offwhite);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,67,50,0.1);
  background: var(--white);
}

input::placeholder { color: #9CA3AF; }

.btn-submit {
  width: 100%;
  padding: 14px 24px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(27,67,50,0.25);
  margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--navy-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27,67,50,0.3);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-disclaimer {
  font-size: 12px;
  color: var(--stone);
  text-align: center;
  line-height: 1.5;
}

/* Success state */
#success-state {
  padding: 48px 36px;
  text-align: center;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  background: rgba(27,67,50,0.08);
  border-radius: 50%;
  color: var(--navy);
  margin: 0 auto 24px;
}

#success-state h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 12px;
}

#success-state p {
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  margin-bottom: 12px;
}

.success-note {
  font-size: 13px !important;
  color: var(--stone) !important;
}

.success-note a {
  color: var(--navy);
  font-weight: 600;
}

/* ==================== PROOF STRIP ==================== */
.proof-strip {
  background: var(--navy);
  padding: 56px 0;
}

.proof-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.proof-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 48px;
}

.proof-num {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  color: var(--red-light);
  line-height: 1;
  letter-spacing: -0.03em;
}

.proof-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

.proof-div {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.15);
}

/* ==================== FOOTER ==================== */
.site-footer {
  padding: 48px 0;
  background: var(--navy-dark);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.footer-logo .brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.footer-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.footer-remax {
  margin-bottom: 8px;
}

.footer-remax-text {
  display: inline-block;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.footer-remax-logo {
  height: 26px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

.footer-meta {
  text-align: right;
}

.footer-meta p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 4px;
}

.footer-copy {
  margin-top: 10px;
  color: rgba(255,255,255,0.25) !important;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; gap: 56px; }
  .proof-inner { flex-wrap: wrap; gap: 32px; }
  .proof-div { display: none; }
  .proof-stat { padding: 0 24px; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .hero-content { padding: 56px 24px 72px; }
  .hero-headline { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .form-section { padding: 72px 0; }
  .form-header, #lead-form { padding-left: 24px; padding-right: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .proof-num { font-size: 34px; }
  .footer-inner { flex-direction: column; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 30px; }
  .proof-stat { padding: 0 16px; }
  .proof-num { font-size: 28px; }
}