/* ==========================================================================
   FocalBrick Limited – website design system
   Source: FocalBrick Brand System v1.0 (31 October 2026).
   Colours are the guide's sampled approximations of the raster logo; if the
   business later supplies certified values, change them here only.
   ========================================================================== */

:root {
  /* Brand colours (guide page 08) */
  --fb-blue: #214e70;        /* Focal blue – primary identity, navigation, calls to action */
  --fb-red: #aa242b;         /* Brick red – small accent rules and important labels only */
  --fb-ink: #182f40;         /* Ink – body text */
  --fb-paper: #f5f2ed;       /* Warm paper – section backgrounds */
  --fb-slate: #52616b;       /* Slate – secondary text */
  --fb-white: #ffffff;

  /* Derived tints for interface states (not brand colours) */
  --fb-blue-dark: #183a54;
  --fb-blue-tint: #e6edf3;
  --fb-red-tint: #f8e9ea;
  --fb-line: #d9d3ca;
  --fb-success: #1f6b45;

  /* Typography (guide page 09): Arial, with system sans-serif fallback */
  --fb-font: Arial, "Helvetica Neue", Helvetica, system-ui, sans-serif;
  --fb-text-xs: 0.6875rem;   /* 11px tracked labels */
  --fb-text-sm: 0.875rem;
  --fb-text-base: 1rem;      /* 16px body */
  --fb-text-lg: 1.125rem;    /* 18px lead */
  --fb-h3: 1.1875rem;        /* 19px */
  --fb-h2: clamp(1.5rem, 1.3rem + 0.8vw, 2rem);       /* 24–32px */
  --fb-h1: clamp(1.75rem, 1.45rem + 1.2vw, 2.5rem);   /* 28–40px */
  --fb-hero: clamp(2rem, 1.5rem + 1.9vw, 3.125rem);   /* 32–50px */
  --fb-leading: 1.7;
  --fb-tracking: 0.18em;     /* small caps labels and buttons */

  /* Spacing rhythm */
  --fb-s1: 0.25rem; --fb-s2: 0.5rem; --fb-s3: 0.75rem; --fb-s4: 1rem;
  --fb-s5: 1.5rem; --fb-s6: 2rem; --fb-s7: 3rem; --fb-s8: 4.5rem; --fb-s9: 6rem;
  --fb-section: clamp(4rem, 2.6rem + 4vw, 6.5rem);

  /* Layout */
  --fb-max: 1200px;
  --fb-narrow: 760px;
  --fb-gutter: clamp(1rem, 0.5rem + 2.5vw, 2rem);
  --fb-radius: 0;            /* crisp rectangular panels, inspired by built space */
  --fb-shadow: 0 1px 1px rgba(24, 47, 64, 0.04), 0 18px 40px -18px rgba(24, 47, 64, 0.22);
  --fb-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--fb-font);
  font-size: var(--fb-text-base);
  line-height: var(--fb-leading);
  color: var(--fb-ink);
  background: var(--fb-white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0 0 var(--fb-s4); font-weight: 700; line-height: 1.2; color: var(--fb-blue); letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fb-h1); }
h2 { font-size: var(--fb-h2); }
h3 { font-size: var(--fb-h3); line-height: 1.35; letter-spacing: -0.005em; }
h4 { font-size: var(--fb-text-lg); }
p, ul, ol, dl { margin: 0 0 var(--fb-s4); }
a { color: var(--fb-blue); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--fb-red); }
:focus-visible { outline: 3px solid var(--fb-red); outline-offset: 3px; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--fb-line); margin: var(--fb-s7) 0; }

