/* Tourwood Property Services – brand tokens sampled from the company profile PDF */
:root {
  --maroon: #862f35;
  --maroon-dark: #5f2025;
  --cream: #f3eee8;
  --mint: #dce8e5;
  --ink: #202020;
  --muted: #5a5a5a;
  --white: #fff;
  --font-head: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
  --hdr: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.1; letter-spacing: -.025em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); }
.h2, h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; }
.eyebrow { font: 600 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--maroon); margin-bottom: 1.1rem; }
.eyebrow a { color: inherit; text-decoration: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .55rem; font: 600 1rem/1 var(--font-body); text-decoration: none; padding: 1rem 1.5rem; border-radius: 999px; border: 2px solid currentColor; color: var(--maroon); background: transparent; cursor: pointer; transition: background .25s, color .25s, transform .25s var(--ease), box-shadow .25s; }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--solid { background: var(--maroon); border-color: var(--maroon); color: var(--white); }
.btn--solid:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); box-shadow: 0 8px 24px rgb(95 32 37 / .35); transform: translateY(-2px); }
.btn--ghost { color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--maroon); }
.btn--sm { padding: .7rem 1.1rem; font-size: .92rem; }
.btn--lg { padding: 1.1rem 1.8rem; }

/* ---------- header ---------- */
.hdr { position: fixed; inset: 0 0 auto 0; height: var(--hdr); z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(1rem, 3vw, 2.5rem); background: var(--cream); box-shadow: 0 1px 0 rgb(0 0 0 / .06); }
.hdr__logo img { height: 52px; width: auto; }
.hdr__nav { display: flex; align-items: center; gap: 1.6rem; }
.hdr__nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; position: relative; padding: .3rem 0; }
.hdr__nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--maroon); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.hdr__nav a:not(.btn):hover::after, .hdr__nav a[aria-current]::after { transform: scaleX(1); }
.hdr__toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.hdr__toggle span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); transition: transform .3s var(--ease); }
.hdr__toggle span:first-child { top: 18px; } .hdr__toggle span:last-child { top: 26px; }
.hdr__toggle[aria-expanded='true'] span:first-child { transform: translateY(4px) rotate(45deg); }
.hdr__toggle[aria-expanded='true'] span:last-child { transform: translateY(-4px) rotate(-45deg); }
main { padding-top: var(--hdr); }
.is-home main { padding-top: 0; }
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: var(--maroon); transform-origin: 0 50%; transform: scaleX(0); z-index: 60; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: clip; color: var(--white); padding-top: var(--hdr); }
.hero__media { position: absolute; inset: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 45%; }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgb(60 18 22 / .88) 0%, rgb(95 32 37 / .6) 45%, rgb(0 0 0 / .1) 100%), linear-gradient(0deg, rgb(0 0 0 / .45), transparent 40%); }
.hero__content { position: relative; padding-block: 4rem; max-width: 820px; margin-inline: auto auto; margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2)); }
.hero h1 { color: var(--white); text-wrap: balance; }
.hero .eyebrow { color: #f1d3d5; }
.hero__sub { font-size: clamp(1.1rem, 1.6vw, 1.35rem); max-width: 40rem; color: #fbf6f2; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero__cue { position: absolute; left: 50%; bottom: 1.6rem; width: 28px; height: 46px; border: 2px solid rgb(255 255 255 / .8); border-radius: 16px; transform: translateX(-50%); }
.hero__cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes drift { from { transform: scale(1.04) translate3d(-1%, 0, 0); } to { transform: scale(1.14) translate3d(1.5%, -1%, 0); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- statement / stats ---------- */
.statement { padding-block: clamp(4rem, 9vw, 8rem); }
.statement__text { font: 600 clamp(1.4rem, 2.7vw, 2.15rem)/1.4 var(--font-head); max-width: 58ch; margin-inline: 0; color: var(--maroon-dark); text-align: left; }
.statement__list { list-style: none; padding: 0; margin: 2rem 0 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.statement__list li { background: var(--cream); border-left: 4px solid var(--maroon); border-radius: 0 10px 10px 0; padding: 1.1rem 1.25rem; font: 600 1.1rem/1.3 var(--font-head); color: var(--maroon-dark); }
.stats { background: var(--mint); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding-block: 3rem; }
.stat { display: grid; gap: .25rem; border-left: 3px solid var(--maroon); padding-left: 1rem; }
.stat__n { font: 800 clamp(1.6rem, 3vw, 2.4rem)/1.1 var(--font-head); color: var(--maroon); }
.stat__l { color: var(--muted); }

/* ---------- sector cards ---------- */
.sectors { padding-block: clamp(4rem, 8vw, 7rem); }
.sectors--page { padding-top: 2rem; }
.sectors__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 2rem; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); background: var(--cream); border-radius: 14px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgb(0 0 0 / .14); }
.card__img { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { display: flex; flex-direction: column; gap: .35rem; padding: 1.25rem 1.25rem 1.4rem; flex: 1; }
.card__n { font: 600 .8rem var(--font-body); color: var(--maroon); letter-spacing: .12em; }
.card h3 { margin: 0; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card__more { margin-top: auto; padding-top: .8rem; font-weight: 600; color: var(--maroon); }

/* ---------- marquee ---------- */
.marquee { background: var(--maroon); color: var(--white); overflow: hidden; padding: 1.2rem 0; }
.marquee__track { display: flex; width: max-content; gap: 0; animation: slide 45s linear infinite; }
.marquee__track span { font: 600 1.15rem var(--font-head); white-space: nowrap; padding-inline: 1.6rem; position: relative; }
.marquee__track span::after { content: '◆'; position: absolute; right: -.4rem; font-size: .6rem; top: 50%; transform: translateY(-50%); opacity: .6; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(4rem, 8vw, 7rem); }
.why__media { border-radius: 14px; overflow: hidden; }
.why__media img { width: 100%; height: auto; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1.1rem; }
.ticks li { padding-left: 2rem; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--maroon); box-shadow: inset 0 0 0 4px var(--maroon), inset 0 0 0 5px #fff; }
.link { font-weight: 600; text-decoration: none; border-bottom: 2px solid currentColor; }

/* ---------- quote ---------- */
.quote { background: var(--maroon); color: var(--white); padding-block: clamp(4rem, 8vw, 7rem); }
.quote__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.h2--light { color: var(--white); }
.quote a { color: #fff; }
.quote__alt { margin-top: 2rem; font-size: 1.1rem; }
.qform { display: grid; gap: 1rem; background: var(--white); color: var(--ink); padding: clamp(1.25rem, 3vw, 2rem); border-radius: 16px; box-shadow: 0 24px 60px rgb(0 0 0 / .25); }
.qform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.qform label { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; }
.opt { font-weight: 400; color: var(--muted); }
.qform input, .qform select, .qform textarea { font: 400 1rem var(--font-body); padding: .8rem .9rem; border: 1.5px solid #c9c4be; border-radius: 8px; background: #fff; color: var(--ink); width: 100%; }
.qform input:focus, .qform select:focus, .qform textarea:focus { outline: 3px solid rgb(134 47 53 / .25); border-color: var(--maroon); }
.qform [aria-invalid='true'] { border-color: #b3261e; }
.qform .btn { justify-self: start; }
.qform__status { margin: 0; min-height: 1.5em; font-weight: 500; }
.qform__status.is-ok { color: #1c6b3a; } .qform__status.is-err { color: #b3261e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- inner pages ---------- */
.pagehead { background: var(--mint); padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.pagehead h1 { max-width: 20ch; text-wrap: balance; color: var(--maroon-dark); }
.pagehead__lead { font-size: 1.2rem; max-width: 52ch; color: var(--muted); margin: 0; }
.pagehead--img { position: relative; color: #fff; background: var(--maroon-dark); overflow: clip; min-height: 340px; display: grid; align-items: end; }
.pagehead--img .wrap { position: relative; }
.pagehead--img h1 { color: #fff; }
.pagehead--img .eyebrow, .pagehead--img .eyebrow a { color: #f1d3d5; }
.pagehead__bg { position: absolute; inset: 0; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pagehead__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(60 18 22 / .85), rgb(60 18 22 / .25)); }
.detail { padding-block: clamp(3rem, 6vw, 5rem); }
.detail__lead { font: 600 clamp(1.3rem, 2.4vw, 1.8rem)/1.4 var(--font-head); color: var(--maroon-dark); max-width: 50ch; margin-bottom: 2.5rem; }
.detail__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.point { background: var(--cream); border-top: 4px solid var(--maroon); border-radius: 0 0 12px 12px; padding: 1.4rem; }
.point h2 { font-size: 1.25rem; }
.point p { margin: 0; color: var(--muted); }
.band { background: var(--cream); }
.band__in { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between; padding-block: 2.5rem; }
.band__in p { font: 600 1.4rem var(--font-head); margin: 0; color: var(--maroon-dark); }
.prose { padding-block: clamp(3rem, 6vw, 5rem); display: grid; gap: 2.2rem; max-width: 820px; }
.prose h2 { font-size: 1.5rem; color: var(--maroon); }
.prose .link { white-space: nowrap; }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(3rem, 6vw, 5rem); align-items: start; }
.contact .small { font-size: .9rem; color: var(--muted); }
.contact .qform { box-shadow: 0 0 0 1px #e3ded8; }

/* ---------- footer ---------- */
.ftr { background: var(--maroon-dark); color: #f3e6e6; padding: 4rem 1.25rem 2rem; }
.ftr a { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; width: min(var(--wrap), 100%); margin-inline: auto; }
.ftr__logo { width: 240px; }
.ftr__licence { width: 150px; height: auto; margin-top: 1.25rem; border-radius: 6px; }
.ftr__tag { margin-top: 1rem; font-family: var(--font-head); font-weight: 600; }
.ftr h2 { font: 600 .8rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: #e5b9bc; margin-bottom: 1rem; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.ftr__more a { font-size: .92rem; opacity: .85; }
.ftr__legal { width: min(var(--wrap), 100%); margin: 3rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .2); font-size: .85rem; color: #d9c2c4; }

/* ---------- scroll-driven motion (progressive enhancement) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(46px); } to { opacity: 1; transform: none; } }
@keyframes clipin { from { clip-path: inset(0 100% 0 0 round 14px); } to { clip-path: inset(0 0 0 0 round 14px); } }
@keyframes zoomout { from { transform: scale(1.25); } to { transform: scale(1); } }
@keyframes heroOut { to { opacity: 0; transform: translateY(-60px); } }
@keyframes parallax { to { transform: translateY(12vh); } }
@keyframes zoomin { from { transform: scale(1); } to { transform: scale(2.5); } }
@keyframes grow { to { transform: scaleX(1); } }
@keyframes hdrbg { from { box-shadow: none; } to { box-shadow: 0 6px 24px rgb(0 0 0 / .12); } }
@keyframes count { from { --n: 0; } to { --n: 30; } }
@property --n { syntax: '<integer>'; initial-value: 30; inherits: false; }

@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 4% cover 26%; }
  .sectors__grid .card:nth-child(2) { animation-range: entry 8% cover 30%; }
  .sectors__grid .card:nth-child(3) { animation-range: entry 12% cover 34%; }
  .sectors__grid .card:nth-child(4) { animation-range: entry 16% cover 38%; }
  .clipin { animation: clipin linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  .clipin img { animation: zoomout linear both; animation-timeline: view(); animation-range: entry 0% cover 60%; }
  .hero__img { animation: zoomin linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  .hero__media { animation: parallax linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  .hero__content { animation: heroOut linear both; animation-timeline: scroll(root); animation-range: 0 70svh; }
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  .hdr { animation: hdrbg linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  .count { animation: count linear both; animation-timeline: view(); animation-range: entry 0% entry 90%; counter-reset: n var(--n); font-size: 0; }
  .count::before { content: counter(n) '+'; font-size: clamp(1.6rem, 3vw, 2.4rem); }
}

/* Browsers without scroll-driven animation get a gentle idle drift instead */
@supports not (animation-timeline: scroll()) {
  .hero__img { animation: drift 28s ease-in-out infinite alternate; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sectors__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .why, .quote__grid, .contact { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .hdr__toggle { display: block; }
  .hdr__nav { position: fixed; inset: var(--hdr) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); padding: .5rem 1.25rem 1.5rem; box-shadow: 0 20px 30px rgb(0 0 0 / .15); transform: translateY(-120%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; }
  .hdr__nav.is-open { transform: none; visibility: visible; }
  .hdr__nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid #ddd6cf; }
  .hdr__nav .btn { margin-top: 1rem; justify-content: center; }
  .hdr__logo img { height: 44px; }
  .sectors__grid { grid-template-columns: 1fr; }
  .qform__row { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .hero__cue { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .count { font-size: inherit; } .count::before { content: none; }
}
@media print { .hdr, .progress, .hero__cue, .marquee { display: none; } main { padding-top: 0; } }
