/* =========================================================
   RYAN AHYAEE | LONE STAR / TEXAS APARTMENT LOCATOR
   Production Design System — Cleaned & Optimized
   lonestarapt.com
   ========================================================= */

:root {
  --bg: #fafafa;
  --card: #ffffff;
  --ink: #111111;
  --ink-2: #1f1f1f;
  --muted: #6b7280;
  --line: #e5e5e5;
  --line-2: #d1d5db;
  --accent: #e05a3c;       /* Warm coral — friendly, modern, personal */
  --accent-dark: #c2410f;
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 8px 25px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.15);
  --max-width: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 { font-weight: 600; line-height: 1.15; }
.hero-title { font-size: clamp(42px, 6vw, 64px); font-weight: 600; letter-spacing: -1.5px; }
.section-title { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.8px; }

/* ===== BUTTONS (Best from prototypes) ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.25);
  font-weight: 600;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.35);
}
.btn-dark {
  background: var(--ink);
  color: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(0,0,0,.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: #f4f4f4; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===== GLASS / NAV ===== */
.glass {
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(255,255,255,.6);
}

/* ===== CARDS ===== */
.card {
  background: var(--card);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s cubic-bezier(.23,1,.32,1), transform .7s cubic-bezier(.23,1,.32,1);
}
.reveal.show {
  opacity: 1;
  transform: none;
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0;
}
.section-alt {
  background: white;
}

/* ===== UTILITIES ===== */
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-8 { margin-top: 32px; }

/* ===== NEW HERO WITH HOUSTON BACKGROUND ===== */
.hero-full {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
}

