/* =============================================================================
   Michael St. Jean Realty - blueprint recreation of realestate/agent-kirman
   at St. Jean's brand, scaled to a mid-size Hamilton brokerage.

   TYPE. Display: Bodoni Moda (variable optical size). The blueprint's whole
   editorial system is a high-contrast serif used as display type with one
   two-tone word; Bodoni Moda gives that without the Playfair/Cormorant
   sameness and its hairlines hold up at the giant stat sizes. Body + labels:
   Archivo. St. Jean's wordmark is a wide geometric grotesque; Archivo has the
   same wide, square proportions so nav, labels and the logo read as one family
   without copying the logo face. Not Inter, not Space Grotesk, not Fraunces.

   COLOUR. The prospect's live site is charcoal bands with an off-white middle
   (theme.json siteScheme: #2d2d2d / #222 / #f9fafa / #222), so charcoal and
   off-white are the canvases. Their logo red (#ee2324, captured accent) is
   spent only on CTAs, rules and the two-tone display word - never a surface.
   ========================================================================== */

:root {
  --ink: #161616;
  --ink-2: #3a3a3a;
  --ink-3: #6b6b6b;
  --charcoal: #1c1c1c;
  --charcoal-2: #262626;
  --paper: #f4f2ee;
  --white: #ffffff;
  --line: rgba(22, 22, 22, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --red: #d81f25;        /* logo red, darkened one step for AA on off-white */
  --red-bright: #ee2324;
  --font-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --font-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --space-band: clamp(72px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--charcoal);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 14px; background: var(--red); color: #fff; text-decoration: none;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; }

/* ---- type system ---------------------------------------------------------- */
.eyebrow {
  font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase;
  font-weight: 500; color: var(--ink-3); margin: 0 0 18px;
}
.eyebrow-light { color: rgba(255, 255, 255, 0.72); }
.display {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1.04;
  letter-spacing: 0.005em;
}
.display em, h1 em { font-style: italic; font-weight: 400; color: var(--red); }
.band-dark .display em { color: #e9e3d6; }
.display-sm {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.12;
}

.btn {
  display: inline-block; padding: 15px 26px; font-size: 12.5px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600; text-decoration: none; border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s; cursor: pointer; font-family: inherit;
}
.btn-solid { background: var(--red-bright); color: #fff; border-color: var(--red-bright); }
.btn-solid:hover { background: #c41b20; border-color: #c41b20; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { border-color: #fff; }
.btn-ghost-dark { background: transparent; color: var(--ink); border-color: rgba(22, 22, 22, 0.45); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.text-link {
  display: inline-block; font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; text-decoration: none; color: var(--red); padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
}
.text-link-light { color: #fff; }

/* ---- bands ---------------------------------------------------------------- */
.band-light { background: var(--paper); color: var(--ink); }
.band-white { background: var(--white); color: var(--ink); }
.band-dark { background: var(--charcoal); color: #fff; }
.band-dark .eyebrow { color: rgba(255, 255, 255, 0.72); }

/* ---- nav ------------------------------------------------------------------ */
.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.72), rgba(10, 10, 10, 0));
  color: #fff;
}
.nav-wrap {
  width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px 0;
}
.nav-logo { display: block; flex: 0 0 auto; }
.nav-logo img { width: 176px; height: auto; max-width: 100%; object-fit: contain; }
.nav-links { display: flex; gap: clamp(18px, 2.4vw, 36px); align-items: center; }
.nav-links a {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  text-decoration: none; color: #fff; padding: 6px 0; border-bottom: 1px solid transparent;
}
.nav-links a:hover { border-bottom-color: rgba(255, 255, 255, 0.7); }
.nav-links .nav-contact { border-bottom-color: var(--red-bright); }
.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 7px; align-items: center;
}
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; transition: transform 0.2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-logo img { width: 146px; }
  .nav-links {
    position: fixed; inset: 0; background: rgba(16, 16, 16, 0.97);
    flex-direction: column; justify-content: center; gap: 28px;
    transform: translateX(100%); visibility: hidden; transition: transform 0.25s, visibility 0s 0.25s; z-index: 60;
  }
  .nav-links.is-open { transform: none; visibility: visible; transition: transform 0.25s, visibility 0s; }
  .nav-links a { font-size: 16px; }
  .nav-wrap { position: relative; }
  .nav-toggle { position: relative; z-index: 70; }
}

/* ---- hero ----------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; background: #111;
}
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; z-index: -2; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(8, 8, 8, 0.82) 0%, rgba(8, 8, 8, 0.45) 38%, rgba(8, 8, 8, 0.05) 70%);
}
.hero-inner {
  width: min(100% - var(--gutter) * 2, 1360px); margin-inline: auto;
  padding: 150px 0 clamp(44px, 7vw, 84px);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(50px, 8.6vw, 116px);
  line-height: 0.98; letter-spacing: 0.01em; font-weight: 400;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.hero h1 em { color: #fff; }
.hero-sub { max-width: 34ch; font-size: clamp(17px, 1.5vw, 21px); margin: 22px 0 28px; color: rgba(255, 255, 255, 0.9); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.hero-explore {
  font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600;
  color: #fff; text-decoration: none; padding: 14px 0 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}
.hero-explore:hover { border-bottom-color: #fff; }
@media (max-width: 600px) {
  .hero { min-height: 92svh; }
  .hero-inner { padding-bottom: 96px; } /* keeps the CTA clear of the fixed preview badge */
}

/* ---- stats ---------------------------------------------------------------- */
.stats { padding: var(--space-band) 0; }
.stats-inner { text-align: center; max-width: 880px; }
.stats .display { max-width: 16ch; margin-inline: auto; }
.stats-lead { max-width: 58ch; margin: 26px auto 0; color: var(--ink-2); }
.stat-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(36px, 4vw, 56px); border-top: 1px solid var(--line);
}
.stat dt { order: 2; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
.stat { display: flex; flex-direction: column; }
.stat dd { font-family: var(--font-display); font-size: clamp(52px, 6.5vw, 96px); line-height: 1; letter-spacing: -0.01em; }
.stat .plus { color: var(--red); font-size: 0.6em; vertical-align: 0.35em; }
@media (max-width: 640px) {
  .stat-row { grid-template-columns: 1fr; gap: 36px; }
}

/* ---- listings carousel ---------------------------------------------------- */
.listings { padding: var(--space-band) 0 calc(var(--space-band) * 0.8); }
.listings-head { text-align: center; margin-bottom: clamp(36px, 4vw, 60px); }
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .carousel-track { transition: none; } }
.slide { position: relative; flex: 0 0 100%; margin: 0; }
.slide img { width: 100%; height: clamp(420px, 62vh, 760px); object-fit: cover; }
.slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 96px var(--gutter) 28px;
  background: linear-gradient(to top, rgba(6, 6, 6, 0.82), rgba(6, 6, 6, 0));
  color: #fff;
}
.slide-name { display: block; font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; }
.slide-meta { display: block; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; color: rgba(255, 255, 255, 0.9); }
.carousel-ui {
  position: absolute; right: var(--gutter); bottom: 28px; display: flex; align-items: center; gap: 20px; color: #fff;
}
.carousel-count { font-family: var(--font-display); font-size: 20px; letter-spacing: 0.08em; }
.carousel-arrows { display: flex; gap: 8px; }
.carousel-arrows button {
  width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.6); background: rgba(0, 0, 0, 0.35);
  color: #fff; font-size: 18px; cursor: pointer; transition: background 0.2s;
}
.carousel-arrows button:hover { background: var(--red-bright); border-color: var(--red-bright); }
.listings-foot { text-align: center; margin-top: clamp(32px, 4vw, 52px); }
@media (max-width: 640px) {
  .slide img { height: 68vh; }
  .slide figcaption { padding-bottom: 84px; }
  .carousel-ui { bottom: 22px; left: var(--gutter); right: var(--gutter); justify-content: space-between; }
}

