/* ==========================================================================
   AUREL® — PRIVATE REAL ESTATE
   Design system & stylesheet
   1. Tokens
   2. Reset & base
   3. Typography
   4. Layout shell (background, floating surface)
   5. Header & navigation
   6. Buttons, toggles, tags
   7. Hero
   8. Property cards
   9. Home sections (stats, grid, neighborhoods, approach, testimonial, CTA)
   10. Footer
   11. Properties page
   12. Quick view drawer
   13. Neighborhoods page
   14. Contact page & forms
   15. Responsive
   16. Motion & print preferences
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */

:root {
  /* colour */
  --canvas: #F7F7F4;
  --dark: #11110F;
  --text: #111111;
  --muted: #6F6F6A;
  --border: #DCDCD6;
  --white: #FFFFFF;

  --dark-text: rgba(255, 255, 255, 0.92);
  --dark-muted: rgba(255, 255, 255, 0.58);
  --dark-border: rgba(255, 255, 255, 0.16);

  /* typography */
  --font-serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  --fs-display: clamp(42px, 6.4vw, 82px);
  --fs-h2: clamp(34px, 4.4vw, 56px);
  --fs-h3: clamp(26px, 2.6vw, 34px);
  --fs-h4: clamp(20px, 1.8vw, 24px);
  --fs-lead: clamp(16px, 1.3vw, 19px);
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-meta: 11px;

  --lh-display: 0.98;
  --lh-head: 1.06;
  --lh-body: 1.65;
  --ls-meta: 0.14em;
  --ls-display: -0.015em;

  /* spacing */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 48px;
  --s-6: 64px;
  --s-7: 80px;
  --s-8: 120px;
  --s-9: 160px;

  --pad: clamp(20px, 5vw, 80px);
  --section-y: clamp(64px, 9vw, 152px);

  /* shape */
  --surface: 1280px;
  --r-lg: 20px;
  --r-md: 16px;
  --r-sm: 10px;
  --header-h: 68px;

  /* motion */
  --dur: 0.3s;
  --dur-slow: 0.6s;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* layers */
  --z-bg: 0;
  --z-content: 1;
  --z-surface: 2;
  --z-overlap: 3;
  --z-header: 100;
  --z-nav: 90;
  --z-drawer: 200;
}

/* 2. RESET & BASE ---------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background-color: var(--dark);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.is-locked {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure {
  margin: 0;
}

dl,
dd {
  margin: 0;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
  border-radius: 2px;
}

.on-dark :focus-visible,
.site-header:not(.is-scrolled) :focus-visible {
  outline-color: var(--white);
}

::selection {
  background: var(--dark);
  color: var(--canvas);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -120%);
  z-index: 400;
  background: var(--dark);
  color: var(--white);
  padding: 14px 20px;
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

/* 3. TYPOGRAPHY ------------------------------------------------------------ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: var(--ls-display);
}

p {
  margin: 0;
}

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
}

.h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 1.1;
}

.h4 {
  font-size: var(--fs-h4);
  line-height: 1.2;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  font-weight: 500;
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
}

.on-dark .eyebrow {
  color: var(--dark-muted);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--muted);
  line-height: 1.6;
  max-width: 52ch;
}

.meta {
  font-size: 13px;
  color: var(--muted);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}

.section-head__text {
  max-width: 44ch;
}

.section-head .eyebrow {
  margin-bottom: var(--s-3);
}

.section-head .h2 {
  margin-bottom: var(--s-2);
}

/* 4. LAYOUT SHELL ---------------------------------------------------------- */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: var(--z-bg);
  background-image: url("../img/hero-1200.jpg");
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 15, 0.74) 0%,
    rgba(17, 17, 15, 0.56) 38%,
    rgba(17, 17, 15, 0.82) 100%
  );
}

.shell {
  width: min(100% - 40px, var(--surface));
  margin-inline: auto;
}

