/*
Theme Name:   James Hartley Real Estate
Theme URI:    https://www.jameshartley.com.au
Author:       Apex Digital Brisbane
Author URI:   https://apexdigital.com.au
Description:  Premium real estate agent website theme for James Hartley — Ray White Mount Gravatt. SEO-optimised, mobile-first, with built-in property listings, reviews, suburb guides, and lead capture.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  james-hartley
Tags:         real-estate, one-page, custom-colors, full-width-template, featured-images, theme-options
*/

/* ─────────────────────────────────────────────
   CSS CUSTOM PROPERTIES
───────────────────────────────────────────── */
:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2d42;
  --navy-light: #243b55;
  --gold:       #b8912a;
  --gold-light: #d4a843;
  --gold-pale:  #f5ead8;
  --cream:      #faf8f4;
  --white:      #ffffff;
  --text:       #1a1a2e;
  --text-mid:   #4a5568;
  --text-light: #8899aa;
  --border:     #e8e2d9;
  --success:    #2d7a4f;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Outfit', system-ui, sans-serif;
}

/* ─────────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-sans); }
input, select, textarea { font-family: var(--font-sans); }

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 100px 0; }
.text-gold  { color: var(--gold); }
.text-white { color: var(--white); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 17px 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); color: var(--white); }

.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,0.35);
  color: var(--white);
  padding: 17px 40px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover { border-color: var(--gold); background: rgba(184,145,42,0.12); color: var(--white); }

/* Section labels */
.section-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  color: var(--navy);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-title.white { color: var(--white); }

/* ─────────────────────────────────────────────
   TOP BAR
───────────────────────────────────────────── */
.top-bar {
  background: var(--navy);
  padding: 10px 0;
  text-align: center;
}
.top-bar p {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin: 0;
}
.top-bar a { color: var(--gold-light); }

/* ─────────────────────────────────────────────
   NAVIGATION
───────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  max-width: 1240px;
  margin: 0 auto;
}
.nav-brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.rw-badge {
  background: var(--gold);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 10px;
  text-transform: uppercase;
  line-height: 1;
}
.nav-name { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--navy); display: block; }
.nav-title-text { font-size: 11px; color: var(--text-light); letter-spacing: 1px; }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; margin: 0; padding: 0; }
.nav-links a { font-size: 13px; color: var(--text-mid); letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover { color: var(--navy); }
.nav-links .cta-link {
  background: var(--gold);
  color: var(--white) !important;
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.2s;
}
.nav-links .cta-link:hover { background: var(--gold-light); transform: translateY(-1px); color: var(--white); }

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ─────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────── */
.hero-section {
  background: var(--navy);
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-left {
  padding: 100px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(184,145,42,0.15);
  border: 1px solid rgba(184,145,42,0.3);
  padding: 10px 20px;
  margin-bottom: 36px;
  width: fit-content;
}
.hero-badge span { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-light); font-weight: 500; }
.badge-dot { width: 6px; height: 6px; background: var(--gold-light); border-radius: 50%; animation: pulse 2s infinite; flex-shrink: 0; }

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(52px, 5.5vw, 80px);
  font-weight: 500;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 8px;
}
.hero-subtitle {
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 32px;
  font-weight: 400;
}
.hero-desc {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  max-width: 460px;
  margin-bottom: 48px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-social { display: flex; gap: 16px; margin-top: 44px; }
.social-link {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  transition: all 0.2s;
}
.social-link:hover { border-color: var(--gold); color: var(--gold); }

/* Hero Right */
.hero-right { position: relative; overflow: hidden; }
.hero-photo-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--navy) 0%, transparent 20%);
  z-index: 2;
  pointer-events: none;
}
.agent-photo-wrapper { position: absolute; bottom: 0; right: 0; width: 90%; height: 100%; z-index: 1; }
.agent-silhouette { width: 100%; height: 100%; overflow: hidden; }
.agent-silhouette img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* Floating stat cards */
.stat-float {
  position: absolute;
  background: var(--white);
  padding: 18px 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
  z-index: 10;
}
.sf-1 { bottom: 200px;  }
.sf-2 { top: 130px; right: 20px; }
.sf-3 { bottom: 70px; right: 30px; }
.stat-float-num { font-family: var(--font-serif); font-size: 36px; font-weight: 500; color: var(--navy);  }
.stat-float-num span { color: var(--gold); }
.stat-float-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); margin-top: 4px; }
.rating-float { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.stars { color: #f59e0b; font-size: 14px; }

/* ─────────────────────────────────────────────
   AWARDS STRIP
───────────────────────────────────────────── */
.awards-strip { background: var(--gold-pale); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 22px 0; overflow: hidden; }
.awards-track { display: flex; gap: 60px; align-items: center; animation: marquee 26s linear infinite; white-space: nowrap; }
.award-item { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.award-icon { font-size: 20px; }
.award-text { font-size: 13px; font-weight: 500; color: var(--navy); }

/* ─────────────────────────────────────────────
   STATS ROW
───────────────────────────────────────────── */
.stats-row { background: var(--navy); }
.stats-inner { display: grid; grid-template-columns: repeat(5, 1fr); max-width: 1240px; margin: 0 auto; }
.stat-block {
  padding: 44px 36px;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  position: relative;
  transition: background 0.3s;
}
.stat-block:last-child { border-right: none; }
.stat-block:hover { background: rgba(184,145,42,0.08); }
.stat-block::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.3s;
}
.stat-block:hover::after { transform: scaleX(1); }
.stat-val { font-family: var(--font-serif); font-size: 48px; font-weight: 400; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stat-val sup { font-size: 24px; color: var(--gold); vertical-align: super; }
.stat-val sub { font-size: 24px; color: var(--gold); }
.stat-desc { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.4); line-height: 1.5; }

/* ─────────────────────────────────────────────
   ABOUT SECTION
───────────────────────────────────────────── */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.about-image-area { position: relative; }
.about-img-wrap { width: 100%; aspect-ratio: 3/4; overflow: hidden; }
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s ease; }
.about-img-wrap:hover img { transform: scale(1.03); }
.about-accent-box {
  position: absolute;
  bottom: -24px; right: -24px;
  background: var(--gold);
  padding: 32px 40px;
  color: var(--white);
  text-align: center;
}
.accent-num { font-family: var(--font-serif); font-size: 52px; font-weight: 400; line-height: 1; display: block; }
.accent-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.85; }
.about-content p { font-size: 16px; line-height: 1.85; color: var(--text-mid); margin-bottom: 20px; }

