/* Cam Baker Condos: global styles for every page.
   Turquoise theme with light red undertones. Flat colors, no gradients, Geist type.
   Follows the Vercel Web Interface Guidelines (see CLAUDE.md). */

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

:root {
  color-scheme: light;

  /* Neutrals carry a slight warm (red) undertone */
  --bg: #FFFFFF;
  --blush: #FFF5F3;          /* alternate section background */
  --fg: #141111;             /* 18.9:1 on white */
  --fg-2: #403A39;           /* 10.4:1 on blush */
  --fg-3: #665E5C;           /* 5.9:1 on blush */
  --border: #EDE5E3;
  --border-strong: #D9CDCA;

  /* Turquoise */
  --accent: #007C85;         /* 5.0:1 with white, 4.6:1 on blush */
  --accent-hover: #06666D;
  --accent-tint: #E3F5F6;
  --deep: #073B42;           /* dark sections, footer */
  --on-deep: #FFFFFF;
  --on-deep-2: #FFFFFF;      /* secondary text on deep teal is white too; weight sets hierarchy */
  --turquoise: #6FEAF1;      /* 9.4:1 on deep; use on deep only */

  /* Red undertone accents */
  --coral: #C8473A;          /* 4.8:1 with white text */
  --coral-hover: #B83A30;
  --coral-soft: #E4665C;     /* decorative only, never text */

  --danger: #B83A30;
  --success: #176B42;

  --radius: 8px;
  --radius-lg: 12px;
  --container: 1160px;
  --header-h: 64px;
  --measure: 640px;

  --z-header: 30;
  --z-fab: 40;
  --z-skip: 60;
}

html {
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0, 124, 133, 0.15);
  scroll-padding-top: calc(var(--header-h) + 16px);
  scroll-padding-bottom: 96px; /* keeps focused fields clear of the floating contact button */
}
html:has(dialog[open]) { overflow: hidden; }

body {
  font-family: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.15; }
