@font-face {
  font-family: Onest;
  src: url('../fonts/onest/Onest-Regular.woff2') format('woff2');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url('../fonts/onest/Onest-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: Onest;
  src: url('../fonts/onest/Onest-SemiBold.woff2') format('woff2');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

/* Shared visual language. Page styles can compose these tokens independently. */
:root {
  --font-sans: Onest, Arial, sans-serif;
  --paper: #fff;
  --ink: #000;
  --muted: #767676;
  --line: #d6d6d6;
  --white: #fff;
  --soft: #f8f8f8;
  --accent: #bd483c;
  --accent-hover: #a43c32;
  --red: var(--accent);
  --red-dark: var(--accent-hover);
  font-family: var(--font-sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

body { background: var(--paper); }
h1, h2, h3 { font-weight: 400; }
.page-title { font-size: 52px; line-height: 1.08; letter-spacing: -.025em; }
.section-title { font-size: 42px; line-height: 1.12; letter-spacing: -.025em; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .035em; }
.breadcrumbs { font-size: 12px; }

.button {
  min-height: 48px;
  padding: 13px 24px;
  gap: 24px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.button-primary { background: var(--ink); border-color: var(--ink); color: var(--white); }
.button-primary:hover { background: #282828; border-color: #282828; }
.button-light { background: var(--white); color: var(--ink); }
.button-light:hover { background: #ededed; }
.button-outline { border-color: var(--line); background: transparent; }
.button-outline:hover { background: var(--soft); border-color: var(--ink); }
.text-link { font-size: 13px; font-weight: 400; }
.icon-button { border-radius: 0; }

/* Preserve the existing SMSS symbol and wordmark. */
.site-header { background: var(--white); color: var(--ink); }
.brand strong { font-family: var(--font-sans); font-weight: 600; letter-spacing: .015em; }
.brand-symbol { background: var(--accent); }
.brand-caption { letter-spacing: .12em; }
.header-city { font-size: 12px; }
.header-city .icon { color: currentColor; }
.main-nav { font-size: 13px; }
.header-callback { min-height: 48px; font-size: 12px; padding: 10px 16px; gap: 14px; }
.favorites-badge { background: var(--accent); }

.site-footer, body.bj-project-page .site-footer { background: #000; color: #fff; margin-top: 0; padding-block: 58px 30px; }
.site-footer .brand-symbol, body.bj-project-page .site-footer .brand-symbol { background: #fff; }
.footer-top { padding-bottom: 48px; }
.footer-top p { color: #b2b2b2; font-size: 13px; }
.footer-top > .text-link { color: #fff; font-size: 13px; }
.footer-top > .text-link:hover { color: #d6d6d6; }
.site-footer .footer-bottom { border-color: #353535; color: #a6a6a6; font-size: 11px; }
.footer-bottom a:hover { color: #fff; }
body .site-footer .footer-note { color: #999; font-size: 10px; line-height: 1.6; max-width: 960px; }
body .site-footer .footer-bottom, body .site-footer .crm-status { color: #a6a6a6; }
.demo-label > span { background: #aaa; }

/* Keep catalog controls and generated favourite cards in the same system. */
.catalog-filter { background: var(--soft); border-radius: 0; }
.filter-label, .sort-label { color: var(--muted); font-size: 11px; }
.filter-group select, .range-inputs, .room-options span {
  height: 48px;
  border-radius: 0;
  border-color: var(--line);
  background-color: var(--white);
  font-size: 13px;
}
.room-options { height: 48px; }
.room-options input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.range-inputs input { font-size: 13px; }
.range-inputs input::placeholder { color: var(--muted); }
.filter-submit, .catalog-filter-actions .button { min-height: 48px; height: auto; font-size: 13px; }
.category-tab { border-radius: 0; font-size: 12px; }
.category-tab[aria-current=page] { background: var(--ink); border-color: var(--ink); }
.results-heading h2 { letter-spacing: -.015em; font-weight: 400; }
.apartment-card { background: #fff; border-radius: 0; }
.apartment-card:hover { border-color: #999; box-shadow: none; }
.apartment-card-top { font-size: 12px; }
.apartment-meta { font-size: 11px; }
.apartment-name h3 { font-weight: 400; letter-spacing: -.015em; }
.apartment-price-row strong { font-weight: 500; letter-spacing: -.015em; }
.feature-tag { border-radius: 0; color: #6b6b6b; background: var(--soft); font-size: 10px; }
.favorite-button { color: #777; }
.empty-state { border-radius: 0; }
.empty-state h2, .empty-state h3 { letter-spacing: -.015em; }
.empty-state > .icon, .empty-icon > .icon { color: #777; }
.project-image-placeholder { background: var(--soft); color: #777; }
.project-image-link, .detail-image, .detail-image-placeholder { border-radius: 0; }
.detail-copy .section-title { font-size: 38px; letter-spacing: -.025em; }
.prose { color: #666; }
.prose h2, .detail-stat dd { letter-spacing: -.015em; }
.plan-stage { border-radius: 0; background: var(--soft); }
.tag { border-radius: 0; }
.apartment-detail-layout .detail-price { letter-spacing: -.02em; }

/* Shared contact dialog. Functional IDs and form behavior remain unchanged. */
.lead-dialog { background: #fff; border-radius: 0; padding: 44px; }
.lead-dialog::backdrop { background: #0007; backdrop-filter: blur(4px); }
.lead-dialog h2 { font-size: 34px; font-weight: 400; letter-spacing: -.025em; }
.lead-dialog .eyebrow { font-size: 11px; letter-spacing: .035em; }
.lead-dialog .muted { color: #777; font-size: 13px; }
.form-label { color: #777; font-size: 12px; }
.form-label > input { border-bottom-color: var(--line); min-height: 48px; font-size: 15px; }
.form-label > input::placeholder { color: #999; }
.consent { color: #777; font-size: 11px; line-height: 1.5; }
.form-note { color: #777; font-size: 10px; }
.form-errors { color: var(--accent); }
.success-icon { background: var(--soft); color: var(--ink); }
.toast { border-radius: 0; background: #000; font-size: 13px; }

@media (max-width: 1200px) {
  .header-inner { gap: 20px; }
  .main-nav { gap: 20px; }
  .header-callback { font-size: 11px; padding-inline: 13px; gap: 10px; }
}

@media (max-width: 960px) {
  .page-title { font-size: 44px; }
  .section-title { font-size: 36px; }
  .detail-copy .section-title { font-size: 32px; }
  .header-callback { font-size: 10px; }
  .main-nav { gap: 18px; }
}

@media (max-width: 700px) {
  .page-title { font-size: 36px; }
  .section-title { font-size: 32px; }
  .button { font-size: 12px; min-height: 48px; padding-inline: 18px; gap: 18px; }
  .header-callback { font-size: 9px; min-height: 40px; padding: 8px 10px; gap: 8px; }
  .main-nav { background: #fff; color: #000; font-size: 12px; }
  .site-footer, body.bj-project-page .site-footer { padding-block: 38px 26px; }
  .footer-top { padding-bottom: 30px; gap: 24px; }
  .footer-top p { font-size: 12px; }
  .footer-top > .text-link { font-size: 12px; }
  .site-footer .footer-bottom { font-size: 10px; line-height: 1.6; }
  body .site-footer .footer-note { font-size: 9px; }
  .catalog-filter-actions .button, .filter-submit { font-size: 12px; }
  .room-options span { min-width: 25px; font-size: 12px; }
  .filter-group select, .range-inputs input { font-size: 12px; }
  .apartment-meta { font-size: 11px; }
  .detail-heading .button { min-height: 48px; font-size: 12px; }
  .detail-copy .section-title { font-size: 30px; }
  .lead-dialog { padding: 36px 26px; }
  .lead-dialog h2 { font-size: 30px; }
}

@media (max-width: 380px) {
  .header-callback { font-size: 0; width: 32px; padding: 0; gap: 0; border: 0; }
}
