/* ============================================================
   LESLIE HIMLEY REAL ESTATE — Main Stylesheet
   lesliehimley.com
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --espresso:    #2D1F1A;
  --ivory:       #F5F0E8;
  --ivory-deep:  #EDE6D8;
  --rose:        #C4957A;
  --rose-light:  #d4aa93;
  --taupe:       #E8DDD0;
  --text-dark:   #2D1F1A;
  --text-mid:    #5a4a42;
  --text-light:  #8a7a72;
  --gold:        #B8963E;
  --white:       #FDFBF8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}

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

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

/* ── TYPOGRAPHY ── */
.label {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: .63rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1rem;
  display: block;
}

.heading {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 3.6rem);
  line-height: 1.1;
  color: var(--espresso);
  margin-bottom: 1.4rem;
}

.heading em { font-style: italic; color: var(--rose); }

.body-text {
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-mid);
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  border: none;
  cursor: pointer;
  transition: background .25s, transform .2s;
}
.btn-primary:hover { background: var(--gold); transform: translateY(-1px); }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  transition: border-color .25s, background .25s, color .25s;
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }

.btn-outline-light {
  display: inline-block;
  border: 1px solid rgba(245,240,232,.55);
  color: var(--ivory);
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .95rem 1.9rem;
  transition: border-color .25s, background .25s;
}
.btn-outline-light:hover { border-color: var(--rose); background: rgba(196,149,122,.12); }

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4rem;
  height: 80px;
  background: rgba(253,251,248,.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196,149,122,.18);
  transition: box-shadow .3s;
}
nav.scrolled { box-shadow: 0 2px 30px rgba(45,31,26,.1); }

.nav-left { display: flex; align-items: center; gap: 2rem; }

.nav-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--espresso);
}
.nav-wordmark span { color: var(--rose); }

.nav-broker {
  padding-left: 1.5rem;
  border-left: 1px solid rgba(196,149,122,.25);
  font-family: 'Jost', sans-serif;
  font-size: .6rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1.3;
}

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color .2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--rose); }

.nav-cta {
  background: var(--espresso) !important;
  color: var(--ivory) !important;
  padding: .55rem 1.3rem;
  font-size: .68rem !important;
}
.nav-cta:hover { background: var(--rose) !important; color: var(--white) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--espresso);
  transition: .3s;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--white);
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(196,149,122,.2);
  z-index: 99;
  flex-direction: column;
  gap: 1.2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-family: 'Jost', sans-serif;
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* ── TICKER ── */
.ticker {
  background: var(--espresso);
  padding: .8rem 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
}
.ticker-item {
  font-family: 'Jost', sans-serif;
  font-size: .66rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--taupe);
  flex-shrink: 0;
}
.ticker-dot { color: var(--rose); }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  padding: 10rem 5rem 5rem;
  background: var(--ivory);
  border-bottom: 1px solid rgba(196,149,122,.18);
}
.page-hero .back-link {
  font-family: 'Jost', sans-serif;
  font-size: .65rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.5rem;
  display: inline-block;
}
.page-hero .back-link:hover { opacity: .7; }

/* ── SECTION SPACING ── */
.section { padding: 6.5rem 5rem; }
.section-sm { padding: 4rem 5rem; }
.bg-white    { background: var(--white); }
.bg-ivory    { background: var(--ivory); }
.bg-ivory-deep { background: var(--ivory-deep); }
.bg-espresso { background: var(--espresso); }

.container { max-width: 1200px; margin: 0 auto; }
.container-sm { max-width: 900px; margin: 0 auto; }