.surface {
  position: relative;
  z-index: var(--z-surface);
  width: min(100% - 40px, var(--surface));
  margin: 0 auto var(--s-5);
  background: var(--canvas);
  border-radius: var(--r-lg);
  box-shadow: 0 34px 90px rgba(17, 17, 15, 0.32);
  overflow: hidden;
}

.section {
  padding: var(--section-y) var(--pad);
}

.section + .section {
  border-top: 1px solid var(--border);
}

.section--flush {
  padding-top: 0;
}

.section--tight {
  padding-block: clamp(48px, 6vw, 96px);
}

/* 5. HEADER & NAVIGATION --------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(17, 17, 15, 0);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
  color: var(--white);
}

.site-header__inner {
  width: min(100% - 40px, var(--surface));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  height: 100%;
}

.site-header.nav-open,
.site-header.nav-open.is-scrolled {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--white);
}

.site-header.is-scrolled {
  background: rgba(247, 247, 244, 0.82);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  backdrop-filter: blur(12px) saturate(140%);
  border-bottom-color: var(--border);
  color: var(--text);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  min-height: 44px;
  align-content: center;
  flex-wrap: wrap;
}

.brand__mark {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.brand__descriptor {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-4);
}

.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.04em;
  opacity: 0.78;
  transition: opacity var(--dur) var(--ease);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 9px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.nav__link:hover,
.nav__link[aria-current="page"] {
  opacity: 1;
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  opacity: 0.75;
  transition: opacity var(--dur) var(--ease);
}

.nav-toggle:hover {
  opacity: 1;
}

.nav-toggle__bars {
  display: block;
  width: 16px;
  height: 8px;
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav-toggle__bars::before {
  top: 0;
}

.nav-toggle__bars::after {
  bottom: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* mobile menu */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  background: var(--dark);
  color: var(--dark-text);
  padding: calc(var(--header-h) + 32px) 24px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s-6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease),
    visibility var(--dur) var(--ease);
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav__link {
  font-family: var(--font-serif);
  font-size: 38px;
  line-height: 1.25;
  padding: 6px 0;
  min-height: 44px;
  border-bottom: 1px solid var(--dark-border);
}

.mobile-nav__link[aria-current="page"] {
  color: var(--white);
}

.mobile-nav__foot {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.mobile-nav__controls {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* 6. BUTTONS, TOGGLES, TAGS ------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.btn--dark {
  background: var(--dark);
  color: var(--white);
}

.btn--dark:hover {
  background: #26261f;
}

.btn--light {
  background: var(--white);
  color: var(--text);
}

.btn--light:hover {
  background: var(--canvas);
}

.btn--ghost {
  border-color: var(--border);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text);
}

.on-dark .btn--ghost {
  border-color: var(--dark-border);
  color: var(--dark-text);
}

.on-dark .btn--ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-meta);
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  align-self: flex-start;
  transition: opacity var(--dur) var(--ease), gap var(--dur) var(--ease);
}

.link-underline:hover {
  gap: 16px;
  opacity: 0.7;
}

.link-arrow::after {
  content: "→";
  font-size: 14px;
}

