/* Realty South Property Management — public site */

:root {
  --paper: #ffffff;
  --paper-deep: #EEF1FB;
  --ink: #14161F;
  --muted: #5A6170;
  --line: rgba(31, 42, 171, 0.14);
  --line-strong: rgba(31, 42, 171, 0.28);
  --blue: #1F2AAB;
  --blue-dark: #161F80;
  --blue-wash: #F3F5FC;
  --white: #ffffff;
  --serif: "Fraunces", "Iowan Old Style", Palatino, "Palatino Linotype", serif;
  --sans: "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --measure: 1120px;
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-optical-sizing: auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: color-mix(in srgb, var(--blue) 45%, transparent);
}

a:hover {
  color: var(--blue-dark);
  text-decoration-color: var(--blue-dark);
}

a:focus-visible,
button:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--white);
  padding: 0.5rem 0.85rem;
  z-index: 100;
}

.skip:focus {
  top: 0.75rem;
}

.wrap {
  width: min(var(--measure), calc(100% - 2.5rem));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
  width: min(1240px, calc(100% - 2rem));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}

.brand img {
  height: 44px;
  width: auto;
  max-width: 186px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-toggle-label {
  display: none;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 0.4rem 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--blue);
}

.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--blue);
}

.site-nav .login {
  color: var(--blue);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  padding: 0.38rem 0.8rem;
  letter-spacing: 0.02em;
}

.site-nav .login:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

@media (max-width: 799px) {
  .nav-toggle-label {
    display: inline-flex;
    z-index: 2;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.4rem 1.25rem 1.1rem;
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
  }

  .site-nav .login {
    margin-top: 0.5rem;
    width: auto;
    border-top: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  }

  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
}

/* ---------- Type ---------- */

.kicker {
  margin: 0 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.022em;
  margin: 0;
}

