/* ================================================================
   10381 E Loving Tree Lane — Desert Mountain Luxury
   Palette pulled from the photography: stacked stone earth tones,
   dark wood ceiling browns, twilight indigo, stucco cream.
   Editorial typography: Cormorant Garamond + Inter.
   ================================================================ */

:root {
  --c-bg: #f6f1e8;          /* warm stucco cream */
  --c-bg-2: #ede5d3;        /* deeper cream for alt sections */
  --c-ink: #1f1a14;         /* dark wood/stone ink */
  --c-ink-soft: #4a3f33;
  --c-rule: #c9bda5;        /* hairline rule */
  --c-accent: #8c5a2e;       /* warm umber/rust */
  --c-accent-deep: #5d3c1d;
  --c-twilight: #2c3e5a;     /* muted twilight blue */
  --c-twilight-deep: #1d2a40;
  --c-on-dark: #f0e9da;
  --c-dark: #1a1612;         /* near-black warm brown */
  --c-dark-2: #25201a;

  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --tracking-wide: 0.18em;
  --tracking-x-wide: 0.32em;

  --maxw: 1280px;
  --maxw-narrow: 820px;

  --pad-section: 9rem;
  --pad-section-mobile: 5rem;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent-deep); }

/* ----- TOP NAV ----- */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(246, 241, 232, 0);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
.topnav.is-scrolled {
  background: rgba(246, 241, 232, 0.97);
  padding: 0.65rem 0;
  box-shadow: 0 1px 0 var(--c-rule);
  backdrop-filter: blur(8px);
}
.topnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.topnav-brand {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--c-on-dark);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  transition: color 0.3s ease;
}
.topnav.is-scrolled .topnav-brand { color: var(--c-ink); }
.brand-num { font-size: 1.55rem; }
.brand-name {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-family: var(--f-sans);
  font-weight: 500;
}
.topnav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}
.topnav-links a {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  font-weight: 500;
  color: var(--c-on-dark);
  transition: color 0.3s ease, opacity 0.2s ease;
  opacity: 0.85;
}
.topnav-links a:hover { opacity: 1; color: var(--c-on-dark); }
.topnav.is-scrolled .topnav-links a { color: var(--c-ink-soft); }
.topnav.is-scrolled .topnav-links a:hover { color: var(--c-accent-deep); }
.topnav-cta {
  border: 1px solid currentColor;
  padding: 0.65rem 1.3rem !important;
  opacity: 1 !important;
}
@media (max-width: 920px) {
  .topnav-links { gap: 1.2rem; }
  .topnav-links a { font-size: 0.65rem; letter-spacing: 0.14em; }
  .topnav-links a:not(.topnav-cta) { display: none; }
  .topnav-inner { padding: 0 1.2rem; }
}

/* ----- HERO ----- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  overflow: hidden;
  background: var(--c-twilight-deep);
}
.hero-img { position: absolute; inset: 0; }
.hero-img img {
  width: 100%; height: 100%; object-fit: cover;
  animation: heroBreathe 18s ease-in-out infinite alternate;
}
@keyframes heroBreathe {
  from { transform: scale(1.0); }
  to   { transform: scale(1.06); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    /* Center vignette for title legibility */
    radial-gradient(ellipse at center,
      rgba(15,12,8,0.45) 0%,
      rgba(15,12,8,0.20) 40%,
      rgba(15,12,8,0.05) 70%),
    /* Top + bottom gradient for nav and scroll affordance */
    linear-gradient(180deg,
      rgba(15,12,8,0.55) 0%,
      rgba(15,12,8,0.15) 30%,
      rgba(15,12,8,0.15) 65%,
      rgba(15,12,8,0.70) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--c-on-dark);
  padding: 2rem;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-content .eyebrow {
  color: var(--c-on-dark);
  opacity: 0.9;
  margin-bottom: 2rem;
}
.hero-content .eyebrow::before { background: var(--c-on-dark); opacity: 0.7; }
.hero-title {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-weight: 300;
}
.hero-num {
  font-family: var(--f-display);
  font-size: clamp(5rem, 14vw, 11rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
.hero-street {
  font-family: var(--f-sans);
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  font-weight: 500;
  margin-top: 0.7rem;
}
.hero-sub {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  margin-top: 2.5rem;
  font-weight: 400;
  opacity: 0.95;
  max-width: 720px;
}
.hero-scroll {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 60px;
  background: rgba(240, 233, 218, 0.4);
  display: block;
}
.hero-scroll span {
  position: absolute;
  top: 0; left: -2px;
  width: 5px; height: 5px;
  background: var(--c-on-dark);
  border-radius: 50%;
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0% { top: 0; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 60px; opacity: 0; }
}

/* ----- COMMON SECTIONS ----- */
.section { padding: var(--pad-section) 0; }
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 2rem;
}
.container.narrow { max-width: var(--maxw-narrow); }
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--c-accent);
}
.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.005em;
  margin: 0 0 1.75rem 0;
  color: var(--c-ink);
  max-width: 24ch;
}
.lede {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  font-weight: 300;
  max-width: 65ch;
  margin: 0 0 1.5rem 0;
}
.section p {
  max-width: 65ch;
  color: var(--c-ink-soft);
  margin: 0 0 1.2rem 0;
}
.section strong { color: var(--c-ink); font-weight: 500; }

