/* Design tokens, reset, typography, buttons, header, page hero, cards (above-the-fold styles). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --navy: #1D4463;
  --navy-2: #163853;
  --deep: #0D2133;
  --deep-2: #0A1A29;
  --gold: #A88E00;
  --gold-2: #C9AB12;
  --gold-soft: #F7F0CC;
  --ink: #132230;
  --text: #3A4652;
  --muted: #6A7684;
  --line: #E4E8EE;
  --line-2: #D5DCE5;
  --bg: #fff;
  --soft: #F4F6F9;
  --soft-2: #EBEFF4;
  --r: 18px;
  --r-sm: 12px;
  --sh: 0 1px 2px rgba(13,33,51,.05),0 8px 24px rgba(13,33,51,.07);
  --sh-lg: 0 18px 50px rgba(13,33,51,.16);
  --f: "Plus Jakarta Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --wrap: 1360px;
  --text-w: 760px;
  --gutter: clamp(18px,3vw,40px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  font: 400 16.5px/1.7 var(--f);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--navy);
  text-decoration: none;
  transition: color .15s;
}

a:hover {
  color: var(--gold);
}

h1,h2,h3,h4,h5,h6 {
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .55em;
  font-weight: 750;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem,1.4rem + 2.6vw,3.6rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

h2 {
  font-size: clamp(1.55rem,1.15rem + 1.3vw,2.35rem);
}

h3 {
  font-size: clamp(1.15rem,1.05rem + .4vw,1.4rem);
}

h4 {
  font-size: 1.1rem;
}

h5,h6 {
  font-size: 1rem;
}

p {
  margin: 0 0 1.05em;
}

ul,ol {
  padding-left: 1.25em;
  margin: 0 0 1.2em;
}

strong,b {
  color: var(--ink);
  font-weight: 700;
}

.wrap {
  max-width: calc(var(--wrap) + var(--gutter)*2);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.narrow {
  max-width: calc(var(--text-w) + var(--gutter)*2);
}

.center {
  text-align: center;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1000;
  background: #fff;
  padding: 8px 14px;
}

.skip:focus {
  left: 8px;
}

:focus-visible {
  outline: 3px solid rgba(168,142,0,.55);
  outline-offset: 2px;
  border-radius: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  background: var(--navy);
  color: #fff;
  border: 1px solid var(--navy);
  border-radius: 999px;
  padding: .8em 1.45em;
  font: 650 .95rem/1 var(--f);
  letter-spacing: -.005em;
  cursor: pointer;
  transition: transform .15s,background .2s,box-shadow .2s,color .2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13,33,51,.22);
}

.btn.ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-2);
}

.btn.ghost:hover {
  border-color: var(--ink);
  background: #fff;
  color: var(--ink);
}

.btn.small {
  padding: .6em 1.05em;
  font-size: .85rem;
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
}

.btn.gold:hover {
  background: #8f7800;
  border-color: #8f7800;
}

.topbar {
  background: linear-gradient(90deg,var(--deep-2),var(--navy) 55%,var(--deep-2));
  color: #fff;
  font-size: .84rem;
  text-align: center;
}

.topbar-cta {
  all: unset;
  cursor: pointer;
  display: block;
  padding: 8px 0;
  color: #F5E79D;
  font-weight: 600;
  letter-spacing: .01em;
}

.topbar-cta:hover {
  color: #fff;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(13,33,51,.07);
}

.hdr {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand .logo {
  height: 50px;
  width: auto;
}

.nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-list>li {
  position: relative;
}

.nav-list .nav-extra {
  display: none;
}

.nav-list a,.sub-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink);
  font: 600 .95rem/1.2 var(--f);
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-list a:hover,.sub-toggle:hover {
  background: var(--soft);
  color: var(--navy);
}

.sub {
  list-style: none;
  margin: 0;
  padding: 10px;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  min-width: 280px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%,8px);
  transition: .18s ease;
}

.sub::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}

.has-sub:hover .sub,.has-sub:focus-within .sub,.has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%,0);
}

.sub a {
  font-weight: 550;
  border-radius: 10px;
  padding: 10px 12px;
}

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.hdr-fav {
  position: relative;
  color: var(--ink);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.hdr-fav:hover {
  background: var(--soft);
  color: var(--navy);
}

.fav-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--gold);
  color: #fff;
  font-size: .66rem;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 6px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  align-items: center;
}

.nav-toggle span:not(.sr) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

@media (max-width:1320px) {
  .hdr-blog {
    display: none;
  }
}

@media (max-width:1180px) {
  .nav-list a,.sub-toggle {
    padding: 10px 10px;
  }
}

/* small laptops / tablets in landscape: full nav plus the phone number no longer fit, so the call button shows the icon only */
@media (max-width:1100px) and (min-width:981px) {
  .hdr-phone span {
    display: none;
  }
  .hdr-phone {
    padding: .75em;
  }
}