h1 {
  font-size: clamp(2.15rem, 4.6vw, 3.85rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

h3 {
  font-size: 1.28rem;
}

.lede {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 38rem;
  margin: 0.9rem 0 0;
}

.prose {
  max-width: 38rem;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.prose p:last-child {
  margin-bottom: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid var(--blue);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.btn:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--blue);
}

.btn-ghost:hover {
  background: var(--blue);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.4rem;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 36rem;
  height: calc(100vh - var(--header-h));
  max-height: 46rem;
  overflow: hidden;
  color: var(--white);
  background: #161F80;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 22, 80, 0.22) 0%, rgba(16, 22, 80, 0.16) 40%, rgba(16, 22, 80, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 3.4rem;
  width: min(1240px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.hero .kicker {
  color: color-mix(in srgb, var(--white) 88%, var(--blue));
}

.hero h1 {
  max-width: 13.5em;
  color: var(--white);
  font-weight: 500;
  text-wrap: balance;
}

.hero h1 em {
  font-style: italic;
  font-weight: 400;
}

/* ---------- Sections ---------- */

.section {
  padding: 4.5rem 0 5rem;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 2.4rem;
}

.section-head h2 {
  max-width: 18ch;
}

.split-head {
  display: grid;
  gap: 1rem;
}

@media (min-width: 800px) {
  .split-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 3rem;
  }

  .split-head .lede {
    margin: 0;
    justify-self: end;
  }
}

/* ---------- Listing cards ---------- */

.cards {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 760px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  background: transparent;
  min-width: 0;
}

.card:hover {
  color: inherit;
  text-decoration: none;
}

.card-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.card:hover .card-media img {
  transform: scale(1.04);
}

.card-body {
  padding: 1.05rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.card-body .kicker {
  margin: 0 0 0.15rem;
  font-size: 0.68rem;
}

.card-body h3 {
  font-size: 1.22rem;
  letter-spacing: -0.02em;
}

.card-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.price {
  margin: 0.45rem 0 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.price span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- Owners band ---------- */

.band {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--blue-wash);
}

.band-inner {
  display: grid;
  gap: 1.5rem;
  padding: 4rem 0;
}

@media (min-width: 800px) {
  .band-inner {
    grid-template-columns: 1.3fr 0.9fr;
    align-items: end;
    gap: 4rem;
    padding: 4.5rem 0;
  }
}

.band h2 {
  max-width: 16ch;
}

.band .lede {
  max-width: 32rem;
}

/* ---------- Page intro (inner pages) ---------- */

.page-intro {
  padding: 3.4rem 0 1.2rem;
}

.page-intro h1 {
  max-width: 16ch;
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* ---------- Listing detail ---------- */

.detail-hero {
  position: relative;
  height: min(68vh, 38rem);
  min-height: 22rem;
  overflow: hidden;
  background: #161F80;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.detail-layout {
  display: grid;
  gap: 2.5rem;
  padding: 2.6rem 0 3.5rem;
}

@media (min-width: 880px) {
  .detail-layout {
    grid-template-columns: 1.35fr 0.8fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.facts {
  border-top: 1px solid var(--line);
  padding-top: 0.2rem;
}

.facts dl {
  margin: 0;
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.55rem 1rem;
  padding: 0.9rem 0 0.2rem;
}

.facts dt {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 0.35rem;
}

.facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  padding: 0.2rem 0;
  border-bottom: 1px solid var(--line);
}

.facts dd:last-of-type {
  border-bottom: 0;
}

.sticky-aside {
  position: relative;
}

@media (min-width: 880px) {
  .sticky-aside {
    position: sticky;
    top: calc(var(--header-h) + 1.25rem);
  }
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding-bottom: 4.5rem;
}

.gallery figure {
  margin: 0;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}

.gallery figure:first-child {
  grid-column: 1 / -1;
}

.gallery figure:first-child img {
  aspect-ratio: 16 / 9;
}

@media (min-width: 800px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .gallery figure:first-child {
    grid-column: 1 / 3;
  }

  .gallery figure:first-child img {
    aspect-ratio: 4 / 3;
    min-height: 100%;
  }
}

/* ---------- Owners page ---------- */

.owners-grid {
  display: grid;
  gap: 2.2rem;
  padding-bottom: 1rem;
}

@media (min-width: 800px) {
  .owners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3.5rem;
  }
}

.panel {
  padding: 1.8rem 0 0.4rem;
  border-top: 1px solid var(--line);
}

.panel h2,
.panel h3 {
  margin-bottom: 0.85rem;
}

.panel p {
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.panel p:last-child {
  margin-bottom: 0;
}

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.why-list li {
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}

.why-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.why-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.why-list span {
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  padding: 0.5rem 0 4.5rem;
}

@media (min-width: 800px) {
  .contact-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}

.contact-block {
  margin: 0 0 1.75rem;
}

.contact-block .label {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-block a,
.contact-block p {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--blue);
  text-decoration: none;
  margin: 0;
}

.contact-block a:hover {
  color: var(--blue-dark);
}

.note {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 28rem;
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.4rem;
  background: var(--white);
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 500;
  margin: 0 0 0.45rem;
  color: var(--blue);
}

.site-footer p,
.site-footer a {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--blue);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.foot-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.55rem;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-media img { transition: none; }
  .card:hover .card-media img { transform: none; }
}

/* Spacing helpers (no inline styles; CSP forbids them) */
.section-tight {
  padding-top: 2.6rem;
}

.follow-grid {
  padding-top: 1.6rem;
}

.detail-copy {
  margin-top: 1.6rem;
}

.follow-lede {
  margin-top: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.prose.tight { padding-top: 0; }
.cta-row.inset { padding-bottom: 0; padding-top: 1rem; }

.prose-gap { margin-top: 1.6rem; }
.section-cta { padding-top: 2rem; }


/* Aliases so a mixed markup still renders */
.logo {
  display: flex;
  align-items: center;
  padding: 0;
  line-height: 0;
  flex-shrink: 0;
  text-decoration: none;
}
.logo img {
  height: 44px;
  width: auto;
  max-width: 186px;
}
img.detail-hero {
  width: 100%;
  height: min(68vh, 38rem);
  min-height: 22rem;
  object-fit: cover;
  object-position: center;
  display: block;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.gallery > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  background: var(--paper-deep);
}
.wrap .gallery .kicker { margin-bottom: 0.8rem; }
