/* ============================================================
   ILONA FEDORKO REALTOR — Master Stylesheet
   Palette inspired by the Mojave desert at golden hour, with
   restrained Ukrainian folk-art (Petrykivka style) linework
   used only as ornament — no flags, no national emblems.
   ============================================================ */

:root {
  /* Desert / Las Vegas palette */
  --color-cream:        #FAF6EF;
  --color-sand:         #EFE3CE;
  --color-sand-dark:    #DFCBA5;
  --color-terracotta:   #B5602F;
  --color-terracotta-d: #93481F;
  --color-gold:         #B8912F;
  --color-gold-light:   #D8B65C;
  --color-charcoal:     #241F1B;
  --color-charcoal-70:  rgba(36,31,27,0.7);
  --color-ink:          #362C22;
  --color-white:        #FFFFFF;
  --color-success:      #4B7B4E;
  --color-border:       #E3D5B8;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;

  --shadow-soft: 0 12px 30px rgba(54, 44, 34, 0.10);
  --shadow-card: 0 6px 18px rgba(54, 44, 34, 0.12);

  --container: 1200px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-charcoal);
  line-height: 1.2;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

.section {
  padding: 72px 0;
}
.section--tight { padding: 44px 0; }
.section--sand { background: var(--color-sand); }
.section--charcoal { background: var(--color-charcoal); color: var(--color-sand); }
.section--charcoal h2, .section--charcoal h3 { color: var(--color-cream); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--color-gold);
  display: inline-block;
}

.lede {
  font-size: 1.1rem;
  color: var(--color-charcoal-70);
  max-width: 620px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--color-terracotta);
  color: var(--color-white);
  box-shadow: var(--shadow-card);
}
.btn--primary:hover { background: var(--color-terracotta-d); }

.btn--gold {
  background: var(--color-gold);
  color: var(--color-charcoal);
}
.btn--gold:hover { background: var(--color-gold-light); }

.btn--outline {
  background: transparent;
  border-color: var(--color-charcoal);
  color: var(--color-charcoal);
}
.btn--outline:hover { background: var(--color-charcoal); color: var(--color-cream); }

.btn--outline-light {
  background: transparent;
  border-color: var(--color-cream);
  color: var(--color-cream);
}
.btn--outline-light:hover { background: var(--color-cream); color: var(--color-charcoal); }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Ornament dividers ---------- */
.ornament-divider {
  display: flex;
  justify-content: center;
  margin: 18px 0 34px;
  opacity: 0.9;
}
.ornament-divider img, .ornament-divider svg { height: 26px; width: auto; }

.ornament-corner {
  position: absolute;
  width: 64px;
  height: 64px;
  opacity: 0.35;
  pointer-events: none;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 239, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 46px; width: 46px; }
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-charcoal);
}
.brand-text .tag {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--color-terracotta);
  border-bottom-color: var(--color-gold);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-charcoal);
}

@media (max-width: 920px) {
  .main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    gap: 18px;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(32,24,16,0.82) 0%, rgba(58,44,30,0.55) 55%, rgba(122,74,36,0.45) 100%),
    url('../images/hero-desert-ukrainian.svg');
  background-size: cover;
  background-position: center;
  color: var(--color-cream);
}
.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 76px;
}
.hero-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  opacity: 0.9;
  line-height: 0;
}
.hero-art img {
  width: 100%;
  height: auto;
  display: block;
}
.hero h1 { color: var(--color-white); max-width: 780px; }
.hero .lede { color: rgba(250,246,239,0.85); max-width: 640px; }

.hero-search {
  margin-top: 34px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 12px;
  max-width: 900px;
}
@media (max-width: 760px) {
  .hero-search { grid-template-columns: 1fr; }
}
.hero-search input, .hero-search select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-ink);
  background: var(--color-cream);
}
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-stats div strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--color-gold-light);
  display: block;
}
.hero-stats div span { font-size: 0.82rem; color: rgba(250,246,239,0.75); }

/* ---------- Page header (interior pages) ---------- */
.page-hero {
  background:
    linear-gradient(160deg, rgba(58,44,30,0.94) 0%, rgba(107,67,38,0.94) 100%),
    url('../images/page-hero-pattern.svg');
  background-size: cover, cover;
  background-position: center, bottom;
  background-repeat: no-repeat, no-repeat;
  color: var(--color-cream);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { color: var(--color-gold-light); }
.page-hero .eyebrow::before { background: var(--color-cream); }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(250,246,239,0.7);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--color-gold-light); }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }

