/* Angus Gorrie — Eastern Beaches
   Auction-bill Clarendon (Besley) + Familjen Grotesk.
   Neutral grey/white monochrome; all warmth lives in the photography. */

:root {
  color-scheme: light;
  --ink: #26282b;
  --ink-soft: #55585c;
  --paper: #f8f8f7;
  --card: #ffffff;
  --line: #e3e3e1;
  --euca: #3d4045;
  --euca-bright: #2b2e32;
  --euca-tint: #ededec;
  --tint: #efefee;
  --radius: 10px;
  --shadow-hover: 0 14px 34px rgba(38, 40, 43, 0.13);
  --font-display: "Besley", "Rockwell", Georgia, serif;
  --font-body: "Familjen Grotesk", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 16.5px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 640; line-height: 1.1; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.5vw, 4.3rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 0.5em; }
h1 em, h2 em { font-style: italic; font-weight: 600; }

/* Auction-bill slab rule under section headings */
.section h2::after {
  content: "";
  display: block;
  width: 58px; height: 5px;
  background: var(--euca-bright);
  margin-top: 0.45em;
}

.standfirst { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2.6em; font-size: 1.05rem; }
.muted { color: var(--ink-soft); }
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--euca-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 248, 247, 0.93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 32px; height: 68px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  color: var(--ink); text-decoration: none;
  margin-right: auto; white-space: nowrap;
}
.site-nav { display: flex; gap: 24px; }
.site-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 0.94rem; font-weight: 500;
}
.site-nav a:hover { color: var(--euca); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px;
  border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.98rem;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: var(--euca-bright); color: #fff; }
.btn-solid:hover { background: var(--euca); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.85); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.header-cta { padding: 9px 20px; font-size: 0.9rem; }

/* Hero */
.hero { position: relative; min-height: min(76vh, 660px); display: flex; align-items: flex-end; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(16, 24, 20, 0.38) 0%, rgba(16, 24, 20, 0.08) 34%, rgba(16, 24, 20, 0.52) 62%, rgba(16, 24, 20, 0.86) 100%),
    radial-gradient(120% 90% at 18% 88%, rgba(16, 24, 20, 0.52) 0%, rgba(16, 24, 20, 0) 58%);
}
.hero-content {
  position: relative; color: #fff; width: 100%;
  padding-bottom: 84px; padding-top: 160px;
  text-shadow: 0 1px 3px rgba(10, 16, 13, 0.55), 0 6px 28px rgba(10, 16, 13, 0.45);
}
.hero-content h1 { font-size: clamp(3rem, 7.5vw, 5.4rem); }
.hero-title {
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  font-weight: 500; line-height: 1.25;
  color: rgba(255, 255, 255, 0.97);
  margin-top: 0.45em;
}
.hero-title::after { content: ""; display: block; width: 58px; height: 4px; background: #fff; opacity: 0.9; margin-top: 24px; }
.hero-actions { display: flex; gap: 14px; margin-top: 2em; flex-wrap: wrap; text-shadow: none; }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.stat-label { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); max-width: 210px; }

/* About */
.about-grid { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.about-photo img { width: 100%; border-radius: var(--radius); display: block; }
.about-text p { max-width: 65ch; text-wrap: pretty; }
.about-text p + p { margin-top: 1em; }
.awards { margin-top: 1.8em; border-top: 1px solid var(--line); padding-top: 1.2em; }
.awards summary { cursor: pointer; font-weight: 600; font-size: 0.98rem; color: var(--euca); }
.awards summary:hover { text-decoration: underline; }
.awards ul { margin: 0.9em 0 0 1.2em; }
.awards li { margin-bottom: 0.5em; font-size: 0.95rem; }

/* Listing cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--ink);
  border: 1px solid var(--line);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card:hover .card-address { color: var(--euca); }
.card-img { aspect-ratio: 4 / 2.8; width: 100%; object-fit: cover; display: block; background: var(--tint); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-weight: 600; font-size: 0.98rem; }
.card-address { font-family: var(--font-display); font-size: 1.16rem; font-weight: 640; line-height: 1.25; transition: color 0.15s ease; }
.card-suburb { color: var(--ink-soft); font-size: 0.92rem; }
.card-features { display: flex; gap: 14px; justify-content: space-between; color: var(--ink-soft); font-size: 0.9rem; margin-top: auto; padding-top: 10px; }
.card-note { color: var(--euca); font-weight: 600; }
.badge {
  align-self: flex-start; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff;
  padding: 3px 10px; border-radius: 4px; margin-bottom: 4px;
}
.listings-note { margin-top: 2em; color: var(--ink-soft); font-size: 0.95rem; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 32px;
  border-top: 5px solid var(--euca-bright);
}
.quote blockquote {
  font-family: var(--font-display); font-style: italic;
  font-size: 1.1rem; line-height: 1.5; font-weight: 480;
  text-wrap: pretty;
}
.quote cite { display: block; margin-top: 1.1em; font-style: normal; font-weight: 600; font-size: 0.92rem; color: var(--euca); }
.quote:first-child { grid-column: 1 / -1; }
.quote:first-child blockquote { font-size: 1.32rem; max-width: 56ch; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.member { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.member h3 { font-size: 1.14rem; margin-bottom: 2px; }
.member p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 10px; }
.member a { color: var(--euca); font-size: 0.85rem; text-decoration: none; word-break: break-all; display: inline-block; padding: 4px 0; }
.member a:hover { text-decoration: underline; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact-grid > div:first-child p { max-width: 44ch; color: var(--ink-soft); }
.contact-details { display: flex; flex-direction: column; gap: 14px; }
.contact-line {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 22px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.contact-line span {
  font-size: 0.76rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 2px;
}
a.contact-line:hover { border-color: var(--euca-bright); }
.socials { display: flex; gap: 18px; margin-top: 6px; }
.socials a { color: var(--euca); font-weight: 600; font-size: 0.92rem; text-decoration: none; padding: 6px 0; }
.socials a:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink-soft); }
.site-footer a { color: inherit; }

/* Reveal — JS applies .pre only below the fold and only when motion is allowed,
   so content is never gated on the animation firing. */
.pre { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1); }

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

/* Responsive */
@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 380px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-grid { gap: 20px; }
  .hero-content { padding-bottom: 56px; }
}
