/* =============================================================================
   COHEN HOMES & ESTATES - concept preview (blueprint: realestate/agent-kirman)
   -----------------------------------------------------------------------------
   FONTS: Cormorant Garamond (display serif) + Jost (labels, nav, body).
   Reasoning: the blueprint's editorial register is a high-contrast display
   serif with giant numerals; Cormorant Garamond carries Toronto old-money
   estate gravitas without Fraunces. The COHEN wordmark itself is an extended
   geometric sans, so Jost (geometric, light weights, wide tracking) echoes the
   brand's own letterforms in eyebrows, labels and body. No house pairing.
   PALETTE: from theme.json / the live site's own scheme. Charcoal #1d1d1d and
   near-black #131111 surfaces (their real mid/footer bands), warm off-white
   #faf8f5 counter-bands, champagne gold #988060 (their logo-matched accent)
   spent ONLY on CTAs, rules and eyebrows. Gold is tinted per-surface for AA:
   #b39b76 on dark, #6d5a41 on light.
   ========================================================================== */

:root {
  --charcoal: #1d1d1d;
  --near-black: #131111;
  --off-white: #faf8f5;
  --white: #ffffff;
  --gold: #988060;
  --gold-on-dark: #b39b76;
  --gold-on-light: #6d5a41;
  --ink: #262626;
  --ink-soft: #4a4640;
  --paper-ink: #e9e3da;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Segoe UI", sans-serif;
}

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

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- shared type ---------- */
.eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 1rem;
}
.eyebrow-ondark { color: var(--gold-on-dark); }

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 1.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold {
  /* champagne, darkened one step for AA white-on-gold */
  background: #7f6a4e;
  color: #fff;
  border-color: #7f6a4e;
}
.btn-gold:hover { background: #6d5a41; border-color: #6d5a41; }
.btn-hero {
  color: #f4ecdf;
  border-color: var(--gold-on-dark);
  background: rgba(19, 17, 17, 0.35);
}
.btn-hero:hover { background: var(--gold); color: #fff; border-color: var(--gold); }
.btn-ghost-ondark {
  color: #ece5da;
  border-color: rgba(236, 229, 218, 0.55);
  background: transparent;
}
.btn-ghost-ondark:hover { border-color: var(--gold-on-dark); color: var(--gold-on-dark); }

.gold-link {
  font-size: 0.875rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--gold-on-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 0.35rem;
}
.gold-link:hover { color: var(--ink); }
.gold-link-ondark { color: var(--gold-on-dark); }
.gold-link-ondark:hover { color: #fff; }

/* =============================================================================
   NAV
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  background: linear-gradient(rgba(19, 17, 17, 0.82), rgba(19, 17, 17, 0.55) 70%, transparent);
  transition: background-color 0.3s;
}
.site-header.is-scrolled { background: rgba(19, 17, 17, 0.96); }

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
}
.brand img { width: 182px; height: 45px; }

.nav-links {
  display: flex;
  gap: 1.8rem;
}
.nav-links a {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: #efe9df;
}
.nav-links a:hover { color: var(--gold-on-dark); }
.nav-right { display: flex; justify-content: flex-end; }
.nav-phone {
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  color: #efe9df;
  text-decoration: none;
}
.nav-phone:hover { color: var(--gold-on-dark); }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .site-nav { grid-template-columns: auto 1fr auto; padding: 0.9rem 1rem; }
  .brand { justify-self: start; order: -1; }
  .brand img { width: 146px; height: 36px; }
  .nav-toggle {
    display: block;
    order: 2;
    justify-self: end;
    background: none;
    border: 1px solid rgba(239, 233, 223, 0.4);
    padding: 0.65rem 0.6rem;
    cursor: pointer;
  }
  .nav-toggle-bar,
  .nav-toggle-bar::before,
  .nav-toggle-bar::after {
    display: block;
    width: 20px;
    height: 1.5px;
    background: #efe9df;
    position: relative;
    content: "";
  }
  .nav-toggle-bar::before { position: absolute; top: -6px; }
  .nav-toggle-bar::after { position: absolute; top: 6px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(19, 17, 17, 0.98);
    display: none;
    padding: 0.5rem 0 1rem;
  }
  .nav-links a { padding: 0.85rem 1.25rem; }
  body.tk-nav-open .nav-links { display: flex; }
  .nav-right { order: 1; justify-self: end; }
  .nav-phone { font-size: 0.8125rem; }
}

/* =============================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--near-black);
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(19, 17, 17, 0.42), transparent 32%),
    linear-gradient(transparent 34%, rgba(19, 17, 17, 0.82) 88%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 8rem 1.5rem 3.5rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
}
.hero-copy { max-width: 34rem; padding-bottom: 1.5rem; }
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7.2vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 1.2rem;
}
.hero-sub {
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  letter-spacing: 0.04em;
  color: #ece5da;
  margin: 0 0 2rem;
  max-width: 30rem;
}

/* hero consultation card: frosted glass, the blueprint's card language */
.hero-card {
  width: min(24.5rem, 100%);
  background: rgba(19, 17, 17, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(179, 155, 118, 0.35);
  padding: 1.6rem 1.6rem 1.4rem;
}
.hero-card-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 1rem;
}

/* =============================================================================
   FORMS (shared)
   ========================================================================== */
.consult-form .field { margin: 0 0 0.85rem; }
.consult-form label {
  display: block;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.consult-form .opt { text-transform: none; letter-spacing: 0.02em; }
.consult-form input,
.consult-form select,
.consult-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(152, 128, 96, 0.55);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
}
.consult-form textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; gap: 0; } }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 1.1rem 0 0;
}
.honest-note {
  font-size: 0.8125rem;
  line-height: 1.55;
  margin: 1rem 0 0;
}
.form-summary {
  margin-top: 1.2rem;
  border: 1px solid rgba(179, 155, 118, 0.5);
  padding: 1rem 1.1rem;
}
.form-summary h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.5rem;
}

