/*
Theme Name: WPG Sales & Lettings
Theme URI: https://www.wpg-properties.co.uk
Author: Sleeky
Author URI: https://sleeky.co.uk
Description: Custom theme for WPG Sales & Lettings, built on A Sleeky Theme. Page sections use ACF flexible layouts; global details live in Theme Settings.
Version: 1.2.0
Requires at least: 6.4
Requires PHP: 7.4
License: (c) Copyright of Sleeky. All Rights Reserved.
Text Domain: sleeky
*/

/* ==========================================================================
   WPG Sales & Lettings — site styles
   Structure: 1. Tokens  2. Base  3. Layout  4. Components  5. Page sections
              6. Forms  7. Header / footer  8. Utilities  9. Responsive
   ========================================================================== */

/* 1. Tokens ------------------------------------------------------------- */
:root {
  --ink: #1f201e;
  --charcoal: #2a2b28;
  --charcoal-2: #333431;
  --gold: #c5a96a;
  --gold-hover: #d2b97e;
  --gold-text: #87682b;          /* gold for text on light backgrounds (AA) */
  --gold-light: #d9c38c;         /* gold for text on dark backgrounds */
  --cream: #f8f6f1;
  --sand: #f1ece2;
  --white: #fff;
  --line: #e3ded4;
  --muted: #5d5e5a;
  --on-dark-muted: #c9c8c2;
  --danger-bg: #fbecec;
  --danger: #b3261e;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 3px;
  --shadow: 0 1px 2px rgb(31 32 30 / .04), 0 8px 24px rgb(31 32 30 / .06);
  --section: clamp(56px, 7vw, 96px);
}

/* 2. Base --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 2rem + 3.2vw, 4.75rem); letter-spacing: -.02em; }
h2 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.6rem); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-text); outline-offset: 3px; }
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold-light); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--white); padding: 10px 16px; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* 3. Layout ------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.section--white { background: var(--white); }
.section--sand { background: var(--sand); }
.section--dark { background: var(--charcoal); color: var(--white); }
.grid { display: grid; gap: clamp(16px, 2vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px 48px; margin-bottom: clamp(28px, 3vw, 44px); }
.section-head h2 { margin: 0; }
.section-head > p { max-width: 440px; color: var(--muted); margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }
.section-head--center > p { max-width: 560px; font-size: 1.2rem; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; }

/* 4. Components --------------------------------------------------------- */

/* Eyebrow: short gold rule + spaced uppercase label */
.eyebrow { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; font: 600 .78rem/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold); }
.eyebrow--gold { color: var(--gold-text); }
.on-dark .eyebrow { color: var(--gold-light); }
.eyebrow--plain::before { display: none; }
.rule { width: 48px; height: 2px; background: var(--gold); border: 0; margin: 0 0 24px; }
.rule--center { margin: 0 auto 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius); font: 600 .95rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn .icon { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .75); }
.btn--outline-light:hover { background: var(--white); color: var(--ink); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--gold-text); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.text-link:hover { color: var(--ink); }
.text-link .icon { width: 1em; height: 1em; }

/* Icon in a circle */
.icon-badge { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold); color: var(--white); flex: none; }
.icon-badge .icon { width: 28px; height: 28px; }
.icon-badge--soft { background: var(--sand); color: var(--gold-text); }
.icon-badge--sm { width: 52px; height: 52px; }
.icon-badge--sm .icon { width: 24px; height: 24px; }

/* Card */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.card__body > :last-child { margin-top: auto; }
.card__title { margin: 0; font-size: 1.45rem; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; }   /* whole-card link */
.card--link { position: relative; }
.card--link .btn, .card--link .text-link { position: relative; z-index: 1; }

/* Status badge on listing images */
.badge { position: absolute; top: 14px; left: 14px; z-index: 1; padding: 6px 10px; border-radius: 2px; font: 700 .72rem/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--ink); }
.badge--dark { background: var(--charcoal); color: var(--white); }
.badge--inline { position: static; display: inline-block; }

/* Illustrative-content note (for preview only — remove when live data is connected) */
.demo-note { font-size: .78rem; color: var(--muted); margin: 0; }
.demo-note--center { text-align: center; margin-top: 18px; }

