/* ========================================
   AGREED.CO.UK — SHARED STYLES
   Mobile-first. Min-width breakpoints scale up.
   sm: 640+   md: 768+   lg: 1024+   xl: 1280+
======================================== */

/* Self-hosted Inter (variable). Replaces the Google Fonts stylesheet — no
   external CSS request, no fonts.googleapis/gstatic dependency. The variable
   woff2 covers weights 100–900 in one file. font-display:swap matches the
   `&display=swap` previously requested from Google. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/Content/home2027/fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('/Content/home2027/fonts/InterVariable-Italic.woff2') format('woff2');
}

:root {
  --bg: #E8EFF4;
  --fg: #0F1924;
  --muted: #6B7C85;
  --secondary: #6B7C85;
  --secondary-soft: rgba(107, 124, 133, 0.10);
  --border: #D5DEE4;
  --border-soft: rgba(213, 222, 228, 0.5);
  --accent: #FF3366;
  /* Derived from --accent so per-tenant overrides (microsites) cascade. */
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-glow: color-mix(in srgb, var(--accent) 35%, transparent);
  --accent-faint: color-mix(in srgb, var(--accent) 6%, transparent);
  --accent-veil: color-mix(in srgb, var(--accent) 18%, transparent);
  --card: #FFFFFF;
  --card-elev: #F5F8FA;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h, 64px) + 24px); }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
section { padding: 56px 0; position: relative; }

h1, h2, h3, h4 { letter-spacing: -0.025em; line-height: 1.1; }
.section-eyebrow { color: var(--accent); font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; margin-bottom: 16px; }
.section-title { font-size: clamp(32px, 8vw, 44px); line-height: 1.02; letter-spacing: -0.03em; font-weight: 800; }
.section-title .accent { color: var(--accent); font-style: italic; font-weight: 900; }
.section-sub { color: var(--muted); font-size: 16px; margin-top: 16px; line-height: 1.55; max-width: 560px; }
.section-header { margin-bottom: 40px; max-width: 720px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* LOGO — real Agreed.co.uk wordmark */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 22px;
  color: var(--accent);
  text-decoration: none;
}
.logo svg {
  height: 100%;
  width: auto;
  display: block;
}
footer .logo { height: 26px; }
.site-nav .logo { height: 35px; padding-left: 12px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 100px;
  font-weight: 600; font-size: 15px; border: none;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
  white-space: nowrap; user-select: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: btnShimmerWide 8s ease-in-out 1.2s infinite;
  pointer-events: none;
}
.btn-primary:hover::after { animation-duration: 4s; }
/* Opt-in pulse for high-attention CTAs (currently only the header "Book a demo"). */
.btn-primary.btn-pulse {
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
  animation: btnPulseExpandSlow 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.btn-primary.btn-pulse:hover {
  animation: none;
  box-shadow: 0 8px 24px var(--accent-glow);
}
@keyframes btnPulseExpandSlow {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); }
  80%  { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 18px color-mix(in srgb, var(--accent) 0%, transparent); }
}
@keyframes btnShimmerWide {
  0%   { transform: translateX(-110%); }
  40%  { transform: translateX(110%); }
  100% { transform: translateX(110%); }
}
.btn-ghost { background: transparent; color: var(--fg); }
.btn-ghost:hover { background: var(--card-elev); }
.btn-light { background: var(--fg); color: #fff; }
.btn-light:hover { transform: translateY(-1px); }
.btn-outline { background: var(--card); color: var(--fg); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* NAV */
/* NB: backdrop-filter creates a containing block for position:fixed descendants —
   that breaks the mobile .nav-menu drawer (which is fixed). Only enable the frosted
   effect at LG+ where the menu is position:static and unaffected. */
nav.site-nav { position: sticky; top: 0; z-index: 100; background: var(--bg); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: transparent; border: none; border-radius: 8px; color: var(--fg); }
.nav-toggle:hover { background: var(--card-elev); }
.nav-toggle .open-icon { display: block; }
.nav-toggle .close-icon { display: none; }
body.nav-open .nav-toggle .open-icon { display: none; }
body.nav-open .nav-toggle .close-icon { display: block; }
.nav-menu { position: fixed; top: var(--nav-h, 64px); left: 0; right: 0; bottom: 0; z-index: 99; background: var(--bg); padding: 24px 16px 32px; transform: translateY(-100vh); transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1); display: flex; flex-direction: column; gap: 8px; overflow-y: auto; border-top: 1px solid var(--border); }
body.nav-open .nav-menu { transform: translateY(0); }
.nav-menu a.nav-link { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px; font-size: 18px; font-weight: 600; color: var(--fg); border-radius: var(--radius-md); border-bottom: 1px solid var(--border); }
.nav-menu a.nav-link:hover { background: var(--card); }
.nav-menu a.nav-link svg { color: var(--muted); }
.nav-menu .nav-cta-mobile { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
body.nav-open { overflow: hidden; }
.nav-links, .nav-cta-desktop { display: none; }

/* HERO */
.hero { padding: 48px 0 40px; position: relative; }
.hero::before { content: ''; position: absolute; top: -100px; left: 50%; transform: translateX(-50%); width: min(1100px, 100%); height: 600px; background: radial-gradient(ellipse at center, var(--accent-soft), transparent 60%); pointer-events: none; z-index: -1; }
.hero-content { max-width: 980px; position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 100px; background: var(--card); border: 1px solid var(--border); font-size: 12px; color: var(--muted); margin-bottom: 20px; max-width: 100%; }
.hero-badge .dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); flex-shrink: 0; }
.hero-badge .new { color: var(--accent); font-weight: 600; }
.hero-badge-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero h1 { font-size: clamp(40px, 11vw, 60px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 20px; }
.hero h1 .accent { color: var(--accent); font-style: italic; font-weight: 900; }
.hero p.lead { font-size: 16px; color: var(--muted); margin-bottom: 28px; line-height: 1.55; }
.hero p.lead strong { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.hero-cta .btn { width: 100%; }
.hero-cta .meta { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }
.hero-cta .meta a { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }

.stat-strip { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 32px; padding: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.stat { text-align: center; }
.stat-v { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg); }
.stat-v .accent { color: var(--accent); }
.stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; line-height: 1.3; }

/* AUDIENCE SIGNPOSTS */
.audience-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.audience-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; display: block; overflow: hidden; transition: border-color 0.2s, transform 0.2s; }
.audience-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.audience-card .tag { display: inline-flex; padding: 4px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px; }
.audience-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; line-height: 1.1; }
.audience-card p { color: var(--muted); font-size: 15px; margin-bottom: 20px; line-height: 1.55; }
.audience-card .arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 14px; }
.audience-card .arrow svg { transition: transform 0.2s; }
.audience-card:hover .arrow svg { transform: translateX(4px); }