.skip-link { position: absolute; left: var(--fb-s4); top: -100px; z-index: 100; padding: var(--fb-s3) var(--fb-s4); background: var(--fb-blue); color: var(--fb-white); font-weight: 700; }
.skip-link:focus { top: var(--fb-s4); color: var(--fb-white); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: calc(var(--fb-max) + 2 * var(--fb-gutter)); margin-inline: auto; padding-inline: var(--fb-gutter); }
.container--narrow { max-width: calc(var(--fb-narrow) + 2 * var(--fb-gutter)); }
.section { padding-block: var(--fb-section); }
.section--paper { background: var(--fb-paper); }
.section--blue { background: linear-gradient(115deg, var(--fb-ink) 0%, var(--fb-blue) 65%, #27597f 100%); color: var(--fb-white); }
.section--blue h2, .section--blue h3 { color: var(--fb-white); }
.section--blue a:not(.button) { color: var(--fb-white); }
.section:not(.section--paper):not(.section--blue) + .section:not(.section--paper):not(.section--blue) { padding-top: 0; }
.section--paper + .section--paper { padding-top: 0; }
.grid { display: grid; gap: var(--fb-s5); }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: var(--fb-s7); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-left { grid-template-columns: 1.4fr 1fr; } }
.stack > * + * { margin-top: var(--fb-s4); }
/* Grid items may shrink below their content width (long select options, long words). */
.grid > *, .split > *, .form-grid > *, .property-layout > *, .filters__grid > * { min-width: 0; }
select { max-width: 100%; }
.contact-list a, .price-box, .facts dd { overflow-wrap: anywhere; }

/* Section heading with the brand's short red rule */
.eyebrow { display: flex; align-items: center; gap: var(--fb-s4); margin-bottom: var(--fb-s5); font-size: var(--fb-text-xs); font-weight: 700; letter-spacing: var(--fb-tracking); text-transform: uppercase; color: var(--fb-red); }
.eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--fb-red); flex: none; }
.section--blue .eyebrow { color: var(--fb-white); }
.section--blue .eyebrow::before { background: var(--fb-white); }
.section-head { max-width: 640px; margin-bottom: var(--fb-s8); }
.section-head h2 { margin-bottom: var(--fb-s5); }
.section-head p { font-size: var(--fb-text-lg); line-height: 1.65; color: var(--fb-slate); }
.section-head .eyebrow, .section--blue .section-head .eyebrow { font-size: var(--fb-text-xs); line-height: 1.4; }
.section-head .eyebrow { color: var(--fb-red); }
.section--blue .section-head p { color: #dbe5ee; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--fb-s4); }
.lead { font-size: var(--fb-text-lg); line-height: 1.65; color: var(--fb-slate); }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--fb-s3); min-height: 50px; padding: 0.9rem 1.9rem; border: 1px solid var(--fb-blue); border-radius: 0; background: var(--fb-blue); color: var(--fb-white); font: 700 0.75rem/1.2 var(--fb-font); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background-color 0.3s var(--fb-ease), color 0.3s var(--fb-ease), border-color 0.3s var(--fb-ease); }
.button:hover { background: var(--fb-blue-dark); border-color: var(--fb-blue-dark); color: var(--fb-white); }
.button--secondary { background: transparent; color: var(--fb-blue); }
.button--secondary:hover { background: var(--fb-blue); color: var(--fb-white); }
.button--light { background: var(--fb-white); border-color: var(--fb-white); color: var(--fb-blue); }
.button--light:hover { background: var(--fb-paper); border-color: var(--fb-paper); color: var(--fb-blue-dark); }
.button--outline-light { background: transparent; border-color: var(--fb-white); color: var(--fb-white); }
.button--outline-light:hover { background: var(--fb-white); color: var(--fb-blue); }
.button--whatsapp { background: #1f6b45; border-color: #1f6b45; }
.button--whatsapp:hover { background: #17543a; border-color: #17543a; }
.button .icon { width: 18px; height: 18px; }
.button-row { display: flex; flex-wrap: wrap; gap: var(--fb-s3); }
.text-link { display: inline-flex; align-items: center; gap: var(--fb-s3); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; }
.text-link .icon { width: 16px; height: 16px; transition: transform 0.2s var(--fb-ease); }
.text-link:hover .icon { transform: translateX(3px); }
.icon { width: 24px; height: 24px; flex: none; }

/* ---------- Header and navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--fb-white); border-bottom: 1px solid var(--fb-line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--fb-s4); min-height: 84px; }
/* Logo always sits on white, with clear space retained (guide pages 06–07). */
.site-logo { display: block; flex: none; padding-block: var(--fb-s2); }
.site-logo img { width: 176px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: var(--fb-s3); min-height: 44px; padding: 0.5rem 1rem; border: 1px solid var(--fb-line); border-radius: 0; background: var(--fb-white); color: var(--fb-blue); font: 700 0.75rem var(--fb-font); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
.nav-toggle__bars { position: relative; width: 18px; height: 1px; background: currentColor; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; }
.nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }
.site-nav { display: none; }
.site-nav.is-open { display: block; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 76px); overflow-y: auto; background: var(--fb-white); border-bottom: 4px solid var(--fb-blue); box-shadow: var(--fb-shadow); }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 0.95rem var(--fb-gutter); color: var(--fb-ink); font-size: 0.9375rem; font-weight: 400; text-decoration: none; border-top: 1px solid var(--fb-paper); }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--fb-blue); background: var(--fb-paper); }
.site-nav .submenu a { padding-left: calc(var(--fb-gutter) + 1rem); font-weight: 400; }
.site-nav__cta { padding: var(--fb-s4) var(--fb-gutter); }
.site-nav__cta .button { width: 100%; color: var(--fb-white); background: var(--fb-blue); }
.site-nav__cta .button:hover { color: var(--fb-white); background: var(--fb-blue-dark); }
.site-nav__cta .button--secondary { color: var(--fb-blue); background: var(--fb-white); margin-bottom: var(--fb-s2); }
.submenu-toggle { display: none; }

