/* =========================================================================
   Sam Steel & Brett Norris — Ray White Manurewa
   Design system: Ray White brand guidelines
   Fonts: Lato (body) + Playfair Display (display headings)
   Palette: per Ray White "Brand in Brief"
   ========================================================================= */

:root {
  --white: #ffffff;
  --light-grey: #ebebec;
  --dark-grey: #595959;
  --yellow: #ffe512;
  --ink: #4a4a4a;
  --body: #595959;
  --muted: #8c8c8c;
  --hairline: #e4e4e5;
  --paper: #faf9f7;
  --near-black: #2b2b2b;
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100% }

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  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 { font-family: var(--serif); color: var(--ink); font-weight: 500; margin: 0; line-height: 1.12; letter-spacing: -.01em }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter) }
.section { padding-block: clamp(72px, 10vw, 130px) }

.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 14px; margin: 0 0 24px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--yellow) }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  padding: 16px 30px; background: var(--near-black); color: #fff;
  border: 1px solid var(--near-black); border-radius: 2px; cursor: pointer;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #000; border-color: #000 }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5) }
.btn--ghost:hover { background: #fff; color: var(--near-black); border-color: #fff }

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

/* =========================================================================
   Mobile nav overlay
   ========================================================================= */
.mnav {
  position: fixed; inset: 0; z-index: 200; background: var(--near-black);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 20px;
  transform: translateX(100%); transition: transform .4s var(--ease); padding: 40px;
}
.mnav.open { transform: none }
.mnav a { font-family: var(--sans); font-weight: 600; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; color: #fff }
.mnav__phone { color: var(--yellow) !important; margin-top: 20px }
.mnav__close { position: absolute; top: 24px; right: 28px; background: none; border: none; color: #fff; font-size: 36px; cursor: pointer; line-height: 1 }

/* =========================================================================
   Header
   ========================================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(180deg, rgba(8,10,14,.55) 0%, rgba(8,10,14,.2) 55%, transparent 100%);
  transition: background .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px }

.brand { display: flex; align-items: center; gap: 14px; line-height: 1 }
.brand-logo { height: 32px; width: auto; display: block; flex-shrink: 0 }
.brand-txt { display: flex; flex-direction: column; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); transition: border-color .45s var(--ease) }
.brand .name { font-family: var(--serif); font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .005em; transition: color .45s var(--ease); text-shadow: 0 1px 10px rgba(0,0,0,.3) }
.brand .sub { font-family: var(--sans); font-weight: 700; font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-top: 5px; transition: color .45s var(--ease) }

.nav { display: flex; align-items: center; gap: 26px }
.nav a { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.88); position: relative; padding-block: 6px; transition: color .3s }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1.5px; background: var(--yellow); transition: width .35s var(--ease) }
.nav a:hover::after { width: 100% }
.nav .nav-cta { padding: 10px 20px; border: 1px solid rgba(255,255,255,.45); border-radius: 2px; color: #fff }
.nav .nav-cta::after { display: none }
.nav .nav-cta:hover { background: #fff; color: var(--near-black) }

.site-header.scrolled { background: rgba(255,255,255,.97); backdrop-filter: saturate(1.1) blur(6px); border-bottom-color: var(--hairline); box-shadow: 0 1px 20px rgba(0,0,0,.05) }
.site-header.scrolled .brand .name { color: var(--ink); text-shadow: none }
.site-header.scrolled .brand .sub { color: var(--muted) }
.site-header.scrolled .brand-txt { border-left-color: var(--hairline) }
.site-header.scrolled .nav a { color: var(--body) }
.site-header.scrolled .nav .nav-cta { border-color: var(--dark-grey); color: var(--ink) }
.site-header.scrolled .nav .nav-cta:hover { background: var(--near-black); color: #fff }
.site-header.scrolled .burger span { background: var(--ink) }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px }
.burger span { width: 24px; height: 2px; background: #fff; transition: background .4s }

/* =========================================================================
   Hero
   ========================================================================= */
.hero { position: relative; min-height: 85vh; display: flex; align-items: flex-end; color: #fff; margin-top: -80px; padding-top: 80px; overflow: hidden }
.hero__media { position: absolute; inset: 0; z-index: -2 }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center top; animation: kenburns 20s ease-out both }
@keyframes kenburns { from { transform: scale(1.06) } to { transform: scale(1) } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(18,18,18,.55) 0%, rgba(18,18,18,.3) 30%, rgba(15,15,15,.55) 55%, rgba(12,12,12,.88) 100%) }
.hero__inner { padding-bottom: clamp(56px, 8vw, 100px); max-width: 800px }
.hero h1 { color: #fff; font-weight: 500; font-size: clamp(36px, 5.5vw, 68px); line-height: 1.06; letter-spacing: -.02em; text-shadow: 0 2px 36px rgba(0,0,0,.22) }
.hero h1 em { font-style: italic; font-weight: 500 }
.hero .kick { font-family: var(--sans); font-weight: 700; font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.88); margin: 0 0 26px }
.hero .sub { font-size: clamp(16px, 1.6vw, 19px); color: rgba(255,255,255,.85); font-weight: 300; max-width: 560px; margin: 26px 0 36px; line-height: 1.6; text-shadow: 0 1px 18px rgba(0,0,0,.55) }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap }

/* =========================================================================
   About — two-agent layout
   ========================================================================= */
.about { background: var(--white) }

.about__grid { display: grid; grid-template-columns: 1fr; gap: clamp(48px, 6vw, 72px); margin-bottom: clamp(56px, 7vw, 88px) }

.agent { display: grid; grid-template-columns: 220px 1fr; gap: clamp(28px, 4vw, 48px); align-items: start }

.agent__portrait { aspect-ratio: 3/4; overflow: hidden; border-radius: 3px; background: var(--light-grey) }
.agent__portrait img { width: 100%; height: 100%; object-fit: cover }

.agent__body h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 4px }
.role { font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 14px 0 22px }
.agent__body > p { margin: 0 0 22px }
.agent__links { display: flex; flex-direction: column; gap: 6px; margin-top: 24px }
.agent__links a { font-size: 15px; font-weight: 400; color: var(--ink); transition: color .3s }
.agent__links a:hover { color: var(--near-black); text-decoration: underline }