p, li, dd { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: #FFFFFF; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: var(--z-skip);
  background: var(--fg); color: #FFFFFF; padding: 10px 16px; border-radius: var(--radius);
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #FFFFFF; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  font: inherit; font-size: 15px; font-weight: 500; line-height: 1.2; text-align: center;
  border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn-coral { background: var(--coral); color: #FFFFFF; }
.btn-coral:hover { background: var(--coral-hover); color: #FFFFFF; }
.btn-secondary { background: var(--bg); color: var(--fg); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--fg); color: var(--fg); }
.btn-light { background: #FFFFFF; color: var(--deep); }
.btn-light:hover { background: var(--accent-tint); color: var(--deep); }
.btn-outline-light { background: transparent; color: #FFFFFF; border-color: rgba(255,255,255,0.6); }
.btn-outline-light:hover { border-color: #FFFFFF; background: rgba(255,255,255,0.12); color: #FFFFFF; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; font-weight: 600; border-radius: 10px; }
.btn[disabled] { cursor: progress; opacity: 0.7; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.btn-link:hover { color: var(--accent-hover); text-decoration: underline; }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #FFFFFF;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top);
}
.site-header .container { height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.wordmark { display: flex; flex-direction: column; text-decoration: none; color: var(--fg); line-height: 1.1; min-width: 0; }
.wordmark:hover { color: var(--fg); }
.wordmark-name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.wordmark-sub { font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.header-remax-logo { height: 36px; width: auto; flex: none; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--fg-2); text-decoration: none; font-size: 15px; border-radius: var(--radius);
}
.site-nav a:not(.btn):hover { color: var(--fg); background: var(--blush); }
.site-nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.site-nav .btn { margin-left: 8px; padding: 0 16px; font-size: 14px; }
.site-nav .btn[aria-current="page"] { color: #FFFFFF; background: var(--accent-hover); }

/* ===== Breadcrumbs ===== */
.breadcrumbs { padding-top: 20px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 14px; color: var(--fg-3); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; content: "/" / ""; margin: 0 10px; color: var(--border-strong); }
.breadcrumbs a { color: var(--fg-3); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumbs a:hover { color: var(--fg); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
.on-dark .breadcrumbs ol, .on-dark .breadcrumbs a { color: #FFFFFF; font-weight: 500; }
.on-dark .breadcrumbs a:hover, .on-dark .breadcrumbs [aria-current="page"] { color: #FFFFFF; }
.on-dark .breadcrumbs li + li::before { color: rgba(255,255,255,0.8); }

/* ===== Shared type & sections ===== */
.label { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
.on-dark .label { color: var(--turquoise); }
.photo-hero.on-dark .label { color: #FFFFFF; font-weight: 700; } /* turquoise fails over bright parts of photos */
.section { padding: 96px 0; }
.section-blush { background: var(--blush); }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 600; margin-bottom: 16px; }
.section-intro { color: var(--fg-2); font-size: 18px; max-width: 640px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.placeholder-note { font-size: 14px; color: var(--fg-3); }

/* ===== Photo hero (home, request info, blog posts with a hero image) ===== */
.photo-hero { position: relative; color: #FFFFFF; background: var(--deep); overflow: hidden; isolation: isolate; }
.photo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.photo-hero.on-dark .container { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.photo-hero.on-dark .btn { text-shadow: none; }
.photo-hero-scrim { position: absolute; inset: 0; background: rgba(4, 44, 50, 0.64); z-index: -1; }
.photo-hero-scrim.soft { background: rgba(4, 44, 50, 0.6); }
/* Light variant for pale photos: white wash, dark text. Worst-case contrast on the GS_BEACH crop:
   --fg 8.7:1, --fg-2 5.2:1. Small accent and --fg-3 text would fail, so they switch to darker colors. */
.photo-hero.light { color: var(--fg); background: #FFFFFF; }
.photo-hero.light .photo-hero-scrim { background: rgba(255, 255, 255, 0.55); }
.photo-hero.light .label { color: var(--fg); }
.photo-hero.light .post-dek, .photo-hero.light .meta-list,
.photo-hero.light .breadcrumbs ol, .photo-hero.light .breadcrumbs a { color: var(--fg-2); }
.photo-hero.light .breadcrumbs [aria-current="page"], .photo-hero.light .breadcrumbs a:hover { color: var(--fg); }
.photo-hero.light .breadcrumbs li + li::before { color: var(--fg-2); }
.photo-hero.light .post-title { color: var(--fg); }

.home-hero .container { display: flex; flex-direction: column; justify-content: center; min-height: min(760px, calc(100svh - var(--header-h))); padding-top: 72px; padding-bottom: 72px; }
.home-hero .photo-hero-img { object-position: center 55%; }
.hero-kicker { font-size: 15px; line-height: 1.4; letter-spacing: 0; text-wrap: balance; }
.hero-title { line-height: 1.1; text-wrap: balance;
  font-size: clamp(40px, 6vw, 68px); font-weight: 600; letter-spacing: -0.035em; margin-bottom: 20px; max-width: 820px; }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: #FFFFFF; font-weight: 500; max-width: 600px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.hero-actions .btn { min-width: 300px; }
.hero-actions .btn-coral { border-color: rgba(255,255,255,0.35); }
.hero-actions .hint { font-size: 14px; color: #FFFFFF; font-weight: 500; margin-top: 4px; }

/* ===== Reviews ("security" / trust section) ===== */
.trust-points { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 40px; }
.trust-points li { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--fg); }
.trust-points svg { width: 20px; height: 20px; color: var(--accent); flex: none; }

.carousel { position: relative; }
.carousel-track {
  list-style: none; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * 20px) / 3); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 4px; }
.review { scroll-snap-align: start; background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.review-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.review-source { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--fg-2); }
.review-source svg { width: 18px; height: 18px; }
.review-badge { font-size: 12px; font-weight: 500; color: var(--fg-3); border: 1px dashed var(--border-strong); border-radius: 999px; padding: 2px 10px; }
.review-text { color: var(--fg-3); font-size: 16px; flex: 1; }
.review-author { font-size: 14px; color: var(--fg-3); }
.review-stars { display: flex; gap: 3px; color: #A67C00; }
.review-stars svg { width: 16px; height: 16px; flex: none; }
.carousel-controls { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer;
  background: #FFFFFF; color: var(--fg); border: 1px solid var(--border-strong); border-radius: 999px;
}
.icon-btn:hover { border-color: var(--fg); }
.icon-btn[disabled] { opacity: 0.4; cursor: default; }
.icon-btn svg { width: 20px; height: 20px; }
.carousel-status { font-size: 14px; color: var(--fg-3); min-width: 56px; text-align: center; font-variant-numeric: tabular-nums; }

/* ===== About Cameron ===== */
.about-title { max-width: 820px; margin-bottom: 32px; }
.about-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: start; }
.about-copy > p:first-child { margin-top: 0; }
.headshot-img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: var(--radius-lg); background: var(--accent-tint); }

.accolade {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 28px; max-width: var(--measure);
  background: #FFFFFF; border: 1px solid var(--border); border-left: 4px solid var(--coral);
  border-radius: var(--radius-lg); padding: 20px 22px;
}
.accolade > svg { width: 28px; height: 28px; color: var(--coral); flex: none; margin-top: 2px; }
.accolade-title { font-size: 18px; font-weight: 700; color: var(--fg); line-height: 1.3; margin-bottom: 4px !important; }
.about-copy .accolade-text { font-size: 15px; margin-bottom: 12px; }
.accolade-years { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.accolade-years li {
  font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent-hover);
  background: var(--accent-tint); border-radius: 999px; padding: 4px 12px;
}
.about-copy p:not(.label) { color: var(--fg-2); font-size: 17px; margin-bottom: 16px; max-width: var(--measure); }
.contact-list { list-style: none; display: grid; gap: 8px; margin-top: 24px; font-size: 16px; }
.contact-list li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.contact-list .k { color: var(--fg-3); }
.contact-list a { font-variant-numeric: tabular-nums; }

/* Brand logos: one image cropped into 4 parts with background-position.
   Source image is 298 x 1014. --x/--y/--w/--h are the crop in source pixels,
   --s scales each part so the lockup reads evenly. Row on desktop, stack on phones. */
.brand-logos {
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px 48px;
  margin-top: 36px;
}
.logo-part {
  display: block; flex: none;
  width: calc(var(--w) * var(--s) * 1px);
  height: calc(var(--h) * var(--s) * 1px);
  background-image: var(--logo);
  background-repeat: no-repeat;
  background-size: calc(298px * var(--s)) calc(1014px * var(--s));
  background-position: calc(var(--x) * var(--s) * -1px) calc(var(--y) * var(--s) * -1px);
  mix-blend-mode: multiply;
  filter: brightness(1.025); /* lifts the artwork's #FBFCFE background to pure white */
}
.logo-balloon  { --x: 44; --y: 36;  --w: 216; --h: 286; --s: 0.3; }
.logo-foote    { --x: 10; --y: 387; --w: 279; --h: 170; --s: 0.4; }
.logo-name     { --x: 9;  --y: 631; --w: 286; --h: 98;  --s: 0.42; }
.logo-remax-ob { --x: 32; --y: 856; --w: 240; --h: 125; --s: 0.44; }

/* ===== Condo watchlist placeholders ===== */
.condo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.condo-card { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #FFFFFF; display: flex; flex-direction: column; min-width: 0; }
.condo-photo { display: block; width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--accent-tint); border-bottom: 1px solid var(--border); }
.condo-body { padding: 20px; display: grid; gap: 6px; }
.condo-tag { font-size: 13px; font-weight: 500; color: var(--coral); }
.condo-name { font-size: 19px; font-weight: 600; }
.condo-price { font-size: 15px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.condo-price strong { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent-hover); line-height: 1.2; }
.condo-note { font-size: 14px; color: var(--fg-3); margin-top: 16px; max-width: 760px; }
.condo-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.condo-facts li { font-size: 14px; font-weight: 500; color: var(--fg); background: var(--blush); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; font-variant-numeric: tabular-nums; }
.skeleton { display: block; height: 12px; border-radius: 6px; background: var(--border); }

/* ===== Mortgage calculator ===== */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px; align-items: start; }
.calc-form { background: #FFFFFF; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.calc-form .field.full { grid-column: 1 / -1; }
.input-affix { position: relative; }
.input-affix .affix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--fg-3); pointer-events: none; font-size: 16px; }
.input-affix .affix.pre { left: 12px; }
.input-affix .affix.post { right: 12px; }
.input-affix .input.has-pre { padding-left: 26px; }
.input-affix .input.has-post { padding-right: 34px; }
.calc-result { background: var(--deep); color: #FFFFFF; border-radius: var(--radius-lg); padding: 28px; position: sticky; top: calc(var(--header-h) + 24px); }
.calc-result .label { color: var(--turquoise); font-weight: 700; margin-bottom: 4px; }
.calc-total { font-size: clamp(40px, 5vw, 52px); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.calc-total-sub { color: #FFFFFF; font-weight: 500; margin-bottom: 24px; }
.calc-breakdown { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,0.3); }
.calc-breakdown div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.3); }
.calc-breakdown dt { color: #FFFFFF; font-weight: 500; display: flex; align-items: center; }
.calc-breakdown dd { font-variant-numeric: tabular-nums; font-weight: 700; color: #FFFFFF; }
.swatch { display: inline-block; flex: none; width: 12px; height: 12px; border-radius: 3px; margin-right: 10px; }
.calc-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.2); margin: 4px 0 20px; }
.calc-bar span { display: block; height: 100%; }
.calc-note { font-size: 14px; color: #FFFFFF; margin-top: 16px; }
.calc-note a { color: #FFFFFF; }

/* ===== Forms ===== */
.form-card { background: #FFFFFF; color: var(--fg); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--border); }
.form-card h2 { font-size: 24px; font-weight: 600; margin-bottom: 8px; }
.form-intro { font-size: 15px; color: var(--fg-2); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; min-width: 0; }
.field label { display: block; font-size: 14px; font-weight: 500; color: var(--fg); margin-bottom: 6px; cursor: pointer; }
.field .optional { font-weight: 400; color: var(--fg-3); }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px;
  font: inherit; font-size: 16px; color: var(--fg); background-color: #FFFFFF;
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none;
}
.input::placeholder { color: #8C8280; }
.input:hover { border-color: #B8AAA7; }
.input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); border-radius: var(--radius); }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input {
  background-color: #FFFFFF; color: var(--fg); padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23403A39' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
textarea.input { min-height: 88px; resize: vertical; }
input[type="number"].input { -moz-appearance: textfield; font-variant-numeric: tabular-nums; }
input[type="number"].input::-webkit-inner-spin-button, input[type="number"].input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.check-field label {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 14px; margin: 0;
  border: 1px solid var(--border); border-radius: var(--radius); font-weight: 400; color: var(--fg-2); cursor: pointer;
}
.check-field label:hover { border-color: var(--border-strong); }
.check-field label:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.check-field input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.check-field .optional { display: block; font-size: 14px; }
.field-error { display: block; font-size: 14px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }
.form-note { font-size: 14px; color: var(--fg-3); margin-top: 12px; text-align: center; }
.form-status { margin-top: 12px; font-size: 15px; }
.form-status:empty { display: none; }
.form-status.error { color: var(--danger); }
.form-success h2, .form-success h3 { margin-bottom: 12px; }
.form-success p { color: var(--fg-2); margin-bottom: 12px; }

.request-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; align-items: start; padding: 48px 0 96px; }
.request-points { list-style: none; display: grid; gap: 16px; margin-top: 24px; }
.request-points li { display: flex; gap: 12px; color: var(--fg-2); }
.request-points svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* ===== Floating contact button + dialog ===== */
.contact-fab {
  position: fixed; z-index: var(--z-fab);
  right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px 0 16px;
  background: var(--coral); color: #FFFFFF; border: 2px solid #FFFFFF; border-radius: 999px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  box-shadow: 0 2px 8px rgba(20, 17, 17, 0.18);
}
.contact-fab:hover { background: var(--coral-hover); }
.contact-fab svg { width: 20px; height: 20px; }

.contact-dialog {
  width: min(560px, calc(100vw - 32px)); max-height: min(88svh, 900px); margin: auto;
  padding: 0; border: 0; border-radius: 16px; color: var(--fg); background: #FFFFFF;
  overscroll-behavior: contain;
}
.contact-dialog::backdrop { background: rgba(7, 59, 66, 0.55); }
.dialog-inner { padding: 28px; overflow-y: auto; max-height: min(88svh, 900px); overscroll-behavior: contain; }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 8px; }
.dialog-head h2 { font-size: 24px; font-weight: 600; }
.dialog-close { flex: none; margin: -8px -8px 0 0; border: 0; }
.dialog-close:hover { background: var(--blush); }
.contact-methods { list-style: none; display: grid; gap: 10px; margin: 20px 0; }
.contact-methods a, .contact-methods .static {
  display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px;
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--fg); text-decoration: none;
}
.contact-methods .static { border-style: dashed; }
.contact-methods a:hover { border-color: var(--accent); background: var(--accent-tint); color: var(--fg); }
.contact-methods svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact-methods .m-label { display: block; font-weight: 500; }
.contact-methods .m-value { display: block; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.dialog-meta { font-size: 14px; color: var(--fg-3); margin-bottom: 20px; }
.dialog-divider { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }

/* ===== Blog: index ===== */
.page-head { padding: 32px 0 8px; }
.page-title { font-size: clamp(34px, 4.6vw, 52px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; max-width: 820px; }
.page-intro { color: var(--fg-2); font-size: 18px; max-width: 640px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; padding: 40px 0 96px; }
.card { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; background: #FFFFFF; }
.card:hover { border-color: var(--accent); }
.card-img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; background: var(--accent-tint); }
.card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card-tag { font-size: 14px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.card-title { font-size: 21px; font-weight: 600; line-height: 1.25; margin-bottom: 10px; }
.card-title a { color: var(--fg); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-ex { color: var(--fg-2); font-size: 15px; margin-bottom: 20px; flex: 1; }
.meta-list { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 14px; color: var(--fg-3); font-variant-numeric: tabular-nums; }
.on-dark .meta-list { color: #FFFFFF; font-weight: 500; }

/* ===== Blog: post ===== */
.post-head { padding: 32px 0; max-width: 820px; }
.post-title { font-size: clamp(32px, 4.6vw, 50px); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 16px; }
.post-dek { font-size: 19px; color: var(--fg-2); margin-bottom: 20px; max-width: 700px; }
.on-dark .post-dek { color: #FFFFFF; font-weight: 500; }
.post-hero .container { padding-bottom: 56px; }
.post-hero .post-head { padding-top: 56px; padding-bottom: 0; }
.cover { border-radius: var(--radius-lg); overflow: hidden; background: var(--accent-tint); }
.cover img { width: 100%; aspect-ratio: 1200 / 480; object-fit: cover; }

.post-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; padding: 48px 0 96px; }

.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc-title { font-size: 14px; font-weight: 600; color: var(--fg); margin-bottom: 12px; }
.toc ol { list-style: none; border-left: 1px solid var(--border); }
.toc a {
  display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 14px; line-height: 1.4; color: var(--fg-3); text-decoration: none;
}
.toc a:hover { color: var(--fg); }
.toc a.active { color: var(--fg); border-left-color: var(--accent); font-weight: 500; }

.article { min-width: 0; font-size: 17px; line-height: 1.7; }
.article > * + * { margin-top: 20px; }
.article > p, .article > ul, .article > ol, .article > h2, .article > h3, .article .faq { max-width: var(--measure); }
.article p, .article li { color: var(--fg-2); }
.article strong { color: var(--fg); font-weight: 600; }
.article h2 { font-size: clamp(24px, 3vw, 30px); font-weight: 600; margin-top: 56px; scroll-margin-top: calc(var(--header-h) + 16px); }
.article h3 { font-size: 19px; font-weight: 600; margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px); }
.article h2 + *, .article h3 + * { margin-top: 12px; }
.article ul, .article ol { padding-left: 22px; }
.article li + li { margin-top: 8px; }
.article li::marker { color: var(--fg-3); }
.article .lead { font-size: 19px; color: var(--fg); }

.callout { border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 20px 24px; }
.callout-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--fg) !important; margin-bottom: 8px; }
.callout-title svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.callout.warn { border-left-color: var(--coral); background: var(--blush); }
.callout.warn .callout-title svg { color: var(--coral); }
.callout ul { margin-top: 0; }

.table-wrap { overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; font-variant-numeric: tabular-nums; }
caption { caption-side: top; text-align: left; padding: 14px 16px; font-weight: 600; font-size: 15px; color: var(--fg); border-bottom: 1px solid var(--border); }
th, td { padding: 10px 16px; text-align: left; border-bottom: 1px solid var(--border); color: var(--fg-2); }
thead th { font-size: 14px; font-weight: 500; color: var(--fg-3); }
th:last-child, td:last-child { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tr.total td { color: var(--fg); font-weight: 600; border-top: 1px solid var(--border-strong); }
tr.net td { background: var(--deep); color: #FFFFFF; font-weight: 600; }
.pos { color: var(--success); font-weight: 600; }
.neg { color: var(--danger); font-weight: 600; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.home-guides { padding: 0; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 44px; padding: 16px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 500; color: var(--fg); font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-right: 4px;
  border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3);
  transform: translateY(-2px) rotate(45deg); transition: transform 150ms ease;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding-bottom: 20px; }
.faq .answer p { font-size: 16px; }
.faq .answer p + p { margin-top: 12px; }

.disclaimer { font-size: 14px !important; color: var(--fg-3) !important; border-top: 1px solid var(--border); padding-top: 24px; margin-top: 48px !important; }

/* ===== CTA band ===== */
.cta { background: var(--deep); color: #FFFFFF; }
.cta .container { padding-top: 72px; padding-bottom: 72px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: center; }
.cta-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; margin-bottom: 12px; }
.cta-text { color: #FFFFFF; font-weight: 500; font-size: 17px; max-width: 580px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-phone { margin-top: 16px; color: #FFFFFF; font-size: 15px; }
.cta-phone a { color: #FFFFFF; font-weight: 700; font-variant-numeric: tabular-nums; }
.cta-phone a:hover { color: #FFFFFF; }

/* ===== Footer ===== */
.site-footer { background: var(--deep); color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.12); padding-bottom: calc(env(safe-area-inset-bottom) + 72px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand { color: #FFFFFF; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.site-footer p { font-size: 15px; }
.footer-heading { color: #FFFFFF; font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.footer-links { list-style: none; display: grid; gap: 4px; }
.footer-links a, .footer-links button { color: #FFFFFF; font-weight: 500; text-decoration: none; font-size: 15px; display: inline-flex; align-items: center; min-height: 36px; font-variant-numeric: tabular-nums; background: none; border: 0; cursor: pointer; padding: 0; }
.footer-links a:hover, .footer-links button:hover { color: #FFFFFF; text-decoration: underline; }
.footer-address { font-style: normal; font-size: 15px; font-weight: 500; line-height: 1.5; margin-bottom: 8px; }
.footer-follow { margin-top: 20px; }
.social-links a { gap: 10px; }
.social-links svg { width: 18px; height: 18px; flex: none; }
.dialog-social { margin: -4px 0 16px; }
.dialog-social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 500; }
.dialog-social svg { width: 18px; height: 18px; color: #1877F2; }
.reviews-link { margin-right: 8px; }
.footer-legal { color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.25); padding-top: 20px; padding-bottom: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 32px; }
  .toc { position: static; margin-bottom: 40px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
  .toc ol { border-left: 0; }
  .toc a { padding-left: 0; border-left: 0; margin-left: 0; }
  .cta .container { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
  .carousel-track { grid-auto-columns: calc((100% - 20px) / 2); }
  .condo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-result { position: static; }
  .request-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .site-nav a.nav-secondary { display: none; }
  .site-nav a:not(.btn) { padding: 0 10px; }
  .site-nav .btn { margin-left: 2px; padding: 0 12px; }
  .wordmark-sub { display: none; }
  .header-remax-logo { display: none; }
  .form-row, .calc-form { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .form-card, .calc-form, .calc-result { padding: 22px 18px; }
  .section { padding: 64px 0; }
  .hero-actions, .hero-actions .btn { width: 100%; min-width: 0; }
  .carousel-track { grid-auto-columns: 88%; }
  .condo-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .headshot-img { width: 140px; }
  .brand-logos { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cover img { aspect-ratio: 16 / 9; }
  .contact-fab .fab-text { display: none; }
  .contact-fab { padding: 0; width: 56px; height: 56px; justify-content: center; }
  .dialog-inner { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .cta, .toc, .skip-link, .site-footer, .contact-fab { display: none; }
  .post-layout { display: block; padding: 0; }
}