@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .site-nav a, .submenu-toggle { white-space: nowrap; }
  .site-nav, .site-nav.is-open { display: flex; align-items: center; gap: var(--fb-s2); position: static; max-height: none; overflow: visible; border: 0; box-shadow: none; }
  .site-nav > ul { display: flex; align-items: center; }
  .site-nav > ul > li { position: relative; }
  .site-nav > ul > li > a, .submenu-toggle { padding: 0.75rem 0.75rem; border: 0; font-size: 0.875rem; letter-spacing: 0.01em; }
  .site-nav > ul > li > a[aria-current="page"], .site-nav > ul > li > a[aria-current="true"], .site-nav > ul > li > a:hover { background: transparent; color: var(--fb-blue); box-shadow: inset 0 -1px 0 var(--fb-red); }
  .has-submenu { display: flex; align-items: center; }
  .has-submenu > a { padding-right: 0.2rem !important; }
  .submenu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; min-height: 44px; padding: 0.75rem 0.4rem 0.75rem 0.1rem; background: none; color: var(--fb-ink); cursor: pointer; }
  .submenu-toggle svg { width: 12px; height: 12px; transition: transform 0.2s; }
  .submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .site-nav .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 270px; padding: var(--fb-s3) 0; background: var(--fb-white); border-top: 2px solid var(--fb-red); box-shadow: var(--fb-shadow); }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .submenu.is-open { display: block; }
  .site-nav .submenu a { padding: 0.6rem 1.5rem; border: 0; font-size: 0.875rem; }
  .site-nav__cta { display: flex; gap: var(--fb-s2); padding: 0 0 0 var(--fb-s3); }
  .site-nav__cta .button--secondary { margin: 0; }
  .site-nav__cta .button { width: auto; min-height: 44px; padding: 0.7rem 1.3rem; font-size: 0.6875rem; }
}

