/* ============================================================
   Mike Lonsdale | Rise Real Estate — redlandspropertysearch.com
   Rise Real Estate brand colors (from therise.group) live here: change these to restyle the whole site.
   ============================================================ */
:root {
  --ink: #0f0f0f;          /* Rise black */
  --charcoal: #1c1c1c;
  --ivory: #f9f9f9;        /* Rise off-white */
  --stone: #eeece6;        /* soft beige panels */
  --accent: #cbb26b;       /* Rise gold */
  --accent-dark: #8f7a3e;  /* deeper gold for small text on light backgrounds */
  --muted: #666666;
  --white: #ffffff;
  --serif: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --pad: clamp(1.5rem, 5vw, 6rem);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--ivory); line-height: 1.75; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; line-height: 1.12; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.7rem; margin-bottom: .6rem; }
p + p { margin-top: 1rem; }
.hidden { display: none; }

.eyebrow { font-size: .72rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 500; color: var(--stone); margin-bottom: 1.2rem; }
.eyebrow.dark { color: var(--accent-dark); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 1.05rem 2.2rem; font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: all .3s ease; }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,.8); color: var(--white); }
.btn-outline-light:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--accent); }
.btn-block { width: 100%; }
.text-link { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 1.6rem var(--pad); color: var(--white); transition: background .4s, padding .4s, color .4s; }
.site-header.scrolled { background: rgba(20,20,20,.96); padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.1; }
.brand-name { font-family: var(--serif); font-size: 1.7rem; letter-spacing: .04em; }
.brand-sub { font-size: .62rem; letter-spacing: .38em; text-transform: uppercase; opacity: .8; margin-top: .25rem; }
.nav { display: flex; gap: 2.2rem; align-items: center; }
.nav a { font-size: .7rem; letter-spacing: .24em; text-transform: uppercase; text-decoration: none; font-weight: 500; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--accent); }
.nav-cta { border: 1px solid rgba(255,255,255,.7); padding: .7rem 1.3rem; }
.nav-cta:hover { background: var(--white); color: var(--ink) !important; }
.menu-btn { display: none; background: none; border: 0; width: 32px; height: 20px; position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 0; right: 0; height: 1px; background: var(--white); transition: .3s; }
.menu-btn span:first-child { top: 4px; } .menu-btn span:last-child { bottom: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: var(--white); overflow: hidden; padding: 9rem 0 6rem; }
.hero-bg { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.6) 100%),
  url('images/hero.jpg') center/cover no-repeat,
  url('https://images.unsplash.com/photo-1673286121437-ee387585d986?auto=format&fit=crop&w=2000&q=80') center 60%/cover no-repeat,
  linear-gradient(135deg, #1a1a1a 0%, #2e2e2e 50%, #0f0f0f 100%);
  animation: slowzoom 22s ease-out forwards; }
@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { position: relative; padding: 0 var(--pad); max-width: 980px; }
.hero h1 { font-size: clamp(2.8rem, 6.5vw, 5.6rem); margin-bottom: 1.8rem; }
.hero h1 em { font-style: normal; font-weight: 500; color: #cbb26b; }
.hero-lede { max-width: 620px; font-size: 1.05rem; opacity: .92; margin-bottom: 2.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); font-size: .62rem; letter-spacing: .4em; text-transform: uppercase; text-decoration: none; padding-bottom: 3.5rem; }
.scroll-cue::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 1px; height: 2.8rem; background: rgba(255,255,255,.7); }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 90vh; background: var(--ivory); }
.about-photo { position: relative; background: linear-gradient(160deg, var(--stone), #d9d6cf); min-height: 520px; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 48% 30%; position: absolute; inset: 0; }
.photo-fallback { display: none; }
.about-photo.no-photo img { display: none; }
.about-photo.no-photo .photo-fallback { display: flex; position: absolute; inset: 0; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.4rem; color: rgba(20,20,20,.35); letter-spacing: .05em; }
.about-text { padding: clamp(3rem, 8vw, 8rem) var(--pad); align-self: center; max-width: 680px; }
.about-text h2 { font-size: clamp(2.8rem, 5vw, 4.4rem); margin-bottom: .4rem; }
.title-line { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-bottom: 2rem; }
.about-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--ink); color: var(--white); }
.pillar { padding: 4.5rem var(--pad) 4.5rem; border-right: 1px solid rgba(255,255,255,.1); }
.pillar:last-child { border-right: 0; }
.pillar-num { font-family: var(--serif); font-size: 1rem; color: var(--accent); letter-spacing: .1em; display: block; margin-bottom: 1rem; }
.pillar p { color: rgba(255,255,255,.7); font-size: .95rem; }

