/* Marbella Property Advisory — editorial design system
   Palette (5): ivory, paper, ink, stone, gold. Fonts (2): Cormorant Garamond, Inter. */
:root {
  --ivory: #f7f4ee;
  --paper: #ffffff;
  --ink: #1c2128;
  --stone: #5c6169;
  --gold: #84663a;
  --line: rgb(28 33 40 / 0.12);
  --line-light: rgb(247 244 238 / 0.16);
  --serif: 'Cormorant Garamond', 'Cormorant', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(64px, 9vw, 128px);
  --radius: 2px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ivory); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 16px/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--gold); text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--ivory); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--ivory); padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--stone); }

/* ---------- Type ---------- */
.eyebrow { font: 500 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.eyebrow-light { color: rgb(247 244 238 / 0.72); }
.display-hero, .display-xl, .display-lg, .display-md { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; }
.display-hero { font-size: clamp(2.75rem, 6.4vw, 5.75rem); line-height: 1.02; }
.display-hero em { font-style: italic; font-weight: 400; display: block; }
.display-xl { font-size: clamp(2.5rem, 5.2vw, 4.5rem); line-height: 1.05; }
.display-lg { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: 1.08; }
.display-md { font-size: clamp(1.85rem, 3vw, 2.65rem); line-height: 1.12; }
.h2 { font: 500 clamp(1.6rem, 2.4vw, 2rem)/1.2 var(--serif); margin-bottom: 16px; text-wrap: balance; }
.h3 { font: 500 1.5rem/1.25 var(--serif); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.6; color: var(--stone); max-width: 62ch; text-wrap: pretty; }
.lead-light { font-size: 1.1rem; line-height: 1.6; color: rgb(247 244 238 / 0.8); max-width: 60ch; }
.fineprint { font-size: 14px; line-height: 1.55; color: var(--stone); max-width: 80ch; margin-top: 24px; }
.fineprint-light { color: rgb(247 244 238 / 0.7); }
.fineprint a { color: var(--ink); }
.prose { max-width: 70ch; }
.prose p + p, .prose p + .h2, .prose ul + .h2, .prose ul + p { margin-top: 1em; }
.prose .h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.prose-article .h2:first-child { margin-top: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border: 1px solid transparent; border-radius: var(--radius); font: 500 14px/1 var(--sans); letter-spacing: 0.04em; text-decoration: none; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-solid { background: var(--ink); color: var(--ivory); }
.btn-solid:hover { background: var(--gold); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--ivory); }
.btn-ivory { background: var(--ivory); color: var(--ink); }
.btn-ivory:hover { background: var(--paper); }
.btn-line-light { border-color: rgb(247 244 238 / 0.4); color: var(--ivory); }
.btn-line-light:hover { border-color: var(--ivory); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-text { font: 500 14px/1.4 var(--sans); letter-spacing: 0.02em; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; color: var(--ink); background: none; border: 0; padding: 0; cursor: pointer; }
.btn-text:hover { color: var(--gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(247 244 238 / 0.96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; flex-shrink: 0; }
.brand picture { display: flex; }
.brand img { width: 280px; height: auto; }
.primary-nav a { white-space: nowrap; }
@media (min-width: 1201px) and (max-width: 1320px) { .brand img { width: 250px; } .primary-nav ul { gap: 22px; } }
@media (max-width: 1200px) { .brand img { width: 216px; } }
@media (max-width: 640px) { .brand img { width: 46px; } }
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 28px; list-style: none; }
.primary-nav a { font-size: 14px; text-decoration: none; color: var(--ink); padding-block: 6px; border-bottom: 1px solid transparent; }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { border-bottom-color: var(--gold); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; align-items: center; justify-content: center; }
.menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; transition: transform 0.2s; }
.menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
.menu-bars::before { top: -6px; }
.menu-bars::after { top: 6px; }
.menu-toggle[aria-expanded='true'] .menu-bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-nav { border-top: 1px solid var(--line); padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 12px; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; display: flex; flex-direction: column; margin-bottom: 12px; }
.mobile-nav li a { display: block; padding: 12px 0; font: 500 1.6rem/1.2 var(--serif); text-decoration: none; border-bottom: 1px solid var(--line); }
@media (max-width: 1200px) {
  .primary-nav, .header-cta { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(40px, 6vw, 72px) var(--section); }
.section-flush { padding: 0; }
.section-ivory { background: var(--paper); border-block: 1px solid var(--line); }
.section-ink, .band-ink { background: var(--ink); color: var(--ivory); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head-stack { flex-direction: column; align-items: flex-start; gap: 16px; max-width: 900px; }
.stack { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split > div:first-child { display: flex; flex-direction: column; gap: 16px; }
.split-wide { grid-template-columns: 1fr 1fr; }
.split-top { align-items: start; margin-top: clamp(40px, 5vw, 64px); }
.section-tight .split-top:first-child, .page-hero + .section .split-top:first-child { margin-top: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.balance { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.balance > div:first-child { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) {
  .split, .split-wide, .balance, .two-col { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 860px); display: flex; align-items: flex-start; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgb(247 244 238 / 0.92) 0%, rgb(247 244 238 / 0.78) 34%, rgb(247 244 238 / 0.2) 62%, rgb(247 244 238 / 0) 78%); }
.hero .btn-line { background: rgb(247 244 238 / 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 60%; transform: translate3d(0, var(--py, 0px), 0); will-change: transform; }
.hero-copy { position: relative; padding-block: clamp(56px, 11vh, 120px) 64px; display: flex; flex-direction: column; gap: 24px; }
.hero-copy > * { max-width: 640px; }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 34ch; color: var(--ink); }
.hero .eyebrow { color: var(--ink); }
.hero-copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero-media { position: relative; order: 2; aspect-ratio: 4 / 3; }
  .hero-media::after { display: none; }
  .hero-img { height: 100%; transform: none; object-position: 62% 50%; }
  .hero-copy { padding-block: 48px 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * { animation: none; }
  .hero-img { transform: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Page hero ---------- */
.page-hero { padding-block: clamp(48px, 8vw, 112px) clamp(32px, 4vw, 56px); }
.page-hero .wrap { display: flex; flex-direction: column; gap: 20px; }
.page-hero-tight { padding-bottom: 8px; }
.page-hero .lead + .hero-sub { margin-top: -12px; }
.hero-sub { font-size: 1rem; line-height: 1.6; color: var(--stone); max-width: 62ch; text-wrap: pretty; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; font-size: 13px; color: var(--stone); }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: var(--line); }
.crumbs a { color: var(--stone); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Property cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.2s; }
.pcard:hover { border-color: rgb(28 33 40 / 0.3); }
.pcard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.pcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--ivory); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.pcard:hover .pcard-media img { transform: scale(1.03); }
.pcard-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--stone); font-size: 14px; }
.pcard-flag { position: absolute; left: 16px; top: 16px; background: var(--ink); color: var(--ivory); font: 500 11px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 10px; }
.pcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; }
.pcard-loc { font: 500 12px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.pcard-title { font: 500 1.55rem/1.2 var(--serif); }
.pcard-price { font-weight: 600; font-size: 1.05rem; margin-top: 4px; }
.pcard-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; list-style: none; font-size: 14px; color: var(--stone); margin-top: 8px; }
.pcard-skeleton .pcard-media, .pcard-skeleton .pcard-body span { background: var(--ivory); animation: pulse 1.4s ease-in-out infinite; }
.pcard-skeleton .pcard-body span { display: block; height: 14px; border-radius: var(--radius); }
.pcard-skeleton .pcard-body span:nth-child(2) { height: 24px; width: 70%; }
.pcard-skeleton .pcard-body span:nth-child(3) { width: 40%; }
@keyframes pulse { 50% { opacity: 0.5; } }

.notice { background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; grid-column: 1 / -1; }
.notice h3 { font: 500 1.75rem/1.2 var(--serif); }
.notice p { color: var(--stone); max-width: 62ch; }

/* ---------- Filters ---------- */
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 16px 20px; padding: 24px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 20px; align-items: end; }
.filters-actions { display: flex; align-items: center; gap: 20px; grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 500; color: var(--ink); }
.field select, .field input, .field textarea { width: 100%; font: 400 16px/1.4 var(--sans); color: var(--ink); background: var(--paper); border: 1px solid rgb(28 33 40 / 0.22); border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
.field textarea { resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.results-meta { font-size: 14px; color: var(--stone); margin-bottom: 24px; min-height: 1.6em; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; justify-content: center; }
.pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; border: 1px solid var(--line); text-decoration: none; font-size: 14px; background: var(--paper); }
.pager a[aria-current='page'] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.pager a:hover:not([aria-current]) { border-color: var(--ink); }

/* ---------- Feature / mosaic ---------- */
.feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.feature-reverse { grid-template-columns: 5fr 7fr; }
.feature-reverse .feature-media { order: 2; }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.feature-copy > p:not(.eyebrow) { color: var(--stone); }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 808px; }
.mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 900px) {
  .feature, .feature-reverse { grid-template-columns: 1fr; }
  .feature-reverse .feature-media { order: 0; }
}

/* ---------- Ledger ---------- */
.ledger { width: 100%; display: flex; flex-direction: column; }
.ledger > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ledger dt { font-size: 14px; color: var(--stone); }
.ledger dt small { display: block; font-size: 13px; opacity: 0.85; margin-top: 2px; }
.ledger dd { font: 500 1.4rem/1.2 var(--serif); text-align: right; white-space: nowrap; }
.ledger .ledger-total { border-top: 1px solid var(--ink); border-bottom: 0; margin-top: -1px; }
.ledger .ledger-total dt { color: var(--ink); font-weight: 500; }
.ledger .ledger-total dd { color: var(--gold); }
.section-ink .ledger > div { border-color: var(--line-light); }
@media (max-width: 520px) { .ledger dd { white-space: normal; font-size: 1.2rem; } }

/* ---------- Pillars / methods / lists ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); }
.pillars > div { padding: 8px clamp(16px, 2.5vw, 36px) 8px; border-left: 1px solid var(--line-light); display: flex; flex-direction: column; gap: 16px; }
.pillars > div:first-child { border-left: 0; padding-left: 0; }
.pillars h3 { font: 500 clamp(1.5rem, 2.2vw, 2rem)/1 var(--serif); letter-spacing: 0.12em; text-transform: uppercase; }
.pillars p { color: rgb(247 244 238 / 0.75); font-size: 15px; }
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .pillars > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 520px) {
  .pillars { grid-template-columns: 1fr; }
  .pillars > div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-light); padding-top: 24px; }
}
.methods { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 3vw, 40px); }
.methods > div { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.methods h3 { font: 500 1.5rem/1.2 var(--serif); }
.methods p { color: var(--stone); font-size: 15px; }
.section-head + .methods, .display-md + .methods { margin-top: 0; }
.section .wrap > .display-md + .methods { margin-top: 40px; }
@media (max-width: 1000px) { .methods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .methods { grid-template-columns: 1fr; } }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.8em; width: 14px; height: 1px; background: var(--gold); }
.inline-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; letter-spacing: 0.04em; }
.inline-points li::before { content: '✦'; color: var(--gold); margin-right: 10px; font-size: 10px; vertical-align: 2px; }
.questions { list-style: none; }
.questions li { font: 500 clamp(1.3rem, 2vw, 1.65rem)/1.3 var(--serif); padding: 18px 0; border-top: 1px solid var(--line); }
.questions li:last-child { border-bottom: 1px solid var(--line); }
.panel { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-ivory .panel { background: var(--ivory); }
.panel-accent { border-color: var(--ink); }
.callout { border-top: 1px solid var(--ink); padding-top: 24px; margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 80ch; }
.two-col + .lead { margin-top: 8px; }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; }
.roles > div { border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.roles h3 { font: 500 1.3rem/1.2 var(--serif); }
.roles p { color: var(--stone); font-size: 15px; }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* ---------- Memo card ---------- */
.memo-card { margin: 0; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 30px 60px -40px rgb(28 33 40 / 0.35); }
.memo-card figcaption { display: flex; justify-content: space-between; font: 500 11px/1 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone); padding-bottom: 16px; border-bottom: 1px solid var(--ink); }
.memo-card-title { font: 500 1.9rem/1.15 var(--serif); }
.memo-card-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 8px; }
.memo-card-cols h4, .features h4 { font: 500 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.memo-card-cols p { font-size: 14px; color: var(--stone); line-height: 1.5; }
@media (max-width: 560px) { .memo-card-cols { grid-template-columns: 1fr; } }

/* ---------- Areas / langs / insights ---------- */
.area-list { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(20px, 3vw, 48px); }
.area-list a { display: flex; flex-direction: column; gap: 6px; padding: 24px 0 28px; border-top: 1px solid var(--line); text-decoration: none; height: 100%; }
.area-name { font: 500 1.75rem/1.15 var(--serif); transition: color 0.2s; }
.area-tag { font-size: 15px; color: var(--stone); }
.area-list a:hover .area-name { color: var(--gold); }
.area-list-lg .area-name { font-size: 2rem; }
@media (max-width: 900px) { .area-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .area-list { grid-template-columns: 1fr; } }
.langs { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.langs li { border: 1px solid var(--line); padding: 16px 18px; display: flex; align-items: baseline; gap: 12px; font: 500 1.25rem/1.2 var(--serif); }
.langs span { font: 600 12px/1 var(--sans); letter-spacing: 0.14em; color: var(--gold); }
@media (max-width: 560px) { .langs { grid-template-columns: 1fr 1fr; } }
.insight-list { list-style: none; }
.insight-list a { display: grid; grid-template-columns: 160px 1fr; gap: 6px 32px; padding: 28px 0; border-top: 1px solid var(--line); text-decoration: none; }
.insight-cat { grid-row: span 2; font: 500 12px/1.8 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.insight-title { font: 500 1.65rem/1.2 var(--serif); }
.insight-desc { color: var(--stone); }
.insight-list a:hover .insight-title { color: var(--gold); }
@media (max-width: 640px) { .insight-list a { grid-template-columns: 1fr; } .insight-cat { grid-row: auto; } }
.answer { border-left: 2px solid var(--gold); padding: 4px 0 4px 20px; margin-bottom: 40px; display: flex; flex-direction: column; gap: 8px; }
.answer p:last-child { font-size: 1.125rem; line-height: 1.6; color: var(--ink); }
.btn-col { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.btn-col .btn { justify-content: center; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 12px; line-height: 1.6; }
.related { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--ink); max-width: 70ch; display: flex; flex-direction: column; gap: 12px; }
.related ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

/* ---------- Media ---------- */
.wide-media img { width: 100%; height: clamp(280px, 48vw, 620px); object-fit: cover; }
.tile { display: flex; flex-direction: column; text-decoration: none; background: var(--paper); border: 1px solid var(--line); }
.tile img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.tile > div { padding: 24px 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.tile p:not(.eyebrow) { color: var(--stone); }
.tile:hover .h2 { color: var(--gold); }

/* ---------- Band ---------- */
.band { padding-block: clamp(64px, 8vw, 112px); }
.band-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.band-split > div { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
@media (max-width: 900px) { .band-split { grid-template-columns: 1fr; } }

/* ---------- Detail ---------- */
.detail-head { padding-block: clamp(32px, 5vw, 64px) 32px; display: flex; flex-direction: column; gap: 16px; }
.detail-head .display-lg { max-width: 22ch; }
.detail-price { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1.1 var(--serif); display: flex; flex-direction: column; gap: 6px; }
.detail-price span { font: 400 14px/1.4 var(--sans); color: var(--stone); }
.gallery { margin-bottom: clamp(40px, 5vw, 72px); }
.gallery-rail { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 4px; }
.gallery-item { flex: 0 0 auto; width: min(400px, 84vw); aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--paper); cursor: zoom-in; scroll-snap-align: start; overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.gallery-item:hover img { opacity: 0.9; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; }
.gallery-nav { display: flex; gap: 8px; }
.gallery-empty { background: var(--paper); border: 1px solid var(--line); padding: 64px; text-align: center; color: var(--stone); margin-bottom: 48px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 18px; border-radius: var(--radius); }
.icon-btn:hover { border-color: var(--ink); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgb(28 33 40 / 0.94); }
.lightbox img { width: min(92vw, 800px); height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.lightbox-count { position: absolute; top: 24px; left: 24px; color: var(--ivory); font-size: 14px; }
.lightbox .icon-btn { position: absolute; background: var(--ivory); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 16px; top: 50%; transform: translateY(-50%); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 80px); align-items: start; padding-bottom: var(--section); }
.detail-main { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.aside-card { background: var(--paper); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.aside-price { font: 500 2rem/1.1 var(--serif); }
.aside-facts > div { display: flex; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.aside-facts dt { color: var(--stone); }
.aside-ctas { display: flex; flex-direction: column; gap: 10px; align-items: center; }
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; order: -1; }
}
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px 32px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.features p { font-size: 15px; color: var(--stone); }
.memo { background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 32px; }
.memo-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); }
.memo-head .h2 { margin: 0; }
.memo-table > div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.memo-table dt { color: var(--stone); }
.memo-table small { display: block; color: var(--stone); font-size: 13px; }
@media (max-width: 600px) { .memo-table > div { grid-template-columns: 1fr; gap: 2px; } }
.memo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
.memo-block { display: flex; flex-direction: column; gap: 14px; font-size: 15px; }
.memo-block h3 { font: 500 1.4rem/1.2 var(--serif); }
@media (max-width: 760px) { .memo-grid { grid-template-columns: 1fr; } }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); border-top: 1px solid var(--ink); }
.keyfacts > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.keyfacts dt { font: 500 11px/1.4 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.keyfacts dd { font: 500 1.3rem/1.25 var(--serif); }
.distances { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 32px; width: 100%; margin-top: 16px; }
.distances > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.distances dt { color: var(--stone); }
.memo-fin { margin-top: 20px; }

/* ---------- Stress test ---------- */
.stress { max-width: 860px; display: flex; flex-direction: column; gap: 24px; }
.stress-label { font: 500 1.4rem/1.2 var(--serif); }
.stress input[type='range'] { width: 100%; accent-color: var(--gold); height: 32px; cursor: pointer; }
.stress-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.stress-grid > div { padding: 20px 16px 20px 0; display: flex; flex-direction: column; gap: 6px; }
.stress-grid dt { font-size: 13px; color: rgb(247 244 238 / 0.7); letter-spacing: 0.04em; }
.stress-grid dd { font: 500 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.stress-bar { position: relative; height: 8px; background: var(--line-light); }
.stress-bar span { position: absolute; inset: 0 auto 0 0; width: var(--w, 42%); background: var(--ivory); transition: width 0.25s ease, background-color 0.25s; }
.stress-bar span[data-high] { background: var(--gold); }
.stress-mark { position: absolute; left: var(--limit, 50%); top: -8px; bottom: -8px; width: 1px; background: var(--ivory); }
@media (max-width: 560px) { .stress-grid { grid-template-columns: 1fr; } }

/* ---------- Form ---------- */
.lead-form { display: flex; flex-direction: column; gap: 28px; background: var(--paper); border: 1px solid var(--line); padding: clamp(24px, 4vw, 48px); }
.lead-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.lead-form legend { font: 500 1.35rem/1.2 var(--serif); margin-bottom: 12px; padding: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; gap: 10px; border: 1px solid rgb(28 33 40 / 0.22); padding: 10px 16px; min-height: 44px; cursor: pointer; font-size: 15px; border-radius: var(--radius); background: var(--paper); }
.choice input { accent-color: var(--ink); width: 16px; height: 16px; margin: 0; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ivory); }
.choice:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.consent { border: 0; padding: 0; align-items: flex-start; background: none; font-size: 14px; color: var(--stone); }
.consent input { margin-top: 3px; flex: none; }
.field-error { color: #8a2c1f; font-size: 13px; min-height: 0; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status:empty { display: none; }
.form-status { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.form-status h3 { font: 500 1.6rem/1.2 var(--serif); }
.lead-form button[type='submit'] { align-self: flex-start; }

/* Property brief */
.brief [hidden] { display: none !important; }
.brief .brief-step { gap: 20px; }
.brief .brief-title { font: 500 clamp(1.5rem, 2.4vw, 1.9rem)/1.15 var(--serif); margin-bottom: 4px; outline: none; }
.brief-intro { color: var(--stone); font-size: 15px; line-height: 1.6; max-width: 60ch; }
.brief .field-group { gap: 10px; }
.brief .field-legend { font: 500 13px/1.4 var(--sans); color: var(--ink); margin-bottom: 4px; }
.brief .req { color: var(--gold); }
.choices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choices-grid .choice { width: 100%; }
.brief-note { font-size: 14px; line-height: 1.6; color: var(--stone); border-left: 2px solid var(--gold); padding-left: 14px; }
.brief-consents { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.brief-progress { display: flex; flex-direction: column; gap: 10px; }
.brief-progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--stone); }
.brief-bar { height: 2px; background: var(--line); }
.brief-bar span { display: block; height: 100%; width: 10%; background: var(--gold); transition: width 0.3s ease; }
.brief-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; }
.brief-nav [data-brief-next], .brief-nav [data-brief-submit] { margin-left: auto; }
.brief-saved { font-size: 13px; color: var(--stone); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.brief.is-done .brief-step, .brief.is-done .brief-nav, .brief.is-done .brief-progress, .brief.is-done .brief-saved { display: none !important; }
.brief [aria-invalid] { border-color: #8a2c1f; }
@media (min-width: 900px) { .brief-aside { position: sticky; top: 120px; } }
@media (max-width: 640px) {
  .brief .form-grid { grid-template-columns: 1fr; }
  .brief .choice { font-size: 14px; padding: 10px 12px; }
  .brief-nav .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .brief-bar span { transition: none; } }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgb(247 244 238 / 0.78); padding-top: clamp(56px, 7vw, 96px); font-size: 15px; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.band-ink + .site-footer { border-top: 1px solid var(--line-light); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; gap: 20px; max-width: 320px; }
.footer-brand img { width: 168px; height: auto; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h2 { font: 500 12px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: rgb(247 244 238 / 0.6); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-langs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-langs span { border: 1px solid var(--line-light); padding: 4px 8px; font-size: 12px; letter-spacing: 0.1em; }
.footer-legal { border-top: 1px solid var(--line-light); padding-block: 28px 40px; display: grid; grid-template-columns: 48px 1fr; gap: 12px 24px; font-size: 13px; line-height: 1.6; color: rgb(247 244 238 / 0.65); }
.footer-roundel { grid-row: span 2; width: 48px; height: 48px; }
.footer-meta a { color: rgb(247 244 238 / 0.85); }
.footer-cookie-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--ivory); cursor: pointer; text-align: left; }
.footer-cookie-btn:hover { text-decoration: underline; }

/* ---------- Buttons (small) ---------- */
.btn.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }

/* ---------- Legal ---------- */
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.legal-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.legal-nav ul { list-style: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.legal-nav a { display: block; padding: 8px 0 8px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--stone); text-decoration: none; font-size: 15px; }
.legal-nav a:hover { color: var(--ink); }
.legal-nav a[aria-current='page'] { color: var(--ink); border-left-color: var(--ink); }
.legal-prose { max-width: 72ch; }
.legal-prose h2 { margin-top: 1.8em; }
.legal-prose h2:first-child { margin-top: 0; }
.legal-updated { font-size: 14px; color: var(--stone); }
.company-details, .legal-table { display: grid; grid-template-columns: minmax(160px, 1fr) 2fr; margin-top: 16px; border-top: 1px solid var(--line); }
.company-details > *, .legal-table > * { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.company-details dt, .legal-table-head { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone); }
.legal-table { grid-template-columns: repeat(4, minmax(0, 1fr)); font-size: 15px; }
.legal-quote { border-left: 1px solid var(--ink); padding-left: 20px; margin-top: 16px; font-style: italic; }
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-nav { position: static; }
  .legal-nav ul { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; border-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
  .legal-nav a { padding: 4px 0; border-left: 0; margin: 0; }
  .legal-nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 4px; }
  .legal-table { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .company-details { grid-template-columns: 1fr; } .company-details dd { padding-top: 0; } .company-details dt { border-bottom: 0; } }

/* ---------- Team / careers ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
.team-card { display: flex; flex-direction: column; gap: 20px; }
.team-photo { aspect-ratio: 4 / 5; background: var(--line); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-body { display: flex; flex-direction: column; gap: 8px; }
.team-name { font: 500 1.5rem/1.2 var(--serif); }
.team-meta { font-size: 14px; color: var(--stone); }
.team-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.team-photo-slot { display: flex; align-items: center; justify-content: center; background: var(--ivory); border: 1px solid var(--line); }
.team-photo-slot img { width: 34%; height: auto; object-fit: contain; opacity: 0.55; }
.team-card-slot .team-name { color: var(--stone); }
.team-empty { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 60ch; }
.role-list { list-style: none; display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.role-list li { padding-block: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.role-list h3 { font: 500 1.25rem/1.3 var(--serif); }

/* ---------- Cookie consent ---------- */
.cookie-banner { position: fixed; inset: auto 16px 16px 16px; z-index: 60; background: var(--ivory); color: var(--ink); border: 1px solid var(--ink); box-shadow: 0 12px 40px rgb(28 33 40 / 0.18); max-width: 960px; margin-inline: auto; }
.cookie-banner[hidden] { display: none; }

.wa-icon { flex: none; display: block; }
.header-wa { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; transition: color 0.2s, border-color 0.2s; }
.header-wa:hover { color: var(--gold); border-color: var(--gold); }
@media (max-width: 1200px) {
  .header-wa { margin-left: auto; }
  .header-wa ~ .menu-toggle { margin-left: -20px; }
}
.wa-link { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.wa-link:hover { color: var(--gold); }
.wa-cta { align-self: flex-start; }
.wa-float { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px)); z-index: 50; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--ivory); border: 1px solid var(--gold); box-shadow: 0 8px 24px rgb(28 33 40 / 0.22); text-decoration: none; transition: background-color 0.2s, transform 0.2s; }
.wa-float:hover { background: var(--gold); transform: translateY(-2px); }
body:has(.cookie-banner:not([hidden])) .wa-float, body:has(#mobile-nav:not([hidden])) .wa-float { display: none; }
@media (max-width: 640px) {
  .wa-float { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, calc(env(safe-area-inset-bottom) + 8px)); }
  .header-wa { width: 40px; height: 40px; }
  .site-footer { padding-bottom: 88px; }
}
@media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } .wa-float:hover { transform: none; } }
.cookie-inner { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 20px 24px; }
.cookie-inner p { font-size: 14px; line-height: 1.55; margin-top: 4px; }
.cookie-inner a { color: var(--ink); }
.cookie-title { font: 500 1.15rem/1.3 var(--serif); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.cookie-dialog { border: 1px solid var(--ink); padding: 0; max-width: min(560px, calc(100% - 32px)); background: var(--ivory); color: var(--ink); }
.cookie-dialog::backdrop { background: rgb(28 33 40 / 0.55); }
.cookie-form { display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.cookie-form > p { font-size: 14px; color: var(--stone); }
.cookie-cat { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 16px; cursor: pointer; }
.cookie-cat h3 { font: 500 15px/1.4 var(--sans); }
.cookie-cat p { font-size: 14px; color: var(--stone); }
.cookie-always { font-size: 13px; color: var(--stone); white-space: nowrap; }
.switch { appearance: none; flex-shrink: 0; width: 44px; height: 24px; border: 1px solid var(--ink); border-radius: 999px; position: relative; cursor: pointer; background: transparent; transition: background 0.2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transition: transform 0.2s; }
.switch:checked { background: var(--ink); }
.switch:checked::after { background: var(--ivory); transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (max-width: 760px) {
  .cookie-inner { flex-direction: column; align-items: stretch; padding: 18px; }
  .cookie-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-template-columns: 1fr; }
  .footer-roundel { grid-row: auto; }
}