/* ---------- Hero ---------- */
.hero { position: relative; display: grid; min-height: min(84vh, 760px); color: var(--fb-white); background: var(--fb-blue); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media picture { width: 100%; height: 100%; object-fit: cover; }
/* Gradient keeps text readable over any photograph (guide: avoid text on busy photos). */
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(24, 47, 64, 0.92) 0%, rgba(24, 47, 64, 0.78) 45%, rgba(24, 47, 64, 0.25) 100%); }
@media (max-width: 799px) { .hero__media::after { background: linear-gradient(180deg, rgba(24, 47, 64, 0.55) 0%, rgba(24, 47, 64, 0.92) 60%); } }
.hero__inner { position: relative; z-index: 1; align-self: end; padding-block: var(--fb-s9) var(--fb-s8); }
@media (min-width: 800px) { .hero__inner { align-self: center; } }
.hero__content { max-width: 720px; }
.hero h1 { max-width: 640px; }
.hero h1 { font-size: var(--fb-hero); line-height: 1.12; color: var(--fb-white); margin-bottom: var(--fb-s6); }
.hero .lead { max-width: 540px; color: #d5e0ea; margin-bottom: var(--fb-s7); }
.hero__services { display: flex; flex-wrap: wrap; gap: var(--fb-s3) var(--fb-s5); margin: var(--fb-s8) 0 0; padding: var(--fb-s5) 0 0; list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: var(--fb-text-xs); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #b9c9d8; }
.hero .eyebrow { color: var(--fb-white); }
.hero .eyebrow::before { background: var(--fb-red); }
/* Without a photograph: a fine-line architectural elevation on a deep blue gradient. */
.hero--plain { background: linear-gradient(115deg, var(--fb-ink) 0%, var(--fb-blue) 58%, #27597f 100%); }
.hero--plain::after { content: ""; position: absolute; right: 4%; bottom: 0; width: min(46vw, 620px); aspect-ratio: 640 / 540; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 640 540%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221%22 opacity=%220.16%22%3E%3Crect x=%22260%22 y=%2240%22 width=%22190%22 height=%22480%22/%3E%3Cpath d=%22M260 80H450%22/%3E%3Cpath d=%22M260 120H450%22/%3E%3Cpath d=%22M260 160H450%22/%3E%3Cpath d=%22M260 200H450%22/%3E%3Cpath d=%22M260 240H450%22/%3E%3Cpath d=%22M260 280H450%22/%3E%3Cpath d=%22M260 320H450%22/%3E%3Cpath d=%22M260 360H450%22/%3E%3Cpath d=%22M260 400H450%22/%3E%3Cpath d=%22M260 440H450%22/%3E%3Cpath d=%22M260 480H450%22/%3E%3Cpath d=%22M298 40V520%22/%3E%3Cpath d=%22M336 40V520%22/%3E%3Cpath d=%22M374 40V520%22/%3E%3Cpath d=%22M412 40V520%22/%3E%3Crect x=%2270%22 y=%22270%22 width=%22190%22 height=%22250%22/%3E%3Cpath d=%22M60 278L165 196L270 278%22/%3E%3Cpath d=%22M70 330H260%22/%3E%3Cpath d=%22M70 390H260%22/%3E%3Cpath d=%22M70 450H260%22/%3E%3Cpath d=%22M117 270V520%22/%3E%3Cpath d=%22M165 270V520%22/%3E%3Cpath d=%22M212 270V520%22/%3E%3Crect x=%22145%22 y=%22460%22 width=%2240%22 height=%2260%22/%3E%3Crect x=%22450%22 y=%22170%22 width=%22130%22 height=%22350%22/%3E%3Cpath d=%22M450 205H580%22/%3E%3Cpath d=%22M450 240H580%22/%3E%3Cpath d=%22M450 275H580%22/%3E%3Cpath d=%22M450 310H580%22/%3E%3Cpath d=%22M450 345H580%22/%3E%3Cpath d=%22M450 380H580%22/%3E%3Cpath d=%22M450 415H580%22/%3E%3Cpath d=%22M450 450H580%22/%3E%3Cpath d=%22M450 485H580%22/%3E%3Cpath d=%22M515 170V520%22/%3E%3Cpath d=%22M0 520H640%22/%3E%3Cpath d=%22M260 40H450%22 stroke=%22%23aa242b%22 stroke-width=%223%22 opacity=%221%22/%3E%3C/svg%3E") no-repeat right bottom / contain; pointer-events: none; }
@media (max-width: 899px) { .hero--plain::after { opacity: 0.45; width: 90vw; right: -20vw; } }
@media (max-width: 599px) {
  .hero .button-row .button { flex: 1 1 100%; }
  .hero__services { display: none; }
  .hero__inner { padding-block: var(--fb-s8) var(--fb-s7); }
}
.page-hero { position: relative; padding-block: var(--fb-s9) var(--fb-s8); background: var(--fb-paper); border-bottom: 1px solid var(--fb-line); }
.page-hero h1 { max-width: 780px; margin-bottom: var(--fb-s5); }
.page-hero .lead { max-width: 640px; margin: 0; }
.page-hero--blue { overflow: hidden; background: linear-gradient(115deg, var(--fb-ink) 0%, var(--fb-blue) 70%); border: 0; }
.page-hero--blue::after { content: ""; position: absolute; right: 4%; bottom: 0; width: min(30vw, 380px); aspect-ratio: 640 / 540; background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 640 540%22 fill=%22none%22 stroke=%22white%22 stroke-width=%221%22 opacity=%220.16%22%3E%3Crect x=%22260%22 y=%2240%22 width=%22190%22 height=%22480%22/%3E%3Cpath d=%22M260 80H450%22/%3E%3Cpath d=%22M260 120H450%22/%3E%3Cpath d=%22M260 160H450%22/%3E%3Cpath d=%22M260 200H450%22/%3E%3Cpath d=%22M260 240H450%22/%3E%3Cpath d=%22M260 280H450%22/%3E%3Cpath d=%22M260 320H450%22/%3E%3Cpath d=%22M260 360H450%22/%3E%3Cpath d=%22M260 400H450%22/%3E%3Cpath d=%22M260 440H450%22/%3E%3Cpath d=%22M260 480H450%22/%3E%3Cpath d=%22M298 40V520%22/%3E%3Cpath d=%22M336 40V520%22/%3E%3Cpath d=%22M374 40V520%22/%3E%3Cpath d=%22M412 40V520%22/%3E%3Crect x=%2270%22 y=%22270%22 width=%22190%22 height=%22250%22/%3E%3Cpath d=%22M60 278L165 196L270 278%22/%3E%3Cpath d=%22M70 330H260%22/%3E%3Cpath d=%22M70 390H260%22/%3E%3Cpath d=%22M70 450H260%22/%3E%3Cpath d=%22M117 270V520%22/%3E%3Cpath d=%22M165 270V520%22/%3E%3Cpath d=%22M212 270V520%22/%3E%3Crect x=%22145%22 y=%22460%22 width=%2240%22 height=%2260%22/%3E%3Crect x=%22450%22 y=%22170%22 width=%22130%22 height=%22350%22/%3E%3Cpath d=%22M450 205H580%22/%3E%3Cpath d=%22M450 240H580%22/%3E%3Cpath d=%22M450 275H580%22/%3E%3Cpath d=%22M450 310H580%22/%3E%3Cpath d=%22M450 345H580%22/%3E%3Cpath d=%22M450 380H580%22/%3E%3Cpath d=%22M450 415H580%22/%3E%3Cpath d=%22M450 450H580%22/%3E%3Cpath d=%22M450 485H580%22/%3E%3Cpath d=%22M515 170V520%22/%3E%3Cpath d=%22M0 520H640%22/%3E%3Cpath d=%22M260 40H450%22 stroke=%22%23aa242b%22 stroke-width=%223%22 opacity=%221%22/%3E%3C/svg%3E") no-repeat right bottom / contain; opacity: 0.8; pointer-events: none; }
.page-hero--blue .container { position: relative; z-index: 1; }
@media (max-width: 899px) { .page-hero--blue::after { display: none; } }
.page-hero--blue h1, .page-hero--blue .eyebrow { color: var(--fb-white); }
.page-hero--blue .lead { color: #dbe5ee; }
.breadcrumbs { margin-bottom: var(--fb-s6); font-size: 0.75rem; letter-spacing: 0.06em; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--fb-s2); list-style: none; margin: 0; padding: 0; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: var(--fb-s2); color: var(--fb-slate); }
.breadcrumbs a { color: var(--fb-slate); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.page-hero--blue .breadcrumbs a, .page-hero--blue .breadcrumbs li { color: #dbe5ee; }

/* ---------- Cards ---------- */
.card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 2.25rem 2rem; background: var(--fb-white); border: 1px solid var(--fb-line); transition: border-color 0.4s var(--fb-ease), box-shadow 0.4s var(--fb-ease), transform 0.4s var(--fb-ease); }
.card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--fb-red); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--fb-ease); }
.section--paper .card { border-color: transparent; }
.card--link:hover { box-shadow: var(--fb-shadow); transform: translateY(-3px); }
.card--link:hover::before { transform: scaleX(1); }
.card__icon { display: inline-flex; margin-bottom: var(--fb-s6); color: var(--fb-red); }
.card__icon .icon { width: 32px; height: 32px; }
.card h3 { margin-bottom: var(--fb-s3); font-size: 1.0625rem; }
.card h3 a { color: inherit; text-decoration: none; }
.card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.card p { color: var(--fb-slate); font-size: 0.9375rem; }
.card .text-link { margin-top: auto; }
.card--accent::before { transform: scaleX(1); }

/* Numbered process */
.steps { display: grid; gap: var(--fb-s5); counter-reset: step; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps--5 { grid-template-columns: repeat(5, 1fr); } .steps--4 { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { position: relative; padding: var(--fb-s6) 0 0; border-top: 1px solid var(--fb-line); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: var(--fb-s5); font-size: var(--fb-text-xs); font-weight: 700; letter-spacing: var(--fb-tracking); color: var(--fb-red); line-height: 1; }
.steps h3 { font-size: 1.0625rem; margin-bottom: var(--fb-s3); }
.steps p { margin: 0; color: var(--fb-slate); font-size: 0.9375rem; }
.section--blue .steps li { border-color: rgba(255, 255, 255, 0.28); }
.section--blue .steps h3 { color: var(--fb-white); }
.section--blue .steps p { color: #dbe5ee; }
.section--blue .steps li::before { color: #e7a9ac; }

/* Tick lists */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--fb-s3); }
.ticks li { display: flex; gap: var(--fb-s3); align-items: flex-start; }
.ticks .icon { width: 18px; height: 18px; color: var(--fb-red); margin-top: 0.3em; }
@media (min-width: 640px) { .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: var(--fb-s6); } }

/* Values */
.value { padding-top: var(--fb-s5); border-top: 1px solid var(--fb-line); }
.value h3 { font-size: 1.0625rem; margin-bottom: var(--fb-s3); }
.value h3::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: var(--fb-s4); background: var(--fb-red); }
.value p { margin: 0; color: var(--fb-slate); }

/* Feature panel */
.panel { padding: 2.25rem; background: var(--fb-white); border-left: 2px solid var(--fb-blue); }
.section--paper .panel { background: var(--fb-white); }
.panel--paper { background: var(--fb-paper); }
/* Pull quote: large, quiet type framed by a single red rule. */
.quote-panel { position: relative; margin: 0; padding: var(--fb-s2) 0 var(--fb-s2) var(--fb-s6); border-left: 2px solid var(--fb-red); color: var(--fb-blue); font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); line-height: 1.6; }
.quote-panel p:last-child { margin: 0; }

/* ---------- Property cards ---------- */
.property-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--fb-white); border: 1px solid var(--fb-line); overflow: hidden; transition: box-shadow 0.4s var(--fb-ease), transform 0.4s var(--fb-ease); }
.property-card:hover { box-shadow: var(--fb-shadow); transform: translateY(-3px); }
.property-card__media img { transition: transform 0.8s var(--fb-ease); }
.property-card:hover .property-card__media img { transform: scale(1.03); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--fb-paper); }
.property-card__media img, .property-card__media picture { width: 100%; height: 100%; object-fit: cover; }
.property-card__placeholder { display: grid; place-content: center; justify-items: center; gap: var(--fb-s3); height: 100%; color: var(--fb-slate); }
.property-card__placeholder .icon { width: 40px; height: 40px; opacity: 0.6; }
.property-card__badges { position: absolute; left: var(--fb-s3); top: var(--fb-s3); display: flex; flex-wrap: wrap; gap: var(--fb-s2); }
.badge { display: inline-block; padding: 0.35rem 0.65rem; font-size: 0.625rem; font-weight: 700; line-height: 1.3; letter-spacing: 0.14em; text-transform: uppercase; background: var(--fb-white); color: var(--fb-ink); }
.badge--blue { background: var(--fb-blue); color: var(--fb-white); }
.badge--red { background: var(--fb-red); color: var(--fb-white); }
.badge--muted { background: var(--fb-paper); color: var(--fb-slate); }
.property-card__body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; }
.property-card__price { margin-bottom: var(--fb-s3); font-size: 1.125rem; font-weight: 700; color: var(--fb-blue); letter-spacing: -0.01em; }
.price-period { font-size: 0.8125rem; font-weight: 400; color: var(--fb-slate); letter-spacing: 0; }
/* Card titles are h2 on the catalogue and h3 elsewhere; style both the same. */
.property-card :is(h2, h3) { font-size: 1rem; line-height: 1.4; letter-spacing: 0; margin-bottom: var(--fb-s2); }
.property-card :is(h2, h3) a { color: var(--fb-ink); text-decoration: none; }
.property-card :is(h2, h3) a::after { content: ""; position: absolute; inset: 0; }
.property-card__location { display: flex; gap: var(--fb-s2); align-items: center; margin-bottom: var(--fb-s4); color: var(--fb-slate); font-size: 0.875rem; }
.property-card__location .icon { width: 16px; height: 16px; }
.specs { display: flex; flex-wrap: wrap; gap: var(--fb-s2) var(--fb-s5); margin: 0; padding: var(--fb-s4) 0 0; list-style: none; border-top: 1px solid var(--fb-line); margin-top: auto; font-size: 0.8125rem; color: var(--fb-ink); }
.specs li { display: inline-flex; align-items: center; gap: 0.4rem; }
.specs .icon { width: 16px; height: 16px; color: var(--fb-blue); }
.property-card__features { margin: 0 0 var(--fb-s4); padding: 0; list-style: none; font-size: 0.875rem; color: var(--fb-slate); }
.property-card__features li::before { content: "– "; color: var(--fb-red); }