/* segmented switchers */
.switch {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 3px;
  opacity: 0.8;
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.switch:hover {
  opacity: 1;
}

.switch__btn {
  min-width: 44px;
  min-height: 34px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--fs-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.55;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.switch__btn[aria-pressed="true"] {
  opacity: 1;
  background: var(--white);
  color: var(--dark);
}

.site-header.is-scrolled .switch__btn[aria-pressed="true"],
.toolbar .switch__btn[aria-pressed="true"] {
  background: var(--dark);
  color: var(--white);
}

.mobile-nav .switch {
  padding: 4px;
}

.mobile-nav .switch__btn {
  min-height: 44px;
}

/* touch pointers get the full 44px target */
@media (hover: none), (max-width: 960px) {
  .switch__btn {
    min-height: 44px;
  }
}

/* filter tags */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--fs-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.tag:hover {
  border-color: var(--text);
  color: var(--text);
}

.tag[aria-pressed="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

/* 7. HERO ------------------------------------------------------------------ */

.hero {
  position: relative;
  z-index: var(--z-content);
  color: var(--dark-text);
  min-height: min(88vh, 900px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: calc(var(--header-h) + clamp(56px, 12vh, 140px));
  padding-bottom: clamp(40px, 8vh, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero--compact {
  min-height: min(52vh, 520px);
}

.hero__inner {
  width: min(100% - 40px, var(--surface));
  margin-inline: auto;
}

.hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-display);
  color: var(--white);
  max-width: 15ch;
  margin: var(--s-3) 0 0;
}

.hero__title em {
  font-style: italic;
  opacity: 0.86;
}

.hero__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: var(--s-5);
  margin-top: clamp(32px, 6vh, 64px);
}

.hero__copy {
  max-width: 44ch;
  color: var(--dark-text);
  font-size: var(--fs-lead);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  justify-content: flex-end;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: var(--s-4);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--dark-muted);
}

.hero__scroll::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}

/* overlapping card between hero and surface */
.overlap {
  position: relative;
  z-index: var(--z-overlap);
  width: min(100% - 40px, var(--surface));
  margin: 0 auto -110px;
  display: flex;
  justify-content: flex-start;
}

.overlap__card {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
  width: min(100%, 720px);
  background: var(--white);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(17, 17, 15, 0.26);
  text-align: left;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.overlap__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 70px rgba(17, 17, 15, 0.32);
}

.overlap__media {
  position: relative;
  overflow: hidden;
  min-height: 190px;
}

.overlap__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.overlap__card:hover .overlap__media img {
  transform: scale(1.04);
}

.overlap__body {
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.overlap__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
}

.overlap__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* 8. PROPERTY CARDS -------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  background: transparent;
  transition: transform var(--dur) var(--ease);
}

.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background: #e8e8e2;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.card:hover .card__media img,
.card:focus-within .card__media img {
  transform: scale(1.02);
}

.card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.card__quick {
  position: absolute;
  right: 14px;
  bottom: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card:hover .card__quick,
.card:focus-within .card__quick {
  opacity: 1;
  transform: translateY(0);
}

.card__body {
  padding-top: var(--s-3);
}

.card__title {
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.1;
  margin: 0 0 4px;
}

.card__location {
  font-size: 13px;
  color: var(--muted);
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: var(--s-2);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
}

.card__price {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.card__specs {
  font-size: 13px;
  color: var(--muted);
}

.ratio-45 .card__media {
  aspect-ratio: 4 / 5;
}

.ratio-43 .card__media {
  aspect-ratio: 4 / 3;
}

.ratio-34 .card__media {
  aspect-ratio: 3 / 4;
}

.ratio-1610 .card__media {
  aspect-ratio: 16 / 10;
}

.ratio-11 .card__media {
  aspect-ratio: 1 / 1;
}

/* 9. HOME SECTIONS --------------------------------------------------------- */

/* stats */
.stats {
  padding-top: calc(var(--section-y) + 40px);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
}

.stats__item {
  position: relative;
  padding-left: var(--s-4);
}

.stats__item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 56px;
  background: var(--border);
}

.stats__item:first-child {
  padding-left: 0;
}

.stats__item:first-child::before {
  display: none;
}

.stats__value {
  font-family: var(--font-serif);
  font-size: clamp(38px, 3.6vw, 52px);
  line-height: 1;
  margin-bottom: 10px;
}

.stats__label {
  font-size: 13px;
  color: var(--muted);
  max-width: 22ch;
}

/* asymmetric featured grid */
.featured__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-4) var(--s-4);
}

.featured__item--a {
  grid-column: span 7;
}

.featured__item--b {
  grid-column: span 5;
  margin-top: var(--s-7);
}

