/* ===== Sold by Haylee — shared styles ===== */

:root {
  --cream: #f7f4ee;
  --sand: #eee7db;
  --taupe: #c9beac;
  --sage: #8a9a80;
  --sage-dark: #6f7f65;
  --charcoal: #2e2b26;
  --ink: #3d3a34;
  --white: #ffffff;
  --gold: #b79c6b;
  --shadow: 0 20px 50px rgba(46, 43, 38, 0.08);
  --radius: 4px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--charcoal);
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--sage-dark);
  font-weight: 500;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 100px 0; }

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .container { padding: 0 22px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-radius: var(--radius);
  transition: all 0.35s ease;
  background: transparent;
  cursor: pointer;
}
.btn:hover { background: var(--charcoal); color: var(--white); }

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

.btn-light {
  border-color: rgba(255,255,255,0.85);
  color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--charcoal); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 48px;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.solid {
  background: rgba(247, 244, 238, 0.96);
  box-shadow: 0 2px 24px rgba(0,0,0,0.06);
  padding: 16px 48px;
  backdrop-filter: blur(6px);
}
.logo-mark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  color: var(--white);
  transition: color 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.logo-mark img { height: 40px; width: 40px; border-radius: 50%; display: block; }
footer .logo-mark img { height: 46px; width: 46px; }
.logo-mark span { color: var(--sage); }
.site-header.solid .logo-mark { color: var(--charcoal); }

.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--white);
  transition: color 0.4s ease, opacity 0.2s ease;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-color: currentColor; }
.site-header.solid .nav-links a { color: var(--charcoal); }
.nav-links a.active { border-color: currentColor; }

.nav-cta {
  border: 1px solid var(--white);
  padding: 10px 22px;
  border-radius: var(--radius);
  color: var(--white) !important;
  border-bottom: none !important;
}
.site-header.solid .nav-cta { border-color: var(--charcoal); color: var(--charcoal) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  width: 26px; height: 1.5px;
  background: var(--white);
  transition: background 0.3s ease;
}
.site-header.solid .nav-toggle span { background: var(--charcoal); }

@media (max-width: 900px) {
  .site-header { padding: 20px 24px; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(78vw, 340px);
    height: 100vh;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,0.08);
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--charcoal) !important; font-size: 0.95rem; }
  .nav-cta { border-color: var(--charcoal); color: var(--charcoal) !important; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero (video) ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
}
.hero video, .hero .hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,28,24,0.45) 0%, rgba(30,28,24,0.35) 45%, rgba(30,28,24,0.6) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 780px; padding: 0 24px; }
.hero-content .eyebrow { color: var(--sand); }
.hero-content h1 { color: var(--white); margin: 14px 0 20px; }
.hero-content p.lede { font-size: 1.15rem; font-weight: 300; color: var(--sand); margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero (non-video, inner pages) ---------- */
.page-hero {
  padding: 200px 0 90px;
  text-align: center;
  background: var(--sand);
}
.page-hero .eyebrow { justify-content: center; display: block; }
.page-hero p { max-width: 620px; margin: 18px auto 0; color: var(--ink); opacity: 0.85; }

/* ---------- Sections ---------- */
.section-heading { text-align: center; max-width: 680px; margin: 0 auto 60px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- CTA cards (buyer/seller) ---------- */
.cta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
@media (max-width: 760px) { .cta-cards { grid-template-columns: 1fr; } }

.cta-card {
  position: relative;
  padding: 64px 44px;
  background: var(--charcoal);
  color: var(--white);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.cta-card.buyer { background: linear-gradient(160deg, #7c8b72, #57614f); }
.cta-card.seller { background: linear-gradient(160deg, #3d3a34, #24221e); }
.cta-card .eyebrow { color: rgba(255,255,255,0.7); }
.cta-card h3 { color: var(--white); font-size: 2rem; margin: 10px 0 14px; }
.cta-card p { color: rgba(255,255,255,0.82); margin-bottom: 24px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 40px; } }
.stat h2 { color: var(--sage-dark); margin-bottom: 6px; }
.stat span { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--ink); opacity: 0.7; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--sand);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial-card {
  background: var(--white);
  padding: 40px 34px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.testimonial-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 16px; }
.testimonial-card p.quote { font-style: italic; color: var(--ink); }
.testimonial-card .name { margin-top: 18px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-dark); }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.blog-card .thumb { height: 210px; background: var(--taupe); background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; }
.blog-card .thumb.loc-1 { background: linear-gradient(155deg, #a9b79c 0%, #7c8b72 55%, #57614f 100%); }
.blog-card .thumb.loc-2 { background: linear-gradient(155deg, #d8cdb8 0%, #c9beac 55%, #a9967a 100%); }
.blog-card .thumb.loc-3 { background: linear-gradient(155deg, #cfd7c6 0%, #8a9a80 55%, #5f6b56 100%); }
.blog-card .thumb .loc-label {
  position: relative;
  z-index: 2;
  padding: 16px 20px;
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.blog-card .thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.18), transparent 60%);
}
.blog-card .body { padding: 28px 26px; }
.blog-card .eyebrow { display: block; margin-bottom: 10px; }
.blog-card a.readmore { display: inline-block; margin-top: 12px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sage-dark); border-bottom: 1px solid var(--sage-dark); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .item { margin-bottom: 26px; }
.contact-info .item .label { text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.16em; color: var(--sage-dark); margin-bottom: 6px; }
.contact-info .item .value { font-size: 1.15rem; font-family: var(--serif); }

form.contact-form { display: grid; gap: 18px; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--taupe);
  background: var(--white);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--ink);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.contact-form label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-dark); }

.calendar-embed {
  border: 1px solid var(--taupe);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 620px;
  background: var(--white);
}
.calendar-embed iframe { width: 100%; height: 620px; border: 0; display: block; }
.calendar-placeholder {
  padding: 60px 30px;
  text-align: center;
  color: var(--ink);
  opacity: 0.75;
}

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--charcoal);
  color: var(--sand);
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
footer .logo-mark { color: var(--white); display: block; margin-bottom: 14px; }
footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.14em; font-family: var(--sans); font-weight: 500; }
footer a { opacity: 0.82; transition: opacity 0.2s; display: block; margin-bottom: 10px; font-size: 0.92rem; }
footer a:hover { opacity: 1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.78rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 10px;
}
.brokerage-lockup { display: flex; align-items: center; gap: 14px; opacity: 0.85; }
.brokerage-lockup img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }

/* ---------- Article ---------- */
.article-body {
  max-width: 720px;
  margin: 0 auto;
}
.article-cover {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 46px;
}
.article-body h2 { margin-top: 44px; }
.article-body p { color: var(--ink); font-size: 1.05rem; }
.article-body ul { padding-left: 22px; margin-bottom: 1.2em; }
.article-body li { margin-bottom: 10px; color: var(--ink); font-size: 1.05rem; }
.article-meta { text-align: center; margin-bottom: 10px; color: var(--sage-dark); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em; }
.article-back { display: inline-block; margin-bottom: 30px; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--sage-dark); border-bottom: 1px solid var(--sage-dark); }

/* ---------- Photo Strip (2-up) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.photo-strip img { width: 100%; height: 320px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr; } .photo-strip img { height: 260px; } }

/* ---------- Moments Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-grid a { display: block; height: 100%; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid a:hover img { transform: scale(1.05); }
.gallery-grid .tall { grid-row: span 2; }
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery-grid .tall { grid-row: span 1; }
}

/* ---------- Fade-in on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
