/* RJR Realty — site styles */
:root {
  --ink: #14161a;
  --ink-2: #2a2e35;
  --muted: #6b6f76;
  --stone: #f4f1ec;
  --stone-2: #e8e2d8;
  --line: #d9d2c5;
  --brass: #a67c45;
  --brass-dark: #8a6535;
  --white: #fff;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.eyebrow {
  font: 600 .75rem/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.2rem;
}
.eyebrow--light { color: #d4b27f; }

/* Buttons & links */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 28px;
  background: var(--ink); color: var(--white);
  border: 1px solid var(--ink); border-radius: var(--radius);
  font: 500 .95rem/1 var(--sans); letter-spacing: .02em;
  text-decoration: none; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--brass-dark); border-color: var(--brass-dark); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.6); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--light:hover { background: var(--brass); color: var(--white); border-color: var(--brass); }
.btn--small { min-height: 40px; padding: 0 20px; }
.link {
  font-weight: 500; font-size: .95rem; text-decoration: none;
  border-bottom: 1px solid var(--brass); padding-bottom: 2px;
}
.link::after { content: " \2192"; }
.link:hover { color: var(--brass-dark); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  color: var(--white);
  transition: background .3s, color .3s, box-shadow .3s;
}
.nav.is-solid, .nav.is-open { background: var(--stone); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: .4rem; text-decoration: none; }
.brand__mark { font: 500 1.5rem/1 var(--serif); letter-spacing: .06em; }
.brand__name { font: 500 .78rem/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; white-space: nowrap; }
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu a:not(.btn) { text-decoration: none; font-size: .92rem; font-weight: 500; opacity: .9; }
.nav__menu a:not(.btn):hover { opacity: 1; color: var(--brass); }
.nav .btn { background: transparent; color: inherit; border-color: currentColor; }
.nav .btn:hover { background: var(--brass); border-color: var(--brass); color: var(--white); }
.nav__toggle { display: none; }

/* Hero */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 65%; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.15) 35%, rgba(20,22,26,.85) 100%);
}
.hero__content { position: relative; padding-top: calc(var(--nav-h) + 48px); padding-bottom: clamp(56px, 10vh, 112px); width: 100%; }
.hero h1 { max-width: 15ch; }
.hero .lede { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.hero .eyebrow { color: #d4b27f; }
.hero .btn:not(.btn--ghost) { background: var(--brass); border-color: var(--brass); }
.hero .btn:not(.btn--ghost):hover { background: var(--brass-dark); border-color: var(--brass-dark); }

@media (min-width: 1025px) {
  .hero { align-items: center; }
  .hero__media { left: 52%; }
  .hero__media::after { background: linear-gradient(90deg, var(--ink) 0%, rgba(20,22,26,0) 30%), linear-gradient(180deg, rgba(20,22,26,.7) 0%, rgba(20,22,26,0) 22%); }
  .hero__content { padding-bottom: 96px; }
  .hero__content > * { max-width: 46%; }
}

/* Stats */
.stats { background: var(--ink); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stats__grid div { padding: 28px 24px 28px 0; border-right: 1px solid rgba(255,255,255,.12); }
.stats__grid div + div { padding-left: 24px; }
.stats__grid div:last-child { border-right: 0; }
.stats strong { display: block; font: 300 1.7rem/1.2 var(--serif); }
.stats span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section__head { max-width: 44rem; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--muted); }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card { background: var(--white); display: flex; flex-direction: column; }
.card__img { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-2); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card__img img { transform: scale(1.04); }
.card__body { padding: 22px 22px 26px; display: flex; flex-direction: column; flex: 1; }
.card__body p { color: var(--muted); font-size: .95rem; }
.card__body .link { margin-top: auto; align-self: flex-start; color: var(--ink); }
.card__tag { font-size: .72rem !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass) !important; margin-bottom: .6rem; }

/* Feature */
.feature { background: var(--ink); color: var(--white); padding: clamp(72px, 10vw, 128px) 0; }
.feature__grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.feature__text p { color: rgba(255,255,255,.78); }
.facts { list-style: none; padding: 0; margin: 2rem 0 2.5rem; border-top: 1px solid rgba(255,255,255,.14); }
.facts li { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.14); font-size: .95rem; }
.facts span { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #d4b27f; padding-top: 3px; }

/* About */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.about__intro p:last-child { color: var(--ink-2); }
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 4rem 1fr; column-gap: 1rem; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pillar__num { grid-row: span 2; font: 300 1.4rem/1.3 var(--serif); color: var(--brass); }
.pillar h3 { margin-bottom: .3rem; }
.pillar p { margin: 0; color: var(--muted); }

/* Neighborhood band */
.band { background: var(--stone-2); padding: clamp(64px, 9vw, 112px) 0; }
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.band__grid p { color: var(--ink-2); }
.near { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.near li { background: var(--stone); padding: 22px; }
.near strong { display: block; font: 400 1.15rem/1.3 var(--serif); margin-bottom: .3rem; }
.near span { font-size: .9rem; color: var(--muted); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); }
.details { margin: 2rem 0 0; }
.details div { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; padding: 14px 0; border-top: 1px solid var(--line); }
.details dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); padding-top: 4px; }
.details dd { margin: 0; }
.details a { text-decoration: none; border-bottom: 1px solid var(--line); }
.details a:hover { border-color: var(--brass); }
.form { background: var(--white); padding: clamp(24px, 4vw, 44px); display: grid; gap: 18px; align-content: start; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.form em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--muted); }
.form input, .form select, .form textarea {
  width: 100%; font: 400 1rem/1.4 var(--sans); color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--stone);
  text-transform: none; letter-spacing: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 0; border-color: var(--brass); background: var(--white); }
