/* =============================================
   HOME PAGE — home.css
   ============================================= */

body.home-page {
  margin: 0;
  padding: 0;
  background: #ffffff;
  font-family: 'DM Sans', sans-serif;
}

/* ── Home Navbar ── */
.home-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  position: sticky;
  top: 0;
  z-index: 100;
}

.home-nav-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.home-nav-project {
  font-size: 13px;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: 0.05em;
}

.home-nav-manhattan {
  font-size: 13px;
  font-weight: 700;
  color: #99008c;
}

.home-nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
  margin: 0 auto;
  padding: 0;
}

.home-nav-links a {
  font-size: 14px;
  color: #5a5a5a;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.18s ease;
}

.home-nav-links a:hover,
.home-nav-links a.active {
  color: #0f0f0f;
}

/* Home Dropdown */
.home-dropdown {
  position: relative;
}

.home-dropdown-menu {
  display: none;
  position: absolute;
  top: 100% ;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 140px;
  overflow: hidden;
  list-style: none;
  padding: 4px 0;
  z-index: 200;
}

.home-dropdown:hover .home-dropdown-menu {
  display: block;
}

.home-dropdown-menu:hover {
  display: block;
}

.home-dropdown-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  color: #0f0f0f !important;
  text-decoration: none;
  transition: background 0.18s ease;
}

.home-dropdown-menu a:hover {
  background: #f5f5f5;
}

/* ── Hero Section ── */
.home-hero {
  text-align: center;
  padding: 64px 48px 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-tagline {
  text-align: center;
  padding: 64px 48px;
  max-width: 1000px;
  margin: 0 auto;
}

.home-title {
  font-size: 48px;
  font-weight: 700;
  color: #0f0f0f;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}

.home-subtitle {
  font-size: 15px;
  color: #5a5a5a;
  font-weight: 400;
}

/* ── Cards Section ── */
.home-cards {
  display: flex;
  gap: 8px;
  padding: 0 48px;
  align-items: stretch;
  height: 420px;
}

.home-card-large  { flex: 2; }
.home-card-medium { flex: 1; }
.home-card-wide   { flex: 2; }

.home-card {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.home-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.home-card-large  { flex: 2; }
.home-card-medium { flex: 1; }
.home-card-wide   { flex: 2.5; }

/* Card text overlay */
.home-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
  color: white;
}

.home-card-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.home-card-overlay p {
  font-size: 12px;
  opacity: 0.85;
}

.home-card-overlay-right {
  text-align: right;
  background: none;
  color: #000000;
  bottom: auto;
  top: 20px;
}

/* ── Tagline Section ── */
.home-tagline {
  text-align: center;
  padding: 64px 48px;
}

.home-tagline h2 {
  font-size: 22px;
  font-weight: 600;
  color: #0f0f0f;
  margin-bottom: 8px;
}

.home-tagline p {
  font-size: 14px;
  color: #5a5a5a;
}

/* ── Footer ── */
.home-footer {
  text-align: center;
  padding: 24px 48px;
  border-top: 1px solid #e8e8e8;
  font-size: 12px;
  color: #5a5a5a;
  line-height: 1.8;
}

.home-footer strong {
  color: #0f0f0f;
}

/* ── Login button in home nav ── */
.home-login-btn {
  padding: 8px 20px;
  background: #0f0f0f;
  color: white !important;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.home-login-btn:hover {
  background: #2a2a2a;
}

/* ── Home Profile Menu ── */
.home-profile-wrap {
  position: relative;
}

.home-profile-btn {
  background: none;
  border: 1.5px solid #e8e8e8;
  color: #0f0f0f;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.18s ease;
}

.home-profile-btn:hover {
  border-color: #0f0f0f;
  background: #f5f5f5;
}

.home-profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  min-width: 200px;
  overflow: hidden;
  z-index: 200;
}

.home-profile-menu.open {
  display: block;
}

.home-profile-email {
  padding: 12px 16px;
  font-size: 12px;
  color: #5a5a5a;
  border-bottom: 1px solid #e8e8e8;
}

.home-profile-logout {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  color: #c0392b;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.18s ease;
}

.home-profile-logout:hover {
  background: #fff0ef;
}