/* ===========================================================
   Vegas by Melissa — Warm Desert Modern theme
   =========================================================== */

:root {
  --sand: #F3E9D8;
  --sand-light: #FAF5EC;
  --cream: #FDFBF6;
  --terracotta: #A9803D;
  --terracotta-dark: #8B6830;
  --sage: #2A2621;
  --sage-dark: #A9803D;
  --gold: #E8C997;
  --gold-light: #E8C997;
  --charcoal: #2A2621;
  --charcoal-light: #6B6258;
  --line: #E3D6BE;
  --white: #FFFFFF;
  --shadow: 0 10px 30px rgba(58, 51, 44, 0.08);
  --radius: 4px;
  --max-width: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-weight: 300;
  background: var(--cream);
  color: var(--charcoal);
  line-height: 1.7;
  font-size: 16px;
  letter-spacing: 0.005em;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); }
h3 { font-size: 1.5rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--charcoal-light); }

a { color: var(--terracotta); text-decoration: none; }
a:hover { color: var(--terracotta-dark); }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 34px;
  border-radius: 2px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--terracotta);
  color: var(--cream);
  font-weight: 500;
}
.btn-primary:hover { background: var(--terracotta-dark); color: var(--white); }

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

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

.btn-sage {
  background: var(--sage);
  color: var(--white);
}
.btn-sage:hover { background: var(--sage-dark); color: var(--charcoal); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(42, 38, 33, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(232, 201, 151, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 500;
  color: #F6EEDD;
  letter-spacing: 0.04em;
}
.logo span { color: var(--gold-light); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #E8E0D2;
  font-size: 0.98rem;
  font-weight: 500;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #F6EEDD;
}

@media (max-width: 780px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #2A2621;
    flex-direction: column;
    gap: 0;
    display: none;
    border-bottom: 1px solid rgba(232, 201, 151, 0.25);
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(232, 201, 151, 0.15); }
  .nav-links a { display: block; padding: 16px 24px; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #2A2621 0%, #221F1B 100%);
  padding: 80px 0 70px;
  text-align: center;
  position: relative;
}

.hero.hero-photo {
  background-image: linear-gradient(180deg, rgba(42,38,33,0.62) 0%, rgba(34,31,27,0.70) 100%), url('../images/listing-bella-strada.jpg');
  background-size: cover;
  background-position: center 35%;
}

.hero-photo-credit {
  position: absolute;
  right: 20px;
  bottom: 12px;
  font-size: 0.7rem;
  color: rgba(250, 245, 236, 0.45);
  letter-spacing: 0.02em;
}
.hero-photo-credit a { color: rgba(250, 245, 236, 0.6); }

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  color: #F6EEDD;
}

.hero-photo h1,
.hero-photo p.lead,
.hero-photo .eyebrow {
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
}

.hero p.lead {
  max-width: 560px;
  margin: 0 auto 30px;
  font-size: 1.15rem;
  color: #D9CBB2;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Placeholder image block ---------- */
.placeholder-img {
  background: var(--sand-light);
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--charcoal-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 20px;
  min-height: 220px;
}

.placeholder-img.round {
  border-radius: 50%;
  min-height: 260px;
  max-width: 260px;
  margin: 0 auto;
}

/* ---------- Real photo helpers (once real images are added) ---------- */
.photo-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  min-height: 220px;
}
.photo-round {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto;
  border: 4px solid var(--white);
  box-shadow: var(--shadow);
}
.brokerage-logo {
  max-height: 60px;
  width: auto;
}
.brand-logo-img {
  max-height: 42px;
  width: auto;
  display: block;
}

/* ---------- Sections ---------- */
.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}
.section.alt { background: var(--sand-light); }
.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 46px;
}
.section-head .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

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

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.card-body { padding: 22px 24px 26px; }
.tag {
  display: inline-block;
  background: none;
  color: var(--sage-dark);
  font-size: 0.72rem;
  padding: 0;
  border-radius: 0;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.card .price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 500;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.card .meta {
  font-size: 0.9rem;
  color: var(--charcoal-light);
  margin-bottom: 10px;
}

/* ---------- About page ---------- */
.about-hero {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 50px;
  align-items: center;
  padding: 70px 0 20px;
}
@media (max-width: 780px) {
  .about-hero { grid-template-columns: 1fr; text-align: center; }
}

.credentials {
  font-size: 0.95rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

/* ---------- Neighborhood guides ---------- */
.hood-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 30px;
  display: grid;
  grid-template-columns: 320px 1fr;
}
@media (max-width: 780px) {
  .hood-card { grid-template-columns: 1fr; }
}
.hood-card .placeholder-img { border-radius: 0; min-height: 100%; }
.hood-card .card-body { padding: 28px 30px; }
.hood-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 12px 0 16px;
  font-size: 0.9rem;
}
.hood-meta span {
  background: var(--sand);
  padding: 5px 14px;
  border-radius: 2px;
  color: var(--charcoal);
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

/* ---------- Info callout ---------- */
.info-callout {
  background: var(--sand-light);
  border-left: 3px solid var(--terracotta);
  border-radius: 0;
  padding: 26px 32px;
  margin-bottom: 46px;
}
.info-callout h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}
.info-callout p {
  font-size: 0.95rem;
}
.info-callout .citation {
  font-size: 0.8rem;
  color: var(--charcoal-light);
}
.info-callout .citation a {
  text-decoration: underline;
}

