/* Design tokens — the CMS Colours and Fonts tabs map onto these custom properties.
   A dark navy-and-gold theme: every brand colour is a --color-* variable; tints are
   color-mix() of these, so changing one colour re-tints the whole site. */
:root {
  --color-primary: #c8a271;
  --color-primary-dark: #b48c5c;
  --color-secondary: #f3eee6;
  --color-accent: #d3b184;
  --color-accent-soft: #241f19;
  --color-lilac: #241f19;
  --color-rose: #e58f8f;
  --color-surface: #0b0f17;
  --color-surface-soft: #111a2b;
  --color-card: #131b2b;
  --color-default: #b6bcc8;
  --color-muted: #8a92a3;
  --color-line: #263046;
  --color-ink: #12100c;
  --color-glow: #8a5a2b;
  --color-white: #ffffff;
  --font-default: 'Inter', system-ui, sans-serif;
  --font-primary: 'Inter', system-ui, sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --radius: 18px;
  --radius-sm: 14px;
  --section-max-width: 80rem;
  --header-h: 88px;
  --section-pad-y: 96px;
  --base-size: 16px;
  /* frosted glass: a translucent card colour, a hairline border and a deep shadow */
  --glass: color-mix(in srgb, var(--color-card) 72%, transparent);
  --glass-strong: color-mix(in srgb, var(--color-card) 90%, transparent);
  --shadow: inset 0 0 0 1px var(--color-line), 0 24px 50px -32px rgba(0, 0, 0, .75);
  --shadow-lg: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 22%, var(--color-line)), 0 34px 70px -34px rgba(0, 0, 0, .85);
  /* a deep navy panel with a warm amber glow in its lower-left corner */
  --panel: radial-gradient(36rem 26rem at 0% 110%, color-mix(in srgb, var(--color-glow) 42%, transparent), transparent 70%), linear-gradient(140deg, var(--color-surface-soft) 0%, var(--color-surface) 100%);
  --ease: cubic-bezier(.2, .75, .25, 1);
  color-scheme: dark;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; background: var(--color-surface); }
body {
  font-family: var(--font-default); color: var(--color-default); line-height: 1.65; -webkit-font-smoothing: antialiased; min-height: 100vh;
  background:
    radial-gradient(46rem 40rem at -12% 118vh, color-mix(in srgb, var(--color-glow) 34%, transparent), transparent 70%),
    radial-gradient(52rem 46rem at 112% 70vh, color-mix(in srgb, #1d3566 30%, transparent), transparent 72%),
    radial-gradient(44rem 40rem at -10% 260vh, color-mix(in srgb, var(--color-glow) 20%, transparent), transparent 70%),
    linear-gradient(180deg, var(--color-surface) 0, var(--color-surface-soft) 140vh, var(--color-surface) 100%);
  background-repeat: no-repeat;
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
h3, h4, h5 { letter-spacing: 0; }
b, strong { color: var(--color-secondary); font-weight: 600; }
a { color: inherit; text-decoration: none; transition: color .25s ease; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
select option { background: var(--color-surface-soft); color: var(--color-secondary); }
::selection { background: var(--color-primary); color: var(--color-ink); }

.container { max-width: var(--section-max-width); margin: 0 auto; padding: 0 24px; }
section { padding: var(--section-pad-y) 0; position: relative; }
section, footer { overflow-x: clip; }
section.tight { padding-top: calc(var(--section-pad-y) * .55); }
section.white { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--color-surface-soft) 55%, transparent) 30%, color-mix(in srgb, var(--color-surface-soft) 55%, transparent) 70%, transparent); }
section.dark { background: var(--color-surface-soft); color: var(--color-default); }
section.dark h2, section.dark h3 { color: var(--color-secondary); }

/* the accent words in a headline */
.hl { color: var(--color-primary); }

/* ── Buttons: gold pills; an arrow after the label sits in a small ring ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem; padding: .95rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--color-primary); color: var(--color-ink); font-weight: 500; font-size: .9rem; line-height: 1; white-space: nowrap; letter-spacing: .01em;
  box-shadow: 0 14px 30px -18px color-mix(in srgb, var(--color-primary) 80%, transparent);
  transition: background .3s ease, color .3s ease, transform .3s var(--ease), box-shadow .3s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn > svg:last-child:not(:first-child) { width: 30px; height: 30px; padding: 6px; margin: -.5rem -.85rem -.5rem 0; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--color-ink) 45%, transparent); transition: transform .3s var(--ease); }
.btn:hover { background: color-mix(in srgb, var(--color-primary) 86%, #fff); transform: translateY(-2px); box-shadow: 0 18px 34px -16px color-mix(in srgb, var(--color-primary) 90%, transparent); }
.btn:hover > svg:last-child:not(:first-child) { transform: translateX(2px); }
.btn.light { background: var(--color-secondary); color: var(--color-ink); }
.btn.light:hover { background: #fff; }
.btn.soft { background: var(--color-accent-soft); color: var(--color-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-accent) 30%, transparent); }
.btn.soft:hover { background: color-mix(in srgb, var(--color-accent) 18%, var(--color-accent-soft)); }
.btn.ghost { background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-secondary) 28%, transparent); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1px var(--color-primary); color: var(--color-primary); }
.btn.ghost > svg:last-child:not(:first-child) { border-color: color-mix(in srgb, currentColor 45%, transparent); }
.btn.small { padding: .7rem 1.15rem; font-size: .85rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
/* text link with an arrow ("View all properties →") */
.arrow-link { display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .9rem; color: var(--color-primary); }
.arrow-link svg { width: 20px; height: 20px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:hover { color: var(--color-secondary); }
/* the small round arrow button on cards */
.circle-arrow { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--color-primary); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 55%, transparent); transition: background .25s ease, color .25s ease; }
.circle-arrow svg { width: 16px; height: 16px; }
a:hover > .circle-arrow, .circle-arrow:hover { background: var(--color-primary); color: var(--color-ink); }