.pull { border-left: 2px solid var(--yellow); padding-left: clamp(20px, 3vw, 32px); margin-bottom: clamp(56px, 7vw, 88px); max-width: 640px }
.pull blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.2vw, 24px); color: var(--ink); line-height: 1.5; margin: 0 }

.awards { border-top: 1px solid var(--hairline); padding-top: clamp(40px, 5vw, 64px) }
.awards__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden }
.award-item { background: var(--white); padding: 28px 24px; transition: background .35s }
.award-item:hover { background: var(--paper) }
.award-item__label { display: block; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px }
.award-item__title { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 500; line-height: 1.25 }

/* =========================================================================
   Reviews / Testimonials
   ========================================================================= */
.reviews { background: var(--paper) }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; margin-bottom: 48px }
.reviews__head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 8px }
.reviews__badges { display: flex; flex-direction: column; gap: 12px; align-items: flex-start }

.gbadge { display: inline-flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--hairline); border-radius: 100px; padding: 11px 22px; box-shadow: 0 4px 18px rgba(0,0,0,.05); transition: transform .3s var(--ease), box-shadow .3s var(--ease) }
.gbadge:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.09) }
.gbadge .g { width: 22px; height: 22px; flex-shrink: 0; display: block }
.gbadge .rma-icon { font-family: var(--sans); font-weight: 900; font-size: 11px; color: var(--ink); letter-spacing: .04em; flex-shrink: 0 }
.gbadge .stars { color: #fbbc04; letter-spacing: 2px; font-size: 15px; line-height: 1 }
.gbadge .txt { font-family: var(--sans); font-weight: 700; font-size: 13px; color: var(--ink); letter-spacing: .02em; line-height: 1.3 }
.gbadge .txt small { display: block; font-weight: 400; color: var(--muted); font-size: 11px; letter-spacing: .04em; margin-top: 2px }

.tscroll-wrap { position: relative }
.tscroll { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px }
.tscroll::-webkit-scrollbar { display: none }
.tcard { margin: 0; flex: 0 0 340px; scroll-snap-align: start; background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 28px 28px 24px; box-shadow: 0 2px 20px rgba(0,0,0,.03) }
.tscroll-btn { position: absolute; top: 50%; translate: 0 -50%; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hairline); background: var(--white); box-shadow: 0 2px 12px rgba(0,0,0,.08); font-size: 22px; color: var(--ink); cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; transition: opacity .2s }
.tscroll-btn:hover { background: var(--paper) }
.tscroll-btn--prev { left: -22px }
.tscroll-btn--next { right: -22px }
.tscroll-btn[disabled] { opacity: 0; pointer-events: none }
.tcard .stars { color: #fbbc04; letter-spacing: 2px; font-size: 13px; margin-bottom: 14px }
.tcard blockquote { margin: 0; font-family: var(--sans); font-weight: 300; font-size: 15px; line-height: 1.72; color: var(--body) }
.tcard .who { margin-top: 18px; font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: .03em; color: var(--ink) }
.tcard .who span { color: var(--muted); font-weight: 400 }

/* =========================================================================
   Listings
   ========================================================================= */
.listings { background: var(--paper) }
.listings h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 40px }