/* ── SPLIT LAYOUT ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
}
.split-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem;
}
.split-image { overflow: hidden; }
.split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s;
}
.split-image:hover img { transform: scale(1.03); }

/* ── GRID LAYOUTS ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }

/* ── SERVICE CARDS ── */
.service-card {
  position: relative;
  overflow: hidden;
  height: 430px;
  cursor: pointer;
  text-decoration: none;
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s;
}
.service-card:hover img { transform: scale(1.06); }
.service-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(45,31,26,.92) 0%, rgba(45,31,26,.18) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  transition: background .4s;
}
.service-card:hover .service-overlay {
  background: linear-gradient(to top, rgba(45,31,26,.96) 0%, rgba(45,31,26,.5) 65%, rgba(45,31,26,.1) 100%);
}
.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--ivory);
  margin-bottom: .7rem;
}
.service-desc {
  font-family: 'Jost', sans-serif;
  font-size: .84rem;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(245,240,232,.78);
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s, opacity .4s;
  opacity: 0;
}
.service-card:hover .service-desc { max-height: 120px; opacity: 1; }
.service-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: .63rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--rose-light);
  font-family: 'Jost', sans-serif;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .3s, transform .3s;
}
.service-card:hover .service-arrow { opacity: 1; transform: translateY(0); }

/* ── COMMUNITY CARDS ── */
.community-card {
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(45,31,26,.06);
  transition: transform .3s, box-shadow .3s;
}
.community-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(45,31,26,.11);
}
.community-card .card-img {
  height: 220px;
  overflow: hidden;
}
.community-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.community-card:hover .card-img img { transform: scale(1.05); }
.community-card .card-body { padding: 1.8rem; }
.community-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--espresso);
  margin-bottom: .4rem;
}
.community-loc {
  font-family: 'Jost', sans-serif;
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .8rem;
}
.community-desc {
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-mid);
}

/* Featured community card */
.community-card.featured {
  grid-column: span 3;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 360px;
}
.community-card.featured .card-img { height: auto; }
.community-card.featured .card-body {
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.community-card.featured .community-name { font-size: 2rem; }

.community-badge {
  display: inline-block;
  background: var(--rose);
  color: var(--white);
  font-family: 'Jost', sans-serif;
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  margin-bottom: 1rem;
}
.community-details {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.community-detail {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  color: var(--text-light);
  line-height: 1.5;
}
.community-detail strong { color: var(--espresso); font-weight: 400; display: block; }

/* ── STATS BAR ── */
.stats-bar {
  display: flex;
  gap: 3rem;
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(196,149,122,.28);
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--espresso);
  line-height: 1;
}
.stat-num span { color: var(--rose); }
.stat-label {
  font-family: 'Jost', sans-serif;
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-top: .4rem;
}

/* ── TESTIMONIAL CARDS ── */
.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-top: 3px solid var(--rose);
}
.t-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3rem;
  color: var(--rose);
  line-height: .5;
  display: block;
  margin-bottom: 1rem;
}
.t-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1.4rem;
}
.t-author {
  font-family: 'Jost', sans-serif;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
}
.t-location {
  font-family: 'Jost', sans-serif;
  font-size: .68rem;
  color: var(--text-light);
  margin-top: .2rem;
}

/* ── BLOG CARDS ── */
.blog-card {
  background: var(--ivory);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45,31,26,.09);
}
.blog-card .card-img { overflow: hidden; flex-shrink: 0; height: 220px; }
.blog-card .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}
.blog-card:hover .card-img img { transform: scale(1.05); }
.blog-card .card-body { padding: 1.8rem; flex: 1; }
.blog-cat {
  font-family: 'Jost', sans-serif;
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: .6rem;
}
.blog-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--espresso);
  margin-bottom: .7rem;
}
.blog-excerpt {
  font-family: 'Jost', sans-serif;
  font-size: .83rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: .9rem;
}
.blog-more {
  font-family: 'Jost', sans-serif;
  font-size: .63rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rose);
}

