/* ==========================================================================
   35350 Curtis Blvd — Smartland landing page
   Design system: warm off-white editorial ground, charcoal ink, brand gold
   accent (sourced from the existing Smartland marketing materials), a
   refined serif for display type paired with Inter for UI/body text.
   ========================================================================== */

:root {
  --ink: #16140f;
  --ink-soft: #4a463d;
  --paper: #faf8f4;
  --paper-tint: #f1ede4;
  --line: #e3ddd0;
  --charcoal: #17181a;
  --charcoal-soft: #24262a;
  --gold: #b8872b;
  --gold-text: #8a611a; /* AA-contrast gold for text/icons on light backgrounds */
  --gold-soft: #d8b56a;
  --gold-tint: #f4e9d3;
  --white: #ffffff;

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;

  --container: 1200px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(22, 20, 15, 0.04), 0 8px 24px -12px rgba(22, 20, 15, 0.18);
  --shadow-lift: 0 20px 60px -20px rgba(22, 20, 15, 0.35);

  color-scheme: light;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
picture { display: block; line-height: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4vw + 1rem, 3.75rem); font-weight: 500; }
h2 { font-size: clamp(1.75rem, 2.4vw + 1rem, 2.75rem); font-weight: 500; }
h3 { font-size: 1.15rem; font-weight: 600; font-family: var(--font-body); }
p { margin: 0 0 1em; color: var(--ink-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 1rem; top: -3rem; background: var(--charcoal);
  color: var(--white); padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
  z-index: 200; transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem; padding: 0.9rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn--primary { background: var(--charcoal); color: var(--white); }
.btn--primary:hover { background: var(--ink); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--white); }
.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.85rem; }
.btn--block { width: 100%; }

.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-text); margin: 0 0 0.75rem;
}

.fine-print { font-size: 0.85rem; color: var(--ink-soft); opacity: 0.85; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,0.02); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-block: 0.9rem;
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 48px; width: auto; }

.primary-nav ul { display: flex; gap: 1.15rem; }
.primary-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-block: 0.25rem; white-space: nowrap;
}
.nav-label-short { display: none; }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.tel-link { text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.btn--sm { white-space: nowrap; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: 1px solid var(--line);
  border-radius: var(--radius-sm); cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin-inline: auto; transition: transform 0.2s ease, opacity 0.2s ease; }

.suite-layout.custom-3-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    margin-bottom: 3rem;
}

.custom-3-layout .card-grid--suites {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__lede { font-size: 1.08rem; max-width: 46ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2.25rem; }

.hero__facts {
  display: grid; grid-template-columns: repeat(3, auto); gap: 1.5rem 2rem;
  margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.hero-fact dt { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.hero-fact dd { margin: 0; font-size: 0.78rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.04em; }

.hero__media picture { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero__media img { width: 100%; height: auto; }

/* ==========================================================================
   Sections (shared)
   ========================================================================== */
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tint { background: var(--paper-tint); }
.section--dark { background: var(--charcoal); color: var(--white); }
.section--dark p { color: rgba(255,255,255,0.72); }

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--light h2 { color: var(--white); }
/* --gold-text is tuned for light backgrounds (3.2:1 on charcoal — fails AA);
   --gold-soft already passes 9:1+ on charcoal and matches the studio section's
   existing accent color (price tag, bullet dots), so reuse it here. */
.section-head--light .eyebrow { color: var(--gold-soft); }
.section-lede { font-size: 1.05rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 1.25rem; }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card-grid--suites { grid-template-columns: repeat(3, 1fr); }

.info-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.5rem; box-shadow: var(--shadow-card);
}
.info-card h3 { margin-bottom: 0.5rem; }
.info-card p { margin-bottom: 0; font-size: 0.94rem; }
.info-card--dark { background: var(--charcoal-soft); border-color: rgba(255,255,255,0.08); }
.info-card--dark h3 { color: var(--white); }
.info-card--dark p { color: rgba(255,255,255,0.68); }

/* ==========================================================================
   Building overview
   ========================================================================== */
.building-media-grid {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; margin-bottom: 2.5rem;
}
.building-media-grid picture { border-radius: var(--radius-md); overflow: hidden; height: 100%; }
.building-media-grid img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   Lease table
   ========================================================================== */
.table-scroll-hint {
  display: none; align-items: center; gap: 0.4rem; margin: 0 0 0.6rem;
  font-size: 0.8rem; font-weight: 600; color: var(--gold-text);
}
.table-wrap { position: relative; overflow-x: auto; margin-bottom: 1rem; -webkit-overflow-scrolling: touch; }
.table-wrap::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 36px;
  background: linear-gradient(to right, rgba(241, 237, 228, 0), var(--paper-tint) 85%);
  opacity: 0; transition: opacity 0.2s ease; pointer-events: none; border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.table-wrap.has-overflow::after { opacity: 1; }
.table-wrap.is-at-end::after { opacity: 0; }
.lease-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--white); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); }
.lease-table th, .lease-table td { text-align: left; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.lease-table thead th { background: var(--charcoal); color: var(--white); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.04em; }
.lease-table tbody th { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.lease-table tbody tr:last-child td, .lease-table tbody tr:last-child th { border-bottom: none; }

/* ==========================================================================
   Third-floor suites
   ========================================================================== */
.suite-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: start; margin-bottom: 3rem; }
.card-grid--suites { grid-template-columns: repeat(2, 1fr); }

.suite-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 1.35rem; box-shadow: var(--shadow-card); position: relative;
}
.suite-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.suite-card__head h3 { margin-bottom: 0.15rem; font-size: 1.02rem; }
.suite-card__letter {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--gold-tint); color: var(--gold-text); font-weight: 700; font-size: 0.78rem;
  flex-shrink: 0;
}
.suite-card__size { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.suite-card__price { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; margin-bottom: 0.3rem; }
.suite-card__price span { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.suite-card__note { font-size: 0.82rem; color: var(--gold-text); margin-bottom: 0; }

/* Floor plan presented as its own contained card, matching the pricing
   cards beside it, rather than a bare image floating next to text. */
.suite-layout__plan {
  margin: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 1.5rem;
}
.suite-layout__plan picture { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--paper-tint); }
.suite-layout__plan figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1rem; }
.suite-layout__plan figcaption a { color: var(--gold-text); font-weight: 600; text-decoration: none; }
.suite-layout__plan figcaption a:hover { text-decoration: underline; }