/* ----- INTRO + QUICK FACTS ----- */
.section-intro { padding-top: calc(var(--pad-section) + 1rem); }
.quick-facts {
  margin-top: 4rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--c-rule);
  padding-top: 3rem;
}
.fact { text-align: left; }
.fact-num {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 400;
  line-height: 1;
  color: var(--c-ink);
}
.fact-label {
  margin-top: 0.7rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent);
  font-weight: 500;
}
@media (max-width: 700px) {
  .quick-facts { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

/* ----- IMAGE BANDS ----- */
.section-image {
  margin: 0;
  background: var(--c-dark);
  overflow: hidden;
}
.section-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ----- TWO-COL (outdoor) ----- */
.section-outdoor { background: var(--c-bg-2); }
.two-col {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 6rem;
  align-items: start;
}
.two-col .section-title { margin-top: 0; }
.two-col-stats {
  background: var(--c-bg);
  padding: 2.5rem 2.5rem 2rem;
  border-top: 2px solid var(--c-accent);
}
.stats-list { list-style: none; margin: 0; padding: 0; }
.stats-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--c-rule);
  gap: 1rem;
}
.stats-list li:last-child { border-bottom: 0; }
.stats-list li span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent);
  font-weight: 500;
}
.stats-list li strong {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--c-ink);
  text-align: right;
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 3rem; }
}

/* ----- GALLERY ----- */
.section-gallery .container { margin-bottom: 4rem; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  background: var(--c-dark);
  padding: 0 6px;
}
.gal-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  background: var(--c-dark-2);
  aspect-ratio: 3/2;
}
.gal-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}
.gal-item:hover img { transform: scale(1.04); }
.gal-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.25rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-on-dark);
  background: linear-gradient(180deg, transparent 0%, rgba(15,12,8,0.7) 100%);
  font-weight: 500;
}
.gal-wide,
.gal-full { grid-column: span 2; }
@media (max-width: 700px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gal-wide, .gal-full { grid-column: span 1; }
}

/* ----- FEATURES & UPGRADES ----- */
.section-features {
  background: var(--c-bg-2);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 4rem;
  border-top: 1px solid var(--c-rule);
  padding-top: 3rem;
}
.feature-col h3 {
  font-family: var(--f-sans);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--c-rule);
}
.feature-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-col li {
  padding: 0.55rem 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--c-ink-soft);
}
.feature-col li::before {
  content: "—  ";
  color: var(--c-accent);
}
@media (max-width: 800px) {
  .features-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ----- FLOOR PLAN ----- */
.section-plan {
  background: var(--c-bg);
}
.plan-figure {
  margin: 3rem 0 0 0;
  background: #fff;
  padding: 2.5rem;
  border: 1px solid var(--c-rule);
}
.plan-figure img {
  width: 100%;
  height: auto;
}

/* ----- DESERT MOUNTAIN COMMUNITY ----- */
.section-community {
  background: var(--c-twilight-deep);
  color: var(--c-on-dark);
}
.section-community .section-title { color: var(--c-on-dark); }
.section-community .eyebrow { color: var(--c-accent); }
.section-community .eyebrow::before { background: var(--c-accent); }
.section-community .lede,
.section-community p {
  color: rgba(240, 233, 218, 0.78);
}
.section-community strong { color: var(--c-on-dark); font-weight: 400; }
.community-grid {
  margin-top: 3.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem 3rem;
  border-top: 1px solid rgba(240, 233, 218, 0.15);
  padding-top: 3rem;
}
.comm-item p { color: rgba(240, 233, 218, 0.85) !important; }
.comm-label {
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent) !important;
  font-weight: 500;
  margin: 0 0 0.5rem 0 !important;
}
@media (max-width: 800px) {
  .community-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 500px) {
  .community-grid { grid-template-columns: 1fr; }
}

