:root{
  --navy:#0B1F3A;
  --char:#2E2E2E;
  --gold:#A88A4B;
  --off:#F6F4F1;
  --max:1100px;
}

/* Base */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--char);
  background:var(--off);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.container{max-width:var(--max);margin:0 auto;padding:0 20px}
.muted{color:#5b5b5b}
.fineprint{font-size:.85rem;color:#6a6a6a;margin-top:12px}

/* Buttons */
.btn-primary,.btn-secondary,.btn-outline{
  display:inline-flex;align-items:center;justify-content:center;
  padding:10px 14px;border-radius:10px;font-weight:600;white-space:nowrap;
}
.btn-primary{background:var(--navy);color:#fff}
.btn-secondary{background:#fff;border:1px solid rgba(0,0,0,.12)}
.btn-outline{border:1px solid rgba(0,0,0,.18);background:transparent}
.btn-link{padding:10px 0;color:var(--navy);font-weight:600}

/* Nav */
.nav{
  position:sticky;top:0;z-index:10;
  background:rgba(246,244,241,.92);
  backdrop-filter:blur(8px);
  border-bottom:1px solid rgba(0,0,0,.06);
}
.nav-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:14px 0;gap:16px;
}
.brand{display:flex;align-items:center}
.logo{height:58px;width:auto}
.nav-links{display:flex;align-items:center;gap:18px}

/* Hamburger */
.nav-toggle{
  display:none;background:transparent;border:0;cursor:pointer;
  padding:10px;border-radius:10px;
}
.nav-toggle span{
  display:block;width:22px;height:2px;background:var(--navy);
  margin:5px 0;border-radius:2px;
  transition:transform .2s ease,opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-toggle.is-open span:nth-child(2){opacity:0}
.nav-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile menu (animated) */
.mobile-menu{
  border-top:1px solid rgba(0,0,0,.06);
  background:rgba(246,244,241,.96);
  backdrop-filter:blur(8px);

  max-height:0;
  opacity:0;
  overflow:hidden;
  transform:translateY(-6px);
  transition:max-height .28s ease, opacity .22s ease, transform .22s ease;
  will-change:max-height, opacity, transform;
}
.mobile-menu.is-open{max-height:620px;opacity:1;transform:translateY(0)}
.mobile-menu-inner{display:grid;gap:14px;padding:14px 0}
.mobile-utility{display:flex;flex-direction:column;gap:8px}
.mobile-utility a{color:var(--navy);font-weight:700}
.mobile-links{display:grid;gap:10px}
.mobile-links a{padding:8px 0;border-bottom:1px solid rgba(0,0,0,.06)}
.mobile-ctas{display:flex;flex-direction:column;gap:10px}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  .mobile-menu,.nav-toggle span{transition:none}
}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(0,0,0,.06);
  min-height:560px; /* ensure some height even before content loads */
}
.hero-bg{
  position:absolute;inset:0;
  z-index:0;
  /* Keep your skyline file here (png/webp). Adjust opacities if needed. */
  background:
    linear-gradient(90deg, rgba(246,244,241,.78), rgba(246,244,241,.42)),
    url("/assets/img/lansing-skyline.png") center/cover no-repeat;
  filter:saturate(.95) contrast(1.02);
}

/* Layout tuned for cutout overlap */
.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  align-items:end;
  gap:30px;
  padding:60px 0 0;          /* no bottom padding so cutout can overlap */
  min-height:560px;          /* ensures space for the figure */
}
.hero-copy{
  padding-bottom:60px;       /* breathing room above overlap into next section */
}
.hero-copy h1{
  margin:0 0 12px;
  color:var(--navy);
  font-size:3rem;
  letter-spacing:-.02em;
}
.subheadline{
  margin:0 0 18px;
  font-size:1.15rem;
  line-height:1.45;
}
.cta{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 10px}
.trust-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}
.trust-pill{
  border:1px solid rgba(0,0,0,.14);
  background:rgba(255,255,255,.55);
  padding:8px 10px;border-radius:999px;
  font-size:.9rem;
}

/* Foreground figure cutout (expects /assets/img/joel-cutout.webp in HTML) */
.hero-figure{
  position:relative;
  height:560px;
  overflow:visible;
}
.hero-figure img{
  position:absolute;
  right:-10px;
  bottom:-70px;              /* overlap into next section */
  height:640px;
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 18px 40px rgba(0,0,0,.22));
  pointer-events:none;
}

/* Name tag over figure */
.hero-figure-tag{
  position:absolute;
  right:10px;
  bottom:18px;
  background:rgba(11,31,58,.72);
  color:#fff;
  border:1px solid rgba(255,255,255,.14);
  border-radius:14px;
  padding:10px 12px;
  backdrop-filter:blur(6px);
}
.hero-figure-tag .name{font-weight:800;letter-spacing:.2px}
.hero-figure-tag .role{opacity:.9;font-size:.92rem}

/* Sections */
.section{padding:64px 0}     /* extra vertical room because hero overlaps */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px;
}
.card h3{margin:0 0 6px;color:var(--navy)}

/* Listings */
.listing-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:14px}
.listing-card{
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  overflow:hidden;
}
.listing-img{height:160px;background:rgba(0,0,0,.06)}
.skeleton{position:relative}
.skeleton::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.45),transparent);
  transform:translateX(-100%);
  animation:shimmer 1.5s infinite;
}
@keyframes shimmer{to{transform:translateX(100%)}}
.listing-meta{padding:14px}
.listing-title{font-weight:800;color:var(--navy)}
.listing-sub{color:#5b5b5b;margin-top:4px}

/* Testimonials */
.testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.quote{
  background:rgba(255,255,255,.62);
  border:1px solid rgba(0,0,0,.08);
  border-radius:16px;
  padding:18px;
}
.quote p{margin:0 0 10px}
.who{font-weight:700;color:#4b4b4b}

/* Footer */
.footer{border-top:1px solid rgba(0,0,0,.06)}
.footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}

/* Reveal animation */
.reveal{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .reveal{
    opacity:0;
    transform:translateY(10px);
    transition:opacity .55s ease, transform .55s ease;
  }
  .reveal.is-visible{opacity:1;transform:none}
}

/* Responsive */
@media (max-width: 920px){
  .nav-links{display:none}
  .nav-toggle{display:inline-flex;flex-direction:column}

  .hero-grid{
    grid-template-columns:1fr;
    min-height:auto;
    padding:44px 0 0;
  }
  .hero-copy{padding-bottom:18px}
  .hero-figure{height:420px}
  .hero-figure img{right:0;bottom:-20px;height:460px}

  .cards,.listing-grid,.testimonials,.footer-grid{grid-template-columns:1fr}
}