/* Listing card */
.listing__price { font: 400 1.7rem/1.1 var(--serif); margin: 0; }
.listing__price small { font-size: .95rem; color: var(--muted); font-family: var(--sans); }
.listing__meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.listing__date { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.listing__address { margin: 0; color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; font-size: .92rem; color: var(--muted); }
.facts li { display: inline-flex; align-items: center; gap: 8px; }
.facts .icon { color: var(--ink); }
.card.is-let .card__media img { filter: saturate(.6); }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(var(--steps, 5), minmax(0, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; text-align: center; padding-top: 4px; }
.step__num { position: absolute; top: 0; left: calc(50% - 56px); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--white); font: 600 .9rem/1 var(--sans); }
.step__icon { display: grid; place-items: center; height: 64px; margin-bottom: 14px; }
.step__icon .icon { width: 40px; height: 40px; stroke-width: 1.25; }
.step h3 { font: 600 1.1rem/1.3 var(--sans); margin-bottom: 8px; }
.step p { font-size: .95rem; color: var(--muted); }
.step:not(:last-child)::after { content: ""; position: absolute; top: 34px; right: -18px; width: 12px; height: 12px; border-top: 1.5px solid var(--gold); border-right: 1.5px solid var(--gold); transform: rotate(45deg); }

/* Numbered steps — horizontal variant (Sell page) */
.steps--inline { --steps: 4; gap: 0; }
.steps--inline .step { display: flex; gap: 16px; text-align: left; padding: 0 24px; }
.steps--inline .step:first-child { padding-left: 0; }
.steps--inline .step + .step { border-left: 1px solid var(--line); }
.steps--inline .step::after { display: none; }
.steps--inline .step__num { position: static; width: 40px; height: 40px; font-size: 1.05rem; flex: none; }

/* Feature row (icon + title + text, divided) */
.features { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
.feature { padding: 8px 28px; text-align: center; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .icon { width: 36px; height: 36px; color: var(--gold-text); stroke-width: 1.25; margin: 0 auto 16px; }
.feature h3 { font: 600 1.1rem/1.3 var(--sans); margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.features--left .feature { display: flex; gap: 20px; text-align: left; align-items: center; }
.features--left .feature .icon { margin: 0; }
.features--left .feature p { color: var(--ink); font-size: 1rem; line-height: 1.35; }

/* Service card (home) */
.service { display: flex; gap: 20px; padding: 30px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.service h3 { font-size: 1.6rem; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: .98rem; }
.service .text-link { margin-top: 16px; }

/* Split band: image + text */
.band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--white); }
.band__media { min-height: 320px; position: relative; }
.band__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band__body { padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px); align-self: center; max-width: 640px; }
.band--dark { background: var(--charcoal); color: var(--white); }
.band--dark .band__body p { color: var(--on-dark-muted); }
.band--reverse .band__media { order: 2; }
.band__deco { float: right; color: var(--gold); margin: 0 0 12px 20px; }
.band__deco .icon { width: 64px; height: 64px; stroke-width: 1; }

/* Document card */
.doc { display: flex; align-items: center; gap: 20px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.doc:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.doc > .icon:first-child { width: 36px; height: 36px; stroke-width: 1.25; }
.doc__text { flex: 1; min-width: 0; }
.doc__text strong { display: block; font-weight: 600; font-size: 1.05rem; }
.doc__text span { display: block; color: var(--muted); font-size: .92rem; }
.doc__action { color: var(--gold-text); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; }
.doc__action .icon { width: 22px; height: 22px; color: var(--ink); }
.doc--compact { align-items: flex-start; padding: 20px; }
.doc--compact > .icon:first-child { color: var(--gold-text); }

/* Pricing */
.pricing { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pricing__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; background: var(--gold); }
.pricing__head h3 { margin: 0; font-size: 1.65rem; }
.pricing__head span { font-size: .88rem; }
.pricing--dark .pricing__head { background: var(--charcoal); color: var(--white); }
.pricing__body { padding: 28px; flex: 1; }
.pricing__price { font: 400 clamp(2.2rem, 1.8rem + 1.6vw, 3.2rem)/1 var(--serif); margin: 0 0 8px; }
.pricing__price small { font-size: .45em; }
.pricing__sub { color: var(--muted); margin: 0; }
.pricing__setup { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.checklist { list-style: none; display: grid; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 12px; }
.checklist .icon { color: var(--gold-text); stroke-width: 2.25; margin-top: .2em; width: 1.05em; height: 1.05em; }
.info-strip { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 16px 20px; margin-top: 24px; background: var(--sand); border-radius: var(--radius); text-align: center; font-size: .95rem; }
.info-strip .icon { color: var(--gold-text); }

/* Award badges */
.awards { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 26px; margin: 28px 0 34px; list-style: none; }
.awards img { height: clamp(78px, 7vw, 108px); width: auto; }
.awards .award--wide img { height: clamp(58px, 5vw, 78px); }

/* Tabs / segmented control */
.segmented { display: inline-flex; background: var(--sand); border-radius: var(--radius); padding: 3px; gap: 3px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label { padding: 9px 26px; border-radius: 2px; font-weight: 600; font-size: .95rem; cursor: pointer; margin: 0; color: var(--ink); }
.segmented input:checked + label { background: var(--gold); }
.segmented input:focus-visible + label { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.segmented--full { display: flex; }
.segmented--full label { flex: 1; text-align: center; }

.tablist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.tab { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 20px 16px; background: var(--cream); border: 0; border-right: 1px solid var(--line); border-top: 3px solid transparent; font-size: 1.08rem; cursor: pointer; }
.tab:last-child { border-right: 0; }
.tab[aria-selected="true"] { background: var(--white); border-top-color: var(--gold); color: var(--gold-text); font-weight: 600; }
.tab .icon { width: 22px; height: 22px; }

/* Filter pills (portfolio) */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.pill { min-width: 132px; padding: 11px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font-size: .95rem; }
.pill:hover { border-color: var(--gold); }
.pill[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); font-weight: 600; }

/* Panel / key facts */
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 32px); }
.panel--sand { background: var(--sand); border-color: transparent; }
.keyfacts { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.keyfacts dt, .keyfacts dd { padding: 11px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .97rem; }
.keyfacts dt { padding-right: 24px; color: var(--muted); }
.keyfacts > :nth-last-child(-n+2) { border-bottom: 0; }

/* Alert */
.alert { display: flex; gap: 14px; align-items: center; padding: 16px 20px; background: var(--danger-bg); border-radius: var(--radius); font-size: .95rem; }
.alert .icon { color: var(--danger); width: 26px; height: 26px; }

/* 5. Page sections ------------------------------------------------------ */

/* Hero — light, image fades in from the right */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero__inner { position: relative; z-index: 1; min-height: clamp(440px, 38vw, 560px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(48px, 6vw, 80px); }
.hero__content { max-width: 560px; }
.hero__content h1 { margin-bottom: 22px; }
.hero__content > p:not(.eyebrow) { font-size: clamp(1.1rem, 1rem + .3vw, 1.25rem); line-height: 1.5; max-width: 480px; }
.hero__content .btn-row { margin-top: 30px; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero--fade .hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 32%); mask-image: linear-gradient(90deg, transparent 0, #000 32%); }

/* Hero — dark, full-bleed image with gradient */
.hero--dark { background: var(--charcoal); color: var(--white); }
.hero--dark .hero__media { width: 100%; }
.hero--dark .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(32 33 30 / .96) 0%, rgb(32 33 30 / .85) 34%, rgb(32 33 30 / .25) 68%, rgb(32 33 30 / 0) 100%); }
.hero--dark h1 em { font-style: normal; color: var(--gold-light); }

/* Hero — centred (home) */
.hero--center { text-align: center; }
.hero--center .hero__media::after { background: rgb(28 29 27 / .62); }
.hero--center .hero__inner { align-items: center; min-height: clamp(520px, 46vw, 680px); }
.hero--center .hero__content { max-width: 900px; }
.hero--center h1 { font: 600 clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem)/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.hero--center .eyebrow { justify-content: center; font-size: clamp(.9rem, .8rem + .4vw, 1.2rem); letter-spacing: .14em; margin-bottom: 14px; }
.hero--center .eyebrow::before { display: none; }
.hero--center .hero__content > p:not(.eyebrow) { margin-inline: auto; max-width: 560px; }
.hero--center .btn-row { justify-content: center; margin-top: 0; }
.hero--center .btn { min-width: 220px; }

.hero__caption { position: absolute; right: var(--gutter); bottom: 18px; z-index: 1; padding: 6px 12px; background: rgb(32 33 30 / .7); color: var(--white); font-size: .8rem; border-radius: 2px; }

/* Search panel */
.search-bar { background: var(--white); border-bottom: 1px solid var(--line); padding: 0 0 28px; }
.search-bar .segmented { border-radius: var(--radius) var(--radius) 0 0; padding: 0; background: none; gap: 6px; transform: translateY(-100%); position: absolute; }
.search-bar .segmented label { background: var(--sand); border-radius: var(--radius) var(--radius) 0 0; padding: 12px 34px; }
.search-bar .segmented input:checked + label { background: var(--gold); }
.search-bar form { position: relative; padding-top: 28px; }
.search-fields { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.search-panel { position: relative; z-index: 2; margin-top: -70px; background: var(--white); border-radius: 4px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 30px); }
.search-panel .search-fields { grid-template-columns: 1.6fr 1.2fr 1fr 1fr; margin-top: 22px; }
.search-panel__actions { display: flex; gap: 14px; margin-top: 18px; }
.search-panel__tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.search-panel__tools select { width: auto; min-width: 170px; }
.results-count { margin: 34px 0 18px; color: var(--muted); }

/* Tom's note */
.note { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.note__photo { width: 148px; height: 148px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1); }
.note__body { border-left: 1px solid var(--gold); padding-left: 40px; max-width: 760px; }
.note__quote { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.5; margin-bottom: 14px; }
.note__name { font-weight: 600; font-size: 1.1rem; margin: 0; }
.note__role { color: var(--muted); margin: 0; }
.note > .text-link { align-self: end; }

/* About hero */
.profile-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--cream); }
.profile-hero__body { padding: clamp(48px, 6vw, 88px) clamp(24px, 4vw, 56px) clamp(48px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--container)) / 2)); position: relative; }
.profile-hero__media { position: relative; min-height: 460px; background: #1b1b1a; }
.profile-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); }
.profile-hero__meet { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-top: 44px; }
.profile-hero__meet h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); margin-bottom: 4px; }
.profile-hero__meet p { color: var(--muted); margin: 0; }
.profile-hero__award { width: 150px; }
.profile-hero__award img { width: 100%; }