@media (max-width:980px) {
  .nav {
    flex: 0;
    order: 3;
  }
  .nav-toggle {
    display: flex;
  }
  /* mobile menu: a full-width sheet that drops from under the sticky header */
  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overscroll-behavior: contain;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    padding: 8px 16px 20px;
    border-top: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 40px rgba(13,33,51,.18);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-list > li {
    border-bottom: 1px solid var(--line);
  }
  .nav-list > li:last-child {
    border-bottom: 0;
  }
  .nav-list > li > a, .sub-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav-list > li > a:hover, .sub-toggle:hover {
    background: none;
  }
  .sub-toggle svg {
    transition: transform .2s;
  }
  .has-sub.open .sub-toggle svg {
    transform: rotate(180deg);
  }
  .sub {
    position: static;
    box-shadow: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding: 0 0 14px;
    min-width: 0;
    border-radius: 0;
  }
  .sub::before {
    display: none;
  }
  .has-sub:hover .sub, .has-sub:focus-within .sub {
    transform: none;
  }
  .has-sub.open .sub {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .sub a {
    background: var(--soft);
    border-radius: 12px;
    padding: 11px 12px;
    font-size: .92rem;
    line-height: 1.25;
  }
  .nav-list .nav-extra {
    display: flex;
    gap: 10px;
    padding-top: 16px;
    border-bottom: 0;
  }
  .nav-list .nav-extra .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    justify-content: center;
    padding: 13px 8px;
    border-radius: 999px;
  }
  .nav-toggle span:not(.sr) {
    transition: transform .2s, opacity .2s;
  }
  .nav.open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav.open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav.open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  body.nav-open {
    overflow: hidden;
  }
  body.nav-open .rb {
    display: none;
  }
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(13,33,51,.45);
  }
  .brand {
    margin-right: auto;
  }
  .hdr {
    gap: 10px;
    min-height: 68px;
  }
  .brand .logo {
    height: 44px;
  }
  .hdr-phone span {
    display: none;
  }
  .hdr-phone {
    padding: .75em;
  }
}

main {
  display: block;
  min-height: 60vh;
}

.crumbs {
  font-size: .84rem;
  color: var(--muted);
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.crumbs a {
  color: inherit;
}

.crumbs a:hover {
  color: var(--navy);
}

/* hero band used by pages, posts, archives */
.page-hero {
  position: relative;
  isolation: isolate;
  color: #fff;
  background: radial-gradient(1200px 380px at 85% -10%,rgba(201,171,18,.20),transparent 60%),linear-gradient(135deg,var(--deep) 0%,var(--navy) 100%);
  padding: clamp(40px,6vw,84px) 0 clamp(36px,5vw,72px);
  overflow: hidden;
}

.page-hero.has-img::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg,rgba(10,26,41,.92) 0%,rgba(13,33,51,.78) 45%,rgba(13,33,51,.35) 100%);
}

.page-hero .hero-img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero h1 {
  color: #fff;
  max-width: 20ch;
  margin-bottom: .35em;
}

.page-hero.wide-title h1 {
  max-width: 28ch;
}

.page-hero .crumbs {
  color: rgba(255,255,255,.72);
}

.page-hero .crumbs a:hover {
  color: #fff;
}

.page-hero .lead {
  color: rgba(255,255,255,.85);
  font-size: 1.12rem;
  max-width: 62ch;
  margin: 0;
}

.page-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  color: rgba(255,255,255,.8);
  font-size: .92rem;
}