/* Illustrative image label (brief: distinguish illustrative images from real photographs) */
.illustrative { position: absolute; right: var(--fb-s3); bottom: var(--fb-s3); z-index: 2; padding: 0.3rem 0.55rem; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; background: rgba(24, 47, 64, 0.85); color: var(--fb-white); }

/* ---------- Filters ---------- */
.filters { padding: var(--fb-s5); background: var(--fb-white); border: 1px solid var(--fb-line); border-top: 2px solid var(--fb-blue); }
.filters__grid { display: grid; gap: var(--fb-s4); }
@media (min-width: 640px) { .filters__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .filters__grid { grid-template-columns: repeat(4, 1fr); } }
.filters__actions { display: flex; flex-wrap: wrap; gap: var(--fb-s3); align-items: center; margin-top: var(--fb-s4); }
.results-count { margin: var(--fb-s5) 0; font-weight: 700; }

/* ---------- Forms ---------- */
.form-panel { padding: var(--fb-s6); background: var(--fb-white); border: 1px solid var(--fb-line); border-top: 2px solid var(--fb-blue); }
.section--paper .form-panel { border-color: transparent; border-top-color: var(--fb-blue); }
.form-panel h2, .form-panel h3 { margin-bottom: var(--fb-s3); }
.form-grid { display: grid; gap: var(--fb-s4) var(--fb-s5); }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field label, .field__label { display: block; margin-bottom: var(--fb-s2); font-size: 0.875rem; font-weight: 700; }
.field__req { font-weight: 400; color: var(--fb-slate); font-size: 0.9rem; }
.field__help { margin: 0 0 var(--fb-s2); font-size: 0.9rem; color: var(--fb-slate); }
.field__error { margin: 0 0 var(--fb-s2); font-size: 0.95rem; font-weight: 700; color: var(--fb-red); }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="number"], input[type="search"], select, textarea {
  width: 100%; min-height: 50px; padding: 0.75rem 0.95rem; font: 1rem/1.4 var(--fb-font); color: var(--fb-ink); background: var(--fb-white); border: 1px solid #8a959c; border-radius: 0; transition: border-color 0.2s var(--fb-ease); }
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; padding-right: 2.5rem; background: var(--fb-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23214e70' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.85rem center; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--fb-blue); outline-offset: 2px; border-color: var(--fb-blue); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--fb-red); }
input[type="file"] { width: 100%; padding: var(--fb-s3); border: 2px dashed #8a959c; background: var(--fb-paper); }
.field .check, .check { display: flex; gap: var(--fb-s3); align-items: flex-start; font-size: 0.9375rem; font-weight: 400 !important; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: none; accent-color: var(--fb-blue); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: var(--fb-s4) 0; font-size: 0.9rem; color: var(--fb-slate); }
.form-errors { margin-bottom: var(--fb-s5); padding: var(--fb-s5); border: 2px solid var(--fb-red); background: var(--fb-red-tint); }
.form-errors h3 { color: var(--fb-red); font-size: 1.1rem; margin-bottom: var(--fb-s2); }
.form-errors ul { margin: 0; padding-left: 1.25rem; }
.form-errors a { color: var(--fb-red); font-weight: 700; }
.form-success { display: flex; gap: var(--fb-s4); padding: var(--fb-s5); border-left: 2px solid var(--fb-success); background: #e9f3ee; }
.form-success .icon { color: var(--fb-success); width: 28px; height: 28px; }
.form-success h3 { color: var(--fb-success); font-size: 1.2rem; margin-bottom: var(--fb-s2); }
.form-success p:last-child { margin: 0; }
.reference { font-family: ui-monospace, Consolas, monospace; font-weight: 700; font-size: 1.05rem; background: var(--fb-white); padding: 0.1rem 0.4rem; }
.notice { margin-bottom: var(--fb-s5); padding: var(--fb-s4) var(--fb-s5); border-left: 2px solid var(--fb-red); background: var(--fb-red-tint); }
.notice h3, .notice__title { font-size: 1.05rem; font-weight: 700; color: var(--fb-red); margin-bottom: var(--fb-s2); }
.notice p:last-child { margin: 0; }
.notice--info { border-color: var(--fb-blue); background: var(--fb-blue-tint); }
.notice--info h3, .notice--info .notice__title { color: var(--fb-blue); }
.form-unavailable { padding: var(--fb-s5); background: var(--fb-paper); border-left: 2px solid var(--fb-blue); }
.button[aria-busy="true"] { opacity: 0.7; cursor: progress; }

/* ---------- Property details ---------- */
.gallery { display: grid; gap: var(--fb-s3); }
.gallery__main { position: relative; aspect-ratio: 16 / 10; background: var(--fb-paper); overflow: hidden; }
.gallery__main img, .gallery__main picture { width: 100%; height: 100%; object-fit: cover; }
.gallery__slide { position: absolute; inset: 0; }
.gallery__slide[hidden] { display: none; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: rgba(255, 255, 255, 0.92); color: var(--fb-blue); cursor: pointer; }
.gallery__nav--prev { left: var(--fb-s3); } .gallery__nav--next { right: var(--fb-s3); }
.gallery__nav--prev svg { transform: rotate(180deg); }
.gallery__count { position: absolute; left: var(--fb-s3); bottom: var(--fb-s3); z-index: 2; padding: 0.2rem 0.6rem; background: rgba(24, 47, 64, 0.85); color: var(--fb-white); font-size: 0.85rem; font-weight: 700; }
.gallery__thumbs { display: flex; gap: var(--fb-s2); overflow-x: auto; padding-bottom: var(--fb-s1); list-style: none; margin: 0; padding-left: 0; }
.gallery__thumbs button { flex: none; width: 96px; height: 72px; padding: 0; border: 3px solid transparent; background: var(--fb-paper); cursor: pointer; overflow: hidden; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--fb-red); }
.gallery__thumbs img, .gallery__thumbs picture { width: 100%; height: 100%; object-fit: cover; }
.property-layout { display: grid; gap: var(--fb-s7); }
@media (min-width: 1000px) { .property-layout { grid-template-columns: minmax(0, 1fr) 380px; } .property-aside { position: sticky; top: 100px; } }
.price-box { padding: var(--fb-s6); background: var(--fb-white); border: 1px solid var(--fb-line); border-top: 2px solid var(--fb-blue); }
.price-box__price { font-size: 1.5rem; font-weight: 700; color: var(--fb-blue); line-height: 1.2; }
.price-box .button { width: 100%; }
.price-box .button-row { flex-direction: column; margin-top: var(--fb-s5); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin: 0 0 var(--fb-s6); border-top: 1px solid var(--fb-line); border-left: 1px solid var(--fb-line); }
.facts div { padding: var(--fb-s4); background: var(--fb-white); border-right: 1px solid var(--fb-line); border-bottom: 1px solid var(--fb-line); }
.facts dt { font-size: 0.85rem; color: var(--fb-slate); }
.facts dd { margin: 0; font-weight: 700; font-size: 1rem; }
.def-list { display: grid; grid-template-columns: auto 1fr; gap: var(--fb-s2) var(--fb-s5); margin: 0; }
.def-list dt { color: var(--fb-slate); }
.def-list dd { margin: 0; font-weight: 700; }
.map-placeholder { display: grid; place-items: center; gap: var(--fb-s3); aspect-ratio: 16 / 9; padding: var(--fb-s5); text-align: center; background: var(--fb-paper); border: 1px solid var(--fb-line); }
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }
.updated { font-size: 0.9rem; color: var(--fb-slate); }

/* ---------- Prose (Markdown from the CMS) ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: var(--fb-s7); font-size: 1.375rem; }
.prose h3 { font-size: 1.125rem; }
.prose h3 { margin-top: var(--fb-s6); }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li + li { margin-top: var(--fb-s2); }
.prose blockquote { margin: var(--fb-s6) 0; padding: var(--fb-s3) var(--fb-s5); border-left: 2px solid var(--fb-red); color: var(--fb-slate); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--fb-s5); }
.prose th, .prose td { padding: var(--fb-s3); border-bottom: 1px solid var(--fb-line); text-align: left; }
.prose img { margin-block: var(--fb-s5); }

/* ---------- FAQs ---------- */
.faq { border-top: 1px solid var(--fb-line); }
.faq details { border-bottom: 1px solid var(--fb-line); }
.faq summary { display: flex; justify-content: space-between; gap: var(--fb-s4); padding: 1.4rem 0; font-weight: 700; font-size: 1rem; color: var(--fb-blue); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.25rem; font-weight: 400; line-height: 1; color: var(--fb-red); }
.faq details[open] summary::after { content: "–"; }
.faq__answer { padding-bottom: var(--fb-s5); max-width: 72ch; }
.faq__answer p:last-child { margin: 0; }
.faq-topic + .faq-topic { margin-top: var(--fb-s7); }

/* ---------- Team and partners ---------- */
.team-card { display: flex; flex-direction: column; background: var(--fb-white); border: 1px solid var(--fb-line); }
.team-card__photo { aspect-ratio: 1; background: var(--fb-paper); overflow: hidden; }
.team-card__photo img, .team-card__photo picture { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: var(--fb-s5); }
.team-card h3 { font-size: 1.0625rem; margin-bottom: var(--fb-s1); }
.team-card__role { margin-bottom: var(--fb-s3); font-weight: 700; color: var(--fb-red); font-size: var(--fb-text-xs); letter-spacing: var(--fb-tracking); text-transform: uppercase; }
.team-card__quals { font-size: 0.9rem; color: var(--fb-slate); }
.team-card details summary { cursor: pointer; font-weight: 700; color: var(--fb-blue); }
.tags { display: flex; flex-wrap: wrap; gap: var(--fb-s2); list-style: none; padding: 0; margin: var(--fb-s3) 0; }
.tags li { padding: 0.15rem 0.55rem; font-size: 0.8125rem; background: var(--fb-blue-tint); color: var(--fb-blue); }
/* Partner logos: separate white containers (guide page 10). */
.partner-card { display: flex; flex-direction: column; height: 100%; background: var(--fb-white); border: 1px solid var(--fb-line); }
.partner-card__logo { display: grid; place-items: center; height: 140px; padding: var(--fb-s5); background: var(--fb-white); border-bottom: 1px solid var(--fb-line); }
.partner-card__logo img, .partner-card__logo picture { max-height: 90px; width: auto; object-fit: contain; }
.partner-card__body { padding: var(--fb-s5); }
.partner-card h3 { font-size: 1.1rem; margin-bottom: var(--fb-s1); }
.partner-card__rel { color: var(--fb-red); font-weight: 700; font-size: 0.9rem; }

/* Testimonials */
.testimonial { margin: 0; padding: var(--fb-s6); background: var(--fb-white); border-top: 2px solid var(--fb-red); height: 100%; display: flex; flex-direction: column; }
.testimonial blockquote { margin: 0 0 var(--fb-s5); font-size: 1.0625rem; line-height: 1.7; }
.testimonial figcaption { margin-top: auto; font-weight: 700; color: var(--fb-blue); }
.testimonial figcaption span { display: block; font-weight: 400; color: var(--fb-slate); font-size: 0.925rem; }

/* Article cards */
.article-card { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--fb-white); border: 1px solid var(--fb-line); }
.article-card__media { aspect-ratio: 16 / 9; background: var(--fb-paper); overflow: hidden; }
.article-card__media img, .article-card__media picture { width: 100%; height: 100%; object-fit: cover; }
.article-card__body { display: flex; flex-direction: column; flex: 1; padding: var(--fb-s5); }
.article-card time { font-size: var(--fb-text-xs); letter-spacing: var(--fb-tracking); text-transform: uppercase; color: var(--fb-slate); }
.article-card h3 { font-size: 1.0625rem; margin: var(--fb-s2) 0; }
.article-card h3 a { color: var(--fb-ink); text-decoration: none; }
.article-card h3 a::after { content: ""; position: absolute; inset: 0; }

/* Empty state: a useful invitation, never empty cards or invented listings */
.empty-state { display: grid; gap: var(--fb-s6); padding: var(--fb-s8) var(--fb-s7); background: var(--fb-white); border: 1px solid var(--fb-line); border-left: 2px solid var(--fb-red); }
@media (min-width: 900px) { .empty-state { grid-template-columns: 1fr 1.3fr; align-items: start; } }

/* Call to action band */
.cta-band { display: grid; gap: var(--fb-s5); align-items: center; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { margin-bottom: var(--fb-s2); }
.cta-band p { margin: 0; color: #dbe5ee; }

/* Contact list */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--fb-s4); }
.contact-list li { display: flex; gap: var(--fb-s3); }
.contact-list .icon { color: var(--fb-blue); margin-top: 2px; }
.contact-list strong { display: block; }
.placeholder-text { color: var(--fb-slate); font-style: italic; }

/* Sample-content label (removed before launch from Website Settings) */
.sample-label { display: inline-block; margin-bottom: var(--fb-s3); padding: 0.15rem 0.55rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #6b4f00; background: #fff3cd; border: 1px dashed #b38a00; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fb-ink); color: #b9c6d1; font-size: 0.875rem; }
.site-footer a { color: var(--fb-white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--fb-white); }
.site-footer h2 { margin-bottom: var(--fb-s5); font-size: var(--fb-text-xs); letter-spacing: var(--fb-tracking); text-transform: uppercase; color: var(--fb-white); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--fb-s3); }
.site-footer__main { display: grid; gap: var(--fb-s6); padding-block: var(--fb-s8) var(--fb-s7); }
@media (min-width: 700px) { .site-footer__main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .site-footer__main { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-logo { display: inline-block; padding: var(--fb-s4); background: var(--fb-white); margin-bottom: var(--fb-s5); }
.footer-logo img { width: 170px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--fb-s4); padding-block: var(--fb-s6); border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.75rem; letter-spacing: 0.04em; }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--fb-s2) var(--fb-s5); }
.social { display: flex !important; gap: var(--fb-s3) !important; }
.social a { display: inline-flex; padding: var(--fb-s2); border: 1px solid rgba(255, 255, 255, 0.3); }
.link-button { padding: 0; border: 0; background: none; color: var(--fb-white); font: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* ---------- Cookie banner (only when analytics is configured) ---------- */
.cookie-banner { position: fixed; left: var(--fb-s4); right: var(--fb-s4); bottom: var(--fb-s4); z-index: 60; max-width: 560px; padding: var(--fb-s5); background: var(--fb-white); border-top: 2px solid var(--fb-blue); box-shadow: 0 8px 40px rgba(24, 47, 64, 0.25); }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: var(--fb-s2); }
.cookie-banner p { font-size: 0.95rem; }
.cookie-banner[hidden] { display: none; }

/* ---------- Motion: restrained reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--fb-ease), transform 0.9s var(--fb-ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media print { .js .reveal { opacity: 1; transform: none; } }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .cookie-banner, .form-panel, .gallery__nav, .gallery__thumbs { display: none !important; }
  body { font-size: 11pt; }
}
