/* ==========================================================
   Rachel Michael | City Real Estate — shared styles
   Monochrome luxury look: Aboreto headings, Epilogue body.
   Change the variables below to restyle the whole site.
   ========================================================== */
:root {
  --black: #000;
  --ink: #1a1a1a;
  --text: rgba(0, 0, 0, .8);
  --muted: #6f6f6f;
  --line: #e6e6e6;
  --soft: #f5f4f2;
  --white: #fff;
  --display: "Aboreto", "Cormorant Garamond", Georgia, serif;
  --sans: "Epilogue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--white); line-height: 1.75; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; line-height: 1.15; margin: 0 0 .6em; color: var(--black); }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; color: var(--ink); }
p { margin: 0 0 1.1em; }
.container { width: min(var(--max), 90%); margin: 0 auto; }
.narrow { max-width: 820px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.eyebrow { display: block; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; }
.section { padding: 110px 0; }
.section--soft { background: var(--soft); }
.section--black { background: var(--black); color: rgba(255,255,255,.8); }
.section--black h2, .section--black h3 { color: var(--white); }
.section-head { margin-bottom: 56px; }
.divider { width: 60px; height: 1px; background: currentColor; opacity: .5; margin: 26px auto; border: 0; }

/* image boxes: photo with dark fallback if a photo can't load */
.photo { background-color: #2a2a2a; background-image: var(--img), linear-gradient(135deg, #3a3a3a, #111); background-size: cover; background-position: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 15px 34px; font-family: var(--sans); font-size: .82rem;
  letter-spacing: .2em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  border: 1px solid var(--black); background: var(--black); color: var(--white); transition: all .3s ease;
}
.btn:hover { background: transparent; color: var(--black); }
.btn-outline { background: transparent; color: var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-light { background: transparent; border-color: var(--white); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--black); }
.link-arrow { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .35s ease, padding .35s ease; padding: 22px 0; }
.site-header.solid, body:not(.has-hero) .site-header { background: rgba(0,0,0,.92); padding: 12px 0; }
.nav { display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); }
.logo-mark { width: 46px; height: 46px; border: 1.5px solid currentColor; display: grid; place-items: center; font-family: var(--display); font-size: 1.05rem; letter-spacing: .08em; padding-left: .08em; }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--display); font-size: 1.05rem; letter-spacing: .18em; text-transform: uppercase; }
.logo-group { font-family: var(--sans); font-size: .62rem; letter-spacing: .55em; text-transform: uppercase; opacity: .85; margin-top: 4px; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--white); text-decoration: none; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; padding: 6px 0; border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav-links a:hover, .nav-links a.active { border-color: var(--white); }
.nav-links .nav-cta { border: 1px solid var(--white); padding: 10px 20px; }
.nav-links .nav-cta:hover { background: var(--white); color: var(--black); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 28px; height: 1.5px; background: var(--white); margin: 7px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; color: var(--white); overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease, transform 8s ease; transform: scale(1.06); }
.hero-slide.on { opacity: 1; transform: scale(1); }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.38); }
.hero-inner { position: relative; z-index: 2; padding: 0 20px; }
.hero h1 { color: var(--white); font-size: clamp(2.8rem, 8vw, 5.6rem); margin-bottom: .2em; }
.hero .tagline { letter-spacing: .12em; font-size: 1.05rem; margin-bottom: 2.4rem; }
.hero-search { display: flex; max-width: 620px; margin: 0 auto; background: var(--white); }
.hero-search input { flex: 1; border: 0; padding: 18px 20px; font: inherit; font-size: .95rem; outline: none; min-width: 0; }
.hero-search button { border: 0; background: var(--black); color: var(--white); padding: 0 34px; font-family: var(--sans); letter-spacing: .2em; text-transform: uppercase; font-size: .78rem; cursor: pointer; }
.hero-dots { position: absolute; bottom: 36px; left: 0; right: 0; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 34px; height: 2px; border: 0; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--white); }

.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--white); padding: 0 0 70px; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.6)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { max-width: 620px; margin-top: 14px; color: rgba(255,255,255,.85); }

/* ---------- Split / intro ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.portrait { aspect-ratio: 4 / 5; }
.dre { font-size: .78rem; letter-spacing: .2em; color: var(--muted); text-transform: uppercase; }
.trait-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 40px; }
.trait { background: var(--white); padding: 26px 16px; text-align: center; font-family: var(--display); text-transform: uppercase; letter-spacing: 1px; color: var(--black); }

/* ---------- Statement band ---------- */
.statement { text-align: center; }
.statement h2 { letter-spacing: .25em; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.statement p { max-width: 760px; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Listing grid ---------- */
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 26px; }
.listing { text-decoration: none; color: inherit; display: block; }
.listing .photo { aspect-ratio: 3 / 2; position: relative; overflow: hidden; }
.listing .photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0); transition: background .4s; }
.listing:hover .photo::after { background: rgba(0,0,0,.18); }
.listing .status { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--white); color: var(--black); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 12px; }
.listing h3 { font-size: 1.05rem; margin: 18px 0 4px; }
.listing .meta { font-size: .85rem; color: var(--muted); margin: 0; }
.listing .price { font-family: var(--display); font-size: 1.25rem; color: var(--black); margin-top: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 50px; }
.filters button { background: transparent; border: 1px solid var(--line); padding: 10px 22px; font-family: var(--sans); font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; cursor: pointer; transition: .25s; }
.filters button:hover { border-color: var(--black); }
.filters button.on { background: var(--black); color: var(--white); border-color: var(--black); }
.count { text-align: center; color: var(--muted); font-size: .85rem; margin-bottom: 30px; }

