/* ─────────────────────────────────────────────
   AYRE REAL ESTATE — Design System
   ───────────────────────────────────────────── */

:root {
  --ink:     #0e1117;
  --ink-80:  rgba(14,17,23,.80);
  --gold:    #b8935a;
  --cream:   #f5f2ed;
  --smoke:   #f0ede8;
  --muted:   #767676;
  --border:  #e2ddd7;
  --white:   #ffffff;
  --radius:  4px;
  --radius-lg: 8px;
  --shadow:  0 2px 20px rgba(14,17,23,.08);
  --shadow-hover: 0 8px 40px rgba(14,17,23,.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5 {
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.1;
  letter-spacing: -.01em;
  font-weight: 600;
}

a { color: inherit; }
img { display: block; max-width: 100%; }


/* ══ NAVBAR ══════════════════════════════════ */

.ayre-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background .35s, box-shadow .35s;
  padding: 0;
}

.ayre-nav.scrolled {
  background: rgba(14,17,23,.97);
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}

.ayre-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color .2s;
}

.nav-links a:hover { color: var(--white); }

.nav-links .nav-cta {
  color: var(--gold);
  border: 1px solid rgba(184,147,90,.4);
  padding: 8px 20px;
  border-radius: 2px;
  transition: background .2s, color .2s;
}
.nav-links .nav-cta:hover {
  background: var(--gold);
  color: var(--white);
}


/* ══ HERO ════════════════════════════════════ */

.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/static/images/sydney-apartments-hero.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14,17,23,.85) 0%,
    rgba(14,17,23,.45) 45%,
    rgba(14,17,23,.20) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero-eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-headline {
  font-size: clamp(3.2rem, 7vw, 6rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 20px;
  max-width: 740px;
}

.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary-ayre {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background .25s, transform .25s;
}
.btn-primary-ayre:hover {
  background: #a07a44;
  color: var(--white);
  transform: translateY(-2px);
}

.btn-ghost-ayre {
  display: inline-block;
  padding: 14px 36px;
  background: transparent;
  color: var(--white);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 2px;
  transition: border-color .25s, background .25s;
}
.btn-ghost-ayre:hover {
  border-color: var(--white);
  background: rgba(255,255,255,.08);
  color: var(--white);
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.5);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollpulse 2s ease infinite;
}

@keyframes scrollpulse {
  0%,100% { opacity: .5; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(.6); transform-origin: top; }
}


/* ══ SECTION SHELL ═══════════════════════════ */

.sec {
  padding: 96px 0;
}

.sec-sm { padding: 64px 0; }

.sec-dark {
  background: var(--ink);
  color: var(--white);
}

.sec-cream { background: var(--cream); }

.sec-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.sec-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 0;
}

.sec-title-white { color: var(--white); }

.divider {
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin: 20px 0 0;
}


/* ══ PROPERTY TABS ═══════════════════════════ */

.tab-strip {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.tab-strip button {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 12px 28px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color .2s, border-color .2s;
}

.tab-strip button:hover { color: var(--ink); }

.tab-strip button.active {
  color: var(--ink);
  border-bottom-color: var(--gold);
}


/* ══ PROPERTY CARD ═══════════════════════════ */

.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.prop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1),
              box-shadow .35s cubic-bezier(.4,0,.2,1);
}

.prop-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.prop-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--smoke);
}

.prop-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.prop-card:hover .prop-img img {
  transform: scale(1.07);
}

.prop-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 2px;
}

.badge-sale   { background: var(--gold);  color: var(--white); }
.badge-rent   { background: #2563eb;      color: var(--white); }
.badge-sold   { background: var(--ink);   color: var(--white); }
.badge-leased { background: #6b7280;      color: var(--white); }

.prop-img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--smoke);
  display: flex;
  align-items: center;
  justify-content: center;
}

.prop-img-placeholder svg {
  width: 40px;
  height: 40px;
  color: #c0bab2;
}

.prop-hover-cta {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,17,23,0);
  transition: background .3s;
  text-decoration: none;
}

.prop-card:hover .prop-hover-cta {
  background: rgba(14,17,23,.38);
}

.prop-hover-cta span {
  background: var(--white);
  color: var(--ink);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 11px 26px;
  border-radius: 2px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s, transform .3s;
}