/* ── CTA BANNER ── */
.cta-banner {
  position: relative;
  padding: 8rem 5rem;
  overflow: hidden;
  text-align: center;
}
.cta-banner-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.cta-banner-overlay {
  position: absolute; inset: 0;
  background: rgba(45,31,26,.83);
}
.cta-banner-content {
  position: relative; z-index: 1;
  max-width: 620px;
  margin: 0 auto;
}
.cta-banner .label { color: var(--rose-light); }
.cta-banner .heading { color: var(--ivory); }
.cta-banner p {
  color: rgba(245,240,232,.78);
  font-family: 'Jost', sans-serif;
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  margin: 1.4rem auto 2.4rem;
  max-width: 460px;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── CONTACT FORM ── */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-family: 'Jost', sans-serif;
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: .45rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--ivory);
  border: 1px solid rgba(196,149,122,.22);
  padding: .85rem 1rem;
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  font-weight: 300;
  color: var(--text-dark);
  outline: none;
  transition: border-color .2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rose); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-msg {
  display: none;
  background: var(--ivory);
  border-top: 3px solid var(--rose);
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  font-family: 'Jost', sans-serif;
  font-size: .88rem;
  color: var(--text-mid);
  line-height: 1.6;
}
.form-error {
  font-family: 'Jost', sans-serif;
  font-size: .72rem;
  color: #c0392b;
  margin-top: .3rem;
}

/* ── LICENSE BADGE ── */
.license-badge {
  margin-top: 2rem;
  padding: 1rem 1.4rem;
  border: 1px solid rgba(196,149,122,.28);
  font-family: 'Jost', sans-serif;
  font-size: .7rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ── CHECKLIST ── */
.checklist { display: flex; flex-direction: column; gap: .9rem; margin: 1.8rem 0; }
.check-item { display: flex; align-items: flex-start; gap: 1rem; }
.check-icon {
  width: 18px; height: 18px; flex-shrink: 0;
  border: 1px solid var(--rose);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
  font-size: .6rem;
  color: var(--rose);
}
.check-text {
  font-family: 'Jost', sans-serif;
  font-size: .9rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.6;
}
.check-text strong { font-weight: 500; color: var(--espresso); }

/* Dark checklist variant */
.check-item.light .check-text { color: rgba(245,240,232,.82); }
.check-item.light .check-icon { border-color: var(--rose-light); color: var(--rose-light); }

/* ── QUOTE BLOCK ── */
.quote-block {
  border-left: 3px solid var(--rose);
  padding: .5rem 1.5rem;
  margin: 1.5rem 0;
}
.quote-block p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-dark);
}

/* ── IDX PLACEHOLDER ── */
.idx-placeholder {
  border: 2px dashed rgba(196,149,122,.4);
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  text-align: center;
  padding: 3rem;
  gap: 1rem;
}
.idx-placeholder h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-mid);
}
.idx-placeholder p {
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 300;
  color: var(--text-light);
  max-width: 400px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--espresso);
  color: var(--taupe);
  padding: 4rem 5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(196,149,122,.18);
  margin-bottom: 2rem;
}
.footer-wordmark {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: 1.45rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ivory);
  margin-bottom: 1rem;
}
.footer-wordmark span { color: var(--rose); }
.footer-tagline {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  font-weight: 300;
  line-height: 1.75;
  color: rgba(232,221,208,.68);
  margin-bottom: 1.4rem;
}
.footer-col-title {
  font-family: 'Jost', sans-serif;
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .65rem; }
.footer-links a {
  font-family: 'Jost', sans-serif;
  font-size: .8rem;
  font-weight: 300;
  color: rgba(232,221,208,.68);
  transition: color .2s;
}
.footer-links a:hover { color: var(--rose); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: 'Jost', sans-serif;
  font-size: .68rem;
  color: rgba(232,221,208,.38);
  letter-spacing: .04em;
}
.footer-cre-link { color: var(--rose); transition: opacity .2s; }
.footer-cre-link:hover { opacity: .7; }

/* ── SCROLL ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  nav { padding: 0 2rem; }
  .section, .section-sm { padding: 4.5rem 2rem; }
  .page-hero { padding: 8rem 2rem 4rem; }
  .split { grid-template-columns: 1fr; }
  .split-content { padding: 4rem 2rem; }
  .split-image { height: 380px; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .community-card.featured { grid-column: span 2; grid-template-columns: 1fr; }
  .community-card.featured .card-img { height: 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .cta-banner { padding: 5rem 2rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  nav { padding: 0 1.5rem; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .community-card.featured { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  .stats-bar { flex-wrap: wrap; gap: 1.5rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-actions { flex-direction: column; align-items: center; }
}
