/* Silver Real Estate — brand tokens from the Silver & Co. identity */
:root {
  --ink: #1b1a18;
  --ink-2: #2d2b2b;
  --paper: #faf9f5;
  --cream: #ece7de;
  --white: #ffffff;
  --gold: #e1ad66;        /* on dark */
  --gold-deep: #b68235;   /* on light */
  --muted: #7a7672;
  --muted-light: #b5b0a8;
  --line: rgba(27, 26, 24, 0.12);
  --line-light: rgba(236, 231, 222, 0.16);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --body: "Lora", Georgia, serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); letter-spacing: -0.005em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--cream); }

.eyebrow {
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 14px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 0.9rem; font-weight: 500;
  letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2.1em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--cream); }
.btn-ghost { border-color: rgba(236,231,222,.5); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--gold-deep); }

.link-arrow {
  font-family: var(--serif); font-size: 0.9rem; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--gold-deep);
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow span { display: inline-block; transition: transform .3s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--white); box-shadow: 0 1px 0 var(--line);
  transition: box-shadow .4s var(--ease);
}
.site-header.is-solid { box-shadow: 0 8px 30px rgba(27,26,24,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 96px; }
/* Original logo file, shown large enough for its gold rule to render */
.brand { display: block; width: 300px; flex-shrink: 0; }
.brand img { width: 100%; height: auto; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  font-family: var(--serif); font-size: 0.88rem; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; color: var(--ink); position: relative; padding: 6px 0;
  transition: color .3s var(--ease);
}
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold-deep);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.nav .nav-cta { border: 1px solid var(--gold-deep); color: var(--gold-deep); padding: 10px 22px; }
.nav .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 10px; right: 10px; height: 1px; background: var(--ink); transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 26px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: var(--cream); background: var(--ink); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background-size: cover; background-position: center 40%; animation: heroZoom 18s var(--ease) both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,26,24,.55) 0%, rgba(27,26,24,.25) 35%, rgba(27,26,24,.85) 100%); }
.hero-content { position: relative; padding-top: 180px; padding-bottom: clamp(64px, 10vh, 110px); }
.hero h1 { font-size: clamp(3rem, 7.5vw, 6.4rem); font-weight: 400; letter-spacing: -0.01em; margin-bottom: 1.6rem; }
.hero h1 em { font-style: italic; color: var(--gold); }
.lede { max-width: 540px; font-size: 1.08rem; color: rgba(236,231,222,.86); margin-bottom: 2.4rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.search { position: relative; margin-bottom: -56px; z-index: 5; }
.search-tabs { display: flex; gap: 2px; }
.search-tabs button {
  font-family: var(--serif); font-size: 0.85rem; letter-spacing: 0.24em; text-transform: uppercase;
  background: rgba(27,26,24,.72); color: var(--cream); border: 0; padding: 14px 26px; cursor: pointer;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.search-tabs button.is-active { background: var(--white); color: var(--ink); }
.search-fields {
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0;
  background: var(--white); color: var(--ink); box-shadow: 0 24px 60px rgba(27,26,24,.18);
}
.search-fields label { display: block; padding: 18px 26px; border-right: 1px solid var(--line); }
.search-fields label span, .contact-form label span {
  display: block; font-family: var(--serif); font-size: 0.75rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px;
}
.search-fields select {
  width: 100%; border: 0; background: transparent; font-family: var(--body); font-size: 1rem; color: var(--ink);
  padding: 4px 0; appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold-deep) 50%), linear-gradient(135deg, var(--gold-deep) 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.search-fields select:focus { outline: none; }
.search-go { padding: 0 44px; }

/* ---------- Intro ---------- */
.intro-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); align-items: start; }
.intro-copy p { color: #4a4744; font-size: 1.05rem; }
.intro-copy .link-arrow { display: inline-block; margin-top: 1rem; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: clamp(64px, 9vw, 110px); border-top: 1px solid var(--line); }
.pillar { padding: 44px 40px 0 0; }
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar-num { font-family: var(--serif); color: var(--gold-deep); font-size: 1.1rem; letter-spacing: 0.2em; }
.pillar h3 { margin: 14px 0 12px; font-size: 1.9rem; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Section head ---------- */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: clamp(40px, 6vw, 64px); flex-wrap: wrap; }
.section-sub { max-width: 400px; color: var(--muted-light); margin: 0; }

/* ---------- Properties ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--serif); font-size: 0.8rem; letter-spacing: 0.22em; text-transform: uppercase;
  background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 10px 18px; cursor: pointer;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: var(--gold-deep); }
.chip.is-active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.card { background: var(--white); cursor: pointer; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
.card:hover { box-shadow: 0 24px 50px rgba(27,26,24,.1); transform: translateY(-4px); }
.card[hidden] { display: none; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.tag {
  position: absolute; top: 16px; left: 16px; background: var(--white); color: var(--ink);
  font-family: var(--serif); font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase; padding: 6px 12px;
}
.card-body { padding: 26px 28px 30px; }
.card-area { font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 8px; }
.card h3 { font-size: 1.7rem; margin-bottom: 10px; }
.card-meta { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.card-price { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.card-price small { font-size: 0.9rem; color: var(--muted); font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 40px 0 0; }
.empty a { color: var(--gold-deep); }

/* ---------- Communities ---------- */
.areas-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 280px); gap: 16px; }
.area {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px; text-decoration: none; color: var(--cream); background: var(--ink-2);
}
.area::before { content: ""; position: absolute; inset: 0; background: var(--img) center / cover; transition: transform 1.2s var(--ease); }
.area::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,26,24,0) 35%, rgba(27,26,24,.85)); }
.area:hover::before { transform: scale(1.06); }
.area > * { position: relative; z-index: 1; }
.area-lg { grid-column: span 2; grid-row: span 2; }
.area-name { font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.area-lg .area-name { font-size: 2.8rem; }
.area-note { font-size: 0.9rem; color: rgba(236,231,222,.75); margin-top: 6px; }
.area-name::after { content: ""; display: block; width: 0; height: 1px; background: var(--gold); margin-top: 10px; transition: width .5s var(--ease); }
.area:hover .area-name::after { width: 56px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 44px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); }
.service:hover { background: var(--paper); }
.service h3 { font-size: 1.8rem; margin-bottom: 16px; }
.service h3::before { content: ""; display: block; width: 28px; height: 1px; background: var(--gold-deep); margin-bottom: 22px; }
.service p { color: var(--muted); margin: 0; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: center; }
.about-mark { background: var(--white); aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px solid var(--line); }
.about-mark img { width: 38%; }
.about h2 { margin-bottom: 1.6rem; }
.about p { color: #4a4744; font-size: 1.05rem; }
.about-sign { display: flex; align-items: center; gap: 16px; margin-top: 2rem; font-family: var(--serif); letter-spacing: 0.3em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }
.about-sign .rule { width: 48px; height: 1px; background: var(--gold-deep); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 8vw, 120px); }
.contact h2 { margin-bottom: 1.4rem; }
.contact-lede { color: var(--muted-light); max-width: 440px; margin-bottom: 2.6rem; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: grid; grid-template-columns: 130px 1fr; padding: 16px 0; border-top: 1px solid var(--line-light); }
.contact-list li span { font-family: var(--serif); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--gold); }