/* ---- about ---------------------------------------------------------------- */
.about { position: relative; overflow: hidden; padding: var(--space-band) 0; }
.watermark {
  position: absolute; right: -0.06em; bottom: -0.22em; font-family: var(--font-display);
  font-size: clamp(260px, 34vw, 520px); line-height: 1; color: rgba(22, 22, 22, 0.045); pointer-events: none; user-select: none;
}
.about-inner { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: end; }
.about-portrait { background: linear-gradient(to top, #e4e0d7, #efece6); border-bottom: 3px solid var(--red-bright); }
.about-portrait img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: top; }
.about-copy { padding-bottom: 8px; }
.about-title { font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 22px; }
.about-copy > p:not(.eyebrow):not(.about-title) { color: var(--ink-2); max-width: 60ch; }
.about-list { margin: 22px 0 30px; padding-left: 0; }
.about-list li { position: relative; padding-left: 26px; margin-bottom: 10px; color: var(--ink-2); }
.about-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 14px; height: 1px; background: var(--red); }
@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; align-items: start; }
  .about-portrait { max-width: 420px; }
}

/* ---- full-bleed feature with frosted card --------------------------------- */
.feature { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: center; isolation: isolate; background: #111; }
.feature-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.feature .wrap { display: flex; padding: clamp(56px, 8vw, 100px) 0; }
.feature-right .wrap { justify-content: flex-end; }
.feature-left .wrap { justify-content: flex-start; }
.glass {
  width: min(100%, 560px); padding: clamp(32px, 4vw, 56px);
  background: rgba(244, 242, 238, 0.93); color: var(--ink);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}
.glass p:not(.eyebrow) { color: var(--ink-2); margin: 18px 0 26px; }
.glass .display-sm + p { margin-top: 18px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 22px; }
.area-list li { font-family: var(--font-display); font-size: 24px; line-height: 1.2; padding-left: 18px; position: relative; }
.area-list li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 8px; height: 1px; background: var(--red); }