/* form colour context: dark cards/bands */
.hero-card label, .consult-band label { color: #e5ddd0; }
.hero-card .honest-note, .consult-band .honest-note { color: #cfc7ba; }
.hero-card .form-summary h3, .consult-band .form-summary h3 { color: #fdfbf7; }
.hero-card .form-summary-text, .consult-band .form-summary-text { color: #e5ddd0; }

/* =============================================================================
   STATS
   ========================================================================== */
.stats {
  background: var(--off-white);
  text-align: center;
  padding: 5.5rem 1.5rem 5rem;
}
.stats-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  max-width: 52rem;
  margin: 0 auto 1.2rem;
}
.stats-headline em { font-style: normal; color: var(--gold-on-light); }
.stats-support {
  font-weight: 300;
  max-width: 38rem;
  margin: 0 auto 3.5rem;
  color: var(--ink-soft);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 62rem;
  margin: 0 auto;
}
.stat-number {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 7vw, 5.8rem);
  line-height: 1;
  color: var(--ink);
  margin: 0 0 0.6rem;
}
.stat-label {
  font-size: 0.8125rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0;
}
@media (max-width: 720px) {
  .stats-row { grid-template-columns: 1fr; gap: 2.2rem; }
}

/* =============================================================================
   LISTINGS CAROUSEL
   ========================================================================== */
.listings {
  background: var(--charcoal);
  padding: 5rem 0 4.5rem;
}
.listings-head { text-align: center; padding: 0 1.5rem; }
.listings-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 2.5rem;
}
.listings-headline em { font-style: normal; color: var(--gold-on-dark); }

.carousel { position: relative; }
.carousel-track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.carousel-slide {
  display: none;
  position: relative;
}
.carousel-slide.is-active { display: block; }
.carousel-slide img {
  width: 100%;
  height: clamp(420px, 72vh, 700px);
  object-fit: cover;
}
.carousel-slide::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(19, 17, 17, 0.85));
  pointer-events: none;
}
.slide-caption {
  position: absolute;
  left: clamp(1.25rem, 5vw, 4.5rem);
  bottom: clamp(1.5rem, 5vh, 3rem);
  z-index: 1;
}
.slide-caption h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 0.4rem;
}
.slide-price {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  letter-spacing: 0.14em;
  color: #ece5da;
  margin: 0;
}
.slide-beds {
  display: inline-block;
  margin-left: 1rem;
  color: var(--gold-on-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.8em;
}
.carousel-controls {
  position: absolute;
  right: clamp(1.25rem, 5vw, 4.5rem);
  bottom: clamp(1.5rem, 5vh, 3rem);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.carousel-counter {
  color: #ece5da;
  letter-spacing: 0.3em;
  font-size: 0.875rem;
  margin: 0;
  background: rgba(19, 17, 17, 0.78);
  padding: 0.55rem 0.9rem;
}
.carousel-btn {
  background: rgba(19, 17, 17, 0.78);
  border: 1px solid rgba(236, 229, 218, 0.5);
  color: #ece5da;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.carousel-btn:hover { border-color: var(--gold-on-dark); color: var(--gold-on-dark); }
.listings-more { text-align: center; margin: 2.8rem 0 0; }
@media (max-width: 640px) {
  .carousel-controls { bottom: auto; top: 1rem; }
  .slide-caption { right: 1.25rem; }
}

/* =============================================================================
   ABOUT
   ========================================================================== */
.about {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 1.5rem;
}
.about::before {
  content: "BC";
  position: absolute;
  right: -2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: clamp(16rem, 34vw, 30rem);
  line-height: 1;
  color: rgba(152, 128, 96, 0.08);
  pointer-events: none;
}
.about-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 440px) 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
}
.about-photo img { filter: grayscale(0.35); }
.about-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.about-bio {
  font-weight: 300;
  color: var(--ink-soft);
  margin: 0 0 1.8rem;
  max-width: 38rem;
}
@media (max-width: 820px) {
  .about-inner { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
}

/* =============================================================================
   AFFILIATION (frosted card over full-bleed interior)
   ========================================================================== */
.affiliation {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  padding: 6rem 1.5rem;
  overflow: hidden;
}
.affiliation-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frosted-card {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  text-align: center;
  background: rgba(19, 17, 17, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(179, 155, 118, 0.35);
  padding: 3rem 2.5rem;
}
.frosted-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 1.1rem;
}
.frosted-copy {
  font-weight: 300;
  color: #e5ddd0;
  margin: 0 0 1.8rem;
}

/* =============================================================================
   REVIEWS
   ========================================================================== */
.reviews {
  background: var(--off-white);
  text-align: center;
  padding: 5.5rem 1.5rem;
}
.reviews-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 3rem;
}
.reviews-sub {
  display: block;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  letter-spacing: 0.24em;
  color: var(--gold-on-light);
  margin-top: 0.8rem;
}
.reviews-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 2rem;
  max-width: 62rem;
  margin: 0 auto;
  text-align: left;
}
.review {
  margin: 0;
  background: var(--white);
  border: 1px solid rgba(152, 128, 96, 0.28);
  padding: 2.2rem 2.2rem 1.9rem;
}
.review-stars {
  color: var(--gold);
  letter-spacing: 0.3em;
  margin: 0 0 1rem;
  font-size: 1rem;
}
.review p {
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 1.2rem;
}
.review cite {
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.8125rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-on-light);
}

