/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  padding: 0 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #fff;
  z-index: 30;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 28px;
}

.header-left a {
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.header-left a:hover {
  opacity: 0.7;
}

.dropdown-chevron {
  display: inline-block;
  transition: transform 0.2s ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1.8px solid #fff;
}

.brand-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-right .nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.2px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.header-right .nav-link:hover {
  opacity: 0.7;
}

.nav-btn-signup {
  background: #000;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.nav-btn-signup:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 35;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.25);
}

.menu-button i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, background 0.2s ease;
}

.menu-button i::before,
.menu-button i::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, top 0.25s ease;
}

.menu-button i::before {
  top: -6px;
}

.menu-button i::after {
  top: 6px;
}

.menu-button[aria-expanded="true"] i {
  background: transparent;
}

.menu-button[aria-expanded="true"] i::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-button[aria-expanded="true"] i::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 68px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  color: #1a1a1a;
  display: none;
  flex-direction: column;
  padding: 20px 24px 28px;
  gap: 4px;
  z-index: 40;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mobile-menu.open {
  display: flex;
  animation: mobileMenuSlideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mobileMenuSlideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu a:hover {
  color: #000;
  transform: translateX(3px);
}

.mobile-menu a:last-child {
  margin-top: 10px;
  border-bottom: none;
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 13px 24px;
  justify-content: center;
  text-align: center;
  font-weight: 600;
}

.mobile-menu a:last-child:hover {
  background: #222;
  color: #fff;
  transform: none;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: #6ea0d1;
  display: flex;
  flex-direction: column;
  isolation: isolate;
}

/* Sky Background Layer */
.hero-sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-sky img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Building Layer (rising from bottom right) */
.hero-building {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 68vw;
  max-width: 980px;
  height: 84vh;
  max-height: 860px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-building img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

/* Bottom White Gradient Shade / Divider */
.hero-shade {
  position: absolute;
  top: auto !important;
  bottom: 0 !important;
  left: 0;
  right: 0;
  width: 100%;
  height: 240px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.05) 20%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.5) 60%,
    rgba(255, 255, 255, 0.85) 80%,
    #ffffff 100%
  );
}

/* Hero Inner Content Container */
.hero-container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 56px 48px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Top Row: Heading on Left + Mortgage on Right */
.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

.hero-headline {
  margin: 0;
  font-size: clamp(60px, 9vw, 130px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.045em;
  color: #fff;
  display: flex;
  flex-direction: column;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.hero-headline .line-1,
.hero-headline .line-2 {
  display: block;
}

/* Lender / Mortgage Widget */
.lender-widget {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  margin-right: 24px;
  flex-shrink: 0;
}

.lender-avatars {
  display: flex;
  align-items: center;
}

.lender-avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  object-fit: cover;
  margin-left: -14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  background: #cbd5e1;
}

.lender-avatars img:first-child {
  margin-left: 0;
}

.lender-text {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
  max-width: 175px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Bottom Left: Sparkle + Subtitle + Catalog Button */
.hero-bottom-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: auto;
  padding-bottom: 24px;
  max-width: 320px;
  z-index: 3;
}

.sparkle-icon {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.15));
}

.discover-text {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.catalog-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #000;
  color: #fff;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.2px;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.catalog-btn .btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.catalog-btn:hover {
  transform: translateY(-2px);
  background: #1a1a1a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.catalog-btn:hover .btn-arrow {
  transform: translateX(5px);
}

.resident-card-btn .resident-btn-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.resident-card-btn:hover .resident-btn-arrow {
  transform: translateX(3px);
}

/* Floating Frosted Glass Card */
.resident-card {
  position: absolute;
  right: 14vw;
  bottom: 90px;
  width: 205px;
  padding: 22px 20px 20px;
  background: rgba(255, 255, 255, 0.45);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resident-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 48px rgba(0, 0, 0, 0.15);
}

.resident-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.resident-card-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  color: #111;
  letter-spacing: -0.3px;
}

.target-icon {
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resident-card-sub {
  margin: 0;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(0, 0, 0, 0.58);
  letter-spacing: -0.1px;
}

.resident-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  width: max-content;
  transition: background 0.2s ease, transform 0.2s ease;
}

