/* Rock Crest Properties — shared styles */

:root {
  --ink:        #12211c;
  --forest:     #1d3830;
  --forest-mid: #2c5445;
  --sage:       #7d968a;
  --sage-light: #b9c8bf;
  --sand:       #e7e0d4;
  --sand-mid:   #d5cabb;
  --cream:      #faf8f4;
  --white:      #ffffff;
  --brass:      #9d7c39;
  --brass-mid:  #bd9950;
  --danger:     #9b3226;
  --text:       #23302b;
  --text-mute:  #63736c;
  --line:       #e2ddd3;

  --nav-h: 74px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(18,33,28,.07), 0 1px 2px rgba(18,33,28,.05);
  --shadow-md: 0 8px 24px rgba(18,33,28,.09), 0 2px 6px rgba(18,33,28,.05);
  --shadow-lg: 0 24px 60px rgba(18,33,28,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.015em;
  color: var(--ink);
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.85rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p  { margin: 0 0 1.1em; }
a  { color: var(--forest-mid); text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }

.wrap { width: min(1180px, 100% - 3rem); margin-inline: auto; }
.wrap-narrow { width: min(820px, 100% - 3rem); margin-inline: auto; }
@media (max-width: 640px) { .wrap, .wrap-narrow { width: min(1180px, 100% - 2rem); } }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.lede { font-size: 1.15rem; color: var(--text-mute); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Inter', sans-serif;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  padding: .9rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: var(--cream); }
.btn-primary:hover { background: var(--forest-mid); box-shadow: var(--shadow-md); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-mid); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--sand-mid); }
.btn-ghost:hover { border-color: var(--forest); background: rgba(29,56,48,.05); }
.btn-light { background: rgba(255,255,255,.94); color: var(--ink); }
.btn-light:hover { background: #fff; box-shadow: var(--shadow-md); }
.btn-lg { padding: 1.05rem 2.4rem; font-size: 1rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner { width: min(1180px, 100% - 3rem); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav.solid, .nav.scrolled { background: rgba(250,248,244,.93); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: 'Fraunces', serif; font-size: 1.12rem; font-weight: 600; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute); font-weight: 500; }
.nav.over-hero:not(.scrolled) .brand-name { color: #fff; }
.nav.over-hero:not(.scrolled) .brand-sub { color: rgba(255,255,255,.75); }
.nav.over-hero:not(.scrolled) .nav-links a { color: rgba(255,255,255,.92); }
.nav.over-hero:not(.scrolled) .nav-toggle span { background: #fff; }

.nav-links { display: flex; align-items: center; gap: 2.1rem; }
.nav-links a {
  font-size: .92rem; font-weight: 500; color: var(--text); text-decoration: none;
  position: relative; transition: color .2s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: currentColor; transition: width .3s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links .btn { padding: .62rem 1.3rem; font-size: .88rem; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: .5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .95rem 0; border-bottom: 1px solid var(--line); color: var(--text) !important; }
  .nav-links .btn { margin-top: 1rem; border-bottom: 0; justify-content: center; padding: .9rem 1.3rem; }
  .nav-links a:not(.btn)::after { display: none; }
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4.5rem 0 2.5rem; margin-top: 6rem; }
.footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .76rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 600; margin-bottom: 1.1rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .93rem; }
.footer .brand-name { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.13); padding-top: 1.8rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .82rem; color: rgba(255,255,255,.5);
}
.eho { display: flex; align-items: center; gap: .6rem; font-size: .82rem; }
.eho svg { flex: none; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2.2rem; } }

/* ---------- Cards / shared bits ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: 100px;
}
.badge-available { background: #e4efe6; color: #2b5c39; }
.badge-soon { background: var(--sand); color: var(--brass); }
.badge-rented { background: #eceae6; color: var(--text-mute); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: #fff; padding: .8rem 1.2rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }
