/* =====================================================
   BG REALTY — PREMIUM LAYER
   Load AFTER css/style.css:
   <link rel="stylesheet" href="css/premium.css?v=1">
   ===================================================== */

:root {
  --gold-soft: #e3cb94;
  --ink: #090b0b;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Typography: tighter, calmer ---------- */
.hero h1 { letter-spacing: -.05em; line-height: .86; }
.hero-copy { font-weight: 400; color: #cfd6d3; line-height: 1.65; }
.statement p, .number-card p { line-height: 1.85; }
.eyebrow, .section-kicker { letter-spacing: .26em; font-weight: 500; }

/* Gold gradient on the single hero accent word only */
.hero h1 em {
  background: linear-gradient(100deg, #b8934f 0%, #f0dca6 45%, #c8a765 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  padding-right: .08em;
}

/* ---------- Navbar: transparent on top, solid glass on scroll ---------- */
.navbar {
  transition: height .4s var(--ease), background .4s ease, border-color .4s ease;
  background: linear-gradient(rgba(7,11,10,.75), transparent) !important;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  height: 68px;
  background: rgba(7, 11, 10, .88) !important;
  border-bottom-color: rgba(200, 167, 101, .16);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.brand span { transition: background .3s, color .3s; }
.brand:hover span { background: var(--gold); color: var(--ink); }
.navbar nav a:after { transition: width .45s var(--ease); }

/* ---------- Hero: one orchestrated entrance ---------- */
.hero-content > * { opacity: 0; transform: translateY(26px); animation: rise 1s var(--ease) forwards; }
.hero-content > :nth-child(1) { animation-delay: .75s; }
.hero-content > :nth-child(2) { animation-delay: .88s; }
.hero-content > :nth-child(3) { animation-delay: 1.02s; }
.hero-content > :nth-child(4) { animation-delay: 1.16s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-bg { will-change: transform; }
.scroll-cue span { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }

/* ---------- Marquee: seamless loop ---------- */
.marquee div { display: inline-block; padding-right: 0; will-change: transform; }
.marquee:hover div { animation-play-state: paused; }

/* ---------- Project cards: refined, smoother ---------- */
.home-project-grid .project-card {
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  transition: border-color .4s ease, transform .5s var(--ease), box-shadow .5s ease;
  will-change: transform;
}
.home-project-grid .project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(200,167,101,.25);
}
.home-project-grid .project-card .image img { transition: transform 1.1s var(--ease), filter .6s ease; }
.home-project-grid .project-card:hover .image img { transform: scale(1.06); }
.home-project-grid .project-info h3 { letter-spacing: -.015em; }

/* ---------- Buttons ---------- */
.button, .nav-cta { transition: background .35s ease, color .35s ease, transform .35s var(--ease), border-color .35s; }
.button-light:hover, .nav-cta:hover { transform: translateY(-2px); }
.button:active, .nav-cta:active { transform: translateY(0); }
.text-link, .arrow-link { transition: color .3s ease, gap .4s var(--ease); }
.text-link:hover, .arrow-link:hover { color: var(--gold-soft); }
.arrow-link:hover { gap: 22px; }

/* ---------- Numbers: quiet hover ---------- */
.number-card { transition: background .4s ease; }
.number-card:hover { background: #111a17 !important; }

/* ---------- Performance: skip rendering offscreen sections ---------- */
.numbers, .dark-cta, footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ---------- Mobile menu ---------- */
.menu-button { font-size: 22px; cursor: pointer; padding: 10px; line-height: 1; }
@media (max-width: 900px) {
  .navbar.open { background: #070b0a !important; }
  .navbar.open nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: fixed;
    inset: 68px 0 auto 0;
    padding: 24px 6% 34px;
    background: #070b0a;
    border-bottom: 1px solid rgba(200,167,101,.2);
    animation: rise .45s var(--ease);
  }
  .navbar.open nav a { font-size: 15px; padding: 16px 0; border-bottom: 1px solid rgba(200,167,101,.12); }
  .hero h1 { font-size: clamp(56px, 17vw, 72px); }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero-content > * { opacity: 1; transform: none; }
}