:root {
  --navy: #0a2240;
  --navy-2: #0f2b52;
  --sage: #c9d4d1;
  --sage-light: #eef2f1;
  --teal: #39a0a5;
  --teal-dark: #2b7f83;
  --ink: #2b2f33;
  --muted: #5c615a;
  --line: #dbe1df;
  --white: #ffffff;
  --radius: 6px;
  --max: 1180px;
  --font: 'Mulish', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3 { color: var(--navy); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--sage-light); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: .6em; }

.btn {
  display: inline-block; padding: 13px 26px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; font-size: .95rem; letter-spacing: .02em;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s; cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }


/* Header */
.site-header { background: var(--navy); color: var(--white); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--white); }
.brand img { height: 34px; width: auto; }
.brand-name { font-weight: 700; font-size: 1.05rem; border-left: 1px solid rgba(255,255,255,.35); padding-left: 14px; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--white); text-decoration: none; padding: 8px 12px; border-radius: var(--radius); font-size: .95rem; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); }
.nav .btn { margin-left: 8px; padding: 9px 18px; }
.menu-toggle { display: none; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }


/* Listings */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-img { aspect-ratio: 3/2; background: var(--sage) center/cover; position: relative; display: flex; align-items: center; justify-content: center; color: var(--navy); }
.card-img { overflow: hidden; }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-img .placeholder { opacity: .5; }
.badge { position: absolute; top: 12px; left: 12px; background: var(--teal); color: var(--white); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 3px; }
.badge.pending { background: #DD6420; }
.badge.sold { background: var(--navy); }
.card-body { padding: 18px 20px 20px; }
.price { font-size: 1.45rem; font-weight: 800; color: var(--navy); margin: 0; }
.addr { margin: 2px 0 10px; color: var(--muted); }
.specs { display: flex; gap: 16px; font-size: .9rem; color: var(--ink); font-weight: 600; flex-wrap: wrap; }


.page-head { background: var(--navy); color: var(--white); padding: 56px 0 48px; }
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { margin: 8px 0 0; opacity: .85; }

/* Footer */
.site-footer { background: #081a31; color: rgba(255,255,255,.8); padding: 56px 0 28px; font-size: .92rem; }
.site-footer a { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }
.site-footer h3 { color: var(--white); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; }
.footer-logos { display: flex; align-items: center; gap: 20px; margin-top: 18px; flex-wrap: wrap; }
.footer-logos img { height: 52px; width: auto; }
.footer-logos img.wallace { height: 70px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; font-size: .8rem; color: rgba(255,255,255,.6); }
.footer-legal a { color: rgba(255,255,255,.75); }
/* Listings directory and property pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a:focus-visible, summary:focus-visible { outline: 3px solid #bd6326; outline-offset: 4px; }
.skip {
  position: fixed; top: 10px; left: 10px; z-index: 100; padding: 8px 14px;
  color: var(--navy); background: var(--white); transform: translateY(-150%);
}
.skip:focus { transform: none; }

.mobile-menu { display: none; }
.mobile-menu summary { cursor: pointer; list-style: none; padding: 8px; display: flex; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu svg { width: 28px; height: 28px; }
.nav .btn-primary { background: var(--teal); color: var(--navy); }
.nav .btn-primary:hover { background: var(--sage); color: var(--navy); }
.btn-primary { color: var(--navy); }
.btn-primary:hover { background: var(--sage); }
@media (max-width: 900px) {
  .brand-name { display: none; }
  .desktop-nav { display: none; }
  .mobile-menu { display: block; }
  .mobile-menu .nav {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: var(--navy); padding: 8px 20px 20px;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .mobile-menu .nav a { padding: 14px 4px; }
  .mobile-menu .nav .btn { margin: 6px 0 0; text-align: center; }
}

.directory-nav, .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.directory-nav { margin-top: 20px; }
.directory-nav .btn { padding: 7px 17px; }
.listing-group { scroll-margin-top: 76px; }
.listing-group .grid { margin-top: 24px; }
.grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card-link { display: block; height: 100%; color: var(--ink); text-decoration: none; }
.card-link:focus-visible { outline-offset: -4px; }
.card-link:hover .card-more, .card-link:focus-visible .card-more { text-decoration: underline; }
.badge { background: var(--teal-dark); letter-spacing: .04em; }
.badge.pending { background: #a64716; }
.card .addr { margin: 6px 0 0; color: var(--navy); overflow-wrap: anywhere; }
.locality { color: var(--muted); margin: 2px 0 10px; }
.card-more { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-weight: 700; }
.empty { margin: 0; color: var(--muted); }

.property { padding-block: 32px 72px; }
.back { display: inline-block; margin-bottom: 20px; font-weight: 700; }
.property-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 24px; }
.property-visual {
  position: relative; aspect-ratio: 3 / 2; display: grid; place-items: center;
  overflow: hidden; background: var(--sage); color: var(--navy); border-radius: var(--radius);
}
.property-visual .placeholder { opacity: .5; }
.property-visual a, .property-visual img { width: 100%; height: 100%; }
.property-visual a:focus-visible { outline-offset: -4px; }
.property-visual img, .gallery img { object-fit: cover; }
.property-summary { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sage-light); }
.property-summary .price { margin-bottom: 14px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 106px), 1fr)); gap: 12px; margin: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; color: var(--navy); font-weight: 800; }
.actions { margin-top: 22px; }
.actions .btn { padding: 9px 14px; }
.copy, .gallery-section { margin-top: 40px; }
.copy { max-width: 760px; }
.copy p { white-space: pre-line; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr)); gap: 16px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--radius); }
.demo { padding: 10px 14px; background: var(--sage-light); border-left: 3px solid var(--teal-dark); }
@media (max-width: 760px) {
  .section { padding-block: 42px; }
  .page-head { padding-block: 40px; }
  .property-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