/* ---------- Neighborhoods ---------- */
.neighborhoods { padding: 7rem var(--pad); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 4rem; }
.section-head p:last-child { color: var(--muted); }
.hood-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.hood { position: relative; min-height: 460px; overflow: hidden; color: var(--white);
  background: var(--img) center/cover no-repeat, linear-gradient(150deg, #2e2e2e, #141414); }
.hood::before { content: ''; position: absolute; inset: 0; background: var(--img) center/cover no-repeat; transition: transform 1.2s ease; z-index: 0; }
.hood:hover::before { transform: scale(1.06); }
.hood-overlay { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 2.2rem; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.78) 100%); }
.hood-overlay p { font-size: .9rem; color: rgba(255,255,255,.85); max-height: 0; opacity: 0; overflow: hidden; transition: all .5s ease; }
.hood:hover .hood-overlay p, .hood:focus-within .hood-overlay p { max-height: 200px; opacity: 1; margin-bottom: 1rem; }
.hood-link { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; font-weight: 500; color: #cbb26b; }
.hood-cta { background: var(--charcoal); }
.hood-cta::before { display: none; }
.hood-cta .hood-overlay { background: none; justify-content: center; }
.hood-cta .hood-overlay p { max-height: none; opacity: 1; margin-bottom: 1.6rem; }
.hood-cta .btn { align-self: flex-start; }

/* ---------- Just listed (IDX widget) ---------- */
.just-listed { padding: 7rem var(--pad) 5rem; background: var(--white); }
.idx-widget { max-width: 1240px; margin: 0 auto; min-height: 120px; }
.center-cta { text-align: center; margin-top: 3rem; }
.hood-note { text-align: center; color: var(--muted); max-width: 720px; margin: 3rem auto 0; }
.hood-note a { color: var(--ink); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--accent); }

/* ---------- Split sections (forms) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 760px; }
.split-buy { background: var(--stone); }
.split-img { background-color: #1c1c1c; background-size: cover; background-position: center; background-repeat: no-repeat; min-height: 400px; }
.split-form { padding: 6rem var(--pad); align-self: center; max-width: 720px; }
.split-form > p { color: var(--muted); margin-bottom: 2rem; }
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
input, select, textarea { width: 100%; font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(20,20,20,.3); padding: 1rem .2rem; margin-bottom: .9rem; border-radius: 0; outline: none; transition: border-color .3s; -webkit-appearance: none; appearance: none; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; color: var(--muted); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--accent); }
form .btn { margin-top: 1.2rem; }
.fine { font-size: .7rem; color: var(--muted); margin-top: 1rem; line-height: 1.5; }

/* ---------- Quote band ---------- */
.band { background: var(--ivory); text-align: center; padding: 7rem var(--pad); }
.band-quote { font-family: var(--serif); font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.3; max-width: 960px; margin: 0 auto; }
.band-sig { margin-top: 1.6rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-dark); }

.home-story { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 7rem); padding: 7rem var(--pad); background: var(--ivory); }
.story-photo { position: relative; }
.story-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; }
.story-photo::before { content: ''; position: absolute; top: -1.2rem; left: -1.2rem; right: 1.2rem; bottom: 2.8rem; border: 1px solid var(--accent); z-index: -1; }
.story-photo figcaption { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: .8rem; }
.story-text { max-width: 600px; }
.story-text > p:not(.eyebrow) { color: var(--muted); }
.story-sig { margin-top: 2.4rem !important; padding-top: 2rem; border-top: 1px solid rgba(15,15,15,.12); font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--ink) !important; }
.story-sig span { display: block; margin-top: .9rem; font-family: var(--sans); font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-dark); }
.home-story { isolation: isolate; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; background: var(--ink); color: var(--white); padding: 7rem var(--pad); }
.contact-info > p { color: rgba(255,255,255,.7); }
.contact-list { list-style: none; margin-top: 2.4rem; }
.contact-list li { padding: 1.1rem 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 1.5rem; }
.contact-list li span { width: 110px; flex-shrink: 0; font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); padding-top: .25rem; }
.contact-list a { text-decoration: none; }
.contact-form input, .contact-form select, .contact-form textarea { color: var(--white); border-bottom-color: rgba(255,255,255,.3); }
.contact-form ::placeholder { color: rgba(255,255,255,.55); }
.contact-form select { color: rgba(255,255,255,.55); }
.contact-form select option { color: var(--ink); }
.split-form ::placeholder { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: #0c0c0c; color: rgba(255,255,255,.6); padding: 4rem var(--pad); display: flex; justify-content: space-between; gap: 3rem; flex-wrap: wrap; font-size: .78rem; line-height: 1.8; }
.footer-brand { display: flex; flex-direction: column; color: var(--white); }
.footer-legal { text-align: right; }
.footer-legal p + p { margin-top: .8rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
.hero .reveal, .hero-inner { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-height: 820px) { .scroll-cue { display: none; } .hero { padding: 7rem 0 3.5rem; } .hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); margin-bottom: 1.2rem; } .hero-lede { margin-bottom: 1.8rem; } }
@media (max-width: 820px) { .scroll-cue { display: none; } }
@media (max-width: 1000px) {
  .hood-grid { grid-template-columns: repeat(2, 1fr); }
  .about, .split, .contact, .home-story { grid-template-columns: 1fr; }
  .story-photo { max-width: 520px; }
  .split-buy .split-img { order: -1; }
  .about-photo { min-height: 560px; }
  .contact { gap: 3rem; }
}
@media (max-width: 820px) {
  .menu-btn { display: block; z-index: 60; }
  .nav { position: fixed; inset: 0; background: var(--ink); flex-direction: column; justify-content: center; gap: 2.2rem; opacity: 0; pointer-events: none; transition: opacity .35s; }
  .nav a { font-size: .9rem; }
  .menu-open .nav { opacity: 1; pointer-events: auto; }
  .menu-open .menu-btn span:first-child { top: 9px; transform: rotate(45deg); }
  .menu-open .menu-btn span:last-child { bottom: 10px; transform: rotate(-45deg); }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 3rem var(--pad); }
  .hood-grid { grid-template-columns: 1fr; }
  .hood { min-height: 380px; }
  .hood-overlay p { max-height: none; opacity: 1; margin-bottom: 1rem; }
  form .row { grid-template-columns: 1fr; gap: 0; }
  .footer-legal { text-align: left; }
  .brand-name { font-size: 1.4rem; }
}
