/* =========================================================================
   360 Luxury Collection — Design System
   Built on the official Ray White brand guidelines (Brand in Brief, Residential)
   - Colours:  White #FFFFFF · Light Grey #EBEBEC · Yellow #FFE512 · Dark Grey #595959
   - Fonts:    Lato (primary/body & headings) + Playfair Display (major headings)
   - Voice:    light, fresh, uncluttered — sentence case, never overuse dark grey
   ========================================================================= */

:root {
  /* Brand palette (official) */
  --rw-yellow:      #FFE512;
  --rw-yellow-deep: #F5D800;
  --rw-grey:        #595959;   /* brand Dark Grey */
  --rw-grey-light:  #EBEBEC;   /* brand Light Grey */
  --white:          #FFFFFF;

  /* Luxury extensions (tonal, on-brand) */
  --ink:            #171717;   /* headings / premium depth */
  --charcoal:       #2A2A2A;   /* dark sections */
  --body:           #4A4A4A;   /* body copy */
  --muted:          #7C7C7C;
  --hairline:       #E6E5E2;
  --cream:          #FAF9F6;   /* warm off-white for airy sections */

  /* Type */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Layout */
  --maxw: 1220px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --shadow-sm: 0 2px 14px rgba(23, 23, 23, .06);
  --shadow-md: 0 18px 50px rgba(23, 23, 23, .12);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  color: var(--body);
  background: var(--white);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }

/* ---------- Typographic scale ---------- */
.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -.015em;
}
h2, .h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  letter-spacing: -.01em;
}
h3, .h3 { font-family: var(--sans); font-weight: 700; font-size: 1.28rem; letter-spacing: .002em; }
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .74rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1.2em;
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--rw-yellow);
}
.lede { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--charcoal); line-height: 1.6; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.section--cream { background: var(--cream); }
.section--grey { background: var(--rw-grey-light); }
.section--ink { background: var(--ink); color: #C9C7C2; }
.section--ink h2, .section--ink h3, .section--ink .stat__num { color: #fff; }
.center { text-align: center; }
.measure { max-width: 40rem; }
.measure-wide { max-width: 52rem; }
.mx-auto { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 1.05em 1.9em; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg);
  border-radius: var(--radius); cursor: pointer;
  transition: transform .35s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn--yellow { --bg: var(--rw-yellow); --fg: var(--ink); --bd: var(--rw-yellow); }
.btn--yellow:hover { --bg: var(--rw-yellow-deep); --bd: var(--rw-yellow-deep); }
.btn--outline { --bg: transparent; --fg: var(--ink); --bd: var(--ink); }
.btn--outline:hover { --bg: var(--ink); --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.4); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn--sm { padding: .8em 1.4em; font-size: .74rem; }
.link-arrow {
  font-family: var(--sans); font-weight: 700; font-size: .82rem;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); display: inline-flex; align-items: center; gap: .5em;
  border-bottom: 2px solid var(--rw-yellow); padding-bottom: 3px;
  transition: gap .3s var(--ease);
}
.link-arrow:hover { gap: .9em; }
.section--ink .link-arrow { color: #fff; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow .3s var(--ease);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 82px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1; }
.brand__txt strong { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); font-weight: 600; letter-spacing: .01em; }
.brand__txt span { font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav__links a {
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; color: var(--charcoal);
  position: relative; padding: 6px 0;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--rw-yellow); transition: width .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--hairline);
  background: #fff; border-radius: var(--radius); cursor: pointer; padding: 0;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav__toggle span { display: block; width: 20px; height: 2px; background: var(--ink); transition: .3s var(--ease); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(15,15,15,.86) 0%, rgba(15,15,15,.62) 42%, rgba(15,15,15,.28) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: clamp(96px, 16vh, 190px) 0 clamp(80px, 12vh, 150px); }
.hero__inner .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero h1 em { font-style: italic; color: var(--rw-yellow); }
.hero__sub { max-width: 46ch; color: rgba(255,255,255,.85); font-size: clamp(1.05rem, 1.6vw, 1.24rem); margin: 1.5rem 0 2.4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__strip {
  position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.16);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero__strip div { padding: 1.6rem 0; }
.hero__strip .stat__num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.3rem); color: #fff; line-height: 1; }
.hero__strip .stat__lbl { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); margin-top: .5rem; }

/* ---------- Intro / split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--rev .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.split__media .tag {
  position: absolute; bottom: -18px; left: -18px; background: var(--rw-yellow); color: var(--ink);
  font-family: var(--serif); font-size: 1.5rem; padding: .7rem 1.2rem; box-shadow: var(--shadow-sm);
}
.split__media .tag small { display: block; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

/* ---------- Service cards ---------- */
.grid { display: grid; gap: clamp(1.4rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 2.2rem 2rem; transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--rw-yellow);
  transition: width .4s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card:hover::before { width: 100%; }
.card__num { font-family: var(--serif); font-size: 1.05rem; color: var(--rw-yellow-deep); font-weight: 600; }
.card__ico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--rw-yellow); color: var(--ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 1.3rem;
}
.card__ico svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; font-size: .98rem; color: var(--body); }