.listings__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px }
.listings__empty { font-size: 16px; color: var(--muted); line-height: 1.6 }
.listings__empty a { color: var(--ink); text-decoration: underline }

.card { display: block; background: var(--white); border: 1px solid var(--hairline); border-radius: 3px; overflow: hidden; color: inherit; transition: transform .4s var(--ease), box-shadow .4s var(--ease) }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(0,0,0,.09) }
.card__media { position: relative; height: 240px; overflow: hidden; background: var(--light-grey) }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease) }
.card:hover .card__media img { transform: scale(1.05) }
.card__tag { position: absolute; top: 14px; left: 14px; background: var(--yellow); color: var(--ink); font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 2px }
.card__body { padding: 22px }
.card__addr { display: block; font-family: var(--serif); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 4px }
.card__suburb { display: block; font-size: 14px; color: var(--muted); margin-bottom: 14px }
.card__price { display: block; font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 14px }
.card__specs { display: flex; gap: 16px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--hairline); padding-top: 14px }

/* =========================================================================
   Sold
   ========================================================================= */
.sold { background: var(--white) }
.sold h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px }
.sold__count { font-size: 15px; color: var(--muted); margin-bottom: 36px }
.sold__table-wrap { overflow-x: auto }
.sold__table { width: 100%; border-collapse: collapse }
.sold__table th { text-align: left; font-family: var(--sans); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); padding: 0 0 14px; border-bottom: 2px solid var(--ink) }
.sold__table td { font-size: 15px; padding: 16px 20px 16px 0; border-bottom: 1px solid var(--hairline); color: var(--body); transition: background .2s }
.sold__table tr:hover td { background: var(--paper) }
.sold__table td:first-child { white-space: normal }
.sold__addr { font-weight: 700; color: var(--ink) }
.sold__suburb { color: var(--muted) }

/* =========================================================================
   Contact / CTA
   ========================================================================= */
.cta { background: var(--paper) }
.cta__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 80px); align-items: start }
.cta__text h2 { font-size: clamp(28px, 3.6vw, 44px); margin-bottom: 20px }
.cta__text h2 em { font-style: italic }
.cta__text > p { margin: 0 0 36px; font-size: 16px }
.cta__contacts { display: flex; flex-direction: column; gap: 24px }
.cta__person { display: flex; flex-direction: column; gap: 4px }
.cta__person strong { font-size: 15px; font-weight: 700; color: var(--ink) }
.cta__person a, .cta__person span { font-size: 14px; color: var(--body); line-height: 1.6 }
.cta__person a:hover { color: var(--ink); text-decoration: underline }
.cta__form { background: var(--white); border: 1px solid var(--hairline); border-radius: 3px; padding: clamp(24px, 3vw, 40px) }

/* =========================================================================
   Footer
   ========================================================================= */
.footer { background: var(--near-black); padding: 32px 0 }
.footer .wrap { display: flex; justify-content: space-between; align-items: center }
.footer p { font-size: 13px; color: #777; margin: 0 }
.footer nav { display: flex; gap: 24px }
.footer nav a { font-size: 13px; color: #777; transition: color .3s }
.footer nav a:hover { color: #fff }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .awards__grid { grid-template-columns: repeat(2, 1fr) }
}

@media (max-width: 768px) {
  .burger { display: flex }
  .nav { display: none }

  .hero { min-height: 70vh }
  .hero h1 { font-size: 32px }
  .hero .sub { font-size: 15px }

  .about__grid { gap: 48px }
  .agent { grid-template-columns: 1fr }
  .agent__portrait { max-width: 280px }

  .reviews__head { flex-direction: column }
  .tcard { flex: 0 0 280px }
  .tscroll-btn { display: none }

  .awards__grid { grid-template-columns: 1fr }

  .listings__grid { grid-template-columns: 1fr }

  .cta__grid { grid-template-columns: 1fr }

  .footer .wrap { flex-direction: column; gap: 12px; text-align: center }
  .footer nav { justify-content: center }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  .reveal { opacity: 1; transform: none; transition: none }
  .hero__media img { animation: none }
}
