.site-header {
  position: relative;
  z-index: 50;
  width: 100%;
  color: var(--white);
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(48, 10, 5, .88), rgba(48, 10, 5, 0));
  border-bottom: 0;
}

.site-header__inner {
  display: flex;
  position: relative;
  width: min(100%, calc(var(--content-width) + 2rem));
  min-height: 5.5rem;
  margin-inline: auto;
  padding: .8rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.brand__logo-image {
  display: block;
  width: auto;
  height: clamp(6.3rem, 9.8vw, 7.7rem);
  max-width: min(14.7rem, calc(100vw - 6.75rem));
  object-fit: contain;
}

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: .65rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  cursor: pointer;
}

.js .nav-toggle {
  display: inline-flex;
  gap: .55rem;
  align-items: center;
}

.nav-toggle__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-toggle__icon,
.nav-toggle__icon::before,
.nav-toggle__icon::after {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
}

.nav-toggle__icon {
  position: relative;
}

.nav-toggle__icon::before,
.nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle__icon::before { top: -.35rem; }
.nav-toggle__icon::after { top: .35rem; }

.primary-nav {
  display: flex;
  position: absolute;
  top: 100%;
  right: 1rem;
  left: 1rem;
  padding: .75rem;
  flex-direction: column;
  background: var(--navy-950);
  box-shadow: var(--shadow-soft);
}

.js .primary-nav {
  display: none;
}

.js .primary-nav.is-open {
  display: flex;
}

.primary-nav a {
  padding: .75rem;
  color: var(--white);
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-nav a:hover {
  color: #e7d5b9;
}

.nav-cta {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  padding: .8rem 1.2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.button--primary {
  color: var(--navy-950);
  background: #d1b489;
  border-color: #d1b489;
}

.button--primary:hover {
  background: #e0c7a1;
  border-color: #e0c7a1;
}

.button--outline {
  color: var(--navy-900);
  background: transparent;
  border-color: var(--gold-500);
}

.button--outline:hover {
  color: var(--white);
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.button--light-outline {
  color: var(--cream-50);
  background: transparent;
  border-color: var(--gold-500);
}

.button--light-outline:hover {
  color: var(--navy-950);
  background: var(--cream-50);
  border-color: var(--cream-50);
}

.field {
  display: grid;
  gap: .35rem;
}

.field label {
  color: #746b5f;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3rem;
  padding: .55rem .7rem;
  color: var(--ink-900);
  background: var(--white);
  border: 1px solid var(--border);
}

.field textarea {
  min-height: 7rem;
  resize: vertical;
}

.field label span {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-heading > p:last-child {
  max-width: 32rem;
  color: var(--muted);
}

.section-heading--center {
  text-align: center;
}

.section-heading--center::after {
  content: "◇";
  display: block;
  width: 7rem;
  margin: 1.25rem auto 0;
  color: var(--gold-500);
  border-bottom: 1px solid var(--border);
  line-height: 0;
}

.apartment-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--cream-50);
  border: 1px solid var(--border);
}

.apartment-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--cream-100);
}