/* ---------- New construction plan list ---------- */
.plan-list {
  margin: 14px 0 18px;
  border-top: 1px solid var(--line);
}
.plan-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.plan-row .plan-name {
  font-weight: 600;
  color: var(--charcoal);
}
.plan-row .plan-specs {
  color: var(--charcoal-light);
  font-size: 0.85rem;
}
.plan-row .plan-price {
  color: var(--terracotta);
  font-weight: 600;
  white-space: nowrap;
}
.nc-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.nc-source-link {
  font-size: 0.85rem;
  color: var(--charcoal-light);
  text-decoration: underline;
}

/* ---------- Quiz ---------- */
.quiz-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
}
@media (max-width: 600px) {
  .quiz-box { padding: 26px; }
}
.progress-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 30px;
}
.progress-fill {
  height: 100%;
  background: var(--terracotta);
  width: 0%;
  transition: width 0.3s ease;
}
.quiz-question h3 { margin-bottom: 22px; }
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.quiz-option {
  text-align: left;
  padding: 16px 20px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--sand-light);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.15s ease;
}
.quiz-option:hover { border-color: var(--terracotta); background: var(--white); }
.quiz-result { text-align: center; }
.quiz-result .result-tag {
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 600;
}
.quiz-result h2 { margin: 8px 0 18px; }
.quiz-restart {
  margin-top: 20px;
  background: none;
  border: none;
  text-decoration: underline;
  color: var(--charcoal-light);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 2px;
  border: 1px solid var(--line);
  background: var(--sand-light);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: var(--charcoal);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.contact-info-item {
  margin-bottom: 22px;
}
.contact-info-item .label {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--sage-dark);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: var(--sand-light);
  padding: 50px 0 30px;
  margin-top: 40px;
}
.site-footer a { color: var(--sand-light); }
.site-footer a:hover { color: var(--gold); }
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-brand .logo { color: var(--sand-light); }
.footer-brand .logo span { color: var(--gold); }
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(232, 201, 151, 0.35);
  border-radius: 50%;
  color: var(--sand-light);
  transition: all 0.2s ease;
}
.footer-social a:hover {
  border-color: var(--gold);
  background: rgba(232, 201, 151, 0.12);
  color: var(--gold);
}
.footer-social svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  font-size: 0.85rem;
  color: rgba(250, 245, 236, 0.6);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }
.small-note {
  font-size: 0.85rem;
  color: var(--charcoal-light);
}