.featured__item--c {
  grid-column: span 5;
  margin-top: var(--s-4);
}

.featured__item--d {
  grid-column: span 7;
  margin-top: var(--s-8);
}

/* neighbourhoods spotlight */
.spots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-3);
}

.spot {
  position: relative;
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  color: var(--white);
}

.spot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 15, 0) 20%,
    rgba(17, 17, 15, 0.42) 58%,
    rgba(17, 17, 15, 0.88) 100%
  );
}

.spot:hover img {
  transform: scale(1.02);
}

.spot__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: var(--s-3);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-2);
}

.spot__name {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1;
}

.spot__count {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  text-align: right;
}

/* approach */
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
}

.principle {
  border-top: 1px solid var(--border);
  padding-top: var(--s-3);
}

.principle__num {
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  color: var(--muted);
  margin-bottom: var(--s-3);
  display: block;
}

.principle__title {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.principle__text {
  color: var(--muted);
  font-size: 15px;
}

/* testimonial */
.testimonial {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}

.testimonial__media {
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.testimonial__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial__quote {
  font-family: var(--font-serif);
  font-size: clamp(26px, 2.8vw, 40px);
  line-height: 1.2;
  margin: var(--s-3) 0 var(--s-4);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 13px;
  color: var(--muted);
}

.testimonial__author strong {
  font-weight: 500;
  color: var(--text);
}

.testimonial__author::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--border);
}

/* dark CTA */
.cta {
  background: var(--dark);
  color: var(--dark-text);
  padding: clamp(56px, 8vw, 120px) var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5);
}

.cta__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  color: var(--white);
  max-width: 18ch;
}

.cta__text {
  color: var(--dark-muted);
  margin-top: var(--s-3);
  max-width: 46ch;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

/* 10. FOOTER --------------------------------------------------------------- */

.site-footer {
  background: var(--canvas);
  padding: clamp(56px, 7vw, 96px) var(--pad) var(--s-4);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-5);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--border);
}

.footer__brand .brand__mark {
  font-size: 30px;
}

.footer__tagline {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 15px;
  max-width: 34ch;
}

.footer__title {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.footer__list li + li {
  margin-top: 2px;
}

.footer__list a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
  font-size: 15px;
  transition: opacity var(--dur) var(--ease);
}

.footer__list span {
  display: inline-block;
  font-size: 15px;
  padding: 10px 0;
}

.footer__list a:hover {
  opacity: 0.6;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding-top: var(--s-3);
  font-size: 12px;
  color: var(--muted);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

/* 11. PROPERTIES PAGE ------------------------------------------------------ */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s-5);
}

.toolbar__switchers {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text);
}

.toolbar__label {
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-5) var(--s-4);
}

.grid-3 .card {
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.card.is-hidden {
  display: none;
}

.result-count {
  font-size: 13px;
  color: var(--muted);
}

.empty-state {
  display: none;
  padding: var(--s-7) 0;
  text-align: center;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

/* 12. QUICK VIEW DRAWER ---------------------------------------------------- */

.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  border: 0;
  padding: 0;
  margin: 0;
  max-width: none;
  max-height: none;
  width: 100%;
  height: 100%;
  background: transparent;
  overflow: hidden;
}

.drawer[open] {
  display: block;
}

.drawer::backdrop {
  background: rgba(17, 17, 15, 0.52);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: min(100%, 640px);
  background: var(--canvas);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow: hidden;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.drawer__title {
  font-family: var(--font-serif);
  font-size: 30px;
  line-height: 1.05;
}

.drawer__close {
  width: 44px;
  height: 44px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 18px;
  line-height: 1;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}

.drawer__close:hover {
  border-color: var(--text);
  background: var(--white);
}

.drawer__tabs {
  flex: none;
  display: flex;
  gap: var(--s-3);
  padding: 0 var(--s-4);
  border-bottom: 1px solid var(--border);
  background: var(--canvas);
}

.drawer__tab {
  position: relative;
  min-height: 46px;
  padding: 14px 0;
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--dur) var(--ease);
}

.drawer__tab::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transition: transform var(--dur) var(--ease);
}