/* ---------- Zoomable images (gallery grid + floor plan) ---------- */
.gallery__trigger { display: block; width: 100%; padding: 0; border: none; background: none; cursor: zoom-in; text-align: left; }
.gallery__trigger img { transition: transform 0.35s ease; }
.gallery__trigger:hover img { transform: scale(1.03); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery__item { margin: 0; }
.gallery__item .gallery__trigger { border-radius: var(--radius-md); overflow: hidden; }
.gallery__item .gallery__trigger picture, .gallery__item .gallery__trigger img { border-radius: var(--radius-md); }
.gallery__item .gallery__trigger img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery__item figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.6rem; }

/* ==========================================================================
   Media studio
   ========================================================================== */
.studio-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 2.5rem; align-items: center; margin-bottom: 2.5rem; }
.studio-layout__media { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); }
.studio-layout__media img { width: 100%; object-fit: cover; }

.studio-price-tag { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.5rem; }
.studio-price-tag__price { font-family: var(--font-display); font-size: 3rem; font-weight: 600; color: var(--gold-soft); line-height: 1; }
.studio-price-tag__price span { font-size: 1.15rem; font-weight: 500; color: rgba(255,255,255,0.6); }
.studio-price-tag__note { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.04em; }

.studio-usecases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1rem; margin-bottom: 2rem; }
.studio-usecases li { position: relative; padding-left: 1.1rem; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.studio-usecases li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); }

.card-grid--dark { margin-bottom: 2.5rem; }

.studio-secondary { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.studio-secondary picture { border-radius: var(--radius-md); overflow: hidden; }
.studio-secondary img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }

/* ==========================================================================
   Location
   ========================================================================== */
.location-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2.5rem; align-items: stretch; }
.location-grid__map { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); min-height: 340px; }
.location-grid__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }

.location-grid__facts { display: flex; flex-direction: column; gap: 1.25rem; justify-content: center; }
.location-grid__facts li { display: flex; flex-direction: column; gap: 0.2rem; border-bottom: 1px solid var(--line); padding-bottom: 1.1rem; }
.location-grid__facts li:last-child { border-bottom: none; padding-bottom: 0; }
.location-grid__facts strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.location-grid__facts span { color: var(--ink-soft); font-size: 0.94rem; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }

.broker-card {
  display: flex; gap: 1rem; align-items: center; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.25rem;
  margin-top: 2rem; box-shadow: var(--shadow-card);
}
.broker-card picture, .broker-card img { border-radius: 50%; width: 68px; height: 68px; object-fit: cover; flex-shrink: 0; }
.broker-card__name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: 0.15rem; }
.broker-card__title { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.broker-card__links { display: flex; gap: 1rem; margin-bottom: 0; font-size: 0.88rem; font-weight: 600; }
.broker-card__links a { text-decoration: none; }
.broker-card__links a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow-card);
}
.contact-form h3 { margin-bottom: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 0.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem; background: var(--paper); color: var(--ink); resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-text); outline-offset: 1px; border-color: var(--gold-text); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #b3402f; }
.field__error { font-size: 0.8rem; color: #b3402f; margin: 0.3rem 0 0; min-height: 1em; }
.field__status { font-size: 0.88rem; font-weight: 600; margin: 0.75rem 0 0; min-height: 1.2em; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--charcoal); color: rgba(255,255,255,0.75); padding-top: 3.5rem; }
/* Official white-on-transparent variant of the header logo, sized to match
   .brand__logo's height for a consistent brand presence in both places. */