.contact-form { display: grid; gap: 22px; align-content: start; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form label span { color: var(--muted-light); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-light);
  color: var(--cream); font-family: var(--body); font-size: 1rem; padding: 10px 0; border-radius: 0;
  transition: border-color .3s var(--ease);
}
.contact-form select { appearance: none; cursor: pointer; }
.contact-form select option { color: var(--ink); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }
.contact-form .is-invalid { border-color: #e0806f; }
.contact-form .btn { justify-self: start; margin-top: 8px; }
.form-note { min-height: 1.5em; margin: 0; color: var(--gold); font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-light); border-top: 1px solid var(--line-light); padding: 80px 0 32px; }
.footer-logo { width: min(560px, 100%); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 64px auto 56px; text-align: center; }
.footer-cols h4 { font-size: 0.8rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.footer-cols a, .footer-cols span { display: block; text-decoration: none; margin-bottom: 8px; font-size: 0.95rem; }
.footer-cols a:hover { color: var(--cream); }
.footer-legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line-light); font-size: 0.82rem; color: #8a857e; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-media { animation: none; }
  * { transition-duration: 0s !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav { gap: 22px; }
  .nav a { letter-spacing: 0.16em; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: 360px repeat(2, 240px); }
  .area-lg { grid-column: span 2; grid-row: span 1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; background: var(--white); flex-direction: column; justify-content: center; gap: 30px;
    opacity: 0; pointer-events: none; transition: opacity .4s var(--ease);
  }
  .nav a { font-size: 1.1rem; }
  .site-header.nav-open .nav { opacity: 1; pointer-events: auto; }
  .site-header.nav-open .brand, .site-header.nav-open .nav-toggle { position: relative; z-index: 2; }
  .site-header.nav-open .nav-toggle span { top: 22px; }
  .site-header.nav-open .nav-toggle span:first-child { transform: rotate(45deg); }
  .site-header.nav-open .nav-toggle span:last-child { transform: rotate(-45deg); }

  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields label:nth-child(2) { border-right: 0; }
  .search-fields label:nth-child(3) { border-top: 1px solid var(--line); }
  .search-fields .search-go { border-top: 1px solid var(--line); padding: 18px; }

  .intro-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .about-mark { aspect-ratio: 16 / 10; max-width: 520px; }
  .about-mark img { width: 18%; }
}

@media (max-width: 600px) {
  .header-inner { height: 76px; }
  .brand { width: 230px; }
  .hero-content { padding-top: 140px; }
  .search { margin-bottom: -40px; }
  .search-tabs button { flex: 1; padding: 12px 8px; letter-spacing: 0.18em; }
  .search-fields { grid-template-columns: 1fr; }
  .search-fields label { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .search-fields label:nth-child(3) { border-top: 0; }
  .search-fields .search-go { border-top: 0; }
  .grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 220px; }
  .area-lg { grid-column: auto; }
  .area-lg .area-name { font-size: 2.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 36px 28px; }
  .contact-form .row { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; text-align: center; align-items: center; }
}
