/* Design tokens — the CMS Colours and Fonts tabs map onto these custom properties.
   A dark, warm-charcoal palette with an antique-gold accent; tints are mixed from these. */
:root {
  --color-primary: #c9a46a;
  --color-primary-dark: #a8844d;
  --color-secondary: #f2ebdf;
  --color-accent: #dcc08c;
  --color-accent-soft: #2a231b;
  --color-rose: #cf8a6e;
  --color-surface: #141110;
  --color-surface-soft: #1a1614;
  --color-card: #1f1a17;
  --color-panel: #181412;
  --color-default: #c2b8aa;
  --color-muted: #94897b;
  --color-line: #3a3129;
  --color-white: #f7f2e8;
  --color-ink: #141110;
  --color-success: #8fbf8f;
  --color-danger: #e08a7a;
  --font-default: 'Jost', system-ui, sans-serif;
  --font-primary: 'Jost', system-ui, sans-serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --radius: 4px;
  --radius-sm: 3px;
  --section-max-width: 76rem;
  --header-h: 96px;
  --section-pad-y: 104px;
  --base-size: 16px;
  --shadow: 0 24px 50px -32px rgba(0, 0, 0, .8);
  --shadow-lg: 0 36px 80px -36px rgba(0, 0, 0, .9);
  --gold-line: color-mix(in srgb, var(--color-primary) 38%, transparent);
  --card-edge: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 14%, transparent);
  --card-edge-on: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 40%, transparent);
  --ease: cubic-bezier(.2, .75, .25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: var(--base-size); scroll-behavior: smooth; background: var(--color-surface); color-scheme: dark; }
body {
  font-family: var(--font-default); font-weight: 350; color: var(--color-default); line-height: 1.7; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(60rem 40rem at 50% -10rem, color-mix(in srgb, var(--color-primary) 6%, transparent), transparent 70%),
    var(--color-surface);
  background-repeat: no-repeat;
}
h1, h2, h3, h4, h5 { font-family: var(--font-heading); color: var(--color-secondary); font-weight: 500; line-height: 1.12; letter-spacing: 0; }
b, strong { 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; }
::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: var(--color-panel); border-top: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 14%, transparent); }
section.dark { background: var(--color-panel); color: var(--color-default); }
section.dark h2, section.dark h3 { color: var(--color-secondary); }

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

/* a thin gold rule with a small diamond at its centre */
.gold-rule { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--color-primary); }
.gold-rule::before, .gold-rule::after { content: ''; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold-line)); }
.gold-rule::after { transform: scaleX(-1); }
.gold-rule i { width: 6px; height: 6px; transform: rotate(45deg); border: 1px solid currentColor; }

/* ── Buttons: outlined, uppercase, letter-spaced; gold fill on hover ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 1.8rem; border-radius: 2px; border: 0; cursor: pointer;
  background: transparent; color: var(--color-secondary); box-shadow: inset 0 0 0 1px var(--color-primary);
  font-family: var(--font-primary); font-weight: 500; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap;
  transition: background .3s ease, color .3s ease, box-shadow .3s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { background: var(--color-primary); color: var(--color-ink); }
.btn.solid { background: var(--color-primary); color: var(--color-ink); }
.btn.solid:hover { background: var(--color-accent); }
.btn.light { color: var(--color-white); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-white) 55%, transparent); }
.btn.light:hover { background: var(--color-white); color: var(--color-ink); }
.btn.soft { color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--gold-line); }
.btn.soft:hover { background: var(--color-accent-soft); color: var(--color-accent); }
.btn.ghost { color: var(--color-default); box-shadow: inset 0 0 0 1px var(--color-line); }
.btn.ghost:hover { background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); }
.btn.small { padding: .75rem 1.2rem; font-size: .72rem; }
.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: .55rem; font-weight: 500; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--color-primary); }
.arrow-link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.arrow-link:hover svg { transform: translateX(4px); }
.arrow-link:hover { color: var(--color-accent); }

/* ── Section heads: small uppercase gold label, large serif headline ── */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-primary); font-size: .72rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--color-primary); }
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--color-primary); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2.2rem, 4vw, 3.3rem); margin-top: .8rem; font-weight: 400; }
.section-head p { margin-top: 1rem; font-size: 1.02rem; max-width: 60ch; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 28px; height: 1px; background: var(--color-primary); }
.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 card: one shade lighter than the page, with a hairline gold edge */
.card-white { background: var(--color-card); border-radius: var(--radius); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary) 16%, transparent), var(--shadow); }