.apartment-card__media-note {
  position: absolute;
  right: .75rem;
  bottom: .75rem;
  padding: .45rem .65rem;
  color: var(--paper-50);
  background: rgba(32, 4, 1, .78);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.apartment-card__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.apartment-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.apartment-card:hover .apartment-card__media img {
  transform: scale(1.025);
}

.apartment-card__body {
  display: flex;
  padding: 1.5rem;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.apartment-card__body h3 {
  font-size: clamp(1.55rem, 2vw, 2rem);
}

.apartment-card__facts,
.apartment-card__beds,
.apartment-card__description {
  margin-bottom: .65rem;
}

.apartment-card__facts {
  color: var(--navy-900);
  font-size: .83rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.apartment-card__beds {
  color: var(--muted);
  font-size: .9rem;
}

.amenity-list {
  display: flex;
  margin: .55rem 0 1.5rem;
  padding: 0;
  flex-wrap: wrap;
  gap: .45rem;
  list-style: none;
}

.amenity-list li {
  padding: .32rem .55rem;
  color: #5b5348;
  background: var(--cream-100);
  font-size: .72rem;
}

.apartment-card .button {
  margin-top: auto;
}

.site-footer {
  color: #dbe1e6;
  background: var(--navy-950);
}

.site-footer__inner {
  display: grid;
  width: min(100%, calc(var(--content-width) + 2rem));
  margin-inline: auto;
  padding: 4rem 1rem;
  gap: 2.5rem;
}

.site-footer h2 {
  color: var(--cream-50);
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.site-footer a {
  display: block;
  width: fit-content;
}

.site-footer__logo {
  display: block;
  width: min(14rem, 100%);
  height: auto;
  margin: 0 0 1rem;
  object-fit: contain;
}

.footer-links {
  display: grid;
  margin: 0;
  padding: 0;
  gap: .55rem;
  color: #c0c8d0;
  font-size: .9rem;
  list-style: none;
}

.site-footer__bottom {
  display: flex;
  width: min(100%, var(--content-width));
  margin-inline: auto;
  padding: 1.2rem 1rem;
  flex-wrap: wrap;
  gap: .25rem 1.5rem;
  justify-content: space-between;
  color: #9eabb6;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .75rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer .text-link {
  color: #e7d5b9;
}

@media (max-width: 400px) {
  .brand__logo-image {
    height: 6.3rem;
    max-width: calc(100vw - 6.25rem);
  }

  .nav-toggle {
    width: 2.75rem;
    height: 2.75rem;
    padding: .75rem;
    justify-content: center;
  }

  .nav-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .site-footer__brand {
    grid-row: span 2;
  }
}

@media (min-width: 1100px) {
  .site-header__inner {
    min-height: 7rem;
  }

  .js .nav-toggle,
  .nav-toggle {
    display: none;
  }

  .primary-nav,
  .js .primary-nav {
    display: flex;
    position: static;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: .45rem;
    background: transparent;
    box-shadow: none;
  }

  .primary-nav a {
    padding: .75rem .85rem;
  }

  .primary-nav .nav-cta {
    display: inline-flex;
    margin-left: .7rem;
    padding-inline: 1.25rem;
    color: var(--navy-950);
    background: #d1b489;
  }

  .section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
  }

  .site-footer__inner {
    grid-template-columns: 1.5fr 1fr 1.2fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apartment-card:hover .apartment-card__media img {
    transform: none;
  }
}

/* New editorial system */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: rgba(32, 4, 1, .74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header--overlay {
  position: sticky;
  background: rgba(32, 4, 1, .64);
}

.site-header__inner {
  min-height: 4.9rem;
}

.brand {
  display: grid;
  gap: .2rem;
  color: var(--white);
}

.brand__name {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  letter-spacing: .04em;
}

.brand__tagline {
  color: rgba(255, 255, 255, .72);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.primary-nav a {
  color: rgba(255, 255, 255, .84);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.primary-nav a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--midnight-950) !important;
  background: linear-gradient(135deg, #f2ddc4 0%, var(--copper-500) 100%);
  border-radius: 999px;
}

.button {
  border-radius: 999px;
  letter-spacing: .12em;
}

.button--primary {
  color: var(--midnight-950);
  background: linear-gradient(135deg, #f3dec6 0%, var(--copper-500) 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(184, 141, 94, .25);
}

.button--primary:hover {
  background: linear-gradient(135deg, #f7e6d1 0%, #c79b69 100%);
}

.button--outline {
  color: var(--midnight-900);
  background: rgba(255, 255, 255, .35);
  border-color: rgba(23, 38, 55, .18);
  backdrop-filter: blur(10px);
}

.button--outline:hover,
.button--light-outline:hover {
  color: var(--midnight-950);
  background: var(--white);
  border-color: var(--white);
}

.button--light-outline {
  color: var(--paper-50);
  border-color: rgba(255, 255, 255, .35);
}

.field label {
  color: var(--muted);
  font-size: .64rem;
  letter-spacing: .18em;
}

.field input,
.field select,
.field textarea {
  min-height: 3.2rem;
  padding: .7rem .85rem;
  color: var(--midnight-950);
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(215, 203, 187, .95);
  border-radius: .9rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper-500);
  box-shadow: 0 0 0 3px rgba(184, 141, 94, .18);
}

.section-heading > p:last-child {
  max-width: 40rem;
  color: var(--muted);
}

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

.section-heading--split p:last-child {
  margin-top: .15rem;
}

.apartment-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .93)),
    linear-gradient(135deg, rgba(184, 141, 94, .08), transparent 45%);
  border: 1px solid rgba(216, 199, 177, .9);
  border-radius: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.apartment-card__media {
  background: linear-gradient(135deg, rgba(50, 20, 10, .08), rgba(184, 141, 94, .12));
}

.apartment-card__body {
  gap: .2rem;
  padding: 1.45rem 1.45rem 1.5rem;
}

.apartment-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-bottom: .7rem;
  color: var(--midnight-900);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.apartment-card__facts span {
  padding: .25rem .45rem;
  background: rgba(242, 233, 219, .85);
  border-radius: 999px;
}

.amenity-list {
  gap: .5rem;
}

.amenity-list li {
  padding: .42rem .65rem;
  color: var(--midnight-900);
  background: rgba(242, 233, 219, .8);
  border-radius: 999px;
}

.site-footer {
  color: rgba(242, 233, 219, .9);
  background:
    radial-gradient(circle at top right, rgba(184, 141, 94, .12), transparent 22rem),
    var(--midnight-950);
}

.site-footer__inner {
  gap: 2rem;
}

.site-footer__name {
  margin-bottom: .4rem;
  color: var(--paper-50);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.8rem);
  line-height: 1;
}

.site-footer__lead {
  max-width: 22rem;
  margin-bottom: 1rem;
  color: rgba(242, 233, 219, .8);
}

.site-footer h2 {
  color: var(--paper-50);
}

.footer-links {
  color: rgba(242, 233, 219, .78);
}

.site-footer__bottom {
  color: rgba(242, 233, 219, .58);
}

.site-footer .text-link {
  color: #f2ddc4;
}

/* Castle flower identity */
.site-header {
  background:
    linear-gradient(180deg, rgba(43, 7, 4, .95), rgba(32, 4, 1, .82));
  border-bottom-color: rgba(209, 180, 137, .22);
  box-shadow: 0 1rem 3rem rgba(4, 10, 18, .12);
}

.site-header--overlay {
  background:
    linear-gradient(180deg, rgba(43, 7, 4, .9), rgba(32, 4, 1, .68));
}

.brand {
  display: flex;
  gap: .78rem;
  align-items: center;
}

.brand__flower,
.site-footer__flower {
  display: block;
  width: auto;
  object-fit: contain;
  filter: invert(78%) sepia(22%) saturate(587%) hue-rotate(351deg) brightness(92%);
}

.brand__flower {
  height: 2.9rem;
  padding-right: .78rem;
  border-right: 1px solid rgba(209, 180, 137, .32);
}

.brand__wordmark {
  display: grid;
  gap: .2rem;
}

.site-footer__flower {
  height: 4.3rem;
  margin-bottom: 1.15rem;
  opacity: .88;
}

@media (max-width: 520px) {
  .site-header__inner {
    min-height: 4.35rem;
  }

  .brand {
    gap: .58rem;
  }

  .brand__flower {
    height: 2.35rem;
    padding-right: .58rem;
  }

  .brand__name {
    font-size: 1.18rem;
  }

  .brand__tagline {
    font-size: .55rem;
    letter-spacing: .13em;
  }
}

.content-card {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(216, 199, 177, .9);
  border-radius: 1.4rem;
  box-shadow: var(--shadow-soft);
}

.content-card--wide {
  grid-column: 1 / -1;
}

.detail-list {
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  list-style: none;
}

.detail-list li {
  padding: .8rem .9rem;
  background: rgba(242, 233, 219, .65);
  border-radius: .95rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.2rem;
}
