/* Grant Management Group site stylesheet, shared by the homepage and every unit page.
   Layout concept: quiet editorial listing site. Warm white ground, deep navy for contrast bands,
   champagne hairlines. Active scheme: Midnight and champagne (A1).
   To switch schemes, replace the three token blocks below; nothing else in this file uses a literal color. */

:root {
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --bg: #F5F3EE;
  --surface: #E4E1D8;
  --surface-ink: #4A5360;
  --ink: #101826;
  --muted: #525C6B;
  --line: #D9D5CB;
  --accent: #14233B;
  --on-accent: #F5F3EE;
  --accent-text: #14233B;
  --brass: #B79A63;

  --band: #14233B;
  --on-band: #F5F3EE;
  --band-muted: #BAC4D3;
  --band-line: #2C3C55;
  --band-brass: #D2B880;

  --foot: #0B1626;
  --on-foot: #E6E4DD;
  --foot-muted: #B2BDCC;
  --foot-line: #2C3C55;
  --foot-brass: #D2B880;

  --fill: #EBDDB8;
  --fill-ink: #3D3010;

  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1522;
    --surface: #18243A;
    --surface-ink: #B5C0D0;
    --ink: #F0EDE6;
    --muted: #A7B2C2;
    --line: #26334A;
    --accent: #D2B880;
    --on-accent: #101826;
    --accent-text: #D2B880;
    --brass: #9C8760;
    --band: #131D2E;
    --on-band: #F0EDE6;
    --band-muted: #B5C0D0;
    --band-line: #2C3A52;
    --band-brass: #D2B880;
    --foot: #080E18;
    --on-foot: #E6E4DD;
    --foot-muted: #A7B2C2;
    --foot-line: #26334A;
    --foot-brass: #D2B880;
    --fill: #3B3320;
    --fill-ink: #F2E3B8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1522;
  --surface: #18243A;
  --surface-ink: #B5C0D0;
  --ink: #F0EDE6;
  --muted: #A7B2C2;
  --line: #26334A;
  --accent: #D2B880;
  --on-accent: #101826;
  --accent-text: #D2B880;
  --brass: #9C8760;
  --band: #131D2E;
  --on-band: #F0EDE6;
  --band-muted: #B5C0D0;
  --band-line: #2C3A52;
  --band-brass: #D2B880;
  --foot: #080E18;
  --on-foot: #E6E4DD;
  --foot-muted: #A7B2C2;
  --foot-line: #26334A;
  --foot-brass: #D2B880;
  --fill: #3B3320;
  --fill-ink: #F2E3B8;
  color-scheme: dark;
}