/* LinkedIn Timeline */
.career-timeline { margin-top: 48px; }
.career-timeline h3 { font-family: var(--font-serif); font-size: 22px; color: var(--navy); margin-bottom: 28px; display: flex; align-items: center; gap: 12px; }
.timeline-list { display: flex; flex-direction: column; }
.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.timeline-item::before { content: ''; position: absolute; left: 108px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-date { font-size: 12px; color: var(--text-light); letter-spacing: 1px; padding-top: 4px; }
.timeline-dot {
  position: absolute; left: 102px; top: 28px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--cream);
  box-shadow: 0 0 0 2px var(--gold);
}
.timeline-role { font-weight: 600; color: var(--navy); font-size: 15px; margin-bottom: 4px; }
.timeline-company { font-size: 13px; color: var(--gold); margin-bottom: 6px; font-weight: 500; }
.timeline-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; }

/* ─────────────────────────────────────────────
   LISTINGS SECTION
───────────────────────────────────────────── */
.listings-section { background: var(--cream); }
.listings-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; }
.view-all-link { font-size: 13px; font-weight: 500; color: var(--gold); text-decoration: none; letter-spacing: 1px; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }

.listing-card {
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.listing-card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0,0,0,0.1); }
.listing-img { height: 230px; position: relative; overflow: hidden; background: var(--navy); }
.listing-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,20,35,0.55) 0%, transparent 55%);
  pointer-events: none; z-index: 1;
}
.listing-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.listing-card:hover .listing-img img { transform: scale(1.06); }
.listing-status, .listing-price-tag { z-index: 2; position: absolute; }
.listing-status {
  top: 16px; left: 16px;
  background: var(--navy);
  color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 14px;
}
.listing-status.auction { background: var(--gold); }
.listing-status.reduced { background: #c94c4c; }
.listing-price-tag {
  bottom: 16px; right: 16px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--font-serif); font-size: 20px; font-weight: 500;
  padding: 8px 16px;
}
.listing-body { padding: 28px; }
.listing-address { font-family: var(--font-serif); font-size: 20px; font-weight: 500; color: var(--navy); margin-bottom: 6px; line-height: 1.2; }
.listing-suburb { font-size: 13px; color: var(--text-light); letter-spacing: 1px; margin-bottom: 20px; }
.listing-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 16px; }
.listing-features { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 16px; margin-bottom: 16px; }
.feat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-mid); }
.listing-cta {
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  border-top: 1px solid var(--border); padding-top: 16px;
  transition: gap 0.2s;
}
.listing-card:hover .listing-cta { gap: 16px; }