.hero-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,15,15,0.45) 0%, rgba(15,15,15,0.65) 55%, rgba(15,15,15,0.82) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.hero-content h1 {
  font-size: clamp(38px, 5.5vw, 62px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2.2px;
  max-width: 720px;
  margin-bottom: 18px;
}

.hero-content .subtitle {
  font-size: 20px;
  max-width: 540px;
  opacity: 0.9;
  margin-bottom: 32px;
}

/* Form card overlaid on hero */
.hero-form-card {
  background: rgba(255,255,255,0.96);
  color: #111;
  border-radius: 20px;
  padding: 20px 24px;           /* tighter padding */
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  max-width: 520px;
  width: 100%;
}

/* ============================================
   110% MOBILE OPTIMIZATION — tightened spacing + concise footer
   ============================================ */
@media (max-width: 768px) {
  .hero-full {
    min-height: 100vh;
    padding-top: 16px;
  }

  .hero-content {
    flex-direction: column !important;
    gap: 28px !important;
    padding: 12px 14px 32px;
  }

  .hero-content > div:first-child {
    flex: none !important;
    width: 100%;
    text-align: center;
  }

  .hero-content img {
    width: 85px !important;
    height: 85px !important;
  }

  .hero-form-card {
    max-width: 100% !important;
    padding: 24px 16px !important;  /* slightly tighter card padding */
    border-radius: 16px;
  }

  /* Force clean vertical list layout on mobile — every question stacks */
  .hero-form-card form,
  .hero-form-card form > div {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  .hero-form-card form {
    gap: 26px !important;   /* more breathing room between questions */
  }

  /* === FIRST 3 BOXES (Name + Phone + Email) — stack with proper gaps === */
  .hero-form-card form > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;      /* space between Name and Phone when stacked */
    margin-bottom: 18px !important;  /* extra space before Email */
  }

  /* Email field (the 3rd box) gets breathing room after the contact pair */
  .hero-form-card form > div:first-child + input[type="email"] {
    margin-bottom: 6px !important;
  }

  /* All inner label+field groups inside the forced rows get vertical space */
  .hero-form-card form > div > div {
    margin-bottom: 14px !important;
  }
  .hero-form-card form > div > div:last-child {
    margin-bottom: 0 !important;
  }

  .hero-form-card .field-label {
    font-size: 12.5px !important;
    font-weight: 500 !important;
    color: #333 !important;
    margin-bottom: 6px !important;
    margin-top: 4px !important;
    line-height: 1.3 !important;
  }

  .chip-row {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    margin-bottom: 6px;
  }

  .chip-pick {
    flex: 1 1 auto !important;
    min-width: 0;
    padding: 11px 13px !important;
    font-size: 14px !important;
    text-align: center;
    border-radius: 999px;
  }

  /* Inputs — consistent touch-friendly padding */
  input, .hero-form-card input,
  .hero-form-card input[type="text"],
  .hero-form-card input[type="email"],
  .hero-form-card input[type="tel"] {
    padding: 14px 13px !important;
    font-size: 16px !important;
    height: auto !important;
  }

  /* === PREFERRED MOVE-IN DATE INPUT — fix "padding outside the box" === */
  .hero-form-card input[type="date"] {
    padding: 11px 13px !important;
    font-size: 16px !important;
    height: 48px !important;
    min-height: 48px !important;
    line-height: 1.1 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: white !important;
    width: 100% !important;
  }

  .btn-primary {
    padding: 17px !important;
    font-size: 16px !important;
  }

  h1 {
    font-size: 26px !important;
    line-height: 1.2 !important;
    margin-bottom: 4px !important;
  }

  .hero-form-card h3 {
    font-size: 17px !important;
    margin-bottom: 4px !important;
  }

  /* === FOOTER — much more concise on mobile === */
  footer {
    padding: 18px 0 !important;
    font-size: 11.5px !important;
  }
  footer .container {
    flex-direction: column !important;
    gap: 4px !important;
    text-align: center !important;
    padding: 0 12px;
  }
  footer br {
    display: none !important;   /* collapse multi-line text */
  }
  footer span {
    display: inline !important;
  }

  /* Mobile quick nav - shown above form on phones */
  .mobile-quick-nav {
    display: flex !important;
  }

  .quick-pill {
    padding: 7px 13px;
    font-size: 12.5px;
    font-weight: 500;
    color: #e05a3c;
    background: white;
    border: 1px solid #e05a3c;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
  }

  .quick-pill:hover,
  .quick-pill:active {
    background: #e05a3c;
    color: white;
  }
}

.hero-form-card h3 {
  color: #111;
  margin-bottom: 4px;
  font-size: 17px;
}

.hero-form-card form {
  gap: 10px !important;   /* tighter vertical spacing between questions */
}

.hero-form-card .field-label {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #333 !important;
  margin-bottom: 3px !important;
  line-height: 1.3 !important;
}

.hero-form-card .chip-pick {
  padding: 5px 9px !important;
  font-size: 11px !important;
}

/* Animated sample deals */
.deal-card {
  transition: opacity 0.6s ease, transform 0.6s ease;
  opacity: 0;
  transform: translateY(10px);
  position: absolute;
  width: 100%;
}

.deal-card.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* Simple process steps */
.process-step {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.process-step .number {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.process-step .content h4 {
  margin-bottom: 4px;
  font-size: 17px;
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 16px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }

/* ===== HERO ===== */
.hero {
  padding: 120px 0 80px;
  background: linear-gradient(180deg, #111 0%, #1a1a1a 100%);
  color: white;
}
.hero .container { max-width: 980px; }

/* ===== FORM ===== */
.form-group { margin-bottom: 16px; }
input, textarea, select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-md);
  font-size: 15px;
  background: white;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194,65,15,.1);
}

/* ===== PROPERTY CARD (adapted) ===== */
.property-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.property-card .meta {
  padding: 20px;
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

/* =========================================================
   RICH PERSONALIZE FORM (from main_2 prototypes — upgraded)
   ========================================================= */

/* Container for the rich experience */
.personalize-experience {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.personalize-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
}

@media (max-width: 900px) {
  .personalize-grid { grid-template-columns: 1fr; }
}

/* Left visual panel */
.personalize-visual {
  background: #111;
  color: white;
  padding: 48px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.personalize-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.personalize-visual-content {
  position: relative;
  z-index: 2;
}

.personalize-visual h3 {
  font-size: 26px;
  line-height: 1.15;
  margin-bottom: 16px;
  color: white;
}

.personalize-visual p {
  color: rgba(255,255,255,.8);
  font-size: 15px;
  max-width: 340px;
}

.feature-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list li {
  display: flex;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.9);
}

.feature-list .ico {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Right form panel */
.personalize-form {
  padding: 40px 40px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Contact gate */
.contact-gate {
  background: #fafafa;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-gate.done {
  display: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}

@media (max-width: 600px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-field span {
  font-size: 11px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.5px;
}

.contact-field input {
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  font-size: 14px;
}

.contact-field input:focus {
  outline: none;
  border-color: var(--accent);
}

/* Progress */
.form-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.form-progress .bar-track {
  flex: 1;
  height: 3px;
  background: var(--line-2);
  border-radius: 3px;
  overflow: hidden;
}

.form-progress .bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.4s ease;
}

/* Chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-pick {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: white;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.chip-pick:hover {
  border-color: #ccc;
  background: #fafafa;
}

.chip-pick.selected {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(194, 65, 15, 0.25);
}

.chip-pick small {
  opacity: 0.65;
  margin-left: 4px;
  font-weight: 400;
}

/* Budget slider */
.budget-slider {
  width: 100%;
  margin: 8px 0;
  accent-color: var(--accent);
}

.budget-marks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin-top: -4px;
}

/* Survey body reveal */
.survey-body {
  display: none;
  flex-direction: column;
  gap: 22px;
}

.survey-body.revealed {
  display: flex;
}

.contact-recap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(194, 65, 15, 0.06);
  border: 1px solid rgba(194, 65, 15, 0.2);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
}

.contact-recap .recap-edit {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Field labels */
.field-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.field-label .hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* Results panel (for after form) */
.results-panel {
  display: none;
  padding: 32px;
  background: #fff;
  border-top: 1px solid var(--line);
}

.results-panel.active {
  display: block;
}

.summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.stag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
}