.drawer__tab[aria-selected="true"] {
  color: var(--text);
}

.drawer__tab[aria-selected="true"]::after {
  transform: scaleX(1);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-4);
}

.drawer__panelbody[hidden] {
  display: none;
}

.gallery__stage {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e8e2;
}

.gallery__stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  transition: opacity var(--dur) var(--ease);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 16px;
  transition: background var(--dur) var(--ease);
}

.gallery__nav:hover {
  background: var(--white);
}

.gallery__nav--prev {
  left: 12px;
}

.gallery__nav--next {
  right: 12px;
}

.gallery__counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 17, 15, 0.7);
  color: var(--white);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.gallery__thumb {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), opacity var(--dur) var(--ease);
  opacity: 0.66;
}

.gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.gallery__thumb[aria-current="true"] {
  opacity: 1;
  border-color: var(--text);
}

.drawer__meta {
  margin-top: var(--s-4);
}

.drawer__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.drawer__price-value {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1;
}

.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-2);
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--border);
}

.specs__key {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.specs__value {
  font-size: 15px;
}

.drawer__desc {
  margin-top: var(--s-3);
  color: var(--muted);
  font-size: 15px;
}

.feature-list {
  margin-top: var(--s-3);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px var(--s-3);
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--muted);
}

.floorplan {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--s-3);
}

.floorplan svg {
  width: 100%;
  height: auto;
}

.floorplan__note {
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--muted);
}

.agent {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding-bottom: var(--s-3);
  margin-bottom: var(--s-3);
  border-bottom: 1px solid var(--border);
}

.agent__avatar {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 999px;
  background: var(--dark);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
}

.agent__name {
  font-size: 15px;
}

.agent__role {
  font-size: 12px;
  color: var(--muted);
}

/* 13. NEIGHBOURHOODS PAGE -------------------------------------------------- */

.hood {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  padding: var(--section-y) var(--pad);
}

.hood + .hood {
  border-top: 1px solid var(--border);
}

.hood--reverse .hood__media {
  order: 2;
}

.hood__media {
  position: relative;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.hood__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease);
}

.hood:hover .hood__media img {
  transform: scale(1.02);
}

.hood__count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hood__title {
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: var(--lh-head);
  margin: var(--s-2) 0 var(--s-3);
}

.hood__text {
  color: var(--muted);
  max-width: 46ch;
}

.hood__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-2);
  margin: var(--s-4) 0;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.hood__fact-key {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.hood__fact-value {
  font-size: 15px;
}

/* 14. CONTACT PAGE & FORMS ------------------------------------------------- */

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 96px);
}

.field {
  margin-bottom: var(--s-4);
}

.field__label,
.fieldset__legend {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  font-size: 16px;
  color: var(--text);
  transition: border-color var(--dur) var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

.input::placeholder,
.textarea::placeholder {
  color: #a9a9a2;
}

.input:hover,
.select:hover,
.textarea:hover {
  border-bottom-color: #bcbcb4;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-bottom-color: var(--text);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  outline: none;
  border-bottom-color: var(--text);
  box-shadow: 0 1px 0 0 var(--text);
}

.textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 22px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}

.fieldset {
  border: 0;
  margin: 0 0 var(--s-4);
  padding: 0;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.radio {
  position: relative;
}

.radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.radio span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.radio input:hover + span {
  border-color: var(--text);
  color: var(--text);
}

.radio input:checked + span {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--white);
}

.radio input:focus-visible + span {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  cursor: pointer;
  min-height: 44px;
  padding: 10px 0;
}

.checkbox input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--dark);
}