/* ---- press ---------------------------------------------------------------- */
.press { padding: var(--space-band) 0; }
.press .eyebrow { text-align: center; }
.press-logos {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px 48px;
  padding: 8px 0 clamp(44px, 5vw, 72px); margin-bottom: clamp(44px, 5vw, 72px); border-bottom: 1px solid var(--line);
}
.press-logos img { height: 54px; width: auto; max-width: 160px; object-fit: contain; filter: grayscale(1); opacity: 0.8; }
.press-logos img[alt="CHCH"] { height: 40px; }
.press-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.press-card { padding: 32px 0 0; border-top: 2px solid var(--ink); }
.press-date { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.press-card h3 { margin-bottom: 22px; }
.press-foot { text-align: center; margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 720px) {
  .press-cards { grid-template-columns: 1fr; }
  .press-logos img { height: 40px; max-width: 120px; }
}

/* ---- team + reviews ------------------------------------------------------- */
.team { padding: var(--space-band) 0; }
.team-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.team-photo { position: relative; }
.team-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 40% 50%; }
.quote { margin: 34px 0 0; padding: 0 0 30px; border-bottom: 1px solid var(--line-light); }
.quote p { font-family: var(--font-display); font-size: clamp(19px, 1.6vw, 23px); line-height: 1.45; color: #f2efe8; }
.quote cite { display: block; font-style: normal; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.68); margin-top: 16px; }
.team .text-link { margin-top: 30px; }
@media (max-width: 860px) {
  .team-inner { grid-template-columns: 1fr; }
  .team-photo { position: static; }
  .team-photo img { aspect-ratio: 4 / 3; }
}

/* ---- contact -------------------------------------------------------------- */
.contact { padding: var(--space-band) 0; }
.contact-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-copy > p:not(.eyebrow) { color: var(--ink-2); margin-top: 20px; max-width: 46ch; }
.contact-details { margin-top: 34px; display: grid; gap: 18px; }
.contact-details dt { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); }
.contact-details dd { font-family: var(--font-display); font-size: 24px; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--red); }
.consult-form { background: var(--white); padding: clamp(24px, 3.5vw, 44px); border-top: 3px solid var(--red-bright); }
.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 0;
  background: var(--paper); color: var(--ink); width: 100%;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red-bright); outline-offset: 0; border-color: transparent; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.call-link { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); text-decoration: none; border-bottom: 1px solid currentColor; }
.form-note { font-size: 13px; line-height: 1.55; color: var(--ink-3); margin-top: 20px; }
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---- footer --------------------------------------------------------------- */
.footer { padding: clamp(56px, 7vw, 88px) 0 110px; border-top: 1px solid var(--line-light); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding-bottom: 36px; border-bottom: 1px solid var(--line-light); }
.footer-logo { width: 140px; height: auto; object-fit: contain; }
.footer-brokerage { font-family: var(--font-display); font-size: 22px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding: 40px 0; }
.footer h3 { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255, 255, 255, 0.62); margin-bottom: 12px; font-family: var(--font-body); font-weight: 500; }
.footer p { color: #f2efe8; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-social { display: flex; flex-direction: column; gap: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px 28px; padding: 28px 0; border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.footer-links a { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; }
.footer-bottom { margin-top: 26px; font-size: 13px; color: rgba(255, 255, 255, 0.62) !important; }
.footer-disclosure { display: block; margin-top: 6px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- preview badge (PXLNorth chrome) -------------------------------------- */
.preview-badge {
  position: fixed; left: 12px; bottom: 12px; z-index: 100; display: flex; gap: 8px; flex-wrap: wrap;
  font-size: 12px; font-family: var(--font-body);
}
.preview-badge a { padding: 8px 12px; background: rgba(16, 16, 16, 0.92); color: #fff; text-decoration: none; border: 1px solid rgba(255, 255, 255, 0.25); }
.preview-badge-cta { background: var(--red-bright) !important; border-color: var(--red-bright) !important; }

/* ---- reveal (reduced-motion safe) ---------------------------------------- */
.fade-up { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }
