/* ===================================================
   Pitt Realty Group — Property Report Landing Page
   Mobile-first · Single-purpose · Data-forward
   =================================================== */

:root {
  --purple:       #5024d8;
  --purple-dark:  #401dac;
  --purple-deep:  #301581;
  --purple-light: #ede8fb;
  --green:        #09a823;
  --green-hover:  #078a1c;
  --green-glow:   rgba(9, 168, 35, 0.25);
  --blue:         #4774AF;
  --blue-light:   #dce7f5;
  --text:         #373a3c;
  --text-light:   #6c757d;
  --white:        #ffffff;
  --off-white:    #f8f9fa;
  --border:       #dee2e6;
  --error:        #dc3545;
  --radius:       10px;
  --radius-lg:    16px;
  --shadow-card:  0 4px 24px rgba(50, 36, 100, 0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-drop:  0 8px 32px rgba(50, 36, 100, 0.18);
  --transition:   0.2s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Source Sans 3', 'Source Sans Pro', -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); }

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--purple) 0%, var(--purple-deep) 100%);
  padding: 3rem 1.25rem 3.5rem;
  overflow: hidden;
}

/* Subtle data-grid pattern */
.hero__grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
}

/* ---- Copy ---- */
.hero__eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero__headline {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 1rem;
}

.hero__headline em {
  font-style: normal;
  color: var(--green);
}

.hero__subhead {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
  margin-bottom: 2rem;
  max-width: 520px;
}

/* ===================================================
   FORM CARD
   =================================================== */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

/* ---- Fields ---- */
.field { margin-bottom: 1rem; position: relative; }

.field__hint {
  font-size: 0.78rem;
  color: var(--text-light);
  margin-top: 0.35rem;
  font-style: italic;
}

.field__input-wrap {
  position: relative;
}

.field__input {
  width: 100%;
  height: 52px;
  padding: 0 2.5rem 0 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--off-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}

.field__input::placeholder { color: #6c757d; }

.field__input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(80, 36, 216, 0.12);
  background: var(--white);
}

.field__input--error {
  border-color: var(--error);
}
.field__input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.12);
}

.field__input--selected {
  border-color: var(--green);
  background: var(--white);
}

.field__search-icon {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  pointer-events: none;
}

.field__error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 0.3rem;
  min-height: 0;
  overflow: hidden;
  transition: min-height var(--transition);
}
.field__error:empty { display: none; }

/* ---- Honeypot ---- */
.field--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ===================================================
   AUTOCOMPLETE DROPDOWN
   =================================================== */
.autocomplete {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-drop);
  list-style: none;
  z-index: 100;
  display: none;
}

.autocomplete--open { display: block; }

.autocomplete__item {
  padding: 0.7rem 1rem;
  cursor: pointer;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--off-white);
  transition: background var(--transition);
}

.autocomplete__item:last-child { border-bottom: none; }

.autocomplete__item:hover,
.autocomplete__item--active {
  background: var(--purple-light);
}

.autocomplete__item-address {
  font-weight: 600;
  color: var(--text);
}

.autocomplete__item-city {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-top: 0.1rem;
}

.autocomplete__empty {
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

/* ===================================================
   CTA BUTTON
   =================================================== */
.btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  height: 68px;
  padding: 0 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  font-family: inherit;
  color: var(--white);
  background: var(--green);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform 0.1s ease;
  margin-top: 0.5rem;
  -webkit-appearance: none;
}

.btn-cta:hover {
  background: var(--green-hover);
  box-shadow: 0 4px 16px var(--green-glow);
}

.btn-cta:active {
  transform: scale(0.98);
}

.btn-cta:disabled {
  cursor: not-allowed;
  opacity: 0.85;
}

.btn-cta__spinner {
  display: none;
  animation: spin 1s linear infinite;
}

.btn-cta--loading .btn-cta__text { display: none; }
.btn-cta--loading .btn-cta__arrow { display: none; }
.btn-cta--loading .btn-cta__spinner { display: block; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Privacy line ---- */
.form-card__privacy {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.85rem;
  text-align: center;
  justify-content: center;
}
.form-card__privacy svg { flex-shrink: 0; color: var(--text-light); }

/* ===================================================
   THANK-YOU STATE
   =================================================== */
.thank-you {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.thank-you[hidden] { display: none; }

.thank-you__icon {
  margin-bottom: 1.25rem;
  animation: scaleIn 0.4s ease-out;
}

@keyframes scaleIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.thank-you__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.thank-you__body {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.55;
}
.thank-you__body strong {
  color: var(--text);
  font-weight: 600;
}

/* ===================================================
   VALUE PROPS
   =================================================== */
.value-props {
  background: var(--off-white);
  padding: 3.5rem 1.25rem;
}

.value-props__inner {
  max-width: 960px;
  margin: 0 auto;
}

.value-props__heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2rem;
}

.value-props__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.prop-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.prop-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.prop-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-light);
  color: var(--purple);
  border-radius: 10px;
  margin-bottom: 0.85rem;
}

.prop-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.prop-card__desc {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* ===================================================
   TRUST
   =================================================== */
.trust {
  padding: 2.5rem 1.25rem;
  text-align: center;
}

.trust__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 600px;
  margin: 0 auto;
}

.trust__headshot {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 2px 12px rgba(80, 36, 216, 0.15);
}

.trust__headshot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trust__name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.trust__sub {
  font-size: 0.8rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--purple-deep);
  padding: 1.5rem 1.25rem;
  text-align: center;
}

.footer__text {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.02em;
}

/* ===================================================
   STICKY MOBILE CTA
   =================================================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
  z-index: 200;
}

.sticky-cta[hidden] { display: none; }

.btn-cta--sticky {
  height: 60px;
  font-size: 1.3rem;
  margin-top: 0;
}

/* ===================================================
   TABLET — 768px+
   =================================================== */
@media (min-width: 768px) {
  .hero { padding: 4rem 2rem; }

  .hero__headline { font-size: 2.25rem; }
  .hero__subhead { font-size: 1.1rem; }

  .value-props { padding: 4rem 2rem; }

  .value-props__grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===================================================
   DESKTOP — 1024px+
   =================================================== */
@media (min-width: 1024px) {
  .hero { padding: 5rem 2rem; }

  .hero__inner {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 3.5rem;
    align-items: center;
  }

  .hero__headline {
    font-size: 2.6rem;
  }

  .hero__subhead {
    margin-bottom: 0;
  }

  /* Hide sticky CTA on desktop — form is always visible */
  .sticky-cta { display: none !important; }
}

/* ===================================================
   LARGE DESKTOP — 1200px+
   =================================================== */
@media (min-width: 1200px) {
  .hero__inner {
    grid-template-columns: 1fr 440px;
    gap: 4.5rem;
  }

  .hero__headline {
    font-size: 2.85rem;
  }
}

/* ===================================================
   REDUCED MOTION
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