.field__error {
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: #8a2b21;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.field.has-error .input,
.field.has-error .select,
.field.has-error .textarea,
.fieldset.has-error .radio span {
  border-bottom-color: #8a2b21;
}

.fieldset.has-error .radio span {
  border-color: #8a2b21;
}

.field.has-error .field__error,
.fieldset.has-error .field__error {
  opacity: 1;
}

.form-status {
  margin-top: var(--s-3);
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 14px;
  color: var(--muted);
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  border-color: #b9c9b1;
  color: #35502c;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-2);
}

.info-block + .info-block {
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--border);
}

.info-block__title {
  font-family: var(--font-sans);
  font-size: var(--fs-meta);
  letter-spacing: var(--ls-meta);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--s-3);
}

.office + .office {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}

.office__city {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.office__addr {
  font-size: 14px;
  color: var(--muted);
}

.office__addr a,
.mobile-nav__foot .meta a,
.form-actions .meta a {
  display: inline-flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}

.hours {
  font-size: 14px;
  color: var(--muted);
}

.hours li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.hours li:last-child {
  border-bottom: 0;
}

/* 15. RESPONSIVE ----------------------------------------------------------- */

@media (min-width: 900px) {
  .page-bg {
    background-image: url("../img/hero-2200.jpg");
  }
}

@media (max-width: 1080px) {
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-5) var(--s-4);
  }

  .stats__item:nth-child(3) {
    padding-left: 0;
  }

  .stats__item:nth-child(3)::before {
    display: none;
  }

  .spots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }

  .header__actions .switch {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .approach__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hood,
  .hood--reverse {
    grid-template-columns: 1fr;
  }

  .hood--reverse .hood__media {
    order: 0;
  }
}

@media (max-width: 768px) {
  :root {
    --fs-body: 15px;
  }

  .hero {
    min-height: min(92vh, 760px);
  }

  .hero__bottom {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--s-3);
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .overlap {
    margin-bottom: -72px;
  }

  .overlap__card {
    grid-template-columns: 1fr;
  }

  .overlap__media {
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .stats {
    padding-top: calc(var(--section-y) + 96px);
  }

  .featured__grid {
    grid-template-columns: 1fr;
    gap: var(--s-5);
  }

  .featured__item--a,
  .featured__item--b,
  .featured__item--c,
  .featured__item--d {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .featured__item .card__media {
    aspect-ratio: 4 / 3;
  }

  .testimonial {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .testimonial__media {
    aspect-ratio: 16 / 10;
  }

  .cta {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .grid-3 {
    grid-template-columns: 1fr;
    gap: var(--s-6);
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--s-3) var(--s-2);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .drawer__body {
    padding: var(--s-3);
  }

  .drawer__head,
  .drawer__tabs {
    padding-inline: var(--s-3);
  }
}

@media (max-width: 560px) {
  .shell,
  .surface,
  .site-header__inner,
  .hero__inner,
  .overlap {
    width: min(100% - 24px, var(--surface));
  }

  .spots {
    grid-template-columns: 1fr;
  }

  .spot {
    aspect-ratio: 16 / 11;
  }

  .stats__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .stats__item,
  .stats__item:nth-child(3) {
    padding-left: 0;
    padding-top: var(--s-3);
    border-top: 1px solid var(--border);
  }

  .stats__item::before {
    display: none;
  }

  .stats__item:first-child {
    padding-top: 0;
    border-top: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }

  .hood__facts {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .mobile-nav__link {
    font-size: 30px;
  }

  .card__quick {
    opacity: 1;
    transform: none;
  }
}

/* 16. MOTION & PRINT ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .drawer__panel {
    transform: none;
  }
}

@media print {
  .page-bg,
  .site-header,
  .drawer,
  .mobile-nav,
  .card__quick {
    display: none !important;
  }

  body {
    background: var(--white);
  }

  .surface {
    box-shadow: none;
    width: 100%;
  }
}
