/* =========================================================
   DESERT KEY HOMES — Buyer-Facing Stylesheet
   ========================================================= */

:root {
  --rust: #9A3412;
  --rust-dark: #7C2D12;
  --orange: #EA580C;
  --orange-dark: #C2410C;
  --sand: #D4A574;
  --sand-light: #F5E6D3;
  --cream: #FFFBF5;
  --cream-2: #FAF3E8;
  --ink: #1C1917;
  --warm-grey: #57534E;
  --warm-grey-light: #A8A29E;
  --line: #E7E5E4;
  --green: #15803D;
  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 8px 24px rgba(122, 45, 18, 0.10);
  --shadow-lg: 0 20px 50px rgba(122, 45, 18, 0.20);
  --radius: 8px;
  --radius-lg: 16px;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  color: var(--rust-dark);
  margin: 0 0 0.55em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--rust-dark); }

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

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 251, 245, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--rust-dark);
  text-decoration: none;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--rust-dark);
  color: var(--sand);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-family: 'Fraunces', serif;
  font-size: 16px;
}
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.97rem;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--orange-dark); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--rust-dark);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.97rem;
}
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--rust-dark); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
.btn-rust { background: var(--rust-dark); color: #fff; }
.btn-rust:hover { background: var(--rust); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--rust-dark); border: 2px solid var(--rust-dark); }
.btn-outline:hover { background: var(--rust-dark); color: #fff; }
.btn-block { display: flex; width: 100%; padding: 16px 24px; font-size: 1.05rem; }
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(122,45,18,0.78) 0%, rgba(28,25,23,0.55) 100%),
    url("https://images.unsplash.com/photo-1582743957229-9f5d2e95b7e1?w=1920&q=70") center/cover;
  padding: 80px 0;
}
.hero-content { max-width: 720px; }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { color: var(--sand); font-style: normal; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,0.92); margin-bottom: 28px; }
.hero-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  backdrop-filter: blur(6px);
}
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  background: var(--rust-dark);
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  font-size: 0.92rem;
}
.trust-strip strong { color: var(--sand); display: block; font-size: 1.4rem; font-family: 'Fraunces', serif; font-weight: 700; }

/* ---------- SECTIONS ---------- */
section { padding: 80px 0; }
section.alt { background: var(--cream-2); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--orange-dark);
  margin-bottom: 14px;
}
.section-head p { color: var(--warm-grey); font-size: 1.1rem; }