/* Two-column story */
.story { display: grid; grid-template-columns: 1fr 1fr; }
.story > div { padding-right: clamp(24px, 5vw, 64px); }
.story > div + div { padding: 0 0 0 clamp(24px, 5vw, 64px); border-left: 1px solid var(--gold); }
.story p { color: var(--muted); }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value { display: flex; gap: 22px; padding: 4px 28px; }
.value:first-child { padding-left: 0; }
.value + .value { border-left: 1px solid var(--gold); }
.value h3 { font-size: 1.45rem; margin-bottom: 8px; }
.value p { color: var(--muted); font-size: .97rem; }

/* Region / captioned images */
.region { position: relative; margin: 0; aspect-ratio: 4 / 2.6; overflow: hidden; border-radius: 2px; }
.region img { width: 100%; height: 100%; object-fit: cover; }
.region figcaption { position: absolute; inset: auto 0 0; padding: 40px 16px 12px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); color: var(--white); font-size: .9rem; font-weight: 600; }

/* CTA strip */
.cta { display: flex; align-items: center; justify-content: center; gap: 24px 48px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: clamp(1.8rem, 1.5rem + 1.2vw, 2.4rem); }
.cta p { margin: 0; max-width: 340px; padding-left: 48px; border-left: 1px solid var(--gold); }

/* Sell: fees + guides */
.split-2 { display: grid; grid-template-columns: 1fr 1fr; }
.split-2 > div { padding-right: clamp(24px, 4vw, 56px); }
.split-2 > div + div { padding: 0 0 0 clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.fee-box { background: var(--white); padding: 28px; border-radius: var(--radius); }
.fee-box .pricing__price { font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.9rem); }

/* Tom CTA band (Sell) */
.person-cta { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--charcoal); color: var(--white); align-items: stretch; }
.person-cta__media { position: relative; min-height: 380px; }
.person-cta__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; filter: grayscale(1); }
.person-cta__body { padding: clamp(40px, 5vw, 72px) var(--gutter) clamp(40px, 5vw, 72px) clamp(24px, 5vw, 72px); align-self: center; max-width: 640px; }
.person-cta__body p:not(.eyebrow) { color: var(--on-dark-muted); font-size: 1.1rem; }
.person-cta .btn-row { margin-top: 28px; }