/* base */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
img { max-width: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent-text); }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
mark.fill { background: var(--fill); color: var(--fill-ink); padding: 0 0.3em; border-radius: 2px; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: max(clamp(24px, 4vw, 40px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(24px, 4vw, 40px), env(safe-area-inset-right, 0px));
}
.narrow { max-width: 920px; }

.eyebrow { margin: 0 0 24px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { margin: 0; font-size: clamp(2.75rem, 7.2vw, 5.25rem); line-height: 1; letter-spacing: -0.015em; }
h1 em, h2 em { color: var(--accent-text); }
.h2 { margin: 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.01em; }
.lede { margin: 24px 0 0; max-width: 44ch; font-size: 1.19rem; color: var(--muted); }

/* buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 15px 28px;
  font: 600 0.78rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.15); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--accent-text); }
.btn-ghost:hover { filter: none; background: var(--accent); color: var(--on-accent); }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 14px; }

/* header */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; padding: 4px 0; }
.brand span { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: 0.01em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.nav a { color: var(--ink); text-decoration: none; padding: 14px 0; }
.nav a:hover { color: var(--accent-text); }
.nav a.btn { color: var(--on-accent); padding: 15px 28px; }
.nav a.btn:hover { color: var(--on-accent); }

/* photo placeholders and images */
.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 24px;
  background: var(--surface);
  color: var(--surface-ink);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.photo small { display: block; margin-top: 8px; font-size: 0.82rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.photo.has-img { padding: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* homepage hero */
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 56px 72px; padding-block: 48px 96px; }
.hero-copy { flex: 1 1 440px; min-width: 0; }
.hero-photo { flex: 1 1 380px; min-width: 0; }
.frame { position: relative; padding: 0 0 24px 24px; }
.frame::before { content: ""; position: absolute; top: 24px; left: 0; right: 24px; bottom: 0; border: 1px solid var(--brass); }
.frame .photo { position: relative; height: clamp(320px, 50vw, 580px); }

/* hero photo slideshow */
.slider { position: relative; height: clamp(320px, 50vw, 580px); overflow: hidden; background: var(--surface); outline-offset: 4px; }
.slides, .slide { position: absolute; inset: 0; margin: 0; }
.slide { opacity: 0; transition: opacity 0.7s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 2px; background: var(--bg); color: var(--ink); cursor: pointer; opacity: 0.88; transition: opacity 0.2s; }
.slide-btn:hover, .slide-btn:focus-visible { opacity: 1; }
.slide-btn.prev { left: 14px; }
.slide-btn.next { right: 14px; }
.slide-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 4px; }
.dot { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--bg); opacity: 0.55; transition: opacity 0.2s, transform 0.2s; }
.dot.is-active::after { opacity: 1; transform: scale(1.25); }
@media (max-width: 640px) { .dot { width: 20px; } .dots { gap: 2px; } }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* unit listings */
.units .wrap { padding-block: 24px 112px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.section-head p { margin: 0; font-size: 0.94rem; color: var(--muted); }
.unit-list { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 40px 36px; }
.unit-card { flex: 1 1 340px; max-width: 420px; min-width: 0; display: flex; flex-direction: column; color: inherit; text-decoration: none; border: 1px solid var(--brass); background: var(--bg); transition: border-color 0.2s; }
.unit-card:hover, .unit-card:focus-visible { border-color: var(--ink); }
.unit-card .photo { position: relative; height: 320px; }
.tag { position: absolute; top: 18px; left: 18px; display: flex; align-items: center; gap: 8px; background: var(--bg); color: var(--ink); padding: 7px 14px; font-size: 0.69rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.tag::before { content: ""; display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }
.unit-body { padding: 26px 26px 28px; }
.unit-title { margin: 0; font-size: 2.25rem; line-height: 1.1; }
.unit-card:hover .unit-title { text-decoration: underline; text-decoration-color: var(--brass); text-underline-offset: 6px; }
.unit-town { margin: 6px 0 0; color: var(--muted); }
.unit-specs { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.unit-foot { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.price { font-family: var(--serif); font-size: 2rem; line-height: 1; }
.price small { font: 400 0.88rem var(--sans); color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 10px; padding: 14px 0; color: var(--accent-text); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; transition: gap 0.2s; }
.unit-card:hover .more { gap: 16px; }
.more svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.more-note { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.more-note p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.9rem; line-height: 1.2; }
.text-link { display: inline-block; padding: 12px 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text); }

/* contrast band */
.band { background: var(--band); color: var(--on-band); }
.band .wrap { padding-block: 104px; }
.band .eyebrow { margin-bottom: 14px; color: var(--band-brass); }
.steps { margin-top: 64px; display: flex; flex-wrap: wrap; }
.step { flex: 1 1 260px; min-width: 0; padding: 32px 40px 8px 0; border-top: 1px solid var(--band-line); }
.step-num { margin: 0; font-family: var(--serif); font-style: italic; font-size: 2.9rem; line-height: 1; color: var(--band-brass); }
.step h3 { margin: 20px 0 8px; font-size: 2rem; line-height: 1.1; }
.step p { margin: 0; max-width: 30ch; color: var(--band-muted); }

/* closing call to action */
.closing .wrap { padding-block: 128px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rule { display: block; width: 40px; height: 1px; background: var(--brass); margin-bottom: 36px; }
.closing .h2 { font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -0.015em; }
.closing p { margin: 22px 0 0; max-width: 44ch; font-size: 1.12rem; color: var(--muted); }
.closing .btn { margin-top: 40px; padding: 18px 40px; }

/* footer */
.site-footer { background: var(--foot); color: var(--on-foot); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 72px; padding-block: 72px 0; }
.foot-brand { flex: 1 1 280px; min-width: 0; }
.foot-brand p:first-child { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.foot-col { flex: 1 1 220px; min-width: 0; }
.foot-col p { margin: 0; }
.foot-label-link { margin-bottom: 28px !important; }
.foot-label-link a { color: inherit; text-decoration: none; }
.foot-label-link a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-label { margin: 0 0 12px !important; font-size: 0.69rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--foot-brass); }
.foot-muted { color: var(--foot-muted); }
.foot-brand .foot-muted { margin: 10px 0 0; max-width: 34ch; }
.foot-base { margin-top: 48px; padding-block: 24px 48px; border-top: 1px solid var(--foot-line); font-size: 0.81rem; color: var(--foot-muted); }
.foot-base p { margin: 0; }

/* unit page */
.crumb .wrap { padding-block: 0; }
.back { display: inline-block; padding: 12px 0; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--accent-text); }
.unit-hero .wrap { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; padding-block: 24px 40px; }
.unit-head { min-width: 0; }
.unit-head h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.where { margin: 14px 0 0; color: var(--muted); font-size: 1.12rem; }
.rent { min-width: 210px; border: 1px solid var(--brass); padding: 18px 24px; }
.rent small { display: block; font-size: 0.69rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.rent strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.8rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rent strong span { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }

.gallery .wrap { padding-block: 8px 28px; }
.collage { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, clamp(150px, 19vw, 250px)); gap: 12px; }
.collage .photo { height: 100%; }
.collage .cell:first-child { grid-column: span 2; grid-row: span 2; }

.specs { display: flex; flex-wrap: wrap; gap: 8px 44px; margin: 0; padding: 20px 0; border-block: 1px solid var(--line); }
.spec { display: flex; flex-wrap: wrap; gap: 4px 12px; min-width: 0; }
.spec dt { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); align-self: center; }
.spec dd { margin: 0; font-weight: 500; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: 12px 56px; padding-block: 44px; border-top: 1px solid var(--line); }
.detail-grid h2 { margin: 0; font-size: 2rem; line-height: 1.15; }
.detail-grid p { margin: 0 0 14px; max-width: 65ch; }
.detail-grid p:last-child { margin-bottom: 0; }
.specs-block .wrap { padding-block: 0 44px; }
.detail .wrap { padding-block: 0; }
.detail:last-of-type .detail-grid { border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero .wrap { padding-block: 24px 72px; }
  .collage { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-rows: minmax(130px, 38vw); }
  .collage .cell:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 220px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .band .wrap { padding-block: 72px; }
  .closing .wrap { padding-block: 88px; }
  .units .wrap { padding-block: 8px 80px; }
  .rent { width: 100%; }
}
@media (max-width: 640px) {
  .nav .hide-sm { display: none; }
  .brand span { font-size: 1.4rem; }
    .step { padding-right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Privacy policy lists */
.policy-list { margin: 0; padding-left: 1.2em; }
.policy-list li { margin: 0 0 14px; line-height: 1.6; }
.policy-list li::marker { color: var(--brass); }
main > .detail:first-child { padding-top: 96px; }
.foot-fair { font-size: 13px; line-height: 1.6; }

/* Unit search bar */
.search .wrap { padding-block: 0; }
.search-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 20px 30px; padding-block: 36px; border-block: 1px solid var(--line); }
.search-bar .field { display: flex; flex-direction: column; gap: 10px; flex: 1 1 180px; min-width: 0; }
.search-bar .field span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.search-bar select, .search-bar input { background-color: transparent; box-sizing: border-box; height: 52px; font: inherit; font-size: 1.15rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--muted); border-radius: 0; padding: 10px 2px 12px; width: 100%; min-height: 48px; }
.search-bar select:focus-visible, .search-bar input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.search-bar .btn { flex: 0 0 auto; border: 0; cursor: pointer; font-family: inherit; }
.unit-card[hidden] { display: none; }
.no-match { margin: 0 0 24px; color: var(--muted); }
@media (max-width: 640px) { .search-bar .btn { width: 100%; } }
.search-bar select option { background: var(--bg); color: var(--ink); }

/* Logo: two transparent layers coloured in CSS. The body takes the text colour of its place, the arrow is always champagne. */
.logo-mark { position: relative; display: block; flex: none; aspect-ratio: 480 / 668; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; inset: 0; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.logo-mark::before { background: currentColor; -webkit-mask-image: url(images/logo-body.png); mask-image: url(images/logo-body.png); }
.logo-mark::after { background: #D2B880; -webkit-mask-image: url(images/logo-arrow.png); mask-image: url(images/logo-arrow.png); }
.head-logo { height: 52px; color: var(--ink); }
.foot-brand-row { display: flex; align-items: center; gap: 18px; }
.foot-brand-row p { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.1; }
.foot-logo { height: 68px; color: var(--on-foot); }
@media (max-width: 640px) { .head-logo { height: 42px; } .foot-logo { height: 58px; } }