/* ----- AGENT ----- */
.section-agent {
  background: var(--c-dark);
  color: var(--c-on-dark);
}
.section-agent .section-title { color: var(--c-on-dark); }
.section-agent .eyebrow { color: var(--c-accent); }
.section-agent .eyebrow::before { background: var(--c-accent); }
.section-agent p {
  color: rgba(240, 233, 218, 0.75);
  max-width: 65ch;
}
.section-agent strong {
  color: var(--c-on-dark);
  font-weight: 400;
}
.agent-grid {
  display: grid;
  grid-template-columns: 0.6fr 1fr;
  gap: 5rem;
  align-items: start;
}
.agent-photo img {
  width: 100%;
  border: 1px solid rgba(240, 233, 218, 0.1);
}
.agent-title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem !important;
  color: rgba(240, 233, 218, 0.85) !important;
  margin: -0.8rem 0 1.5rem 0 !important;
}
.agent-brokerage-logo {
  width: 200px;
  height: auto;
  margin-bottom: 2.5rem;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.agent-credentials {
  margin: 2.5rem 0;
  padding: 2rem 0;
  border-top: 1px solid rgba(240, 233, 218, 0.15);
  border-bottom: 1px solid rgba(240, 233, 218, 0.15);
}
.agent-credentials h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent);
  font-weight: 500;
  margin: 0 0 1rem 0;
}
.agent-credentials ul { list-style: none; padding: 0; margin: 0; }
.agent-credentials li {
  padding: 0.5rem 0;
  color: rgba(240, 233, 218, 0.85);
  font-size: 0.96rem;
  line-height: 1.5;
}
.agent-credentials li::before {
  content: "—  ";
  color: var(--c-accent);
}
.agent-contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}
.agent-contact strong {
  display: block;
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.agent-contact a {
  display: block;
  color: rgba(240, 233, 218, 0.75);
  font-size: 0.92rem;
  padding: 0.2rem 0;
  transition: color 0.2s ease;
}
.agent-contact a:hover { color: var(--c-on-dark); }
.agent-links {
  margin-top: 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(240, 233, 218, 0.15);
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.agent-links a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent) !important;
  font-weight: 500;
  transition: color 0.2s ease;
}
.agent-links a:hover { color: var(--c-on-dark) !important; }
@media (max-width: 800px) {
  .agent-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .agent-photo { max-width: 240px; }
  .agent-contacts { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ----- CONTACT FORM ----- */
.section-contact { background: var(--c-bg-2); }
.form-msg {
  padding: 1.25rem 1.5rem;
  margin: 2rem 0;
  border-left: 3px solid;
  font-size: 0.95rem;
}
.form-msg-ok {
  background: rgba(140, 90, 46, 0.08);
  border-color: var(--c-accent);
  color: var(--c-accent-deep);
}
.form-msg-err {
  background: rgba(180, 60, 50, 0.08);
  border-color: #b43c32;
  color: #823027;
}
.contact-form {
  margin-top: 3rem;
  background: var(--c-bg);
  padding: 3rem;
  border: 1px solid var(--c-rule);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.field { margin-bottom: 1.5rem; }
.field label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent);
  font-weight: 500;
  margin-bottom: 0.6rem;
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--c-rule);
  font-family: var(--f-sans);
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color 0.2s ease;
  font-weight: 300;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
}
.field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.5;
}
.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}
.btn-submit {
  display: inline-block;
  padding: 1rem 3rem;
  font-family: var(--f-sans);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-x-wide);
  font-weight: 500;
  background: var(--c-ink);
  color: var(--c-on-dark);
  border: 0;
  cursor: pointer;
  transition: background 0.25s ease;
  margin-top: 0.5rem;
}
.btn-submit:hover { background: var(--c-accent-deep); }
@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 2rem 1.5rem; }
}

/* ----- FOOTER ----- */
.footer {
  background: var(--c-dark);
  color: var(--c-on-dark);
  padding: 5rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(240, 233, 218, 0.15);
}
.footer-num {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin: 0 0 0.3rem 0;
}
.footer-loc {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  opacity: 0.65;
}
.footer-listed {
  margin: 0 0 0.6rem 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--c-accent);
  font-weight: 500;
}
.footer-team {
  margin: 0 0 0.7rem 0;
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 500;
}
.footer-brokerage-logo {
  width: 170px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  margin-top: 0.4rem;
}
.footer-contacts p {
  margin: 0 0 0.4rem 0;
  font-size: 0.92rem;
  color: rgba(240, 233, 218, 0.75) !important;
  max-width: none;
}
.footer-contacts a {
  color: var(--c-on-dark);
  transition: color 0.2s ease;
}
.footer-contacts a:hover { color: var(--c-accent); }
.footer-legal {
  padding-top: 2.5rem;
  font-size: 0.74rem;
  line-height: 1.6;
  opacity: 0.55;
  max-width: 900px;
}
.footer-legal p { margin: 0; color: inherit !important; max-width: none; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; }
}

/* ----- RESPONSIVE GLOBAL ----- */
@media (max-width: 700px) {
  body { font-size: 16px; }
  .section { padding: var(--pad-section-mobile) 0; }
  .container { padding: 0 1.5rem; }
}

/* ----- MOTION ----- */
@media (prefers-reduced-motion: reduce) {
  .hero-img img { animation: none; }
  .hero-scroll span { animation: none; opacity: 1; }
  .gal-item:hover img { transform: none; }
}