/* ─────────────────────────────────────────────
   PAST SALES
───────────────────────────────────────────── */
.sales-section { background: var(--navy); padding: 100px 0; }
.sales-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; margin-top: 56px; }
.sale-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 36px;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 20px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}
.sale-row:hover { background: rgba(184,145,42,0.08); border-color: rgba(184,145,42,0.2); }
.sale-address { font-family: var(--font-serif); font-size: 18px; color: var(--white); margin-bottom: 6px; }
.sale-suburb-line { font-size: 12px; color: rgba(255,255,255,0.35); letter-spacing: 1px; margin-bottom: 8px; }
.sale-meta { display: flex; gap: 12px; flex-wrap: wrap; }
.sale-tag { font-size: 11px; letter-spacing: 1px; color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.05); padding: 4px 10px; }
.sale-price { font-family: var(--font-serif); font-size: 26px; font-weight: 400; color: var(--gold); text-align: right; white-space: nowrap; }
.sale-date { font-size: 12px; color: rgba(255,255,255,0.3); text-align: right; margin-top: 4px; }
.sales-total-banner {
  background: var(--gold); margin-top: 2px; padding: 32px 36px;
  display: flex; justify-content: space-between; align-items: center;
}
.total-label { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(0,0,0,0.6); }
.total-val { font-family: var(--font-serif); font-size: 48px; font-weight: 500; color: var(--navy); }