/* =============================================================================
   CONSULT BAND + FOOTER
   ========================================================================== */
.consult-band {
  background: var(--charcoal);
  padding: 5.5rem 1.5rem;
}
.consult-inner { max-width: 46rem; margin: 0 auto; }
.consult-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fdfbf7;
  margin: 0 0 0.8rem;
}
.consult-lede { font-weight: 300; color: #cfc7ba; margin: 0 0 2.2rem; }

.site-footer {
  background: var(--white);
  text-align: center;
  padding: 4.5rem 1.5rem 5.5rem;
}
.footer-logo { margin: 0 auto 2.5rem; width: 226px; height: 56px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 2rem;
  max-width: 58rem;
  margin: 0 auto 3rem;
}
.footer-col h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-on-light);
  margin: 0 0 0.8rem;
}
.footer-col p { margin: 0 0 0.5rem; font-weight: 300; }
.footer-col a { color: var(--ink); text-decoration: none; border-bottom: 1px solid rgba(152, 128, 96, 0.45); }
.footer-col a:hover { color: var(--gold-on-light); }
.footer-fine {
  font-size: 0.8125rem;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 auto 0.6rem;
}
.footer-disclosure { letter-spacing: 0.06em; }

/* =============================================================================
   PREVIEW BADGE (fixed, unobtrusive, never restyled away)
   ========================================================================== */
.preview-badge {
  position: fixed;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 80;
  display: flex;
  gap: 0.5rem;
  font-size: 0.75rem;
}
.preview-badge a {
  text-decoration: none;
  padding: 0.45rem 0.8rem;
  letter-spacing: 0.04em;
}
.preview-badge-info { background: rgba(19, 17, 17, 0.88); color: #ece5da; }
.preview-badge-cta { background: #7f6a4e; color: #fff; }
.preview-badge-cta:hover { background: #6d5a41; }

/* skip link (base.css positions it off-screen; this is its visible state) */
.tk-skip-link { background: var(--near-black); color: #fff; padding: 0.7rem 1.2rem; }

/* mobile hero: photo block with the copy anchored to its lower-left, card below,
   both inside the hero section. hero-inner goes static so the copy's containing
   block is the .hero section itself. */
@media (max-width: 900px) {
  .hero { min-height: 0; display: block; background: var(--near-black); }
  .hero-photo { position: relative; height: 76svh; }
  .hero-scrim {
    inset: 0 0 auto 0;
    height: 76svh;
    background:
      linear-gradient(rgba(19, 17, 17, 0.45), transparent 30%),
      linear-gradient(transparent 30%, rgba(19, 17, 17, 0.9) 86%);
  }
  .hero-inner {
    position: static;
    display: block;
    padding: 0 1.25rem 2.5rem;
  }
  .hero-copy {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 1.25rem;
    right: 1.25rem;
    height: 76svh;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 2.25rem;
    margin: 0;
  }
  .hero-sub { margin-bottom: 1.4rem; }
  .hero-card {
    width: 100%;
    margin-top: 1.75rem;
    background: rgba(19, 17, 17, 0.94);
  }
}
