/* ============================================================
   Lotus Capital Partners — Header (Goldman-Sachs-style mega menu)
   ============================================================ */
:root {
  --lotus-blue: #3A5A9C;        /* exact blue sampled from the Lotus logo */
  --lotus-blue-dark: #314e87;
  --ink: #111317;
  --ink-soft: #4a4f57;
  --line: #e3e5e9;
  --paper: #ffffff;
  --paper-tint: #f4f5f7;
  --bar: rgba(0,0,0,.95);   /* the black hover/active bar (matches GS) */
  --header-h: 64px;         /* GS app-bar height */
  --maxw: 1440px;          /* GS container width */
  --serif: "Goldman Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;  /* display headlines — now Goldman Sans */
  --sans: "Goldman Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;   /* body / UI — Goldman Sans (GS official) */
  --ease: cubic-bezier(0.32, 0.94, 0.60, 1.00);                  /* GS transition curve */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------------- Header bar ---------------- */
.site-header {
  position: relative;   /* not sticky — scrolls away with the page */
  z-index: 1000;
  background: var(--lotus-blue);
  color: #fff;
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: var(--header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Brand */
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img {
  height: 43px;   /* +20% again — header height unchanged at var(--header-h) */
  width: auto;
  display: block;
}

/* Nav groups */
.nav-primary { display: flex; align-items: center; gap: 4px; }
.nav-utility {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

/* Nav links (shared) — GS: 400 16px/20px, letter-spacing 0, padding 0 12px */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: var(--header-h);
  padding: 0 12px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;   /* white on the blue header (GS uses dark on white; ours is a blue bar) */
  white-space: nowrap;
}
.nav-link--plain { font-size: 16px; font-weight: 400; }

/* Right-side utility links: GS secondary style — text dims to gray with a
   thin underline directly beneath the text, no bottom bar, no animation. */
.nav-link--plain::after { display: none; }
.nav-link--plain:hover {
  color: #9aa3b4;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* The black hover/active bar — flush to header bottom, centered, fades in (GS spec) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: calc(100% - 12px * 2 + 5px);  /* GS inset, widened by 5px */
  height: 3px;
  background: var(--bar);
  opacity: 0;
  transition: opacity 250ms var(--ease);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.is-active::after { opacity: 1; }

/* Icon + search button */
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  color: #fff;
  transition: background .2s ease;
}
.icon-btn:hover { background: rgba(255,255,255,.14); }

/* Contact CTA (boxed, like "Client Login") */
.header-cta {
  margin-left: 8px;
  padding: 11px 22px;
  border: 1px solid rgba(255,255,255,.85);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
  color: #fff;
  transition: background .22s ease, color .22s ease;
}
.header-cta:hover { background: #fff; color: var(--lotus-blue); }

/* ---------------- Mega menu ---------------- */
.mega-wrap {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid rgba(0,0,0,.16);   /* GS neutral-minimal hairline */
  box-shadow: 0 26px 40px -24px rgba(15,23,42,.28);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transition: max-height .34s cubic-bezier(.22,.61,.36,1),
              opacity .22s ease;
}
.mega-wrap.open { opacity: 1; pointer-events: auto; }

.mega { display: none; }
.mega.show { display: block; }

.mega-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 52px 28px 56px;
  display: grid;
  grid-template-columns: 1.05fr 1.1fr .95fr;
  gap: 56px;
  align-items: start;
}

/* staggered reveal of mega content */
.mega.show .mega-intro,
.mega.show .mega-links,
.mega.show .mega-feature {
  animation: megaIn .42s cubic-bezier(.22,.61,.36,1) both;
}
.mega.show .mega-links   { animation-delay: .05s; }
.mega.show .mega-feature { animation-delay: .1s; }
@keyframes megaIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Intro column (left CTA) */
.mega-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 40px;
  line-height: 1.04;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.mega-blurb {
  margin: 0 0 26px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.mega-btn {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid var(--lotus-blue);
  font-size: 14px;
  font-weight: 600;
  color: var(--lotus-blue);
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.mega-btn:hover { background: var(--lotus-blue); color: #fff; }

/* Middle column (links) */
.mega-label {
  margin: 6px 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9aa0aa;
}
.mega-links ul { display: grid; gap: 2px; }
.mega-links a {
  display: inline-block;
  padding: 8px 0;
  font-family: "Goldman Sans", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.8);
  border-bottom: 1px solid transparent;
  transition: color .18s ease;
}
.mega-links a:hover { color: var(--lotus-blue); }

/* Right column (feature CTA box) */
.mega-feature {
  display: block;
  height: 100%;
  padding: 30px 28px;
  background: var(--paper-tint);
  transition: background .22s ease;
}
.mega-feature:hover { background: #ecedf1; }
.mega-feature-label {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  display: block;
  margin-bottom: 12px;
}
.mega-feature p {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}
/* Featured Deals card — 3x3 property thumb grid */
.mega-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 2px 0 16px;
}
/* M&A panel: give the feature card more width (links column needs less) */
.mega[data-panel="ma"] .mega-grid { grid-template-columns: 1.05fr .8fr 1.35fr; }
.mega-feature-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.mega-feature:hover .mega-feature-grid img { filter: brightness(1.05); }
/* one-line button under the thumb grid (span — the whole card is already the link) */
.mega-feature-btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--lotus-blue);
  font-size: 14px;
  font-weight: 600;
  color: var(--lotus-blue);
  white-space: nowrap;
  transition: background .22s ease, color .22s ease;
}
.mega-feature-btn .mega-arrow { font-size: 15px; color: inherit; margin-left: 6px; }
.mega-feature:hover .mega-feature-btn { background: var(--lotus-blue); color: #fff; }
.mega-arrow {
  font-size: 22px;
  color: var(--ink);
  transition: transform .24s ease;
  display: inline-block;
}
.mega-feature:hover .mega-arrow { transform: translateX(8px); }

/* ---------------- Search drawer ---------------- */
.search-drawer {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: #fff;
  border-top: 0 solid rgba(0,0,0,.16);  /* no border/shadow until open */
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.search-drawer.open {
  max-height: 120px;
  border-top-width: 1px;
  box-shadow: 0 26px 40px -24px rgba(15,23,42,.28);
}
.search-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
}
.search-inner input {
  flex: 1;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 2px;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
  background: transparent;
}
.search-inner input:focus { outline: none; border-bottom-color: var(--lotus-blue); }
.search-close { font-size: 30px; line-height: 1; color: var(--ink-soft); padding: 0 6px; }

/* ---------------- Backdrop ---------------- */
.nav-backdrop {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(17,19,23,.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 900;
}
.nav-backdrop.show { opacity: 1; pointer-events: auto; }

/* ---------------- Hamburger / Mobile ---------------- */
.hamburger { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; padding: 0 11px; }
.hamburger span { height: 2px; background: #fff; border-radius: 2px; transition: transform .28s ease, opacity .2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  bottom: 0;
  background: #fff;
  z-index: 950;
  padding: 14px 22px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .34s cubic-bezier(.22,.61,.36,1);
}
.mobile-menu.open { transform: translateX(0); }
.m-row {
  display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.m-top {
  flex: 1; display: flex; align-items: center;
  padding: 18px 2px;
  font-size: 19px; font-weight: 600;
  color: var(--ink);
}
.m-top:active { color: var(--lotus-blue); }
.m-trigger {
  flex: none; width: 54px;
  display: flex; justify-content: center; align-items: center;
  padding: 0; border: 0; background: none;
  color: var(--ink);
}
.m-trigger span { font-size: 24px; font-weight: 400; color: var(--ink-soft); transition: transform .25s ease; }
.m-trigger.open span { transform: rotate(45deg); }
.m-panel { display: none; padding: 6px 2px 16px; }
.m-panel.open { display: block; }
.m-panel a { display: block; padding: 10px 12px; font-size: 15px; color: var(--ink-soft); }
.m-panel a:hover { color: var(--lotus-blue); }
.m-flat { margin-top: 22px; display: grid; gap: 4px; }
.m-flat a { padding: 13px 2px; font-size: 16px; line-height: 24px; font-weight: 400; color: rgba(0, 0, 0, 0.8); border-bottom: 1px solid var(--line); }
.m-cta {
  display: block; text-align: center; margin-top: 26px;
  padding: 15px; background: var(--lotus-blue); color: #fff;
  font-weight: 600; letter-spacing: .01em;
}

/* ================= HERO (GS bottom-left layout) ================= */
.hero {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  overflow: hidden;
  background: #0a1626;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 38%;
  transform: scale(1);
  animation: heroZoom 22s ease-out forwards;   /* slow continuous zoom-in */
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media { animation: none; }
}

/* hero background video */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

/* light, even 5% black overlay across the whole video — lifts text legibility without darkening the scene */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.05);
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;       /* bottom */
  justify-content: flex-start; /* left  */
  padding: 0 40px 84px;
}
.hero-content { max-width: 900px; color: #fff; }

.hero-title {
  font-family: "GS Serif", Times, "Times New Roman", serif;
  font-style: normal;
  font-weight: 300;
  font-size: 80px;
  line-height: 80px;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 22px;
  text-wrap: pretty;   /* <br> + content width keep it at 2 lines */
  text-shadow: 0 1px 28px rgba(5,12,22,.5), 0 1px 4px rgba(5,12,22,.42);
}
@media (max-width: 760px) {
  .hero-title { font-size: 46px; line-height: 46px; }   /* scale down so it doesn't overflow on phones */
}
.hero-title em { font-style: italic; font-weight: 300; }

.hero-desc {
  font-family: var(--sans);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.6;
  color: rgba(255,255,255,.9);
  max-width: 54ch;
  margin: 0 0 32px;
  text-shadow: 0 1px 18px rgba(5,12,22,.55), 0 1px 3px rgba(5,12,22,.45);
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border: 1px solid #fff;
  background: #fff;
  font-size: 16px;
  color: var(--lotus-blue);
  transition: background .24s var(--ease), color .24s var(--ease), border-color .24s var(--ease);
}
.hero-cta:hover { background: var(--lotus-blue); border-color: var(--lotus-blue); color: #fff; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-cta--ghost { background: var(--lotus-blue); border-color: var(--lotus-blue); color: #fff; }
.hero-cta--ghost:hover { background: var(--lotus-blue-dark); border-color: var(--lotus-blue-dark); color: #fff; }
.hero-cta-arrow { transition: transform .24s var(--ease); }
.hero-cta:hover .hero-cta-arrow { transform: translateX(6px); }

/* staggered page-load reveal */
.hero-content > * { animation: heroIn .85s cubic-bezier(.22,.61,.36,1) both; }
.hero-title { animation-delay: .12s; }
.hero-desc  { animation-delay: .26s; }
.hero-cta   { animation-delay: .4s; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 700px) {
  .hero { min-height: 78vh; }
  .hero-inner { padding: 0 20px 52px; }
  .hero-title { margin-bottom: 16px; }
  .hero-desc { margin-bottom: 24px; }
}

/* ---------------- Page stub ---------------- */
.page-stub {
  min-height: 120vh;
  display: block;
  padding: 80px 40px;
  color: #aeb3bb;
  font-size: 14px;
}

/* ---------------- Responsive ---------------- */
/* md (1024–1279): keep the primary nav + mega + search; collapse the
   secondary utility text links into the hamburger menu (GS pattern). */
@media (max-width: 1279px) {
  .nav-utility .nav-link--plain { display: none; }
  .hamburger { display: flex; }
}
/* mobile (<1024): full hamburger nav */
@media (max-width: 1023px) {
  .nav-primary { display: none; }
  .header-cta { display: none; }
  .mega-wrap, .search-drawer { display: none; }
}
@media (max-width: 480px) {
  .header-inner { padding: 0 16px; gap: 12px; }
  .brand img { height: 34px; }
}