/* Listing card */
.listing-card .photo {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--color-sand-dark);
}
.listing-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-card .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-terracotta);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.listing-card .badge--new { background: var(--color-success); }
.listing-card .save {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.listing-card .body { padding: 18px 20px; }
.listing-card .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-charcoal);
}
.listing-card .addr { font-size: 0.9rem; color: var(--color-charcoal-70); margin: 4px 0 10px; }
.listing-card .facts {
  display: flex;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--color-ink);
  border-top: 1px dashed var(--color-border);
  padding-top: 10px;
}
.listing-card .mls {
  font-size: 0.72rem;
  color: var(--color-charcoal-70);
  margin-top: 8px;
}

/* Community card */
.community-card { position: relative; }
.community-card .photo { aspect-ratio: 5/4; }
.community-card .photo img { width: 100%; height: 100%; object-fit: cover; }
.community-card .body { padding: 18px 20px 22px; }
.community-card .count {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-terracotta);
  font-weight: 700;
  margin-bottom: 6px;
}

/* Testimonial */
.testimonial {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--color-gold);
}
.testimonial p { font-style: italic; color: var(--color-ink); }
.testimonial .who { font-weight: 700; color: var(--color-charcoal); font-style: normal; margin-top: 10px; }

/* ---------- Filter bar (listings page) ---------- */
.filter-bar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 12px;
  margin-bottom: 30px;
  align-items: end;
}
@media (max-width: 980px) {
  .filter-bar { grid-template-columns: repeat(2, 1fr); }
}
.filter-bar label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-charcoal-70);
  margin-bottom: 6px;
}
.filter-bar select, .filter-bar input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-cream);
  font-family: var(--font-body);
}
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 0.9rem;
  color: var(--color-charcoal-70);
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Forms / lead capture ---------- */
.lead-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.form-row { margin-bottom: 16px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--color-ink);
}
.form-row input, .form-row select, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-cream);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--color-charcoal-70); margin-top: 8px; }
.form-success {
  display: none;
  background: #EAF3EA;
  border: 1px solid var(--color-success);
  color: #2F5A32;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
  font-weight: 600;
}
.form-success.show { display: block; }

/* Ask Ilona widget */
.ask-widget {
  background: var(--color-charcoal);
  color: var(--color-cream);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.ask-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}
.ask-chip {
  background: rgba(250,246,239,0.08);
  border: 1px solid rgba(216,182,92,0.4);
  color: var(--color-cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color .15s ease;
}
.ask-chip:hover { background: rgba(216,182,92,0.18); border-color: var(--color-gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-charcoal);
  color: rgba(250,246,239,0.8);
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(250,246,239,0.14);
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  color: var(--color-gold-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--color-gold-light); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 42px; width: 42px; border-radius: 50%; object-fit: cover; }

.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(216,182,92,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.social-links a:hover {
  background: rgba(216,182,92,0.15);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
}
.social-links img { width: 17px; height: 17px; }
.footer-legal {
  padding-top: 22px;
  font-size: 0.78rem;
  color: rgba(250,246,239,0.55);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-legal .fh-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-legal .fh-row img { height: 30px; }
.footer-legal a { text-decoration: underline; }
.footer-legal p { margin: 0; }

/* Equal housing badge */
.eho-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.68rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-12 { gap: 12px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-680 { max-width: 680px; }
.small { font-size: 0.85rem; color: var(--color-charcoal-70); }
.pill {
  display: inline-block;
  background: var(--color-sand);
  color: var(--color-terracotta-d);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin: 0 6px 6px 0;
}
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}
.compliance-box {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  font-size: 0.92rem;
}
.compliance-box h3 { font-size: 1.05rem; }

/* Property detail */
.pd-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; }
.pd-gallery .side { display: grid; grid-template-rows: 1fr 1fr; gap: 10px; }
@media (max-width: 760px) {
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-gallery .side { grid-template-rows: 1fr; grid-auto-flow: column; }
}
.pd-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 20px; margin: 26px 0; }
.pd-facts { display: flex; gap: 26px; flex-wrap: wrap; margin: 20px 0; }
.pd-facts div strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.pd-facts div span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-charcoal-70); }
.pd-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; margin-top: 30px; }
@media (max-width: 900px) { .pd-layout { grid-template-columns: 1fr; } }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: 0.92rem; }
.spec-ta