.hero-eyebrow {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-eyebrow a,.hero-eyebrow span {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px;
  padding: 4px 12px;
  font-size: .8rem;
  font-weight: 600;
}

.hero-eyebrow a:hover {
  background: rgba(255,255,255,.22);
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 26px;
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: box-shadow .3s,transform .3s,border-color .3s;
  contain: layout;
  display: flex;
  flex-direction: column;
}

.card:hover,.card.hl {
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.card-media {
  display: block;
  aspect-ratio: 4/3;
  background: var(--soft-2);
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}

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

.ph {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg,var(--soft-2),#dfe6ee);
}

.badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(13,33,51,.88);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 5px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

.badge.gold {
  background: var(--gold);
}

.badge+.badge {
  top: 44px;
}

.card-actions {
  position: absolute;
  right: 12px;
  top: 12px;
  display: flex;
  gap: 6px;
  opacity: .95;
}

.ic {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.94);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(0,0,0,.14);
  transition: transform .15s,background .15s;
}

.ic svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.ic:hover {
  transform: scale(1.08);
}

.ic.fav[aria-pressed=true] {
  color: #d64545;
}

.ic.fav[aria-pressed=true] svg {
  fill: #d64545;
  stroke: #d64545;
}

.ic.cmp[aria-pressed=true] {
  background: var(--navy);
  color: #fff;
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.1rem;
  margin: 0 0 4px;
  letter-spacing: -.015em;
}

.card-title a {
  color: var(--ink);
}

.card-title a:hover {
  color: var(--navy);
}

.card-addr {
  font-size: .86rem;
  color: var(--muted);
  margin: 0 0 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-price {
  font-weight: 800;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .8rem;
  color: var(--text);
  margin: 0 0 14px;
}

.card-meta span {
  background: var(--soft);
  border-radius: 99px;
  padding: 3px 10px;
}

.stars {
  color: #9a7700!important;
  font-weight: 700;
}

.card-cta {
  margin-top: auto;
  font-weight: 700;
  font-size: .88rem;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-cta::after {
  content: "→";
  transition: transform .2s;
}

.card:hover .card-cta::after {
  transform: translateX(3px);
}

.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);
}

.rv.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    animation: none!important;
    scroll-behavior: auto!important;
  }
  .rv {
    opacity: 1;
    transform: none;
  }
}

/* apartment above the fold */
.apt-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  max-width: calc(var(--wrap) + var(--gutter)*2);
  margin: 20px auto 0;
  padding: 0 var(--gutter);
  position: relative;
}

.apt-gallery a {
  display: block;
  overflow: hidden;
  background: var(--soft-2);
  border-radius: 6px;
}

.apt-gallery a.g0 {
  border-radius: var(--r) 6px 6px var(--r);
}

.apt-gallery a.g2 {
  border-top-right-radius: var(--r);
}

.apt-gallery a.g4 {
  border-bottom-right-radius: var(--r);
}

.apt-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s;
}

.apt-gallery a:hover img {
  transform: scale(1.03);
}

.apt-gallery .g0 {
  grid-row: span 2;
}

.g-all {
  position: absolute;
  right: calc(var(--gutter) + 16px);
  bottom: 16px;
}

@media (max-width:760px) {
  .apt-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: 280px;
    padding: 0;
    margin-top: 0;
  }
  .apt-gallery a.g0 {
    border-radius: 0;
  }
  .apt-gallery a:not(.g0) {
    display: none;
  }
  .g-all {
    right: 16px;
  }
}

.apt-head {
  padding: 26px 0 8px;
}

.apt-head h1 {
  margin: .12em 0 .18em;
  font-size: clamp(2rem,1.4rem + 2vw,3rem);
}

.apt-crumbs {
  font-size: .86rem;
  margin: 0;
  color: var(--muted);
}

.apt-addr {
  color: var(--muted);
  margin: 0 0 14px;
  font-size: 1.02rem;
}

.apt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 99px;
  padding: 6px 13px;
  font-size: .85rem;
  color: var(--ink);
  font-weight: 600;
}

.chip.gold {
  background: var(--gold-soft);
  border-color: #eadc8f;
  color: #5e4f00;
}

.ad-slot {
  min-height: 280px;
  margin: 32px auto;
  text-align: center;
  contain: layout;
}

.ad-slot.ad-fluid {
  min-height: 250px;
}

.ad-slot.ad-autorelaxed {
  min-height: 400px;
  max-width: calc(var(--wrap) + var(--gutter)*2);
  padding: 0 var(--gutter);
}