/* ---------- Neighborhood tiles ---------- */
.hood-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 60px) / 4); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; scrollbar-width: thin; }
.hood-tile { scroll-snap-align: start; position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 30px 16px; text-decoration: none; color: var(--white); overflow: hidden; }
.hood-tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.7)); transition: background .4s; }
.hood-tile:hover::before { background: rgba(0,0,0,.55); }
.hood-tile small, .hood-tile strong { position: relative; z-index: 1; }
.hood-tile small { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; }
.hood-tile strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 1px; }
.track-nav { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.track-nav button { width: 46px; height: 46px; border: 1px solid var(--black); background: transparent; cursor: pointer; font-size: 1.1rem; }
.track-nav button:hover { background: var(--black); color: var(--white); }

.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hood-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 70px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.hood-detail:nth-child(even) .photo { order: 2; }
.hood-detail .photo { aspect-ratio: 4 / 3; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 26px; }
.tags li { border: 1px solid var(--line); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 12px; }

/* ---------- Valuation band ---------- */
.valuation { position: relative; color: var(--white); text-align: center; padding: 130px 0; }
.valuation::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.valuation .container { position: relative; z-index: 2; }
.valuation h2 { color: var(--white); }
.val-points { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin: 10px 0 36px; font-size: .78rem; letter-spacing: .25em; text-transform: uppercase; }

/* ---------- Testimonials ---------- */
.quote-slider { position: relative; max-width: 860px; margin: 0 auto; text-align: center; min-height: 260px; }
.quote { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; pointer-events: none; }
.quote.on { opacity: 1; position: relative; pointer-events: auto; }
.quote p { font-size: 1.25rem; line-height: 1.8; color: var(--ink); }
.quote cite { font-style: normal; font-family: var(--display); letter-spacing: .2em; color: var(--black); }
.quote-nav { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.quote-nav button { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--black); background: transparent; cursor: pointer; padding: 0; }
.quote-nav button.on { background: var(--black); }
.quote-grid { columns: 2; column-gap: 26px; }
.quote-card { break-inside: avoid; border: 1px solid var(--line); padding: 36px; margin-bottom: 26px; }
.quote-card p { margin-bottom: 18px; }
.quote-card cite { font-style: normal; font-family: var(--display); letter-spacing: .15em; color: var(--black); }
.quote-card .who { font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }

/* ---------- Press ---------- */
.press-card { display: grid; grid-template-columns: 1fr 1.2fr; border: 1px solid var(--line); }
.press-card .photo { min-height: 320px; }
.press-card .body { padding: 50px; display: flex; flex-direction: column; justify-content: center; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 22px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 8px; color: var(--black); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #bdbdbd; font: inherit; background: transparent; border-radius: 0; transition: border-color .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field.error input, .field.error select, .field.error textarea { border-color: #b3261e; }
.error-msg { color: #b3261e; font-size: .75rem; margin-top: 6px; display: none; }
.field.error .error-msg { display: block; }
.form-success { display: none; border: 1px solid var(--black); padding: 18px 22px; margin-top: 24px; }
.contact-info h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-info p { margin-bottom: 28px; }
.contact-info a { text-decoration: none; border-bottom: 1px solid var(--line); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; border: 1px solid var(--line); }
.calc .inputs { padding: 50px; }
.calc .result { background: var(--black); color: var(--white); padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.calc .big { font-family: var(--display); font-size: 3rem; line-height: 1; margin: 12px 0 20px; }
input[type="range"] { accent-color: var(--black); padding: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); padding: 90px 0 36px; font-size: .9rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.site-footer h4 { color: var(--white); font-family: var(--sans); font-size: .72rem; letter-spacing: .25em; margin-bottom: 20px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: var(--white); }
.social { display: flex; gap: 12px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; font-size: .68rem; letter-spacing: .05em; }
.social a:hover { border-color: var(--white); }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-top: 28px; font-size: .74rem; line-height: 1.7; color: rgba(255,255,255,.5); }
.legal p { margin-bottom: .6em; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: block; position: relative; z-index: 70; }
  .nav-links { position: fixed; inset: 0; background: var(--black); flex-direction: column; justify-content: center; gap: 26px; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav-links.open { opacity: 1; pointer-events: auto; }
  .nav-links a { font-size: 1rem; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }
  .hood-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .hood-detail, .press-card, .calc { grid-template-columns: 1fr; gap: 40px; }
  .hood-detail:nth-child(even) .photo { order: 0; }
  .listing-grid, .hood-grid { grid-template-columns: 1fr 1fr; }
  .quote-grid { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .calc .inputs, .calc .result, .press-card .body { padding: 34px; }
}
@media (max-width: 560px) {
  .listing-grid, .hood-grid { grid-template-columns: 1fr; }
  .hood-track { grid-auto-columns: 80%; }
  .footer-top { grid-template-columns: 1fr; }
  .trait-row { grid-template-columns: 1fr; }
  .hero-search button { padding: 0 18px; }
  .logo-name { font-size: .9rem; letter-spacing: .12em; }
  .logo-group { letter-spacing: .4em; }
}

/* ---------- Real <img> inside photo boxes (better SEO + alt text) ---------- */
.photo > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.listing .photo > img { position: absolute; inset: 0; }
.portrait { position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.6rem; font-weight: 300; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-q { font-size: 1.15rem; margin: 0; letter-spacing: .5px; }
.faq-item p { padding-bottom: 22px; margin: 0; max-width: 720px; }
.form-success.error { border-color: #b3261e; color: #b3261e; }
button[disabled] { opacity: .6; cursor: wait; }