/* ── Section heads: gold eyebrow, serif headline with gold accent words ── */
.eyebrow { display: inline-block; font-size: .72rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--color-primary); }
section.dark .eyebrow { color: var(--color-primary); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-top: .8rem; }
.section-head p { margin-top: .9rem; font-size: 1.02rem; max-width: 60ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; }
.section-head.split p { max-width: 52ch; }

/* a frosted-glass card (the class name is kept from the light themes) */
.card-white { background: var(--glass); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); }

/* ── Forms: dark fields, gold focus ring ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 500; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .4rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: color-mix(in srgb, var(--color-surface) 70%, transparent); border: 1px solid var(--color-line); border-radius: 12px; padding: .8rem 1rem; color: var(--color-secondary);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; background-color: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-primary) 18%, transparent); }
.form-grid ::placeholder { color: color-mix(in srgb, var(--color-muted) 80%, transparent); }
.form-grid .check { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--color-default); }
.form-grid .check input { width: auto; margin-top: .25rem; accent-color: var(--color-primary); }
.field-err { color: #f19a8f; font-size: .82rem; margin-top: .35rem; }
.form-note { font-size: .8rem; color: var(--color-muted); }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: color-mix(in srgb, #3fbf7f 14%, transparent); color: #9fe3bd; box-shadow: inset 0 0 0 1px color-mix(in srgb, #3fbf7f 35%, transparent); }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: 12px; background: color-mix(in srgb, #e5604f 14%, transparent); color: #f5aea4; font-size: .9rem; }

/* a tick list, the tick drawn in CSS so it follows the theme colours */
.tick-list { list-style: none; display: grid; gap: .6rem; }
.tick-list li { position: relative; padding-left: 1.8rem; font-size: .95rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .22em; width: 1.15rem; height: 1.15rem; border-radius: 50%; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 55%, transparent); }
.tick-list li::after { content: ''; position: absolute; left: .43rem; top: .47em; width: .28rem; height: .52rem; border: solid var(--color-primary); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* rating stars */
.stars { display: inline-flex; gap: 2px; color: var(--color-primary); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }

/* a property's label chip (To Let / Featured / New / Reduced / Let Agreed) */
.tag { display: inline-flex; align-items: center; padding: .38rem .7rem; border-radius: 6px; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-surface) 72%, transparent); color: var(--color-secondary); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tag.featured { color: var(--color-primary); }
.tag.hot-deal { color: var(--color-rose); }
.tag.reduced { color: #8fd8b0; }
.tag.let { background: color-mix(in srgb, var(--color-primary) 88%, transparent); color: var(--color-ink); }

/* round icon tiles: gold line icons on a faint ring (the tint names are kept from the light themes) */
.tint { display: grid; place-items: center; border-radius: 50%; flex: none; color: var(--color-primary); background: color-mix(in srgb, var(--color-primary) 9%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 28%, transparent); }
.tint svg { width: 46%; height: 46%; }
.tint.indigo, .tint.sky { color: var(--color-accent); background: color-mix(in srgb, var(--color-secondary) 5%, transparent); box-shadow: inset 0 0 0 1px var(--color-line); }
.tint.rose { color: var(--color-rose); background: color-mix(in srgb, var(--color-rose) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-rose) 30%, transparent); }