/* Property detail */
.breadcrumb { padding-block: 18px; font-size: .88rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 10px; padding: 0; margin: 0; }
.breadcrumb li { display: flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "›"; color: var(--muted); }
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.gallery { display: grid; grid-template-columns: 2.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(320px, 34vw, 460px); }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.gallery__main { grid-row: span 2; }
.gallery__more { position: relative; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: rgb(32 33 30 / .82); color: var(--white); border-radius: 2px; font-size: .9rem; text-decoration: none; }
.detail__title { margin: 30px 0 6px; font-size: clamp(2.1rem, 1.7rem + 1.8vw, 3.1rem); }
.detail__address { color: var(--muted); margin-bottom: 16px; }
.detail__summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.detail__price { font: 400 clamp(2rem, 1.7rem + 1vw, 2.5rem)/1 var(--serif); color: var(--gold-text); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--sand); border-radius: var(--radius); font-size: .9rem; }
.subnav { display: flex; gap: 6px; margin-top: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 12px 18px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a:hover, .subnav a[aria-current="true"] { border-bottom-color: var(--gold); }
.enquiry { position: sticky; top: 20px; }
.enquiry h2 { font-size: 1.85rem; margin-bottom: 8px; }
.enquiry__phone { display: flex; gap: 14px; align-items: flex-start; margin: 22px 0; }
.enquiry__phone .icon { width: 32px; height: 32px; color: var(--gold-text); }
.enquiry__phone a { font: 400 1.9rem/1 var(--serif); text-decoration: none; display: block; margin-bottom: 6px; }
.enquiry__phone small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.divider-text { display: flex; align-items: center; gap: 14px; margin: 26px 0 8px; color: var(--muted); font-size: .88rem; }
.divider-text::before, .divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.asset { display: flex; flex-direction: column; gap: 16px; }
.asset h2 { font-size: 1.85rem; margin: 0; }
.asset .demo-note { margin-top: -10px; }
.asset__frame { flex: 1; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; aspect-ratio: 4 / 3; }
.asset__frame img { width: 100%; height: 100%; object-fit: contain; }
.asset__frame--cover img { object-fit: cover; }
.asset .btn-row .btn { flex: 1; }

/* EPC chart (pure HTML/CSS — scales crisply, easy to drive from data) */
.epc { width: 100%; padding: 12px; font: 700 .8rem/1 var(--sans); }
.epc__head { display: grid; grid-template-columns: 56px 1fr; gap: 6px; font-weight: 600; margin-bottom: 6px; }
.epc__row { display: grid; grid-template-columns: 56px 1fr; gap: 6px; margin-bottom: 3px; }
.epc__score { padding: 6px; background: color-mix(in srgb, var(--c) 30%, white); color: var(--ink); }
.epc__band { width: var(--w); display: flex; justify-content: flex-end; align-items: center; padding: 0 10px; background: var(--c); color: var(--white); font-size: 1.05rem; clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }

/* Pre-footer contact strip */
.contact-strip { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 32px 48px; }
.contact-strip h2 { font-size: clamp(1.8rem, 1.5rem + 1vw, 2.3rem); margin-bottom: 8px; }
.contact-strip p { margin: 0; color: var(--muted); }
.contact-strip .enquiry__phone { margin: 0; padding-left: 48px; border-left: 1px solid var(--line); }

/* Contact page */
.contact-cards { margin-top: -56px; position: relative; z-index: 2; }
.contact-card { display: flex; gap: 20px; align-items: flex-start; padding: 26px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-card h2 { font-size: .78rem; font-family: var(--sans); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; margin: 4px 0 6px; }
.contact-card a, .contact-card strong { display: block; font: 400 clamp(1.3rem, 1.15rem + .6vw, 1.7rem)/1.15 var(--serif); text-decoration: none; margin-bottom: 6px; overflow-wrap: anywhere; }
.contact-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.form-card__panel { padding: clamp(22px, 3vw, 36px); }
.find-us { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); background: var(--charcoal); color: var(--white); }
.find-us__body { padding: clamp(40px, 5vw, 72px) clamp(24px, 4vw, 56px) clamp(40px, 5vw, 72px) max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.find-us__body p { color: var(--on-dark-muted); font-size: 1.1rem; margin-bottom: 28px; }
.find-us__map { position: relative; min-height: 320px; }
.find-us__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Valuation page */
.valuation-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.valuation-grid .lead { color: var(--muted); }
.person { margin-top: 32px; }
.person img { width: 160px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; filter: grayscale(1); margin-bottom: 12px; }
.person strong { display: block; }
.person span { color: var(--muted); font-size: .95rem; }
.image-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.image-strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 6. Forms -------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field-label { font-size: .92rem; font-weight: 600; }
.field > span small { font-weight: 400; color: var(--muted); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; background: var(--white); border: 1px solid #cfcac0; border-radius: var(--radius); font-size: 1rem; transition: border-color .2s; }
.input:hover, .select:hover, .textarea:hover { border-color: #a9a397; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgb(197 169 106 / .3); }
.input::placeholder, .textarea::placeholder { color: #8a8a85; }
.textarea { min-height: 120px; resize: vertical; }
.select { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231f201e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.input-icon { position: relative; }
.input-icon > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .prefix { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 1.05rem; }
.input-icon > .input, .input-icon > .select { padding-left: 44px; }
.check { display: flex; gap: 12px; align-items: center; font-size: .95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-text); margin: 0; flex: none; }
.dropzone { display: grid; place-items: center; gap: 4px; padding: 28px 20px; border: 1.5px dashed #c3bdb0; border-radius: var(--radius); background: var(--cream); text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--gold-text); }
.dropzone .icon { width: 36px; height: 36px; color: var(--muted); }
.dropzone small { color: var(--muted); }
.form-foot { font-size: .85rem; color: var(--muted); text-align: center; margin: 0; }
.form-foot a { color: var(--ink); }
.form-status { padding: 14px 16px; background: var(--sand); border-left: 3px solid var(--gold); font-size: .95rem; }

/* 7. Header / footer ---------------------------------------------------- */
.site-header { background: var(--charcoal); color: var(--white); position: relative; z-index: 20; }
.topbar { border-bottom: 1px solid rgb(255 255 255 / .1); font-size: .88rem; }
.topbar .container { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 40px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-dark-muted); }
.topbar a:hover { color: var(--white); }
.topbar .sep { width: 1px; height: 16px; background: rgb(255 255 255 / .25); }
.masthead { display: flex; align-items: center; gap: 32px; min-height: 92px; }
.logo { flex: none; display: block; }
.logo img { width: 200px; }
.nav { flex: 1; display: flex; justify-content: flex-end; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; }
.nav__list a { position: relative; display: block; padding: 8px 0; text-decoration: none; font-size: 1rem; }
.nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .2s; }
.nav__list a:hover::after, .nav__list a[aria-current="page"]::after { transform: scaleX(1); }
.nav__list a[aria-current="page"] { color: var(--gold-light); }
.nav-toggle { display: none; align-items: center; gap: 8px; background: none; border: 1px solid rgb(255 255 255 / .4); color: var(--white); padding: 9px 14px; border-radius: var(--radius); cursor: pointer; margin-left: auto; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr 1.1fr; gap: 32px; padding-block: 56px 40px; }
.footer-main > div + div { border-left: 1px solid rgb(255 255 255 / .12); padding-left: 28px; }
.footer-brand img { width: 190px; margin-bottom: 18px; }
.footer-brand p { max-width: 280px; }
.footer-title { font: 600 1rem/1.3 var(--sans); color: var(--white); margin: 0 0 16px; }
.footer-links { list-style: none; display: grid; gap: 9px; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 10px; align-items: center; }
.footer-contact .icon { color: var(--gold-light); }
.footer-hours { margin: 0; display: grid; grid-template-columns: auto auto; gap: 6px 14px; justify-content: start; }
.footer-hours dt { color: var(--white); }
.footer-hours dd { margin: 0; }
.social { display: flex; gap: 14px; margin-top: 18px; align-items: center; }
.social a { display: inline-flex; align-items: center; gap: 8px; }
.social .icon { width: 20px; height: 20px; color: var(--white); }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: 20px; font-size: .8rem; text-align: center; color: #a9a8a2; }
.footer-bottom p { margin: 0 0 4px; }
.footer-schemes { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }

/* 8. Utilities ---------------------------------------------------------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 48px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* 9. Responsive --------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__list { gap: 22px; }
  .nav { gap: 24px; }
  .logo img { width: 180px; }
  .footer-main { grid-template-columns: 1fr 1fr 1fr; }
  .footer-main > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-main > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .detail { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 960px) {
  /* Mobile navigation */
  .nav-toggle { display: inline-flex; }
  .masthead { min-height: 76px; flex-wrap: wrap; gap: 16px; }
  .logo img { width: 160px; }
  .nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 4px 0 24px; }
  .nav.is-open { display: flex; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-top: 1px solid rgb(255 255 255 / .12); }
  .nav__list a { padding: 14px 0; font-size: 1.1rem; }
  .nav__list a::after { display: none; }
  .topbar .container { justify-content: space-between; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features { --cols: 2 !important; row-gap: 32px; }
  .feature:nth-child(odd) { border-left: 0; }
  .steps { --steps: 3 !important; row-gap: 40px; }
  .step:nth-child(3)::after { display: none; }
  .steps--inline { --steps: 2 !important; }
  .steps--inline .step:nth-child(3) { border-left: 0; padding-left: 0; }

  .hero__media { width: 100%; }
  .hero--fade .hero__media { -webkit-mask-image: none; mask-image: none; }
  .hero--fade .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(248 246 241 / .97) 0%, rgb(248 246 241 / .88) 45%, rgb(248 246 241 / .2) 100%); }

  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields > :first-child { grid-column: 1 / -1; }
  .search-panel .search-fields { grid-template-columns: 1fr 1fr; }

  .note { grid-template-columns: auto 1fr; }
  .note > .text-link { grid-column: 2; justify-self: start; }

  .profile-hero { grid-template-columns: 1fr; }
  .profile-hero__media { min-height: 0; aspect-ratio: 4 / 3.4; order: -1; }
  .profile-hero__body { padding: 40px var(--gutter) 48px; }
  .story, .split-2 { grid-template-columns: 1fr; gap: 36px; }
  .story > div, .split-2 > div { padding: 0 !important; border: 0 !important; }
  .story > div + div, .split-2 > div + div { padding-top: 36px !important; border-top: 1px solid var(--line) !important; }
  .values { grid-template-columns: 1fr; gap: 28px; }
  .value { padding: 0 !important; border: 0 !important; }

  .band, .person-cta, .find-us { grid-template-columns: 1fr; }
  .band__media, .person-cta__media, .find-us__map { min-height: 0; aspect-ratio: 16 / 9; }
  .band--reverse .band__media { order: 0; }
  .band__body, .find-us__body { max-width: none; padding: 40px var(--gutter); }
  .person-cta__media { aspect-ratio: 4 / 3; }

  .detail { grid-template-columns: 1fr; }
  .enquiry { position: static; }
  .contact-strip { grid-template-columns: 1fr; }
  .contact-strip .enquiry__phone { padding-left: 0; border-left: 0; }
  .valuation-grid { grid-template-columns: 1fr; }
  .contact-cards { margin-top: -40px; }
  .cta p { padding-left: 0; border-left: 0; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .features { --cols: 1 !important; }
  .feature { border-left: 0 !important; padding: 0; }
  .features--left .feature { padding: 0; }
  .steps, .steps--inline { --steps: 1 !important; row-gap: 28px; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 16px; text-align: left; }
  .step::after { display: none; }
  .step__num { left: -6px; top: -6px; width: 26px; height: 26px; font-size: .8rem; z-index: 1; }
  .step__icon { grid-row: span 2; height: 56px; width: 56px; background: var(--white); border-radius: 50%; margin: 0; }
  .step__icon .icon { width: 28px; height: 28px; }
  .steps--inline .step { padding: 0 !important; border: 0 !important; display: flex; }

  .topbar .container { justify-content: center; gap: 16px; }
  .topbar .topbar__extra { display: none; }

  .hero__inner { min-height: 0; padding-block: 0 40px; }
  .hero__media { position: relative; inset: auto; width: auto; aspect-ratio: 4 / 3; margin-inline: calc(var(--gutter) * -1); margin-bottom: 28px; }
  .hero--fade .hero__media::after { background: linear-gradient(0deg, var(--cream) 0%, rgb(248 246 241 / 0) 35%); }
  .hero--dark .hero__inner { padding-top: 0; }
  .hero--dark .hero__media::after { background: linear-gradient(0deg, var(--charcoal) 0%, rgb(42 43 40 / 0) 45%); }
  .hero--center .hero__media { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; }
  .hero--center .hero__media::after { background: rgb(28 29 27 / .7); }
  .hero--center .hero__inner { padding-block: 56px; min-height: 0; }
  .hero--center .btn { min-width: 0; flex: 1; }
  .hero--center .btn-row { flex-direction: column; width: 100%; }
  .awards { gap: 12px 16px; }
  .awards img { height: 70px; }
  .awards .award--wide img { height: 50px; }
  .hero__caption { display: none; }

  .btn-row .btn { flex: 1 1 auto; }
  .search-fields, .search-panel .search-fields { grid-template-columns: 1fr; }
  .search-panel { margin-top: -24px; }
  .search-panel__tools label.check { flex-basis: 100%; }
  .search-bar .segmented label { padding: 10px 24px; }

  .note { grid-template-columns: 1fr; text-align: left; }
  .note__photo { width: 96px; height: 96px; }
  .note__body { border-left: 0; padding-left: 0; border-top: 1px solid var(--gold); padding-top: 20px; }
  .note > .text-link { grid-column: auto; }

  .service { flex-direction: column; gap: 14px; padding: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .tab { flex-direction: column; gap: 6px; padding: 14px 6px; font-size: .9rem; }
  .form-row { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; height: auto; }
  .gallery__main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery > :not(.gallery__main) { aspect-ratio: 4 / 3; }
  .pricing__head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .info-strip { flex-direction: column; }
  .profile-hero__meet { flex-direction: column; align-items: flex-start; }
  .profile-hero__award { width: 120px; }
  .contact-card { padding: 20px; }
  .doc { padding: 18px; gap: 14px; }
  .cta { flex-direction: column; align-items: flex-start; }
  .image-strip { grid-template-columns: 1fr 1fr; }
  .image-strip img:last-child { display: none; }
  .footer-main { grid-template-columns: 1fr 1fr; padding-block: 40px 28px; }
  .footer-main > div { border-left: 0 !important; padding-left: 0 !important; }
  .footer-main > div:nth-child(4), .footer-main > div:nth-child(5) { grid-column: 1 / -1; }
}

/* Page-specific additions ------------------------------------------------ */
.h-sub { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.lead--narrow { max-width: 680px; }
.small { font-size: 1rem; }
.section--flush { padding-top: 0; }
.section--pad-bottom { padding-bottom: var(--section); }
.field--inline { display: flex; align-items: center; gap: 12px; }
.btn[aria-disabled="true"] { background: var(--sand); border-color: var(--line); color: var(--muted); cursor: default; }
.hero--search .hero__inner { padding-bottom: 120px; }
.hero--short .hero__inner { min-height: clamp(360px, 30vw, 460px); }
.hero__content--wide { max-width: 680px; }
.features--ruled { border-top: 1px solid var(--line); }
.asset__frame--map iframe, .find-us__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.asset__frame--map { position: relative; }

/* Landlords: "properties we let" row */
.lets { display: grid; grid-template-columns: 1.1fr repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.lets__intro { padding-right: 16px; }
.let { margin: 0; }
.let img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.let figcaption { margin-top: 10px; font-size: 1.05rem; }
.let figcaption .demo-note { display: block; }

/* Sell: showcase cards */
.showcase img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; margin-bottom: 20px; background: var(--white); }
.showcase .showcase__plan { object-fit: contain; padding: 12px; }
.showcase h3 { font: 600 1.15rem/1.3 var(--sans); margin-bottom: 6px; }
.showcase p { color: var(--muted); }

@media (max-width: 960px) {
  .lets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lets__intro { grid-column: 1 / -1; padding: 0; }
}
@media (max-width: 640px) {
  .lets { grid-template-columns: 1fr 1fr; }
  .lets .let:last-child { display: none; }
  .hero--search .hero__inner { padding-bottom: 56px; }
  .field--inline { justify-content: space-between; width: 100%; }
}

/* Fixes after render review */
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hero__content { max-width: 620px; }
.search-panel__actions { flex-wrap: wrap; }
.footer-main { grid-template-columns: 1.3fr .8fr 1.1fr 1.45fr 1.15fr; }
.footer-hours dd, .footer-hours dt { white-space: nowrap; }
.footer-contact a { overflow-wrap: anywhere; }
@media (max-width: 960px) { .detail { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .search-panel__actions .btn { flex: 1 1 auto; } }
/* Static map shows if the embedded map can't load (e.g. blocked third-party content) */
.find-us__map { background: #e8e4da url("../images/contact-map.jpg") center / cover no-repeat; }
.asset__frame--map { background: #e8e4da url("../images/property-map.jpg") center / cover no-repeat; }
.contact-card a[href^="mailto"] { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); overflow-wrap: normal; word-break: normal; }

/* ==========================================================================
   WordPress additions
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; }
.logo__text { font: 500 1.5rem/1 var(--serif); color: var(--white); text-decoration: none; }
.logo img { height: auto; }
.nav__list .menu-item { list-style: none; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--gold-light); }
.nav__list .current-menu-item > a::after { transform: scaleX(1); }
.footer-links a[aria-current="page"] { color: var(--gold-light); }
.anchor { position: relative; top: -120px; display: block; }

/* Sections */
.section--flat { padding-block: 0; }
.section--flush-top { padding-top: 0; }
.page-header { padding-bottom: clamp(24px, 3vw, 40px); }
.page-title { margin-bottom: 18px; }
.single-image img { width: 100%; border-radius: 2px; }
.grid--1 { grid-template-columns: minmax(0, 1fr); }
.card__title--sm { font-size: 1.3rem; }

/* Editor content */
.entry-content > * + * { margin-top: 1em; }
.entry-content > :first-child { margin-top: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li + li { margin-top: .35em; }
.entry-content a { color: var(--gold-text); }
.on-dark .entry-content a { color: var(--gold-light); }
.entry-content h2, .entry-content h3 { margin-top: 1.4em; }
.entry-content img { border-radius: 2px; }
.entry-content blockquote { margin: 0; padding: 16px 24px; border-left: 3px solid var(--gold); background: var(--sand); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
.entry-content--narrow { max-width: 760px; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption.wp-element-caption { font-size: .85rem; color: var(--muted); }

/* Hero variants */
.hero--short .hero__inner { min-height: clamp(340px, 28vw, 440px); }
.hero--no-image .hero__inner { min-height: 0; }
.hero--search .hero__inner { padding-bottom: 120px; }

/* Search panel overlaps the hero only when it follows one set to "leave space" */
.search-panel { margin-top: 0; }
.property-search { padding-top: 32px; }
.hero--search + .property-search { padding-top: 0; }
.hero--search + .property-search .search-panel { margin-top: -70px; }
.segmented a { padding: 9px 26px; border-radius: 2px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink); }
.segmented a[aria-current="page"] { background: var(--gold); }
.segmented a:hover:not([aria-current]) { background: var(--line); }
.empty-state { padding: 48px 24px; text-align: center; background: var(--cream); border-radius: var(--radius); }
.pagination { margin-top: 40px; }
.pagination ul, .pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; list-style: none; padding: 0; margin: 0; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; }
.pagination .current { background: var(--gold); border-color: var(--gold); font-weight: 600; }
.pagination a:hover { border-color: var(--gold); }

/* Contact cards overlap the hero only when it leaves space */
.contact-cards { margin-top: 0; }
.contact-cards-section--overlap { padding-bottom: clamp(32px, 4vw, 56px); }
.hero--search + .contact-cards-section--overlap .contact-cards { margin-top: -56px; }

/* Layout fallbacks when optional content is empty */
.note--no-photo { grid-template-columns: 1fr auto; }
.note--no-photo .note__body { border-left: 0; padding-left: 0; }
.band--no-image, .person-cta--no-image, .find-us--no-map, .profile-hero--no-image { grid-template-columns: 1fr; }
.band--no-image .band__body { max-width: none; padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2)); }
.split-2--single, .valuation-grid--single { grid-template-columns: 1fr; }
.valuation-grid--single > div { max-width: 760px; }
.entry-content > p + p { margin-top: 1em; }
.split-2--single > div { padding: 0 !important; border: 0 !important; }
.story--1 { grid-template-columns: 1fr; }
.story--3 { grid-template-columns: repeat(3, 1fr); }
.story--3 > div + div { padding-left: clamp(24px, 3vw, 40px); }
.story--3 > div:not(:last-child) { padding-right: clamp(24px, 3vw, 40px); }
.values { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.image-strip { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }
.tablist { grid-template-columns: repeat(var(--tabs, 3), minmax(0, 1fr)); }

/* Property page */
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--2 { grid-template-rows: 1fr; }
.gallery--2 .gallery__thumb { grid-row: auto; }
.gallery a { display: block; position: relative; overflow: hidden; border-radius: 2px; }
.gallery a img { transition: transform .4s; }
.gallery a:hover img { transform: scale(1.02); }
.gallery__thumb .gallery__count { pointer-events: none; }
.chips .chip--status { background: var(--charcoal); color: var(--white); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .78rem; }
.detail__overview:not(.grid) { max-width: 760px; }
.epc-text { font: 400 1.6rem/1.2 var(--serif); margin: 0; }
.epc--rated .epc__row { opacity: .35; }
.epc--rated .epc__row.is-current { opacity: 1; }
.epc--rated .epc__row.is-current .epc__band { box-shadow: 0 0 0 2px var(--ink); }
a.asset__frame { cursor: zoom-in; }

/* Photo viewer */
.lightbox { width: min(1200px, 96vw); max-height: 94vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(18 18 17 / .9); }
.lightbox img { width: 100%; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .92); color: var(--ink); font-size: 2rem; line-height: 1; cursor: pointer; }
.lightbox__close { top: -8px; right: -8px; z-index: 1; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; left: 0; right: 0; bottom: -36px; text-align: center; color: var(--white); margin: 0; font-size: .9rem; }

/* Form plugins (Contact Form 7, Gravity Forms, WPForms, Fluent Forms) – match the theme's inputs */
.form-embed form { display: grid; gap: 16px; }
.form-embed label, .form-embed .gfield_label, .form-embed .wpforms-field-label { display: block; font-size: .92rem; font-weight: 600; margin-bottom: 6px; }
.form-embed input[type="text"], .form-embed input[type="email"], .form-embed input[type="tel"], .form-embed input[type="number"], .form-embed input[type="url"], .form-embed input[type="date"], .form-embed select, .form-embed textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; background: var(--white); border: 1px solid #cfcac0; border-radius: var(--radius); font: inherit; font-size: 1rem; color: var(--ink);
}
.form-embed textarea { min-height: 120px; resize: vertical; }
.form-embed input:focus, .form-embed select:focus, .form-embed textarea:focus { outline: none; border-color: var(--gold-text); box-shadow: 0 0 0 3px rgb(197 169 106 / .3); }
.form-embed input[type="submit"], .form-embed button[type="submit"], .form-embed .gform_button, .form-embed .wpforms-submit {
	width: 100%; min-height: 48px; padding: 12px 24px; background: var(--gold); border: 1px solid var(--gold); border-radius: var(--radius); color: var(--ink); font: 600 .95rem/1.2 var(--sans); cursor: pointer; transition: background-color .2s;
}
.form-embed input[type="submit"]:hover, .form-embed button[type="submit"]:hover { background: var(--gold-hover); }
.form-embed input[type="checkbox"], .form-embed input[type="radio"] { width: 18px; height: 18px; accent-color: var(--gold-text); }
.form-embed .wpcf7-not-valid-tip, .form-embed .gfield_validation_message { color: var(--danger); font-size: .85rem; margin-top: 4px; }
.form-embed .wpcf7-response-output { margin: 0 !important; padding: 12px 16px !important; border-radius: var(--radius); }
.form-embed p { margin: 0; }
.form-foot p { margin: 0; }
.on-dark .form-embed { color: var(--ink); }

@media (max-width: 960px) {
	.story--3 { grid-template-columns: 1fr; }
	.values { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.steps--inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tablist { grid-template-columns: repeat(var(--tabs, 3), minmax(0, 1fr)); }
	.hero--search + .property-search .search-panel { margin-top: -56px; }
}
@media (max-width: 640px) {
	.steps, .steps--inline { grid-template-columns: 1fr; }
	.image-strip { grid-template-columns: 1fr 1fr; }
	.hero--search + .property-search .search-panel { margin-top: -24px; }
	.hero--search + .contact-cards-section--overlap .contact-cards { margin-top: -32px; }
	.gallery--1 .gallery__main, .gallery--2 .gallery__main { aspect-ratio: 4 / 3; }
	.lightbox__close { top: 8px; right: 8px; }
	.note--no-photo { grid-template-columns: 1fr; }
}

/* Contact Form 7 – theme markup (.form / .form-row / .field) */
.form-embed .field { display: grid; gap: 7px; margin: 0; font-weight: 400; }
.form-embed .field > span:first-child, .form-embed .field-label { font-size: .92rem; font-weight: 600; }
.form-embed .field small { font-weight: 400; color: var(--muted); }
.form-embed .form-row .form { align-content: start; }
.wpcf7-form-control-wrap { display: block; }
.wpcf7 form .wpcf7-not-valid { border-color: var(--danger); }
.wpcf7-not-valid-tip { display: block; }
.wpcf7-list-item { margin: 0; }
.wpcf7-list-item label { display: flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; margin: 0; }
.field--segmented .wpcf7-radio { display: flex; gap: 3px; padding: 3px; background: var(--sand); border-radius: var(--radius); }
.field--segmented .wpcf7-list-item { flex: 1; }
.field--segmented .wpcf7-list-item label { justify-content: center; padding: 10px 12px; border-radius: 2px; font-weight: 600; }
.field--segmented input { position: absolute; opacity: 0; pointer-events: none; }
.field--segmented label:has(input:checked) { background: var(--gold); }
.field--segmented label:has(input:focus-visible) { outline: 3px solid var(--gold-text); outline-offset: 2px; }
.file-inputs { display: grid; gap: 8px; }
.form-embed input[type="file"] { width: 100%; padding: 10px; border: 1.5px dashed #c3bdb0; border-radius: var(--radius); background: var(--cream); font-size: .9rem; cursor: pointer; }
.form-embed input[type="file"]::file-selector-button { margin-right: 12px; padding: 7px 14px; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--white); font: 600 .85rem var(--sans); cursor: pointer; }
.form-embed .wpcf7-spinner { display: block; margin: 10px auto 0; }
.wpcf7 form .wpcf7-response-output { margin: 4px 0 0; padding: 14px 16px; border: 0; border-left: 3px solid var(--gold); border-radius: var(--radius); background: var(--sand); font-size: .95rem; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-left-color: var(--danger); background: var(--danger-bg); }
.form-embed .form-foot { text-align: left; }
.enquiry .form-embed .form-foot { font-size: .8rem; }
.form-embed select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%231f201e' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 18px; }
.form-embed .wpcf7-spinner { margin: 6px auto 0; }
.wpcf7 form.sent .wpcf7-response-output { border-color: var(--gold); }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.unaccepted .wpcf7-response-output, .wpcf7 form.payment-required .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output, .wpcf7 form.aborted .wpcf7-response-output, .wpcf7 form.spam .wpcf7-response-output { border-color: var(--danger); }
.form-card__panel > .entry-content + .wpcf7, .form-card__panel > .entry-content + * { margin-top: 20px; }

/* Compact document cards: keep "Download guide →" on one line */
.doc__text .doc__action { display: inline-flex; align-items: center; gap: 6px; color: var(--gold-text); font-size: .9rem; }
.doc__text .doc__action .icon { width: 1em; height: 1em; color: currentColor; }

/* Embed code section (third-party widgets) */
.embed { max-width: 100%; overflow-x: auto; }
.embed--narrow { max-width: 820px; margin-inline: auto; }
.embed iframe { max-width: 100%; border: 0; }