/* ─────────────────────────────────────────────
   SUBURB GUIDE
───────────────────────────────────────────── */
.suburb-section { background: var(--white); }
.suburb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.suburb-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 40px; }
.sub-stat { background: var(--cream); padding: 32px; border-left: 3px solid var(--gold); }
.sub-stat-val { font-family: var(--font-serif); font-size: 36px; font-weight: 400; color: var(--navy); margin-bottom: 6px; }
.sub-stat-label { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-light); }
.suburb-text p { font-size: 15px; line-height: 1.8; color: var(--text-mid); margin-bottom: 16px; }
.suburb-highlights h4 { font-family: var(--font-serif); font-size: 20px; color: var(--navy); margin-bottom: 16px; }
.highlight-list { display: flex; flex-direction: column; gap: 10px; }
.highlight-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--text-mid); line-height: 1.5; }
.highlight-list li::before { content: '→'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ─────────────────────────────────────────────
   REVIEWS
───────────────────────────────────────────── */
.reviews-section { background: var(--cream); }
.reviews-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 56px; flex-wrap: wrap; gap: 24px; }
.overall-rating { display: flex; align-items: center; gap: 20px; }
.rating-big { font-family: var(--font-serif); font-size: 64px; font-weight: 400; color: var(--navy); line-height: 1; }
.stars-row { color: #f59e0b; font-size: 22px; letter-spacing: 2px; }
.rating-count { font-size: 13px; color: var(--text-light); margin-top: 4px; }
.rating-sources { display: flex; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.source-badge { font-size: 10px; font-weight: 600; letter-spacing: 1px; background: var(--navy); color: var(--white); padding: 4px 10px; text-transform: uppercase; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.review-card {
  background: var(--white); padding: 36px;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.review-card:hover { border-bottom-color: var(--gold); transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.06); }
.review-stars { color: #f59e0b; font-size: 16px; margin-bottom: 16px; }
.review-text { font-size: 14px; line-height: 1.75; color: var(--text-mid); margin-bottom: 24px; font-style: italic; }
.review-author { display: flex; justify-content: space-between; align-items: center; }
.author-name { font-weight: 600; font-size: 14px; color: var(--navy); }
.author-suburb { font-size: 12px; color: var(--text-light); }
.review-source { font-size: 11px; color: var(--gold); letter-spacing: 1px; font-weight: 500; }
.review-date { font-size: 11px; color: var(--text-light); margin-top: 8px; }

/* ─────────────────────────────────────────────
   APPRAISAL / CTA SECTION
───────────────────────────────────────────── */
.appraisal-section {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.appraisal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.appraisal-left p { font-size: 16px; color: rgba(255,255,255,0.6); line-height: 1.8; margin-bottom: 32px; }
.appraisal-points { display: flex; flex-direction: column; gap: 16px; }
.ap-point { display: flex; align-items: center; gap: 14px; font-size: 15px; color: rgba(255,255,255,0.8); }
.ap-point::before {
  content: '✓';
  width: 24px; height: 24px;
  background: var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--white);
  flex-shrink: 0;
}
.appraisal-form { background: var(--white); padding: 48px; }
.form-title { font-family: var(--font-serif); font-size: 26px; color: var(--navy); margin-bottom: 6px; }
.form-sub { font-size: 13px; color: var(--text-light); margin-bottom: 32px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border: 1px solid var(--border); outline: none;
  font-size: 14px; color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, background 0.2s;
  font-family: var(--font-sans);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.submit-btn {
  width: 100%; background: var(--navy); color: var(--white);
  border: none; padding: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.submit-btn:hover { background: var(--gold); }
.form-disclaimer { font-size: 11px; color: var(--text-light); text-align: center; margin-top: 16px; }

/* ─────────────────────────────────────────────
   AI CHAT WIDGET
───────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 28px; right: 28px; z-index: 999; }
.chat-bubble {
  width: 60px; height: 60px;
  background: var(--navy); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(13,27,42,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 2px solid var(--gold);
  font-size: 22px;
  position: relative;
}
.chat-bubble:hover { transform: scale(1.08); box-shadow: 0 12px 40px rgba(13,27,42,0.4); }
.chat-badge {
  position: absolute; top: -4px; right: -4px;
  background: #ef4444; color: var(--white);
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.chat-panel {
  position: absolute; bottom: 76px; right: 0;
  width: 360px; background: var(--white);
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-panel.open { display: flex; }
.chat-header { background: var(--navy); padding: 20px 24px; display: flex; align-items: center; gap: 14px; }
.chat-avatar { width: 42px; height: 42px; background: var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; color: var(--white); flex-shrink: 0; }
.chat-agent-name { font-weight: 600; color: var(--white); font-size: 14px; }
.chat-status { font-size: 11px; color: rgba(255,255,255,0.5); display: flex; align-items: center; gap: 6px; }
.online-dot { width: 7px; height: 7px; background: #34d399; border-radius: 50%; }
.chat-close { cursor: pointer; color: rgba(255,255,255,0.5); font-size: 18px; margin-left: auto; background: none; border: none; }
.chat-messages { height: 280px; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; background: #f8f9fa; }
.msg { max-width: 85%; padding: 12px 16px; font-size: 13px; line-height: 1.5; }
.msg.agent { background: var(--navy); color: var(--white); align-self: flex-start; }
.msg.user { background: var(--gold); color: var(--white); align-self: flex-end; }
.chat-suggestions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--white); }
.suggestion { font-size: 11px; border: 1px solid var(--border); padding: 6px 12px; cursor: pointer; color: var(--text-mid); transition: all 0.2s; border-radius: 20px; background: none; }
.suggestion:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.chat-input-row { display: flex; border-top: 1px solid var(--border); }
.chat-input { flex: 1; padding: 14px 16px; border: none; outline: none; font-family: var(--font-sans); font-size: 13px; color: var(--text); }
.chat-send { background: var(--gold); border: none; padding: 14px 20px; color: var(--white); cursor: pointer; font-size: 16px; transition: background 0.2s; }
.chat-send:hover { background: var(--gold-light); }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
.site-footer { background: #070e16; padding: 80px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; padding-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.07); margin-bottom: 40px; }
.footer-logo { font-family: var(--font-serif); font-size: 24px; color: var(--white); margin-bottom: 6px; display: block; }
.footer-tagline { font-size: 13px; color: rgba(255,255,255,0.35); line-height: 1.7; max-width: 260px; margin-bottom: 28px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; text-decoration: none; transition: color 0.2s; }
.footer-contact-item:hover { color: var(--gold); }
.footer-col h4 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 20px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.2); }
.footer-cert { display: flex; gap: 12px; flex-wrap: wrap; }
.cert-badge { font-size: 10px; font-weight: 600; letter-spacing: 1px; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.3); padding: 5px 12px; text-transform: uppercase; }

/* ─────────────────────────────────────────────
   WORDPRESS DEFAULT ALIGNMENT & BLOCKS
───────────────────────────────────────────── */
.wp-block-image img { max-width: 100%; height: auto; }
.alignleft { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes pulse    { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-section { grid-template-columns: 1fr; min-height: auto; }
  .hero-right { display: none; }
  .hero-left { padding: 120px 40px 80px; }
  .stats-inner { grid-template-columns: repeat(3, 1fr); }
  .about-grid, .suburb-grid, .appraisal-grid { grid-template-columns: 1fr; gap: 48px; }
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
  .sales-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-accent-box { right: 0; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 70px 0; }
  .nav-inner { padding: 16px 20px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px; border-top: 1px solid var(--border); gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-left { padding: 100px 20px 60px; }
  .hero-name { font-size: 48px; }
  .hero-ctas { flex-direction: column; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .listings-grid, .reviews-grid { grid-template-columns: 1fr; }
  .sales-total-banner { flex-direction: column; gap: 12px; text-align: center; }
  .suburb-stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .appraisal-form { padding: 32px 20px; }
  .chat-panel { width: 300px; right: -10px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .stat-block { padding: 28px 20px; }
  .stat-val { font-size: 36px; }
  .sales-grid { grid-template-columns: 1fr; }
  .suburb-stats-grid { grid-template-columns: 1fr; }
}