/* Numbered service list (Services page) */
.svc {
  display: grid; grid-template-columns: auto 1fr; gap: 1.6rem;
  padding: 2rem 0; border-top: 1px solid var(--hairline);
}
.svc__n { font-family: var(--serif); font-size: 2.2rem; color: var(--rw-yellow-deep); line-height: 1; font-weight: 600; }
.svc h3 { margin-bottom: .4rem; }
.svc p { margin: 0; }

/* ---------- Feature rows (higher standard) ---------- */
.feature { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.6rem, 3vw, 2.4rem); }
.feature__item { padding: 2rem; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); }
.feature__item h3 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat__num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--ink); line-height: 1; font-weight: 500; }
.stat__num span { color: var(--rw-yellow-deep); }
.stat__lbl { margin-top: .7rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.quote { background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); padding: 2rem; }
.quote__stars { color: var(--rw-yellow-deep); letter-spacing: .12em; margin-bottom: 1rem; font-size: 1rem; }
.quote p { font-family: var(--serif); font-style: italic; font-size: 1.12rem; color: var(--ink); line-height: 1.5; }
.quote cite { font-style: normal; font-weight: 700; font-size: .82rem; letter-spacing: .06em; color: var(--charcoal); text-transform: uppercase; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--rw-yellow); color: var(--ink); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { margin: 0; max-width: 22ch; }
.cta-band p { margin: .6rem 0 0; max-width: 40ch; color: #4a4a2a; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--charcoal); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  padding: .9rem 1rem; border: 1px solid #D8D7D3; border-radius: var(--radius);
  background: #fff; transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255,229,18,.35);
}
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-size: .82rem; color: var(--muted); }
.form-success { display: none; padding: 1.1rem 1.3rem; background: #F2FBEF; border: 1px solid #BFE4B4; border-radius: var(--radius); color: #2f6b23; font-weight: 600; }
.form-success.show { display: block; }

/* ---------- Contact detail cards ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.contact-card { padding: 2rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: #fff; }
.contact-card .card__ico { margin-bottom: 1rem; }
.contact-card h3 { font-size: 1.05rem; }
.contact-card a, .contact-card p { color: var(--body); font-size: 1rem; margin: 0; }
.contact-card a:hover { color: var(--ink); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #A7A5A0; padding: clamp(56px, 7vw, 88px) 0 2rem; }
.footer a { color: #C9C7C2; transition: color .25s var(--ease); }
.footer a:hover { color: var(--rw-yellow); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer__brand img { height: 44px; margin-bottom: 1.2rem; }
.footer__brand p { font-size: .95rem; max-width: 34ch; }
.footer ul { list-style: none; display: grid; gap: .7rem; font-size: .95rem; }
.footer__rw { display: flex; align-items: center; gap: .8rem; margin-top: 1.4rem; }
.footer__rw img { height: 40px; width: 40px; border-radius: var(--radius); }
.footer__rw span { font-size: .78rem; line-height: 1.4; }
.footer__social { display: flex; gap: .7rem; margin-top: 1rem; }
.footer__social a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer__social svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.6rem; font-size: .82rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Property listings ---------- */
.prop-tabs { display: flex; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.prop-tab { font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; padding: .75em 1.5em; border: 1.5px solid var(--hairline); background: #fff; border-radius: var(--radius); cursor: pointer; color: var(--charcoal); transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.prop-tab.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.prop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.prop-card { display: block; background: #fff; border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.prop-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.prop-card__ph { position: relative; aspect-ratio: 3/2; background: var(--rw-grey-light); }
.prop-card__ph img { width: 100%; height: 100%; object-fit: cover; }
.prop-badge { position: absolute; top: 12px; left: 12px; background: var(--rw-yellow); color: var(--ink); font-size: .64rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: .4em .85em; border-radius: var(--radius); }
.prop-badge--leased { background: rgba(23,23,23,.82); color: #fff; }
.prop-card__body { padding: 1.3rem 1.4rem; }
.prop-card__price { font-family: var(--serif); font-size: 1.45rem; color: var(--ink); font-weight: 600; }
.prop-card__addr { font-size: .95rem; color: var(--body); margin: .3rem 0 .9rem; min-height: 2.6em; }
.prop-card__meta { display: flex; gap: 1.1rem; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: .8rem; text-transform: uppercase; letter-spacing: .04em; }
.prop-status { text-align: center; color: var(--muted); padding: 2.5rem 0; grid-column: 1 / -1; }
@media (max-width: 900px) { .prop-grid { grid-template-columns: 1fr; } }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .site-nav-mobile[hidden] { display: none; }
  .site-nav-mobile {
    position: fixed; inset: 82px 0 0; background: #fff; z-index: 55;
    padding: 2rem var(--gutter); display: flex; flex-direction: column; gap: .4rem;
    border-top: 1px solid var(--hairline);
  }
  .site-nav-mobile a { font-size: 1.35rem; font-family: var(--serif); color: var(--ink); padding: .8rem 0; border-bottom: 1px solid var(--hairline); }
  .site-nav-mobile .btn { margin-top: 1.4rem; display: inline-flex; justify-content: center; }
  .split, .split--rev .split__media { grid-template-columns: 1fr; order: 0; }
  .split__media { order: -1; }
  .grid--3, .grid--2, .feature, .contact-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero__strip { grid-template-columns: 1fr; }
  .hero__strip div { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; }
  .split__media .tag { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