.site-footer__logo { height: 34px; width: auto; }
.site-footer__inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer__brand p { margin-top: 0.75rem; font-size: 0.88rem; color: rgba(255,255,255,0.55); }
.site-footer nav ul { display: flex; flex-direction: column; gap: 0.6rem; }
.site-footer nav a, .site-footer__contact a { text-decoration: none; color: rgba(255,255,255,0.75); font-size: 0.92rem; }
.site-footer nav a:hover, .site-footer__contact a:hover { color: var(--white); }
.site-footer__contact p { margin: 0 0 0.5rem; font-size: 0.92rem; }
.site-footer__contact a { display: inline-flex; align-items: center; gap: 0.4rem; }
.site-footer__contact a svg { flex-shrink: 0; opacity: 0.75; }
.site-footer__contact a:hover svg { opacity: 1; }
.site-footer__legal { padding-block: 1.5rem; font-size: 0.8rem; color: rgba(255,255,255,0.45); }
.site-footer__legal p { margin: 0; color: inherit; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 14, 11, 0.92); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 90vh; border-radius: var(--radius-sm); }
.lightbox__close {
  position: absolute; top: 1.25rem; right: 1.5rem; background: none; border: none;
  color: var(--white); font-size: 2.25rem; line-height: 1; cursor: pointer; padding: 0.5rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
/* Header "squeeze" range: full desktop nav still shows (no hamburger), but
   there isn't enough room for full-length labels + phone + CTA on one line.
   Shorten two labels and tighten spacing rather than let anything wrap. */
@media (min-width: 821px) and (max-width: 1150px) {
  .site-header .wrap { padding-inline: 1rem; }
  .site-header__inner { gap: 0.5rem; }
  .primary-nav ul { gap: 1rem; }
  .primary-nav a { font-size: 0.86rem; }
  .nav-label-full { display: none; }
  .nav-label-short { display: inline; }
  .site-header__actions { gap: 0.6rem; }
}

@media (max-width: 960px) {
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .suite-layout { grid-template-columns: 1fr; }
  .card-grid--suites { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .primary-nav { position: fixed; inset: 64px 0 0 0; background: var(--paper); padding: 1.5rem; transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; border-top: 1px solid var(--line); }
  .primary-nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 0.25rem; }
  .primary-nav a { display: block; padding: 0.9rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .site-header__actions .tel-link, .site-header__actions .btn--sm { display: none; }
  body.nav-open { overflow: hidden; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__facts { grid-template-columns: repeat(3, 1fr); gap: 1rem; }

  .building-media-grid { grid-template-columns: 1fr; }
  .card-grid--4 { grid-template-columns: 1fr; }
  .card-grid--suites { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-usecases { grid-template-columns: 1fr 1fr; }
  .studio-secondary { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  /* No-JS fallback: the table's fixed min-width means it will overflow at
     this width regardless of exact container padding. JS refines this
     (main.js only shows the hint when there truly is overflow to scroll). */
  .table-scroll-hint { display: flex; }
}

@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .card-grid--suites { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .broker-card { flex-direction: column; text-align: center; }
  .broker-card__links { justify-content: center; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .contact-form fieldset { grid-template-columns: 1fr !important; }
}

/* ==========================================================================
   WordPress conversion additions
   ========================================================================== */

/* Fluent Forms Pro override — restyles the plugin's own markup/classes to
   match .contact-form/.field above pixel-for-pixel, rather than replacing
   its functionality. Nothing here touches Fluent Forms' own class names'
   *behavior* (validation, AJAX submit, conditional logic), only their
   appearance — the plugin still fully owns how the form works. */
.contact-form .fluentform { margin: 0; }
.contact-form .fluentform * { box-sizing: border-box; }
.contact-form fieldset {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem;
  border: none; margin: 0; padding: 0; min-inline-size: 100% !important;
}
.contact-form .ff-el-group { margin-bottom: 1.1rem; grid-column: span 1; }
.contact-form .ff-el-group:nth-of-type(5),
.contact-form .ff-el-group:nth-of-type(6) { grid-column: 1 / -1; }
.contact-form .ff-el-input--label { margin-bottom: 0.4rem; }
.contact-form .ff-el-input--label label {
  display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink);
}
.contact-form .ff-el-is-required label::after { content: ' *'; color: var(--ink-soft); }
.contact-form .ff-el-form-control {
  width: 100%; padding: 0.75rem 0.9rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; font-size: 0.95rem; background: var(--paper); color: var(--ink);
}
.contact-form textarea.ff-el-form-control { resize: vertical; }
.contact-form .ff-el-form-control:focus {
  outline: 2px solid var(--gold-text); outline-offset: 1px; border-color: var(--gold-text);
}
.contact-form .ff-el-form-control.error,
.contact-form .ff-el-form-control[aria-invalid="true"] { border-color: #b3402f; }
.contact-form .error,
.contact-form .error-message,
.contact-form .text-danger { font-size: 0.8rem; color: #b3402f; margin: 0.3rem 0 0; display: block; }
.contact-form .ff_submit_btn_wrapper { margin-bottom: 0; }
.contact-form .ff-btn.ff-btn-submit {
  display: flex; width: 100%; align-items: center; justify-content: center;
  padding: 0.9rem 1.6rem; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem;
  background: var(--charcoal) !important; color: var(--white) !important; border: none;
  cursor: pointer; transition: background-color 0.15s ease, transform 0.15s ease;
}
.contact-form .ff-btn.ff-btn-submit:hover { background: var(--ink) !important; transform: translateY(-1px); }
.contact-form .ff-message-success {
  font-size: 0.95rem; font-weight: 600; color: var(--ink); background: var(--gold-tint);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem 1.25rem;
}

/* ---------- Persistent contact CTA ----------
   Reuses .btn/.btn--primary/.btn--ghost/.btn--sm as-is (same radius, same
   colors, same hover states as every other button on the site) inside a
   small fixed "card" — the card needs its own opaque background/border/
   shadow (matching the sticky header's own var(--paper) treatment) because
   this floats over every section, including the dark studio section, so it
   must stay legible regardless of what's scrolling underneath it.
   z-index sits below the lightbox (300) and below the header's own
   stacking context (100) — see z-index audit note — so it can never paint
   above the lightbox or the open mobile-nav overlay. */
.persistent-cta {
  position: fixed; z-index: 90;
  display: flex; align-items: stretch; gap: 0.5rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 0.5rem; box-shadow: var(--shadow-lift);
  right: 1.25rem; bottom: 1.25rem;
}
.persistent-cta .btn { white-space: nowrap; }
.persistent-cta__call svg { flex-shrink: 0; }

/* Fully hidden while the mobile menu overlay is open — no point floating a
   contact capsule behind/around a full-screen nav list, and this also
   guarantees it can never visually compete with that overlay. */
body.nav-open .persistent-cta { display: none; }

/* Reserve room below the copyright line so the fixed capsule never sits on
   top of it at the true bottom of the page (verified by measuring actual
   overlap, not just eyeballing it). Added to .site-footer__legal itself
   rather than `body` — body's background is the light page color, so
   padding there would expose a mismatched light strip under the dark
   footer instead of just extending the footer's own dark background. */
@media (min-width: 821px) {
  .site-footer__legal { padding-bottom: 5.5rem; }
}

@media (max-width: 820px) {
  /* Same idea, sized for the full-width mobile bar + iOS safe area. Larger
     than the bar's own height alone because the legal line wraps to 2-3
     lines at this width, and its wrapped height needs to clear the bar too
     (verified by measuring actual rendered overlap, not assumed). */
  .site-footer__legal { padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px)); }

  .persistent-cta {
    left: 0; right: 0; bottom: 0; top: auto; width: 100%;
    border-radius: 0; border-inline: none; border-bottom: none;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    gap: 0.6rem;
  }
  .persistent-cta .btn { flex: 1 1 0; }
}

@media (max-width: 820px) {
  .custom-3-layout .card-grid--suites { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
}
@media (max-width: 560px) {
  .custom-3-layout .card-grid--suites { grid-template-columns: 1fr; }
}

.brokerage-badge {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 1.25rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.brokerage-badge img { width: 44px; height: 44px; flex: none; }
.brokerage-badge p { margin: 0; font-size: 0.82rem; line-height: 1.45; color: var(--ink-soft); }
.brokerage-badge strong {
  display: block; font-family: var(--font-display);
  font-size: 1rem; font-weight: 600; color: var(--ink);
}
@media (max-width: 560px) { .brokerage-badge { justify-content: center; } }

.hero__caption { margin: 0.75rem 0 0; text-align: center; font-size: 0.85rem; color: var(--ink-soft); }