/* ---------- INVENTORY GRID (homepage + inventory page) ---------- */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.property-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card .photo {
  aspect-ratio: 4 / 3;
  background-color: var(--sand-light);
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-card .badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
}
.property-card .badge.land { background: var(--rust-dark); }
.property-card .badge.turnkey { background: var(--green); }
.property-card .badge.fixer { background: #B45309; }
.property-card .body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.property-card h3 { font-size: 1.15rem; margin-bottom: 4px; color: var(--rust-dark); }
.property-card .loc { font-size: 0.92rem; color: var(--warm-grey); margin-bottom: 14px; }
.property-card .price { font-family: 'Fraunces', serif; font-weight: 800; font-size: 1.55rem; color: var(--ink); margin-bottom: 6px; }
.property-card .terms { font-size: 0.88rem; color: var(--green); font-weight: 600; margin-bottom: 14px; }
.property-card .meta { display: flex; gap: 14px; font-size: 0.85rem; color: var(--warm-grey); border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.property-card .meta span { display: inline-flex; gap: 4px; align-items: center; }

/* ---------- FILTERS ---------- */
.filter-bar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.filter-bar label { font-size: 0.82rem; font-weight: 600; color: var(--warm-grey); text-transform: uppercase; letter-spacing: 0.06em; margin-right: 4px; }
.filter-chip {
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--warm-grey);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-chip:hover { border-color: var(--orange); color: var(--orange-dark); }
.filter-chip.active { background: var(--orange); color: #fff; border-color: var(--orange); }
.filter-spacer { flex: 1; }
.filter-count { font-size: 0.92rem; color: var(--warm-grey); font-weight: 600; }

/* ---------- FEATURE STRIP / WHY US ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.feature {
  text-align: center;
  padding: 0 12px;
}
.feature-icon {
  width: 64px; height: 64px;
  background: var(--sand-light);
  color: var(--rust-dark);
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin: 0 auto 18px;
}
.feature h3 { margin-bottom: 8px; color: var(--ink); font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 700; }
.feature p { color: var(--warm-grey); margin: 0; font-size: 0.97rem; }

/* ---------- FINANCING CALLOUT ---------- */
.financing-callout {
  background: linear-gradient(135deg, var(--rust-dark) 0%, #5C1E0A 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 56px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.financing-callout h2 { color: var(--sand); margin-bottom: 12px; }
.financing-callout h2 em { color: #fff; font-style: normal; }
.financing-callout p { color: rgba(255,255,255,0.9); margin-bottom: 24px; font-size: 1.05rem; }
.financing-callout ul { list-style: none; padding: 0; margin: 0 0 24px; }
.financing-callout li { padding: 8px 0; display: flex; gap: 10px; align-items: center; font-weight: 500; }
.financing-callout li::before { content: "✓"; width: 22px; height: 22px; background: var(--orange); border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.financing-callout .calc-box {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.financing-callout .calc-box .num { font-family: 'Fraunces', serif; font-size: 3rem; color: var(--sand); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.financing-callout .calc-box .lbl { font-size: 0.88rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.financing-callout .calc-box .small { font-size: 0.85rem; opacity: 0.7; }

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial .stars { color: var(--orange); font-size: 1.1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial blockquote { margin: 0 0 16px; font-style: italic; color: var(--ink); font-size: 1.02rem; }
.testimonial .who { font-size: 0.9rem; color: var(--warm-grey); border-top: 1px solid var(--line); padding-top: 12px; }
.testimonial .who strong { color: var(--rust-dark); display: block; }

/* ---------- LEAD FORM (buyer list) ---------- */
.buyer-form-wrap {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
  margin: 0 auto;
}
.buyer-form-wrap h3 { text-align: center; margin-bottom: 6px; }
.buyer-form-wrap .form-sub { text-align: center; color: var(--warm-grey); margin-bottom: 22px; font-size: 0.97rem; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--rust-dark);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  font-size: 1rem;
  font-family: inherit;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(234, 88, 12, 0.15);
}
.field textarea { min-height: 90px; resize: vertical; }
.form-note { font-size: 0.78rem; color: var(--warm-grey); text-align: center; margin-top: 10px; }

/* ---------- PROPERTY DETAIL PAGE ---------- */
.prop-hero {
  background: var(--cream-2);
  padding: 40px 0 20px;
}
.breadcrumb { font-size: 0.88rem; color: var(--warm-grey); margin-bottom: 16px; }
.breadcrumb a { color: var(--warm-grey); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange-dark); }

.prop-title-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.prop-title-row h1 { margin: 0; font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
.prop-title-row .loc { color: var(--warm-grey); font-size: 1.05rem; margin-top: 4px; }
.prop-price-block { text-align: right; }
.prop-price-block .price { font-family: 'Fraunces', serif; font-size: 2.4rem; font-weight: 800; color: var(--rust-dark); line-height: 1; }
.prop-price-block .down { color: var(--green); font-weight: 600; font-size: 0.95rem; }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16 / 8;
}
.gallery .photo {
  background: var(--sand-light) center/cover no-repeat;
  background-image: linear-gradient(135deg, var(--sand) 0%, var(--rust) 100%);
}
.gallery .photo:first-child { grid-row: span 2; }

.prop-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.prop-main h2 { font-size: 1.6rem; margin-top: 32px; }
.prop-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
  background: var(--cream-2);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 24px 0;
}
.prop-specs div { display: flex; flex-direction: column; gap: 2px; }
.prop-specs .lbl { font-size: 0.78rem; color: var(--warm-grey); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.prop-specs .val { font-weight: 700; color: var(--ink); font-size: 1.05rem; }
.feat-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.feat-list li { display: flex; gap: 8px; align-items: center; }
.feat-list li::before { content: "✓"; color: var(--green); font-weight: 800; }

.prop-sidebar { position: sticky; top: 90px; }
.prop-sidebar-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.prop-sidebar-card h3 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.financing-table { width: 100%; margin: 12px 0 18px; font-size: 0.95rem; }
.financing-table tr td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.financing-table tr:last-child td { border-bottom: none; font-weight: 700; color: var(--orange-dark); }
.financing-table td:first-child { color: var(--warm-grey); }
.financing-table td:last-child { text-align: right; font-weight: 600; color: var(--ink); }

/* ---------- FOOTER ---------- */
footer {
  background: #1C1917;
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  font-size: 0.95rem;
}
footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
footer h4 { color: var(--sand); font-size: 1rem; margin-bottom: 14px; font-family: 'Inter', sans-serif; }
footer a { color: rgba(255,255,255,0.7); text-decoration: none; display: block; padding: 4px 0; }
footer a:hover { color: var(--orange); }
.footer-bottom {
  max-width: var(--max);
  margin: 40px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  text-align: center;
}
footer .brand { color: var(--sand); margin-bottom: 14px; }
footer .brand .brand-mark { background: var(--sand); color: var(--rust-dark); }

/* ---------- THANK YOU ---------- */
.ty-page { padding: 100px 0; text-align: center; }
.ty-icon {
  width: 84px; height: 84px;
  margin: 0 auto 24px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 2.5rem;
  font-weight: 800;
}

/* ---------- META ADS LP ---------- */
.lp-hero {
  background:
    linear-gradient(115deg, rgba(122,45,18,0.85) 0%, rgba(28,25,23,0.6) 100%),
    url("https://images.unsplash.com/photo-1564013799919-ab600027ffc6?w=1920&q=70") center/cover;
  color: #fff;
  padding: 70px 0;
}
.lp-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lp-grid h1 { color: #fff; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
    gap: 14px;
  }
  .inventory-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid, .testimonials { grid-template-columns: 1fr; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 60px 0; min-height: auto; }
  .financing-callout { grid-template-columns: 1fr; padding: 36px 28px; }
  .prop-grid, .lp-grid { grid-template-columns: 1fr; gap: 32px; }
  .prop-sidebar { position: static; }
  .gallery { aspect-ratio: 4 / 3; grid-template-columns: 1fr 1fr; grid-template-rows: 1.5fr 1fr; }
  .gallery .photo:nth-child(n+5) { display: none; }
  section { padding: 56px 0; }
}
@media (max-width: 600px) {
  .inventory-grid { grid-template-columns: 1fr; }
  .prop-specs { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .filter-bar { padding: 14px; }
  .filter-chip { font-size: 0.86rem; padding: 6px 13px; }
  .prop-title-row { flex-direction: column; align-items: flex-start; }
  .prop-price-block { text-align: left; }
}