/* ── Forms ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: block; font-weight: 500; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .45rem; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; background: var(--color-surface-soft); border: 1px solid var(--color-line); border-radius: 2px; padding: .85rem 1rem; color: var(--color-secondary);
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.form-grid select option { background: var(--color-card); color: var(--color-secondary); }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { outline: none; background: var(--color-surface); border-color: var(--color-primary); box-shadow: 0 0 0 3px 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: .3rem; accent-color: var(--color-primary); }
.field-err { color: var(--color-danger); 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, var(--color-success) 12%, var(--color-card)); color: var(--color-success); border: 1px solid color-mix(in srgb, var(--color-success) 35%, transparent); }
.form-ok svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.form-bad { padding: 12px 16px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--color-danger) 12%, var(--color-card)); color: var(--color-danger); font-size: .9rem; border: 1px solid color-mix(in srgb, var(--color-danger) 35%, transparent); }

/* a tick list, the tick drawn in CSS so it follows the theme colours */
.tick-list { list-style: none; display: grid; gap: .65rem; }
.tick-list li { position: relative; padding-left: 1.8rem; font-size: .95rem; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: .28em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: transparent; box-shadow: inset 0 0 0 1px var(--gold-line); }
.tick-list li::after { content: ''; position: absolute; left: .4rem; top: .5em; width: .26rem; height: .5rem; 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 (Featured / New / Hot Deal / Reduced) */
.tag { display: inline-flex; align-items: center; padding: .4rem .75rem; border-radius: 2px; font-size: .64rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  background: color-mix(in srgb, var(--color-surface) 82%, transparent); color: var(--color-secondary); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px var(--gold-line); }
.tag.featured { color: var(--color-primary); }
.tag.hot-deal { color: var(--color-rose); }
.tag.reduced { color: var(--color-success); }
.tag.let { background: var(--color-primary); color: var(--color-ink); box-shadow: none; }

/* round icon tiles: a gold line icon in a hairline gold ring (every tint the same) */
.tint { display: grid; place-items: center; border-radius: 50%; flex: none; background: transparent; color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--gold-line); }
.tint svg { width: 44%; height: 44%; stroke-width: 1.4; }
.tint.lavender, .tint.indigo, .tint.sky { background: transparent; color: var(--color-primary); }
.tint.rose { background: transparent; color: var(--color-rose); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-rose) 45%, transparent); }

/* ── Header logo ── */
.logo { display: inline-flex; align-items: center; gap: .7rem; font: 500 1.35rem var(--font-heading); color: var(--color-secondary); letter-spacing: .14em; text-transform: uppercase; min-width: 0; }
.logo img { max-height: 48px; width: auto; max-width: min(46vw, 240px); object-fit: contain; }
.logo .mark { width: 40px; height: 40px; display: grid; place-items: center; flex: none; color: var(--color-primary); }
.logo .mark svg { width: 34px; height: 34px; stroke-width: 1.2; }
.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-family: var(--font-primary); font-size: .44em; font-weight: 400; letter-spacing: .3em; color: var(--color-primary); }

/* ══ 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 au-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float { animation: au-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: 72px; --header-h: 76px; }
  .form-grid { grid-template-columns: 1fr; }
  .section-head { margin-bottom: 32px; }
}