/* ── Header logo: a serif monogram and a letter-spaced wordmark ── */
.logo { display: inline-flex; align-items: center; gap: .8rem; font: 400 1.35rem var(--font-heading); color: var(--color-secondary); letter-spacing: .2em; text-transform: uppercase; min-width: 0; }
.logo img { max-height: 46px; width: auto; max-width: min(46vw, 240px); object-fit: contain; }
.logo .mark { flex: none; display: grid; place-items: center; font: 400 2.5rem/1 var(--font-heading); letter-spacing: 0; color: var(--color-primary); padding-right: .75rem; border-right: 1px solid color-mix(in srgb, var(--color-primary) 40%, transparent); }
.logo .wordmark { display: inline-flex; flex-direction: column; justify-content: center; line-height: 1.05; min-width: 0; }
.logo .wl { display: block; }
.logo .sub { display: block; margin-top: .45em; font: 500 .44em var(--font-primary); letter-spacing: .34em; text-transform: uppercase; color: var(--color-muted); }

/* ══ Motion: section-enter animations (plugins/motion.client.ts) ══
   Hidden states apply only while html.hg-motion is set and the section has not
   entered the frame yet; --i staggers siblings, --d adds a fixed delay. */
.hg-motion [data-anim] {
  transition:
    opacity .8s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    transform 1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    filter .9s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)),
    clip-path 1.1s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms));
}
.hg-motion section:not(.hg-inview) [data-anim], .hg-motion footer:not(.hg-inview) [data-anim] { opacity: 0; }
.hg-motion section:not(.hg-inview) [data-anim="up"], .hg-motion footer:not(.hg-inview) [data-anim="up"] { transform: translateY(36px); }
.hg-motion section:not(.hg-inview) [data-anim="down"] { transform: translateY(-30px); }
.hg-motion section:not(.hg-inview) [data-anim="left"] { transform: translateX(56px); }
.hg-motion section:not(.hg-inview) [data-anim="right"] { transform: translateX(-56px); }
.hg-motion section:not(.hg-inview) [data-anim="zoom"] { transform: scale(.9); }
.hg-motion section:not(.hg-inview) [data-anim="blur"] { filter: blur(12px); transform: scale(1.03); }
.hg-motion section:not(.hg-inview) [data-anim="pop"] { transform: translateY(16px) scale(.85); }
.hg-motion section:not(.hg-inview) [data-anim="rise"] { clip-path: inset(0 0 100% 0); transform: translateY(40%); }
.hg-motion section.hg-inview [data-anim="rise"] { clip-path: inset(-10% -5% -20% -5%); }
.hg-motion section:not(.hg-inview) [data-anim="clip"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius)); }
.hg-motion section.hg-inview [data-anim="clip"] { clip-path: inset(0 0 0 0 round var(--radius)); }
.hg-motion [data-anim="clip"] img { transition: transform 1.6s var(--ease) calc(var(--i, 0) * 90ms + var(--d, 0ms)); }
.hg-motion section:not(.hg-inview) [data-anim="clip"] img { transform: scale(1.15); }

@keyframes kh-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: kh-float 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
}
@media (max-width: 640px) {
  :root { --section-pad-y: 68px; --radius: 16px; --header-h: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}

/* native selects: a drawn chevron in the theme colour */
.form-grid select { appearance: none; -webkit-appearance: none; padding-right: 2.6rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-primary) 50%), linear-gradient(135deg, var(--color-primary) 50%, transparent 50%);
  background-position: calc(100% - 21px) 52%, calc(100% - 16px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