.resident-card-btn:hover {
  background: #222;
  transform: translateY(-1px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1199.98px) {
  .site-header {
    padding: 0 36px;
  }

  .hero-container {
    padding: 110px 36px 44px;
  }

  .hero-headline {
    font-size: clamp(56px, 8vw, 100px);
  }

  .lender-widget {
    margin-right: 0;
  }

  .resident-card {
    right: 5vw;
    bottom: 70px;
  }

  .hero-building {
    width: 72vw;
    max-width: 860px;
    height: 78vh;
    max-height: 780px;
  }
}

@media (max-width: 809.98px) {
  .site-header {
    padding: 0 20px;
    height: 64px;
  }

  .header-left,
  .header-right .nav-link,
  .header-right .nav-btn-signup {
    display: none;
  }

  .menu-button {
    display: flex;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Keep building anchored at bottom right of viewport */
  .hero-building {
    position: absolute;
    bottom: 0;
    right: -24px;
    width: 95vw;
    max-width: 520px;
    height: 50vh;
    max-height: 460px;
    z-index: 1;
    pointer-events: none;
    margin: 0;
  }

  .hero-building img {
    object-position: right bottom;
  }

  .hero-shade {
    height: 180px;
    z-index: 2;
  }

  /* Mobile container: flex column with balanced distribution */
  .hero-container {
    padding: 82px 20px 32px;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
  }

  .hero-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    order: 1;
  }

  .hero-headline {
    font-size: clamp(42px, 11.5vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  }

  .lender-widget {
    margin-top: 4px;
    margin-right: 0;
    gap: 14px;
  }

  .lender-avatars img {
    width: 38px;
    height: 38px;
    border-width: 2px;
    margin-left: -10px;
  }

  .lender-avatars img:first-child {
    margin-left: 0;
  }

  .lender-text {
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: 0.04em;
    max-width: 165px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.15);
  }

  /* Floating Blaine Resident card sits on the right over the building */
  .resident-card {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-end;
    width: 205px;
    max-width: 78%;
    padding: 16px 16px 14px;
    border-radius: 20px;
    order: 2;
    margin-top: auto;
    margin-bottom: 4px;
    z-index: 4;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.12);
  }

  .resident-card-header h3 {
    font-size: 14px;
  }

  .resident-card-sub {
    font-size: 9.5px;
    line-height: 1.3;
  }

  .resident-card-btn {
    padding: 6px 12px;
    font-size: 10.5px;
  }

  /* Bottom left: Discover text + Catalog button */
  .hero-bottom-left {
    position: relative;
    order: 3;
    margin-top: 0;
    padding-bottom: 0;
    gap: 12px;
    max-width: 100%;
    z-index: 4;
  }

  .sparkle-icon {
    width: 22px;
    height: 22px;
  }

  .sparkle-icon svg {
    width: 22px;
    height: 22px;
  }

  .discover-text {
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: 0.05em;
  }

  .catalog-btn {
    padding: 11px 22px;
    font-size: 13px;
    gap: 12px;
  }

  .catalog-btn .btn-arrow svg {
    width: 32px;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 0 16px;
  }

  .hero-container {
    padding: 76px 16px 26px;
    gap: 16px;
  }

  .hero-headline {
    font-size: clamp(38px, 11vw, 48px);
  }

  .hero-building {
    height: 46vh;
    max-height: 380px;
    right: -20px;
    width: 100vw;
  }

  .resident-card {
    width: 185px;
    padding: 13px 13px 11px;
  }

  .resident-card-header h3 {
    font-size: 13px;
  }

  .lender-avatars img {
    width: 34px;
    height: 34px;
    margin-left: -9px;
  }

  .lender-text {
    font-size: 9.5px;
    max-width: 150px;
  }

  .catalog-btn {
    padding: 10px 18px;
    font-size: 12.5px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-container {
    min-height: auto;
    padding: 72px 24px 32px;
    gap: 24px;
  }

  .hero-building {
    height: 75vh;
    max-height: 340px;
  }

  .resident-card {
    position: absolute;
    right: 24px;
    bottom: 24px;
    margin: 0;
  }
}
