/* ===== BODY HOME ===== */
body.homepage {
  background: #f5f7fc;
  overflow-x: hidden; /* previne scroll orizontal */
}

/* ===== HEADER DESKTOP ===== */

.home-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e6e6e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  height: 72px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.brand-logo img {
  height: 100px;
}

.main-nav {
  display: flex;
  gap: 25px;
}

.main-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  white-space: nowrap;
}

.main-nav a:hover {
  color: #3867d6;
}

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

/* Search */
.search-box {
  position: relative;
}

.search-box input {
  padding: 8px 30px 8px 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.search-box i {
  position: absolute;
  right: 8px;
  top: 8px;
  color: gray;
}

/* Clock */
.clock {
  font-weight: 600;
  font-size: 14px;
}

/* ===== MOBILE MENU BUTTON ===== */

.mobile-menu-btn {
  display: none; /* ascuns pe desktop */
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===== MOBILE NAV ===== */

.mobile-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 999;
}

.mobile-nav a {
  padding: 12px 20px;
  font-size: 15px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
}

.mobile-nav a:hover {
  background: #f3f6ff;
  color: #3867d6;
}

.mobile-nav.open {
  display: flex;
}

/* ===== MAIN ===== */
.home-main {
  width: 100%;
}

/* ===== RESPONSIVE ===== */

/* Tablet */
@media (max-width: 1024px) {
  .home-header {
    padding: 0 20px;
  }

  .main-nav {
    gap: 18px;
  }

  .search-box input {
    width: 140px;
  }
}

/* Mobile */
@media (max-width: 768px) {

  .home-header {
    padding: 10px 16px;
    height: auto;
    flex-wrap: wrap;
    row-gap: 10px;
  }

  .desktop-nav {
    display: none;   /* ascundem meniul mare */
  }

  .mobile-menu-btn {
    display: block;  /* arătăm burger-ul */
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .header-right {
    width: 100%;
    justify-content: space-between;
  }

  .search-box input {
    width: 160px;
  }

  .clock {
    font-size: 13px;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  .search-box input {
    width: 130px;
  }

  .brand-logo img {
    height: 36px;
  }

  .clock {
    font-size: 12px;
  }
}