.form textarea { resize: vertical; min-height: 130px; }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: wait; }
.form__status { margin: 0; font-size: .95rem; min-height: 1.5em; }
.form__status.is-ok { color: #2f6b3a; }
.form__status.is-error { color: #a23b2a; }
.form .is-invalid { border-color: #a23b2a; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.map { margin-top: clamp(48px, 7vw, 80px); }
.map iframe { width: 100%; height: 380px; border: 0; filter: grayscale(1) contrast(1.05); display: block; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 48px 0; font-size: .9rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer p { margin: 0; }
.brand--light { color: var(--white); }
.footer a:not(.brand) { color: var(--white); }

.credit { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); }
.credit a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: rgba(255,255,255,.55); font-size: .8rem; }
.credit strong { font: 600 .9rem/1 var(--sans); color: var(--white); letter-spacing: -.01em; }
.credit strong b { color: #35C1E8; font-weight: 600; }
.credit a:hover strong { color: #35C1E8; }

/* Simple content page (privacy, 404) */
main.page { padding: calc(var(--nav-h) + 64px) 0 96px; }
main.page .wrap { max-width: 760px; }
main.page h2 { font-size: 1.6rem; margin-top: 2.2rem; }
main.page p { color: var(--ink-2); }

/* Responsive */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .about, .contact__grid, .band__grid { grid-template-columns: 1fr; }
  .feature__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .nav__toggle {
    display: grid; place-content: center; gap: 7px;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; color: inherit; cursor: pointer;
  }
  .nav__toggle span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform .25s; }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto; background: var(--stone); color: var(--ink);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px;
    box-shadow: 0 12px 24px rgba(0,0,0,.08);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .nav.is-open .nav__menu { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .nav__menu a:not(.btn) { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav__menu .btn { margin-top: 20px; min-height: 48px; }
  .hero { min-height: 92svh; }
  .hero__media img { object-position: 50% 30%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.2) 22%, rgba(20,22,26,.85) 50%, rgba(20,22,26,.96) 100%); }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid div, .stats__grid div + div { padding: 20px 16px 20px 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats__grid div:nth-child(even) { padding-left: 16px; border-left: 1px solid rgba(255,255,255,.12); }
  .stats__grid div:nth-last-child(-n+2) { border-bottom: 0; }
  .stats strong { font-size: 1.35rem; }
  .feature__grid { grid-template-columns: 1fr; }
  .feature__media img { aspect-ratio: 4 / 3; object-position: 50% 70%; }
  .form__row { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .map iframe { height: 300px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .card__img { aspect-ratio: 4 / 3; }
  .near { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .form .btn { justify-self: stretch; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