.prop-card:hover .prop-hover-cta span {
  opacity: 1;
  transform: translateY(0);
}

.prop-body {
  padding: 20px 22px 22px;
}

.prop-location {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.prop-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 14px;
  line-height: 1.25;
}

.prop-features {
  display: flex;
  gap: 18px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}

.prop-feat {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

.prop-feat svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.prop-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.prop-price-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}

.prop-price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.btn-enquire {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 9px 20px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  color: var(--ink);
  text-decoration: none;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.btn-enquire:hover {
  background: var(--ink);
  color: var(--white);
}

.tab-empty {
  grid-column: 1/-1;
  padding: 60px 0;
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
}


/* ══ TEAM ════════════════════════════════════ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 28px;
}

.team-card {
  text-align: center;
  padding: 40px 28px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow .3s, transform .3s;
}

.team-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.team-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin: 0 auto 20px;
  border: 2px solid var(--border);
}

.team-initials {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--smoke);
  border: 2px solid var(--border);
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--muted);
}

.team-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.team-role {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.team-bio {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
}


/* ══ CTA BAND ════════════════════════════════ */

.cta-band {
  background: var(--ink);
  padding: 80px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  color: var(--white);
  margin-bottom: 14px;
}

.cta-band p {
  color: rgba(255,255,255,.6);
  max-width: 440px;
  margin: 0 auto 40px;
  font-size: .95rem;
  line-height: 1.7;
}


/* ══ ARTICLES ════════════════════════════════ */

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 24px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  color: inherit;
}

.article-accent-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--gold) 100%);
}

.article-body { padding: 22px; }

.article-date {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.article-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-excerpt {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.6;
}


/* ══ FOOTER ══════════════════════════════════ */

.ayre-footer {
  background: #080b10;
  color: rgba(255,255,255,.45);
  padding: 36px 0;
  font-size: .82rem;
  text-align: center;
}

.ayre-footer a {
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .2s;
}

.ayre-footer a:hover { color: var(--gold); }

.footer-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 12px;
}

.footer-suburbs {
  margin-bottom: 20px;
  line-height: 2;
}


/* ══ DASHBOARD (unchanged) ═══════════════════ */

.dashboard-panel .chart-wrap      { position:relative;width:100%; }
.dashboard-panel .chart-wrap-sm   { height:220px; }
.dashboard-panel .chart-wrap-md   { height:300px; }
.dashboard-panel .dashboard-kicker{ font-size:.78rem;letter-spacing:.08em;text-transform:uppercase;color:#6c757d;font-weight:700; }
.dashboard-panel .dashboard-hero  { background:linear-gradient(145deg,#fff,#f2f5f8); }
.dashboard-panel .kpi-card        { background:#fff;border:1px solid #e9ecef;border-radius:12px;padding:1rem;height:100%; }
.dashboard-panel .kpi-main        { background:linear-gradient(160deg,#11141b,#2c3442);color:#fff;border-color:transparent; }
.dashboard-panel .kpi-label       { margin:0;font-size:.78rem;text-transform:uppercase;letter-spacing:.06em;color:#6c757d;font-weight:700; }
.dashboard-panel .kpi-main .kpi-label,
.dashboard-panel .kpi-main .kpi-meta { color:rgba(255,255,255,.8); }
.dashboard-panel .kpi-value       { margin:.45rem 0 .25rem;font-size:1.35rem;font-weight:700; }
.dashboard-panel .kpi-meta        { margin:0;font-size:.86rem;color:#6c757d; }
.dashboard-panel .mini-stat       { background:#f8f9fa;border:1px solid #e9ecef;border-radius:10px;padding:.5rem .7rem;display:flex;justify-content:space-between;align-items:center; }
.dashboard-panel .mini-label      { color:#6c757d;font-size:.82rem; }
.dashboard-panel .mini-value      { font-weight:700; }
.dashboard-panel canvas           { display:block;width:100%!important;height:100%!important; }

@media(max-width:768px){
  .dashboard-panel .chart-wrap-sm { height:180px; }
  .dashboard-panel .chart-wrap-md { height:220px; }
  .sec { padding:64px 0; }
  .hero { min-height:100svh; padding-bottom:60px; }
  .nav-links { display:none; }
  .prop-grid { grid-template-columns:1fr; }
}