/* WHO WE ARE */
.who-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.who-card { padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); position: relative; overflow: hidden; }
.who-card .num { font-size: 12px; font-weight: 700; color: var(--secondary); letter-spacing: 0.1em; margin-bottom: 16px; }
.who-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; line-height: 1.15; }
.who-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.who-card.feature { background: var(--accent); color: #fff; border-color: var(--accent); }
.who-card.feature .num { color: #fff; opacity: 0.7; }
.who-card.feature p { color: rgba(255, 255, 255, 0.9); }

/* FEATURE GRID */
.feat-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
.feat { padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color 0.2s, transform 0.2s; }
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.feat-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.feat-icon svg { width: 20px; height: 20px; }
.feat h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.feat h3 .pill { display: inline-flex; padding: 2px 8px; border-radius: 100px; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; margin-left: 6px; vertical-align: 2px; }
.feat p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* PRODUCT DASHBOARD MOCKUPS */
.dashboard-shot {
  position: relative;
  width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(15, 25, 36, 0.25), 0 8px 24px -8px rgba(15, 25, 36, 0.15);
  background: #F5F8FA;
}
.dashboard-shot img { display: block; width: 100%; height: auto; }
.dashboard-split { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .dashboard-split { grid-template-columns: 1fr 1fr; gap: 32px; }
}
.dashboard-block {
  display: flex; flex-direction: column; gap: 16px;
}
.dashboard-block .dash-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.dashboard-block h3 {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 0;
}
.dashboard-block p {
  font-size: 15px; line-height: 1.6; color: var(--muted); margin: 0;
}

/* VALUE PROPS */
.values { display: grid; gap: 16px; grid-template-columns: 1fr; }
.value-card { padding: 28px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.value-card .big { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.value-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.015em; }
.value-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* FEATURE LIST */
.feature-list { margin: 0; }
.feature-list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.feature-list li strong { color: var(--fg); font-weight: 600; display: block; margin-bottom: 2px; }
.feature-list li .muted { color: var(--muted); }

/* AUDIENCE BLOCKS */
.audience-block { padding: 56px 0; border-top: 1px solid var(--border); }
.audience-layout { display: grid; gap: 32px; grid-template-columns: 1fr; }

.a-visual { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 20px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.a-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 0% 0%, var(--accent-soft), transparent 55%); pointer-events: none; }
.av-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; position: relative; z-index: 1; }
.av-tabs { display: flex; gap: 4px; padding: 3px; background: var(--card-elev); border: 1px solid var(--border); border-radius: 100px; }
.av-tab { padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--muted); border-radius: 100px; }
.av-tab.active { background: var(--accent); color: #fff; }
.av-pill { padding: 5px 10px; font-size: 10px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 100px; }
.av-list { display: flex; flex-direction: column; gap: 8px; position: relative; z-index: 1; }
.av-row { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px; background: var(--card-elev); border: 1px solid var(--border); border-radius: var(--radius-md); }
.av-row.hl { border-color: var(--accent); background: var(--accent-faint); }
.av-thumb { width: 32px; height: 32px; border-radius: var(--radius-sm); background: linear-gradient(135deg, var(--secondary), #A7B5BD); }
.av-row.hl .av-thumb { background: var(--accent); }
.av-line-top { height: 9px; background: rgba(15, 25, 36, 0.14); border-radius: 3px; margin-bottom: 5px; width: 80%; }
.av-line-bot { height: 7px; background: rgba(15, 25, 36, 0.07); border-radius: 3px; width: 50%; }
.av-meta { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 0.05em; }
.av-row.hl .av-meta { color: var(--accent); }
.av-foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: relative; z-index: 1; }
.av-stat .v { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.av-stat .l { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* PROOF */
.proof-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.quote { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.quote .stars { color: var(--accent); margin-bottom: 14px; font-size: 14px; letter-spacing: 1px; }
.quote blockquote { font-size: 15px; line-height: 1.55; margin-bottom: 18px; flex: 1; }
.quote .who-said { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.quote .who-said .av { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #FF7799); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: #fff; }
.quote .who-said .name { font-weight: 600; font-size: 14px; }
.quote .who-said .role { color: var(--muted); font-size: 12px; }

.clients { margin-top: 48px; }
.clients-label { text-align: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 20px; font-weight: 500; }
.clients-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.client { padding: 18px 12px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); text-align: center; color: var(--secondary); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; }
.client-logo { display: flex; align-items: center; justify-content: center; padding: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 400 / 130; }
.client-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* PORTALS */
.portals { padding: 36px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.portals-label { text-align: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; margin-bottom: 18px; font-weight: 500; }
.portals-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px 12px; align-items: center; }
.portal-item { text-align: center; color: var(--secondary); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.portal-item.serif { font-family: Georgia, serif; }

/* PRICING */
.pricing-grid { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
.price-card { padding: 32px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); display: flex; flex-direction: column; }
.price-card .price-tag { display: inline-flex; padding: 4px 10px; border-radius: 100px; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 16px; align-self: flex-start; }
.price-card h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 6px; }
.price-card p.tagline { color: var(--muted); font-size: 14px; margin-bottom: 24px; line-height: 1.5; }
.price-rows { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; flex: 1; }
.price-row { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--card-elev); }
.price-row .pr-label { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.price-row .pr-amt { display: flex; align-items: baseline; gap: 6px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-row .pr-amt small { font-size: 12px; font-weight: 500; color: var(--muted); }
.price-row .pr-desc { font-size: 13px; color: var(--fg); line-height: 1.5; }
.price-row .pr-desc.muted { color: var(--muted); }
.price-card .price-foot { font-size: 13px; color: var(--muted); margin-bottom: 16px; line-height: 1.5; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.faq summary { list-style: none; padding: 18px 20px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 24px; font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* CTA */
.cta { padding: 40px 0 64px; }
.cta-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-2xl); padding: 48px 24px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, var(--accent-veil), transparent 60%); pointer-events: none; }
.cta-card h2 { font-size: clamp(32px, 8vw, 48px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px; position: relative; }
.cta-card h2 .accent { color: var(--accent); font-style: italic; }
.cta-card p { color: var(--muted); font-size: 15px; margin: 0 auto 24px; position: relative; line-height: 1.55; }
.cta-card .cta-btns { display: flex; flex-direction: column; gap: 10px; position: relative; }

/* FOOTER */
footer { padding: 40px 0 24px; border-top: 1px solid var(--border); background: var(--card-elev); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.footer-col.brand { grid-column: 1 / -1; }
.footer-col h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-col a { display: block; color: var(--fg); font-size: 14px; padding: 6px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-blurb { color: var(--muted); font-size: 14px; margin-top: 12px; line-height: 1.55; max-width: 320px; }
.footer-bowtie { margin: 32px 0 24px; display: flex; align-items: center; height: 28px; }
.footer-bowtie .bow-bar { flex: 1 1 0%; height: 100%; background: var(--accent); }
.footer-bowtie .bow-x { flex: 0 0 auto; display: block; width: 36px; height: 100%; color: var(--accent); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; display: flex; flex-direction: column; gap: 12px; text-align: center; }
.footer-bottom .legal a { color: var(--muted); margin: 0 8px; }
.footer-bottom .legal a:hover { color: var(--fg); }

/* sm 640+ */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .hero-cta { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .hero-cta .btn { width: auto; }
  .hero-cta .meta { margin-top: 0; margin-left: 4px; }
  .cta-card .cta-btns { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

/* md 768+ */
@media (min-width: 768px) {
  section { padding: 80px 0; }
  .audience-block { padding: 80px 0; }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: clamp(48px, 9vw, 80px); margin-bottom: 24px; }
  .hero p.lead { font-size: 18px; max-width: 600px; margin-bottom: 36px; }
  .hero-badge { font-size: 13px; padding: 6px 14px; margin-bottom: 28px; }
  .section-header { margin-bottom: 56px; }
  .section-title { font-size: clamp(40px, 6vw, 60px); }
  .section-eyebrow { font-size: 13px; margin-bottom: 18px; }
  .audience-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .audience-card { padding: 36px; }
  .audience-card h3 { font-size: 28px; }
  .who-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .who-card { padding: 32px; }
  .who-card h3 { font-size: 24px; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .feat { padding: 28px; }
  .values { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .value-card { padding: 32px; }
  .value-card .big { font-size: 56px; }
  .audience-layout { grid-template-columns: 1fr 1fr; gap: 48px; }
  .audience-layout.flip .a-content { order: 1; }
  .audience-layout.flip .a-visual { order: 2; }
  .proof-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
  .clients-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .price-card { padding: 40px; }
  .stat-strip { padding: 20px; gap: 12px; margin-top: 40px; }
  .stat-v { font-size: 24px; }
  .stat-l { font-size: 12px; }
  .cta { padding: 56px 0 96px; }
  .cta-card { padding: 72px 40px; }
  .cta-card h2 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 20px; }
  .cta-card p { font-size: 17px; max-width: 480px; margin-bottom: 32px; }
  .portals-grid { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  footer { padding: 56px 0 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 48px; }
  .footer-col.brand { grid-column: auto; }
  .a-visual { padding: 24px; }
}

/* lg 1024+ */
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  section { padding: 100px 0; }
  .audience-block { padding: 100px 0; }
  .hero { padding: 90px 0 80px; }
  .hero h1 { font-size: clamp(64px, 7vw, 100px); }
  .hero p.lead { font-size: 20px; max-width: 680px; }
  .section-title { font-size: clamp(48px, 6vw, 76px); }
  .section-header { margin-bottom: 72px; }
  .nav-toggle { display: none; }
  nav.site-nav { background: rgba(232, 239, 244, 0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .nav-menu { position: static; transform: none; background: transparent; padding: 0; border: none; flex-direction: row; align-items: center; overflow: visible; gap: 32px; height: auto; z-index: auto; }
  .nav-links { display: flex; gap: 28px; }
  .nav-links a { color: var(--muted); font-size: 15px; font-weight: 500; transition: color 0.2s; }
  .nav-links a:hover { color: var(--fg); }
  .nav-cta-desktop { display: flex; gap: 12px; align-items: center; }
  .nav-menu a.nav-link { display: none; }
  .nav-menu .nav-cta-mobile { display: none; }
  .nav-inner { padding: 18px 0; }
  .logo { height: 28px; }
  footer .logo { height: 32px; }
  .site-nav .logo { height: 55px; padding-left: 16px; }
  .who-grid { gap: 20px; }
  .feat-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feat { padding: 32px; }
  .feat h3 { font-size: 18px; }
  .audience-layout { gap: 80px; }
  .audience-card { padding: 40px; }
  .pricing-grid { gap: 20px; }
  .price-card { padding: 44px; }
  .price-card h3 { font-size: 32px; }
  .a-visual { padding: 28px; aspect-ratio: 4/5; max-height: 620px; }
  .av-row { padding: 14px; grid-template-columns: 36px 1fr auto; }
  .av-thumb { width: 36px; height: 36px; }
  .av-tab { padding: 6px 14px; font-size: 12px; }
  .av-pill { padding: 6px 12px; font-size: 11px; }
  .av-stat .v { font-size: 20px; }
  .portals-grid { gap: 28px; }
  .portal-item { font-size: 18px; }
  .cta-card { padding: 96px 40px; }
  footer { padding: 60px 0 32px; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
  .stat-strip { padding: 24px; }
  .stat-v { font-size: 28px; }
}

/* xl 1280+ */
@media (min-width: 1280px) {
  .hero h1 { font-size: clamp(80px, 8vw, 116px); }
}

/* ========================================
   PROPERTIES + DEVELOPMENTS PAGES
======================================== */

/* Search bar */
.search-bar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 8px; display: grid; grid-template-columns: 1fr; gap: 6px; box-shadow: 0 4px 24px rgba(15, 25, 36, 0.06); }
.search-field { display: flex; flex-direction: column; justify-content: center; padding: 12px 16px; border-radius: var(--radius-md); background: var(--card-elev); border: 1px solid transparent; cursor: pointer; min-height: 56px; transition: border-color 0.18s; }
.search-field:hover { border-color: var(--border); }
.search-field-label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
.search-field-value { font-weight: 600; font-size: 14px; color: var(--fg); }

/* Filter chips */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; align-items: center; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px; border: 1px solid var(--border); background: var(--card); font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer; min-height: 36px; transition: border-color 0.18s, color 0.18s, background 0.18s; }
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-chip svg { width: 14px; height: 14px; }
.filter-divider { width: 1px; height: 20px; background: var(--border); margin: 0 4px; }

/* Results bar */
.results-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; padding: 16px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14px; color: var(--muted); }
.results-count strong { color: var(--fg); font-weight: 700; }
.sort-select { background: var(--card); border: 1px solid var(--border); border-radius: 100px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--fg); cursor: pointer; min-height: 40px; font-family: inherit; }

/* Property grid + card */
.property-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 24px; }
.property-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(15, 25, 36, 0.10); }

.property-img { aspect-ratio: 4/3; position: relative; overflow: hidden; background: linear-gradient(135deg, #B8C7D1 0%, #DDE5EA 50%, #C9D5DD 100%); }
.property-img::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3) 0%, transparent 50%), linear-gradient(180deg, transparent 60%, rgba(15,25,36,0.10) 100%); z-index: 1; pointer-events: none; }
/* Bottom-darken gradient that used to be baked into each card's inline
   background-image (when we were rendering full-res photos via CSS). Now an
   ::after overlay so the underlying <img loading="lazy"> can do its job. */
.property-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(15,25,36,0.45)); z-index: 1; pointer-events: none; }
.property-img-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; border: 0; z-index: 0; }
.property-img.tint-1 { background: linear-gradient(135deg, #B8C7D1, #DDE5EA); }
.property-img.tint-2 { background: linear-gradient(135deg, #A8B9C5, #D4DEE3); }
.property-img.tint-3 { background: linear-gradient(135deg, #BDC9D2, #E2E9ED); }
.property-img.tint-4 { background: linear-gradient(135deg, #ABBAC4, #D8E0E5); }
.property-img.tint-5 { background: linear-gradient(135deg, #C2CDD4, #E5EBEE); }
.property-img.tint-6 { background: linear-gradient(135deg, #B2C0CA, #D7DFE4); }
.property-img.tint-7 { background: linear-gradient(135deg, #C0CCD3, #E0E7EB); }
.property-img.tint-8 { background: linear-gradient(135deg, #ADBCC6, #D6DEE3); }
.property-img.tint-9 { background: linear-gradient(135deg, #B5C3CC, #DBE3E8); }

.property-house-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.18; }
.property-house-icon svg { width: 52%; height: 52%; color: rgba(15, 25, 36, 0.5); }

.property-status { position: absolute; top: 12px; left: 12px; background: var(--fg); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; padding: 6px 12px; border-radius: 100px; text-transform: uppercase; z-index: 2; }
.property-status.sold { background: var(--secondary); color: #fff; }
.property-status.new { background: var(--accent); color: #fff; }

.property-fav { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; background: var(--card); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); z-index: 2; border: none; }
.property-fav:hover { color: var(--accent); }

.property-content { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.property-price { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--fg); }
.property-price-prefix { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; margin-right: 6px; font-weight: 600; }
.property-address { font-size: 14px; color: var(--muted); margin-bottom: 16px; line-height: 1.4; }
.property-meta { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); margin-top: auto; flex-wrap: wrap; }
.property-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.property-meta-item svg { color: var(--muted); width: 14px; height: 14px; }
.property-agent { display: flex; align-items: center; gap: 10px; padding: 14px 0 0; border-top: 1px solid var(--border); font-size: 12px; }
.property-agent .av { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--secondary), #A7B5BD); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 11px; flex-shrink: 0; }
.property-agent-name { color: var(--fg); font-weight: 600; }
.property-agent-meta { color: var(--muted); font-size: 11px; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0 16px; flex-wrap: wrap; }
.pag-btn { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--border); border-radius: 100px; font-size: 14px; font-weight: 500; color: var(--fg); padding: 0 14px; }
.pag-btn:hover { border-color: var(--accent); color: var(--accent); }
.pag-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.pag-btn.disabled { opacity: 0.3; pointer-events: none; }

/* Development grid + card */
.dev-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.dev-card { position: relative; border-radius: var(--radius-xl); overflow: hidden; aspect-ratio: 4/5; background: linear-gradient(135deg, #2C4A5C, #4B6B7E); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; transition: transform 0.2s; }
.dev-card:hover { transform: translateY(-4px); }
.dev-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.65) 100%), radial-gradient(circle at 70% 30%, rgba(255,255,255,0.10), transparent 50%); }
.dev-card-content { position: relative; z-index: 1; }
.dev-card-builder { font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.85; margin-bottom: 8px; font-weight: 600; }
.dev-card h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 4px; line-height: 1.05; color: #fff; }
.dev-card-location { font-size: 13px; opacity: 0.85; margin-bottom: 18px; }
.dev-card-meta { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.18); align-items: center; flex-wrap: wrap; }
.dev-card-price { font-weight: 700; font-size: 14px; }
.dev-card-stat { font-size: 12px; opacity: 0.85; }
.dev-card-arrow { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dev-card-arrow svg { color: #fff; }
.dev-card.colour-1 { background: linear-gradient(135deg, #005359, #008A95); }
.dev-card.colour-2 { background: linear-gradient(135deg, #002638, #1A4A66); }
.dev-card.colour-3 { background: linear-gradient(135deg, #3B2F4A, #6B5380); }
.dev-card.colour-4 { background: linear-gradient(135deg, #2C4332, #4F7B5C); }
.dev-card.colour-5 { background: linear-gradient(135deg, #4D2A2A, #8A4B4B); }
.dev-card.colour-6 { background: linear-gradient(135deg, #44331A, #7A5D32); }

/* Microsite hero */
.ms-hero { position: relative; aspect-ratio: 4/5; max-height: none; background: linear-gradient(135deg, #005359, #00788A); border-radius: var(--radius-2xl); overflow: hidden; display: flex; align-items: flex-end; padding: 24px; color: #fff; margin-bottom: 24px; }
.ms-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 50%), linear-gradient(180deg, transparent 30%, rgba(0,0,0,0.55) 100%); }
.ms-hero-content { position: relative; z-index: 1; width: 100%; }
.ms-hero-builder { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.9; margin-bottom: 10px; font-weight: 600; }
.ms-hero h1 { font-size: clamp(32px, 9vw, 48px); letter-spacing: -0.03em; line-height: 0.95; font-weight: 800; margin-bottom: 8px; color: #fff; }
.ms-hero-location { font-size: 15px; opacity: 0.9; margin-bottom: 18px; }
.ms-hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.2); }
.ms-hero-stat-v { font-size: 16px; font-weight: 800; letter-spacing: -0.015em; }
.ms-hero-stat-l { font-size: 10px; opacity: 0.8; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 2px; }

/* Microsite info bar */
.ms-info-bar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px; margin-bottom: 32px; display: flex; flex-direction: column; gap: 12px; }
.ms-info-contact { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ms-info-contact a { color: var(--fg); display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; font-weight: 600; }
.ms-info-contact a svg { color: var(--accent); }
.ms-info-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.ms-info-cta .btn { flex: 1; min-width: 140px; }

/* Microsite sub-nav */
.ms-subnav { position: sticky; top: 64px; background: rgba(232, 239, 244, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 90; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ms-subnav-inner { display: flex; gap: 4px; padding: 12px 0; white-space: nowrap; }
.ms-subnav a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--muted); flex-shrink: 0; }
.ms-subnav a:hover { background: var(--card-elev); color: var(--fg); }
.ms-subnav a.active { background: var(--accent); color: #fff; }
.ms-subnav a svg { width: 14px; height: 14px; }

/* Plot table */
.plot-table { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.plot-table-head { display: none; }
.plot-row { display: grid; grid-template-columns: 1fr; gap: 10px; padding: 18px; border-bottom: 1px solid var(--border); align-items: start; }
.plot-row:last-child { border-bottom: none; }
.plot-row:hover { background: var(--card-elev); }
.plot-name-block { display: flex; flex-direction: column; gap: 4px; }
.plot-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; color: var(--fg); }
.plot-num { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.plot-specs { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.plot-specs span { display: inline-flex; align-items: center; gap: 4px; }
.plot-price-block { display: flex; flex-direction: column; gap: 2px; }
.plot-price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.plot-price-prefix { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.plot-status { display: inline-flex; padding: 5px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; align-self: flex-start; }
.plot-status.available { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.plot-status.coming { background: var(--secondary-soft); color: var(--secondary); }
.plot-status.reserved { background: var(--accent-soft); color: var(--accent); }
.plot-status.sold { background: var(--card-elev); color: var(--muted); }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; border-radius: var(--radius-xl); overflow: hidden; }
.gallery-item { aspect-ratio: 1; background: linear-gradient(135deg, #C9D5DD, #E0E8ED); position: relative; overflow: hidden; }
.gallery-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.15) 100%); }
.gallery-item.featured { grid-column: span 2; aspect-ratio: 16/9; }
.gallery-item.tint-1 { background: linear-gradient(135deg, #4D6E80, #7B9BAB); }
.gallery-item.tint-2 { background: linear-gradient(135deg, #687D8B, #92A5B0); }
.gallery-item.tint-3 { background: linear-gradient(135deg, #5A7382, #88A0AC); }
.gallery-item.tint-4 { background: linear-gradient(135deg, #788C99, #A6B6BF); }
.gallery-item.tint-5 { background: linear-gradient(135deg, #506C7C, #7791A1); }

/* Specification cards */
.spec-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.spec-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.spec-card h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 10px; font-weight: 700; }
.spec-card ul li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.spec-card ul li::before { content: '·'; color: var(--accent); font-weight: 700; font-size: 22px; line-height: 1; }

/* House type cards */
.ht-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.ht-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.ht-card-img { aspect-ratio: 4/3; background: linear-gradient(135deg, #B8C7D1, #DDE5EA); position: relative; }
.ht-card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,25,36,0.10)); }
.ht-card-img.t1 { background: linear-gradient(135deg, #ABBAC4, #D8E0E5); }
.ht-card-img.t2 { background: linear-gradient(135deg, #B5C3CC, #DBE3E8); }
.ht-card-img.t3 { background: linear-gradient(135deg, #ADBCC6, #D6DEE3); }
.ht-card-img.t4 { background: linear-gradient(135deg, #C0CCD3, #E0E7EB); }
.ht-card-img.t5 { background: linear-gradient(135deg, #B2C0CA, #D7DFE4); }
.ht-card-content { padding: 20px; }
.ht-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.ht-card-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.ht-card-price { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.ht-card-specs { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); font-weight: 600; }

/* Map placeholder */
.map-block { aspect-ratio: 16/9; border-radius: var(--radius-xl); background: repeating-linear-gradient(45deg, #DCE6EC 0 8px, #E5EDF1 8px 16px); position: relative; border: 1px solid var(--border); overflow: hidden; }
.map-block::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%); }
.map-pin { position: absolute; top: 45%; left: 50%; width: 28px; height: 28px; background: var(--accent); border-radius: 50% 50% 50% 0; transform: translate(-50%, -100%) rotate(-45deg); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 45%, transparent); }
.map-pin::after { content: ''; width: 10px; height: 10px; background: #fff; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* Local info chips */
.local-info { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.local-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; background: var(--card); border: 1px solid var(--border); font-size: 12px; color: var(--fg); font-weight: 500; }
.local-chip svg { width: 12px; height: 12px; color: var(--accent); }

/* Inline page hero (small) */
.page-hero { padding: 40px 0 24px; }
.page-hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 0.95; letter-spacing: -0.04em; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: var(--muted); max-width: 580px; line-height: 1.55; }

/* Responsive scaling for properties + microsite */
@media (min-width: 640px) {
  .property-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .gallery { grid-template-columns: 1fr 1fr 1fr; }
  .gallery-item.featured { grid-column: span 3; }
  .ms-hero { aspect-ratio: 21/12; padding: 36px; }
  .ms-info-bar { flex-direction: row; align-items: center; justify-content: space-between; padding: 18px 24px; }
  .ms-info-contact { flex-direction: row; gap: 24px; }
}
@media (min-width: 768px) {
  .search-bar { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: stretch; padding: 8px; gap: 4px; }
  .search-bar .btn { padding: 14px 28px; min-height: 56px; }
  .dev-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .dev-card { padding: 32px; }
  .dev-card h3 { font-size: 28px; }
  .plot-table-head { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; padding: 14px 22px; background: var(--card-elev); border-bottom: 1px solid var(--border); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; }
  .plot-row { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 16px; padding: 22px; align-items: center; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .ht-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .ms-hero { padding: 48px; aspect-ratio: 21/9; }
  .ms-hero h1 { font-size: clamp(40px, 7vw, 64px); }
  .ms-hero-stats { display: flex; gap: 32px; padding-top: 18px; }
  .ms-hero-stat-v { font-size: 20px; }
  .gallery { grid-template-columns: 1fr 1fr 1fr 1fr; }
  .gallery-item.featured { grid-column: span 4; aspect-ratio: 21/9; }
  .page-hero { padding: 64px 0 32px; }
  .page-hero h1 { font-size: clamp(48px, 7vw, 76px); }
  .page-hero p { font-size: 18px; }
}
@media (min-width: 1024px) {
  .property-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .dev-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .spec-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ht-grid { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
  .ms-subnav { top: 73px; }
  .ms-hero { padding: 64px; aspect-ratio: 21/8; }
  .ms-hero h1 { font-size: clamp(56px, 6vw, 84px); }
}

/* ========================================
   COMPARISON TABLE (Agreed vs Traditional)
======================================== */
.compare-table { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; }
.compare-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: stretch; border-bottom: 1px solid var(--border); }
.compare-row:last-child { border-bottom: none; }
.compare-row.head { background: var(--card-elev); }
.compare-cell { padding: 16px 18px; font-size: 14px; line-height: 1.5; }
.compare-cell.label { font-weight: 700; color: var(--fg); font-size: 14px; letter-spacing: -0.01em; }
.compare-cell.head-cell { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--muted); }
.compare-cell.head-cell.us { color: var(--accent); }
.compare-cell.value { color: var(--muted); display: flex; align-items: flex-start; gap: 8px; }
.compare-cell.us { background: color-mix(in srgb, var(--accent) 4%, transparent); }
.compare-cell.value svg { flex-shrink: 0; margin-top: 4px; }
.compare-cell .yes { color: #16a34a; }
.compare-cell .no { color: var(--secondary); }

/* ========================================
   CALCULATOR
======================================== */
.calc-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.calc-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; }
.calc-result { background: var(--accent); color: #fff; }
.calc-result .calc-label { color: rgba(255,255,255,0.85); }
.calc-result .calc-amount { color: #fff; }
.calc-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.calc-amount { font-size: clamp(40px, 9vw, 64px); font-weight: 800; letter-spacing: -0.035em; line-height: 1; color: var(--fg); }
.calc-amount small { font-size: 16px; font-weight: 500; opacity: 0.7; margin-left: 6px; }
.calc-rate { font-size: 14px; opacity: 0.85; margin-top: 8px; }
.calc-bands { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.calc-band { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 8px 12px; background: rgba(255,255,255,0.10); border-radius: 8px; }
.calc-band .band-label { opacity: 0.85; }
.calc-band .band-amount { font-weight: 700; }
.calc-band.zero { opacity: 0.5; }

/* GUIDE article styles (TOC) */
.guide-toc { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin: 32px 0 40px; }
.guide-toc h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 14px; font-weight: 700; }
.guide-toc ol { list-style: none; counter-reset: toc; margin: 0; }
.guide-toc ol li { counter-increment: toc; margin: 0 0 8px; padding-left: 32px; position: relative; font-size: 14px; line-height: 1.5; }
.guide-toc ol li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 0; font-weight: 700; color: var(--accent); font-size: 12px; padding-top: 1px; }
.guide-toc ol li a { color: var(--fg); text-decoration: none; }
.guide-toc ol li a:hover { color: var(--accent); }
.prose blockquote { border-left: 3px solid var(--accent); padding: 4px 0 4px 20px; margin: 24px 0; color: var(--fg); font-style: italic; font-size: 18px; line-height: 1.55; }

/* LOCATION page bits */
.local-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 32px; }
.local-stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; }
.local-stat .v { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.local-stat .v .accent { color: var(--accent); }
.local-stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
@media (min-width: 640px) {
  .local-stats { grid-template-columns: repeat(4, 1fr); }
  .compare-row { grid-template-columns: 1.8fr 1fr 1fr; }
  .compare-cell { padding: 20px 24px; font-size: 15px; }
}

/* ========================================
   FORMS
======================================== */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--fg);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--muted); opacity: 0.6; }
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7C85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 44px;
}
.form-hint { font-size: 12px; color: var(--muted); line-height: 1.5; }
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.form-card-head { margin-bottom: 24px; }
.form-card h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 6px; }
.form-card p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.form-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.form-checkbox { display: inline-flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.form-checkbox input[type="checkbox"] { margin-top: 2px; accent-color: var(--accent); width: 16px; height: 16px; flex-shrink: 0; }

/* ========================================
   PROSE — long-form text (legal, articles)
======================================== */
.prose { max-width: 760px; font-size: 16px; line-height: 1.7; color: var(--fg); }
.prose h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.035em; line-height: 1; margin-bottom: 16px; font-weight: 800; }
.prose h2 { font-size: clamp(22px, 4vw, 28px); letter-spacing: -0.02em; line-height: 1.2; margin: 48px 0 16px; font-weight: 700; }
.prose h3 { font-size: 18px; letter-spacing: -0.01em; margin: 32px 0 12px; font-weight: 700; }
.prose p { margin-bottom: 16px; color: var(--muted); }
.prose strong, .prose b { color: var(--fg); }
.prose ul, .prose ol { margin: 16px 0 16px 24px; color: var(--muted); }
.prose li { margin-bottom: 8px; padding-left: 6px; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { text-decoration: none; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.prose .meta { font-size: 13px; color: var(--muted); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ========================================
   CONTACT CARDS
======================================== */
.contact-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 24px; }
.contact-card .icon { width: 40px; height: 40px; background: var(--accent-soft); color: var(--accent); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.contact-card .icon svg { width: 20px; height: 20px; }
.contact-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em; }
.contact-card p { color: var(--muted); font-size: 14px; margin-bottom: 12px; line-height: 1.55; }
.contact-card a.link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; }

/* ========================================
   PROCESS STEPS
======================================== */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 28px; position: relative; }
.step-num { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: 0.12em; margin-bottom: 14px; text-transform: uppercase; }
.step h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; line-height: 1.15; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* ========================================
   404 PAGE
======================================== */
.error-page { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 64px 16px; position: relative; }
.error-code { font-size: clamp(96px, 22vw, 200px); font-weight: 800; letter-spacing: -0.06em; color: var(--accent); line-height: 1; margin-bottom: 8px; font-style: italic; }
.error-title { font-size: clamp(28px, 6vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.error-message { color: var(--muted); font-size: 17px; max-width: 460px; margin: 0 auto 32px; line-height: 1.55; }
.error-links { display: grid; gap: 12px; grid-template-columns: 1fr; width: 100%; max-width: 480px; }

/* Responsive */
@media (min-width: 640px) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-actions { flex-direction: row; align-items: center; }
  .error-links { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .form-card { padding: 40px; }
  .contact-grid { grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
}
@media (min-width: 1024px) {
  .form-card { padding: 48px; }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .error-links { grid-template-columns: repeat(4, 1fr); }
}

/* ========================================
   MOTION — subtle reveals, hero entry, ambient
======================================== */

/* Reveal-on-scroll (added by motion.js) */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Hero entry — runs on page load, no JS needed */
.hero-content > *, .page-hero .container > * {
  animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) backwards;
}
.hero-content > *:nth-child(1), .page-hero .container > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2), .page-hero .container > *:nth-child(2) { animation-delay: 0.15s; }
.hero-content > *:nth-child(3), .page-hero .container > *:nth-child(3) { animation-delay: 0.30s; }
.hero-content > *:nth-child(4), .page-hero .container > *:nth-child(4) { animation-delay: 0.45s; }
.hero-content > *:nth-child(5), .page-hero .container > *:nth-child(5) { animation-delay: 0.60s; }

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Ambient drift on hero radial gradient */
.hero::before {
  animation: heroDrift 18s ease-in-out infinite;
  transform-origin: center center;
  transform: translateX(calc(-50% + var(--hero-mx, 0px))) translateY(var(--hero-my, 0px));
}
@keyframes heroDrift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

/* Hero badge dot — soft pulse */
.hero-badge .dot {
  animation: dotPulse 2.4s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent); }
  50% { box-shadow: 0 0 18px var(--accent), 0 0 28px color-mix(in srgb, var(--accent) 45%, transparent); }
}

/* AI feature pill — gentle breath to draw the eye */
.feat h3 .pill {
  animation: pillBreathe 3.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes pillBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

/* Logo wordmark — small entry on first paint */
.site-nav .logo svg {
  animation: logoIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
  transform-origin: left center;
}
@keyframes logoIn {
  from { opacity: 0; transform: scale(0.92) translateX(-4px); }
  to { opacity: 1; transform: scale(1) translateX(0); }
}

/* Map pin drops in when its container reveals */
.reveal.map-block .map-pin { opacity: 0; }
.reveal.map-block.is-visible .map-pin {
  animation: pinDrop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.25s backwards;
  opacity: 1;
}
@keyframes pinDrop {
  from { transform: translate(-50%, -200%) rotate(-45deg); opacity: 0; }
  to { transform: translate(-50%, -100%) rotate(-45deg); opacity: 1; }
}

/* Image-zoom on card hover (overflow:hidden parents) */
.property-card .property-img,
.ht-card .ht-card-img,
.gallery-item {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.property-card:hover .property-img,
.ht-card:hover .ht-card-img,
.gallery-item:hover { transform: scale(1.03); }

/* Arrow nudge on audience-card and dev-card */
.audience-card .arrow svg,
.dev-card .dev-card-arrow svg {
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.audience-card:hover .arrow svg,
.dev-card:hover .dev-card-arrow svg { transform: translateX(3px); }

/* ========================================
   ARTICLE GRID — Insights index cards
======================================== */
.article-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }

.article-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.article-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(15, 25, 36, 0.08);
}
.article-card .article-img {
  aspect-ratio: 16 / 9;
  background: var(--accent-soft);
  position: relative;
  overflow: hidden;
}
/* Tint variants for cards without a thumbnail */
.article-card .article-img.t1 { background: var(--accent-soft); }
.article-card .article-img.t2 { background: rgba(107, 124, 133, 0.10); }
.article-card .article-img.t3 { background: rgba(15, 25, 36, 0.08); }
.article-card .article-img.t4 { background: var(--accent-faint); }
.article-card .article-img.t5 { background: rgba(213, 222, 228, 0.45); }
.article-card .article-content {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.article-cat {
  font-size: 11px; font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.article-card h3 {
  font-size: 18px; font-weight: 700;
  line-height: 1.25; letter-spacing: -0.01em;
  color: var(--fg);
  margin: 0;
}
.article-excerpt {
  color: var(--muted);
  font-size: 14px; line-height: 1.55;
  margin: 0; flex: 1;
}
.article-meta {
  display: flex; gap: 8px;
  font-size: 12px; color: var(--muted);
  margin-top: auto; padding-top: 8px;
}

@media (min-width: 640px) {
  .article-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  /* Featured (cornerstone) spans every column with horizontal layout */
  .article-card.featured { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
  .article-card.featured .article-img { flex: 1 1 50%; aspect-ratio: auto; min-height: 280px; }
  .article-card.featured .article-content { flex: 1 1 50%; padding: 36px; gap: 14px; }
  .article-card.featured h3 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
  .article-card.featured .article-excerpt { font-size: 15px; }
}
@media (min-width: 768px) {
  /* 3-col grid kicks in at MD so iPad portrait and up always shows three across. */
  .article-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}
@media (min-width: 1024px) {
  .article-grid { gap: 28px; }
  .article-card.featured .article-img { min-height: 360px; }
  .article-card.featured .article-content { padding: 56px; }
  .article-card.featured h3 { font-size: 32px; letter-spacing: -0.025em; }
}

/* Article-card image overrides — when an <img> is the child of .article-img */
.article-img { overflow: hidden; }
.article-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Guide hero illustration */
.guide-hero-img { margin: 20px 0 32px; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; }
.guide-hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ========================================
   MODAL — 2027-styled dialog overlay
======================================== */
.modal-2027 {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-2027-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 25, 36, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modal-fade 0.25s ease-out;
  cursor: pointer;
}
.modal-2027-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(15, 25, 36, 0.25);
  animation: modal-pop 0.32s cubic-bezier(0.32, 1.5, 0.56, 0.96);
}
.modal-2027-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px;
  background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--muted);
  transition: background 0.18s, color 0.18s;
}
.modal-2027-close:hover { background: var(--card-elev); color: var(--fg); }
.modal-2027-icon {
  width: 64px; height: 64px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.modal-2027-card h3 {
  font-size: 26px; font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  color: var(--fg);
  line-height: 1.15;
}
.modal-2027-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}
.modal-2027-card .btn {
  min-width: 140px;
}
body.modal-open { overflow: hidden; }

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-pop {
  from { opacity: 0; transform: scale(0.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-2027-backdrop, .modal-2027-card { animation: none; }
}

/* === Property card (.pfs-card) ============================================
   Reusable card for property listings. Lives in the global stylesheet so
   it works on PropertiesForSale2027 (split-pane grid), MicroSite2027
   ("My Latest Properties" rail), and any future surface that renders
   _PropertyCard2027.cshtml. Photo-slider interactions are wired up by
   property-card.js. */
.pfs-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .pfs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pfs-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }

.pfs-card {
  display: block; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.pfs-card:hover, .pfs-card.is-hover-from-map {
  transform: translateY(-2px); border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(15, 25, 36, 0.10);
}
.pfs-card-img {
  aspect-ratio: 16 / 10; background-color: var(--accent-soft);
  position: relative; overflow: hidden;
}
/* Bottom-darken gradient for text legibility — used to be baked into each slide's
   background-image. Now an overlay so we can use real <img> + lazy loading. */
.pfs-card-img::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(180deg, transparent 60%, rgba(15,25,36,0.40));
}
.pfs-card-img .pfs-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 100px;
}
/* Photo slider — slides are now real <img loading="lazy"> elements rather than
   div+background-image, so off-screen cards don't all race to download at load. */
.pfs-slides { position: absolute; inset: 0; }
.pfs-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .25s ease;
  display: block; border: 0;
}
.pfs-slide.is-active { opacity: 1; }
.pfs-slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 100px;
  background: rgba(255,255,255,0.94); border: 1px solid rgba(15,25,36,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--fg); padding: 0; z-index: 4;
  opacity: 0; transition: opacity .15s ease, transform .15s ease, background .15s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.10);
}
.pfs-slide-prev { left: 10px; }
.pfs-slide-next { right: 10px; }
.pfs-card-img:hover .pfs-slide-nav,
.pfs-dev-img:hover .pfs-slide-nav,
.pfs-popup-card .pfs-card-img .pfs-slide-nav { opacity: 1; }
.pfs-slide-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.pfs-slide-dots {
  position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 5px; z-index: 4;
}
.pfs-slide-dots span {
  width: 6px; height: 6px; border-radius: 100px;
  background: rgba(255,255,255,0.55); cursor: pointer;
  transition: background .15s ease, width .15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.30);
}
.pfs-slide-dots span.is-active { background: #fff; width: 16px; }
.pfs-card-content { padding: 14px 16px 16px; }
.pfs-card-price { font-size: 18px; font-weight: 800; color: var(--fg); letter-spacing: -0.01em; margin-bottom: 4px; }
.pfs-card-address { font-size: 14px; color: var(--fg); margin-bottom: 8px; line-height: 1.4; }
.pfs-card-meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.pfs-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.pfs-card-meta svg { width: 14px; height: 14px; }
